File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No error at deployment, but at application test

 
badri bouchra
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am trying to migrate from JBoss 4 to 7.
The deployment is going well, however when I access the web interface of the app and try to access the database, I get the following exception : NullPointerException. More details are in the console.log of JBoss :

12:39:55,004 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/server].[XFireServlet]] (http--0.0.0.0-8080-7) "Servlet.service()" pour la servlet XFireServlet a généré une exception: java.lang.ClassNotFoundException: org.apache.xml.serializer.TreeWalker from [Module "deployment.server.war:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:823) [xalan-2.7.1.jar:]
at __redirected.__TransformerFactory.newTransformer(__TransformerFactory.java:133) [jboss-modules.jar:1.1.1.GA]
at org.codehaus.xfire.wsdl11.builder.SchemaSerializer.writeXml(SchemaSerializer.java:48) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.wsdl11.builder.SchemaSerializer.marshall(SchemaSerializer.java:35) [xfire-all-1.2.6.jar:]
at com.ibm.wsdl.xml.WSDLWriterImpl.printExtensibilityElements(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at com.ibm.wsdl.xml.WSDLWriterImpl.printTypes(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at com.ibm.wsdl.xml.WSDLWriterImpl.printDefinition(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at com.ibm.wsdl.xml.WSDLWriterImpl.writeWSDL(Unknown Source) [wsdl4j-1.5.2.jar:1.5.2]
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.write(WSDLBuilder.java:182) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.wsdl11.builder.WSDLBuilderAdapter.write(WSDLBuilderAdapter.java:40) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.DefaultXFire.generateWSDL(DefaultXFire.java:104) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.transport.http.XFireServletController.generateWSDL(XFireServletController.java:380) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:125) [xfire-all-1.2.6.jar:]
at org.codehaus.xfire.transport.http.XFireServlet.doGet(XFireServlet.java:107) [xfire-all-1.2.6.jar:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]

12:39:55,017 ERROR [stderr] (Thread-117) java.io.IOException: Server returned HTTP response code: 500 for URL: http://172.16.1.65:8080/server/services/authentificationWS?wsdl
12:39:55,018 ERROR [stderr] (Thread-117) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
12:39:55,018 ERROR [stderr] (Thread-117) at java.net.URL.openStream(URL.java:1037)
12:39:55,019 ERROR [stderr] (Thread-117) at org.codehaus.xfire.client.Client.<init>(Client.java:246)
12:39:55,019 ERROR [stderr] (Thread-117) at ma.rcar.ws.WebsevriceAccess.invokeWs(WebsevriceAccess.java:33)
12:39:55,019 ERROR [stderr] (Thread-117) at ma.rcar.AuthenComposer.onClick$connecter(AuthenComposer.java:75)
12:39:55,020 ERROR [stderr] (Thread-117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
12:39:55,020 ERROR [stderr] (Thread-117) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
12:39:55,021 ERROR [stderr] (Thread-117) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
12:39:55,021 ERROR [stderr] (Thread-117) at java.lang.reflect.Method.invoke(Method.java:601)
12:39:55,022 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.event.GenericEventListener.onEvent(GenericEventListener.java:87)
12:39:55,022 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:206)
12:39:55,022 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:140)
12:39:55,022 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:517)
12:39:55,023 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.sendEvent(EventProcessingThreadImpl.java:121)
12:39:55,023 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:318)
12:39:55,023 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:328)
12:39:55,023 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.AbstractComponent$ForwardListener.onEvent(AbstractComponent.java:2977)
12:39:55,024 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:206)
12:39:55,024 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:140)
12:39:55,024 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:517)
12:39:55,024 ERROR [stderr] (Thread-117) at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:444)
12:39:55,029 SEVERE [org.zkoss] (http--0.0.0.0-8080-6) >>java.lang.NullPointerException
>> at ma.rcar.ws.WebsevriceAccess.invokeWs(WebsevriceAccess.java:49)
>> at ma.rcar.AuthenComposer.onClick$connecter(AuthenComposer.java:75)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at org.zkoss.zk.ui.event.GenericEventListener.onEvent(GenericEventListener.java:87)
>> at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:206)
>> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:140)
>> at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:517)






Can you guys help?
Oh I have tried to create a boss-deployment-structure.xml in META-INF like in http://shrubbery.mynetgear.net/c/display/W/Migrating+Existing+Applications+to+JBoss+AS+7#MigratingExistingApplicationstoJBossAS7-SLF4J
Just pasted that, I get errors at deployment :


12:35:35,882 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-46) MSC00001: Failed to start service jboss.deployment.unit."nizaat.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."nizaat.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "nizaat.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Error loading jboss-structure.xml from /opt/jboss-as/standalone/tmp/vfs/temp518523bf843b9eab/nizaat.war-f87523c399c65ead/META-INF/jboss-deployment-structure.xml
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:277) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:249) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:134) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[9,3]
Message: Unexpected content of type 'element start' named '{urn:jboss:deployment-structure:1.0}deployment'
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.unexpectedContent(JBossDeploymentStructureParser10.java:854) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.readElement(JBossDeploymentStructureParser10.java:192) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.readElement(JBossDeploymentStructureParser10.java:37) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:271) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 8 more

12:35:37,788 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-37) MSC00001: Failed to start service jboss.deployment.unit."nizaat.war".STRUCTURE: org.jboss.msc.service.StartException in service jboss.deployment.unit."nizaat.war".STRUCTURE: Failed to process phase STRUCTURE of deployment "nizaat.war"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Error loading jboss-structure.xml from /opt/jboss-as/standalone/tmp/vfs/temp518523bf843b9eab/nizaat.war-732dab3929dac6a0/META-INF/jboss-deployment-structure.xml
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:277) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:249) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:134) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
... 5 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[9,3]
Message: Unexpected content of type 'element start' named '{urn:jboss:deployment-structure:1.0}deployment'
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.unexpectedContent(JBossDeploymentStructureParser10.java:854) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.readElement(JBossDeploymentStructureParser10.java:192) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.deployment.module.descriptor.JBossDeploymentStructureParser10.readElement(JBossDeploymentStructureParser10.java:37) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.as.server.deployment.module.descriptor.DeploymentStructureDescriptorParser.parse(DeploymentStructureDescriptorParser.java:271) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]



Thanks !
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic