[jboss-user] [JBoss Eclipse IDE (users)] - Re: can not deploy *.ear

Villain do-not-reply at jboss.com
Wed Oct 4 12:50:58 EDT 2006


Hi 
I also have such a problem. 
I am using j2ee 1.5, Jboss AS 4.0.4.GA
I can't deploy aplication with servlet

Here is the exception:

Could not initialise deployment: file:/D:/Program Files/jboss-4.0.4.GA/server/default/deploy/Transport/Transport.ear
  | org.jboss.deployment.DeploymentException: Failed to find module file: Transport.war
  | 	at org.jboss.deployment.EARDeployer.init(EARDeployer.java:257)
  | 	at org.jboss.deployment.MainDeployer.init(MainDeployer.java:861)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:798)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  | 	at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 	at $Proxy8.deploy(Unknown Source)
  | 	at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
  | 	at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
  | 	at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
  | 	at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | 	at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | 	at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | 	at $Proxy0.start(Unknown Source)
  | 	at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | 	at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 	at java.lang.reflect.Method.invoke(Method.java:585)
  | 	at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 	at $Proxy4.start(Unknown Source)
  | 	at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
  | 	at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  | 	at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
  | 	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.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 	at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 	at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | 	at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 	at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 	at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 	at $Proxy5.deploy(Unknown Source)
  | 	at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
  | 	at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
  | 	at org.jboss.Main.boot(Main.java:200)
  | 	at org.jboss.Main$1.run(Main.java:464)
  | 	at java.lang.Thread.run(Thread.java:595)
  | 19:03:51,041 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- Incompletely deployed packages ---
  | org.jboss.deployment.DeploymentInfo at c9244da9 { url=file:/D:/Program Files/jboss-4.0.4.GA/server/default/deploy/Transport/Transport.ear }
  |   deployer: org.jboss.deployment.EARDeployer at 18efaea
  |   status: null
  |   state: FAILED
  |   watch: file:/D:/Program Files/jboss-4.0.4.GA/server/default/deploy/Transport/Transport.ear
  |   altDD: null
  |   lastDeployed: 1159977831041
  |   lastModified: 1159977831009
  |   mbeans: 


Here is my aplication.xml:

<?xml version="1.0" encoding="UTF-8"?>
  | <application version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
  |                        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |                        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
  |    <display-name>Transort</display-name>
  |     <module id="Transport">
  |         <web>
  |             <web-uri>Transport.war</web-uri>
  |             <context-root>Transport</context-root>
  |         </web>
  |     </module>
  | </application>

Here is web.xml:

<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
  | <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
  |          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |          xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
  |          version="2.4">
  | 
  |     <servlet>
  |         <servlet-name>TransportServlet</servlet-name>
  |         <servlet-class>by.tusson.server.TransportServlet</servlet-class>
  |     </servlet>
  | 
  |     <servlet-mapping>
  |         <servlet-name>TransportServlet</servlet-name>
  |         <url-pattern>/Transport</url-pattern>
  |     </servlet-mapping>
  | </web-app>

Here is generated jaxrpc-mapping.xml:

<?xml version='1.0' encoding='UTF-8'?><java-wsdl-mapping version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd'>
  |  <package-mapping>
  |   <package-type>by.tusson.server</package-type>
  |   <namespaceURI>http://hello.ws.jboss.org/types</namespaceURI>
  |  </package-mapping>
  |  <service-interface-mapping>
  |   <service-interface>by.tusson.server.TransportService</service-interface>
  |   <wsdl-service-name xmlns:serviceNS='http://hello.ws.jboss.org/'>serviceNS:TransportService</wsdl-service-name>
  |   <port-mapping>
  |    <port-name>TransportPort</port-name>
  |    <java-port-name>TransportPort</java-port-name>
  |   </port-mapping>
  |  </service-interface-mapping>
  |  <service-endpoint-interface-mapping>
  |   <service-endpoint-interface>by.tusson.server.Transport</service-endpoint-interface>
  |   <wsdl-port-type xmlns:portTypeNS='http://hello.ws.jboss.org/'>portTypeNS:Transport</wsdl-port-type>
  |   <wsdl-binding xmlns:bindingNS='http://hello.ws.jboss.org/'>bindingNS:TransportBinding</wsdl-binding>
  |   <service-endpoint-method-mapping>
  |    <java-method-name>send</java-method-name>
  |    <wsdl-operation>send</wsdl-operation>
  |    <wsdl-return-value-mapping>
  |     <method-return-value>byte[]</method-return-value>
  |     <wsdl-message xmlns:wsdlMsgNS='http://hello.ws.jboss.org/'>wsdlMsgNS:Transport_sendResponse</wsdl-message>
  |     <wsdl-message-part-name>result</wsdl-message-part-name>
  |    </wsdl-return-value-mapping>
  |   </service-endpoint-method-mapping>
  |  </service-endpoint-interface-mapping>
  | </java-wsdl-mapping>

