IntelliJ and JBoss, Deployment Error
I'm developing EBJ with IntelliJ 4.5.3 with JBoss Integration Plugin and (obviously) use JBoss 3.2.6 Application Server, running over Windows XP SP1 with some patch (here could be the error but i don´t know).
I compiled the project, packed EAR FILE and run. JBoss start up well until the running process try to deploy or "activate" the application, then org.jboss.deployment.DeploymentException is thrown.
This message have an attachment, with the complete sample developed with IntelliJ.
Any one can tell me what happend here?
Please try to deploy the app.ear in yours jboss, and comment me some result.
Thanks in advance.
Alexander.
See the log.
21:05:22,785 INFO Init J2EE application: file:/D:/sample/app/app.ear
21:05:50,144 ERROR Could not initialise deployment: file:/D:/sample/app/app.ear
org.jboss.deployment.DeploymentException: Connection timed out: connect; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:133)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:254)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:784)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:736)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:661)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:905)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
... 39 more
org.jboss.deployment.DeploymentException: Connection timed out: connect; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
at org.jboss.deployment.EARDeployer.init(EARDeployer.java:133)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:604)
at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:254)
at sun.reflect.GeneratedMethodAccessor50.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:784)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:736)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:661)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:905)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.jboss.metadata
Attachment(s):
sample.rar
请先登录再写评论。
I just tried your sample with IDEA 4.5.3, JBoss Plugin 1.11, JBoss 3.2.6, all on Windows XP SP2. Deployment works like a charme, so I assume there's something wrong with your JBoss installation.
Once you solved the deployment problem:
There are some JNDI-related errors. In the servlet code you have to access the bean by 'java:comp/env/...', and you have to create an EJB reference in the web module. Please check with my tutorial at http://www.fuhrer.com/en/jbossplugin/createServlet.html
But this has nothing to do with your deployment problem. It prevents the sample from working, not from deploying.
Igr Alexander Fernandez Sauco wrote:
it looks like it is tring to get DTD for xml and cannot maybe you are
not connected to net or you dont have DTD on classpath...
cheers
tomaz
Thanks, i'm behind a proxy and JbossIntegration Plugin write the description using missing dtd's in doc/dtd folder.
Now a simple cuestion:
JbossIntegration do not generate a UtilClass or Helper for instantantiate Bean Objects?
Exist a Tutorial for write Entity Beans, with CMR Fields, with JbossIntegration?
Thanks a lot.
Alexander
Every DTD used by the plugin is contained in jboss.jar in the server's
lib directory. The DTDs in doc/dtd are for documentation only.
No. What do you expect it to do?
No, not yet. But if you have any specific questions just feel free to ask.
--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com
>No. What do you expect it to do?
Well i have thinking that JbossIntegration write a class with static method for help to instantiate beans and home class, with out have to remember JNDI names.
For example
public interface HelloBean extends EJBObject {\
final String JNDI = "ejb/hello"; //write this constants
final String REMOTE_JNDI = "ejb/hello";
String sayHello(String name) throws RemoteException;
}
public class HelloBeanUtil //can be CoHelloBean like COM helper class, jajaj was a joke
{
public static HelloBean Create()
{
// Here code for instantiate HelloBean using Interface JNDI constant
}
public static HelloBean CreateRemote(String machinName)
{
// Here code for instantiate HelloBean using machinName + Interface REMOTE_JNDI constant
}
it's can be help full, and i think it very simple to implement, comparable with the all functionality of the plugin.
}
>No, not yet. But if you have any specific questions just feel free to ask.
I need make a seach using CMP, where i write SQL Sentece or EQL Sentence for EJB creation?
Martin Fuhrer
You are the author of the plugin?
Thanks again.
>>JbossIntegration do not generate a UtilClass or Helper for instantantiate Bean Objects?
>>No. What do you expect it to do?
Interesting suggestion, I'll take a look at it. It's not as easy as you
think, since there are a lot of circumstances to consider. But I'll see
what I can do.
>>No, not yet. But if you have any specific questions just feel free to ask.
Unfortunately IDEA is missing support for CMP queries. As soon as IDEA
supports this, I'll add the JBoss-specific part to the plugin. Please
vote for it at http://www.jetbrains.net/jira/browse/IDEABKL-2407
Yes, that's me.
--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com
I'm using JBoss 3.2.6 and jboss.jar has no for example jboss-app_4_0.dtd. What can i do?
Please use only the 3.2 versions of the deployment descriptors together
with JBoss 3.2.x. Unfortunately this selection can't be done
automatically by the plugin, you have to specify the correct version in
the module settings.
Igr Alexander Fernandez Sauco wrote:
--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com
And feel free to file a change request. It's a shame that IDEA doesn't
provide us enough information to select the correct version automatically.
Martin Fuhrer wrote:
>> I'm using JBoss 3.2.6 and jboss.jar has no for example
>> jboss-app_4_0.dtd. What can i do?
--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com