Here is generated webservice.xml:

<webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' xmlns:impl='http://hello.ws.jboss.org/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'>
  |  <webservice-description>
  |   <webservice-description-name>TransportService</webservice-description-name>
  |   <wsdl-file>WEB-INF/wsdl/TransportService.wsdl</wsdl-file>
  |   <jaxrpc-mapping-file>WEB-INF/jaxrpc-mapping.xml</jaxrpc-mapping-file>
  |   <port-component>
  |    <port-component-name>TransportPort</port-component-name>
  |    <wsdl-port>impl:TransportPort</wsdl-port>
  |    <service-endpoint-interface>by.tusson.server.Transport</service-endpoint-interface>
  |    <service-impl-bean>
  |     <servlet-link>TrasportServlet</servlet-link>
  |    </service-impl-bean>
  |   </port-component>
  |  </webservice-description>
  | </webservices>

Here is generated wsdl file:

<?xml version="1.0" encoding="UTF-8"?>
  | <definitions name='TransportService' targetNamespace='http://hello.ws.jboss.org/' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://hello.ws.jboss.org/' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
  |  <types/>
  |  <message name='Transport_send'/>
  |  <message name='Transport_sendResponse'>
  |   <part name='result' type='xsd:base64Binary'/>
  |  </message>
  |  <portType name='Transport'>
  |   <operation name='send'>
  |    <input message='tns:Transport_send'/>
  |    <output message='tns:Transport_sendResponse'/>
  |   </operation>
  |  </portType>
  |  <binding name='TransportBinding' type='tns:Transport'>
  |   <soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/>
  |   <operation name='send'>
  |    <soap:operation soapAction=''/>
  |    <input>
  |     <soap:body namespace='http://hello.ws.jboss.org/' use='literal'/>
  |    </input>
  |    <output>
  |     <soap:body namespace='http://hello.ws.jboss.org/' use='literal'/>
  |    </output>
  |   </operation>
  |  </binding>
  |  <service name='TransportService'>
  |   <port binding='tns:TransportBinding' name='TransportPort'>
  |    <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
  |   </port>
  |  </service>
  | </definitions>

Here is the ear file structure:

META-INF/
  | META-INF/MANIFEST.MF
  | transport.war
  | META-INF/jboss-app.xml
  | META-INF/application.xml
  | 

Here is war file structure:

META-INF/
  | META-INF/MANIFEST.MF
  | WEB-INF/
  | WEB-INF/jboss-web.xml
  | WEB-INF/jaxrpc-mapping.xml
  | WEB-INF/webservices.xml
  | WEB-INF/wsdl/
  | WEB-INF/wsdl/TransportService.wsdl
  | WEB-INF/classes/
  | WEB-INF/classes/by/
  | WEB-INF/classes/by/tusson/
  | WEB-INF/classes/by/tusson/server/
  | WEB-INF/classes/by/tusson/server/Transport.class
  | WEB-INF/classes/by/tusson/server/TransportServlet.class
  | WEB-INF/web.xml
  | 

Could somebody explain what is wrong?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976094#3976094

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976094



More information about the jboss-user mailing list