• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Simple JBoss Web Service With Eclipse

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi,

I am new to this site, forgive me if my question is out of place.
~~~~~
I am trying to deploy a simple web service using eclipse europa and jboss
doing exactly what is explained here

http://www.javabeat.net/articles/40-creating-webservice-using-jboss-and-eclipse-europa-1.html
~~~~~
I am running on ubuntu server 8.10 and I have taken care to install the the software called out in the above link.

I am using JBoss-4.0.5.GA, jdk5, and eclipse europa all in one which I obtained from here

http://archive.eclipse.org/webtools/downloads/drops/R2.0/R-2.0.1-20070926042742/
Platform: Linux (x86/GTK 2) (Supported Versions)
wtp-all-in-one-sdk-linux-gtk (252M) [md5]
~~~~~
All seems to work until I try to deploy. Deployment fails with a NullPointer Exception
as can be seen in the jboss logs.

The build finishes opening a browser page saying that the web service is not available.

Visiting http://localhost/jbossws and clicking the link to show deployed web services shows none.

Does anybody know how to fix this ???

I realize I am not using the most current packages, however, they are each of the same period
and I am attempting to gain some understanding of how it's all evolving in addition to attempting
to follow the example which I have posted.

The only way I have changed the code is that I am using no package and I call the jboss_app3 or jboss_app4, etc
with each new attempt. The java class I use is TestWs and the web.xml is modified only to remove the package declaration.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

All seems to work until I try to deploy. Deployment fails with a NullPointer Exception
as can be seen in the jboss logs.



Please post those logs.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jaikiran Pai,

Thank you for your interest. I have some other things I have to do. I've tried many things since my post, however, I believe I saved the effort I am referring to in a project of it's own.

I will send you a message as soon as I post the log, however it may be a day or so.

Will
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
2009-04-03 06:55:07,901 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war
2009-04-03 06:55:07,901 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war
2009-04-03 06:55:07,902 DEBUG [org.jboss.deployment.MainDeployer] Copying file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war -> /opt/jboss-4.0.5.GA/server/default/tmp/deploy/tmp9257jboss_app2.war
2009-04-03 06:55:07,902 DEBUG [org.jboss.deployment.MainDeployer] using deployer MBeanProxyExt[jboss.web:service=WebServer]
2009-04-03 06:55:07,902 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Begin init
2009-04-03 06:55:07,903 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Unpacking war to: /opt/jboss-4.0.5.GA/server/default/tmp/deploy/tmp9257jboss_app2-exp.war
2009-04-03 06:55:07,904 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Replaced war with unpacked contents
2009-04-03 06:55:07,904 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] Deleted war archive
2009-04-03 06:55:07,905 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] webContext: null
2009-04-03 06:55:07,905 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] warURL: file:/opt/jboss-4.0.5.GA/server/default/tmp/deploy/tmp9257jboss_app2-exp.war/
2009-04-03 06:55:07,907 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] End init
2009-04-03 06:55:07,907 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
2009-04-03 06:55:07,907 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@a31e1b, cl=org.jboss.mx.loading.UnifiedClassLoader3@1589d3d{ url=file:/opt/jboss-4.0.5.GA/server/default/tmp/deploy/tmp9257jboss_app2-exp.war/ ,addedOrder=0}
2009-04-03 06:55:07,907 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@a31e1b, cl=org.jboss.mx.loading.UnifiedClassLoader3@1589d3d{ url=file:/opt/jboss-4.0.5.GA/server/default/tmp/deploy/tmp9257jboss_app2-exp.war/ ,addedOrder=0}
2009-04-03 06:55:07,907 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@1589d3d{ url=file:/opt/jboss-4.0.5.GA/server/default/tmp/deploy/tmp9257jboss_app2-exp.war/ ,addedOrder=0}
2009-04-03 06:55:07,908 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war
2009-04-03 06:55:07,908 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war
2009-04-03 06:55:07,908 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war
2009-04-03 06:55:07,908 DEBUG [org.jboss.ws.integration.jboss.DeployerInterceptorJSE] create: file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war
2009-04-03 06:55:07,908 DEBUG [org.jboss.web.tomcat.tc5.Tomcat5] create, jboss_app2.war
2009-04-03 06:55:07,910 DEBUG [org.jboss.system.ServiceController] Creating service jboss.web.deployment:war=jboss_app2.war,id=1998488607
2009-04-03 06:55:07,911 DEBUG [org.jboss.system.ServiceController] adding depends in ServiceController.register: []
2009-04-03 06:55:07,911 DEBUG [org.jboss.web.WebModule] Creating jboss.web.deployment:war=jboss_app2.war,id=1998488607
2009-04-03 06:55:07,911 DEBUG [org.jboss.web.WebModule] Created jboss.web.deployment:war=jboss_app2.war,id=1998488607
2009-04-03 06:55:07,911 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.web.deployment:war=jboss_app2.war,id=1998488607 dependents are: []
2009-04-03 06:55:08,020 DEBUG [org.jboss.ws.deployment.ServiceEndpointDeployer] create: file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war
2009-04-03 06:55:08,040 DEBUG [org.jboss.ws.deployment.JSR181MetaDataBuilderJSE] START buildMetaData: [name=jboss_app2.war]
2009-04-03 06:55:08,089 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war
java.lang.NullPointerException
at org.jboss.ws.metadata.wsdl.WSDLUtils.getTypeNamespace(WSDLUtils.java:711)
at org.jboss.ws.deployment.JSR181MetaDataBuilder.setupEndpointFromAnnotations(JSR181MetaDataBuilder.java:146)
at org.jboss.ws.deployment.JSR181MetaDataBuilderJSE.buildMetaData(JSR181MetaDataBuilderJSE.java:72)
at org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92)
at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(DeployerInterceptorJSE.java:74)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
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 $Proxy39.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor54.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:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
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:490)
at java.lang.Thread.run(Thread.java:595)
2009-04-03 06:55:08,105 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
2009-04-03 06:55:08,105 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
2009-04-03 06:55:08,105 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
2009-04-03 06:55:08,105 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@771e841f{ url=file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war, deployedLastModified=0 }
org.jboss.deployment.DeploymentException: Could not create deployment: file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war; - nested throwable: (java.lang.NullPointerException)
at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:991)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor54.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:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
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:490)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at org.jboss.ws.metadata.wsdl.WSDLUtils.getTypeNamespace(WSDLUtils.java:711)
at org.jboss.ws.deployment.JSR181MetaDataBuilder.setupEndpointFromAnnotations(JSR181MetaDataBuilder.java:146)
at org.jboss.ws.deployment.JSR181MetaDataBuilderJSE.buildMetaData(JSR181MetaDataBuilderJSE.java:72)
at org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:92)
at org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
at org.jboss.ws.integration.jboss.DeployerInterceptorJSE.create(DeployerInterceptorJSE.java:74)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
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 $Proxy39.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
... 66 more
2009-04-03 06:55:08,107 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war -> file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war

*** Edited to reduce the size of the posted log to include only the relevant parts
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I attached the log there above - posted it I mean. I tried to attach it as the file is only 643 kb, however the system will not allow it.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
William, when Jaikiran asked you to post the log, he meant only that section of the log that showed the error. In the future, please do not post the full log.

Here is the error message:

2009-04-03 06:55:08,089 ERROR [org.jboss.deployment.MainDeployer] Could not create deployment: file:/opt/jboss-4.0.5.GA/server/default/deploy/jboss_app2.war
java.lang.NullPointerException
at org.jboss.ws.metadata.wsdl.WSDLUtils.getTypeNamespace(WSDLUtils.java:711)

Does you app include the WSDL or are you letting the server generate it? If you include the WSDL, please post it. Also, post the source for the web service.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As I said when I started this thread, I am really only attempting to precisely follow what is shown

here

http://www.javabeat.net/articles/40-creating-webservice-using-jboss-and-eclipse-europa-1.html

The two files are THE ONLY additions the project which I have made and aside from a different package
everything else is the same as in the above link.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With regard to your enquiry, Peter Johnson:

"Does you app include the WSDL or are you letting the server generate it? If you include the WSDL, please post it. Also, post the source for the web service."

I will reiterate that I only precisely following what is shown

here

http://www.javabeat.net/articles/40-creating-webse...boss-and-eclipse-europa-1.html

The two files above are THE ONLY additions to the project which I have made and aside from a different package
everything else is the same as in the above link. The two files above ARE the two files and show THE different package.

 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note also that the above log is only that section of the log that shows the error. I removed all other parts of the log. Actually I shut down JBOSS. Renamed the log and began with a blank log file so as to produce a log which would be only that section of the log that shows the error
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did the above because I believed that Jaikiran meant only that section of the log that shows the error.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, now look here, at the bottom of page three of the tutorial in the link which I list it says

"Here in this screen you can see the ServiceEndpointAddress link which will take you to the WSDL file.

You can also find the WSDL file in the following path:
<jboss_path>\server\default\data\wsdl\<project_name>.war\<filename>.wsdl

You can generate the client stubs using this file and access the web service. Creating the client stubs to access the web service is out of scope of this article. "

When I attempt to go to

<jboss_path>\server\default\data\wsdl\<project_name>.war\<filename>.wsdl

in the data directory there is no wsdl directory. Why ???

Do I have to install a JBossWS distribution or something which is not mentioned in the tutorial
which I have been commenting on i.e.

http://www.javabeat.net/articles/40-creating-webservice-using-jboss-and-eclipse-europa-1.html

 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't see anything obviously wrong with the web service.

Is there a reason you are using 4.0.5? Personally, I would use either JBoss AS 4.2.3 or 5.0.1 to develop a web service. The book JBoss in Action has a chapter on web services that has a tutorial on building a simple web service. That chapter happens to be a free download, the link is below. That works on 5.0.x, but should also work with 4.2.x.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hello Peter,

Well, what's obviosly wrong with it, if I've failed to point it out, is that all seems to work until I try to deploy. Deployment fails with a NullPointer Exception as can be seen in the jboss logs.

The build finishes opening a browser page saying that the web service is not available.

I don't want to put too fine a point upon it, what's wrong with it, is that it doesn't work.

In fact, I do have a reason for using JBoss 4.0.5.GA. I am attempting to follow the tutorial at

http://www.javabeat.net/articles/40-creating-webse...boss-and-eclipse-europa-1.html

and the packages I am using are called out in it. I am attempting to use those packages in particular
so as to get the example to work with the least pain.

For your interest, I have tried other versions of JBoss including 5.0.0 with this code without success.


Regarding your mention of the book, JBoss in Action, does the example use eclipse and deploy with it?

I am attempting to make it all work and deploy with eclipse...and JBoss.

Nevertheless and always the more for the pure joy and insatiable satisfaction of it, I am indeed thankful for your mention of the example and I will look into it regardless of whether it uses eclipse or not. Thank you.

However, it would be interesting to get this to work if it can be done using eclipse and jboss as it is explained to.

 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Pleasure to meet you if you are the author of the book, Peter.

Will
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Interestingly, Peter,

a detail I have come across with JBoss 5.0.0 is that for some reason I cannot access JBoss 5.0.0 from the internet, while I can access JBoss 4.x.x through the internet on my machine. I am sure this detail was implemented as a correction - security measure.

For me right now ( as in at this time in my life ) I would like to understand how to make JBoss 5.0.0 visible from the internet as JBoss 4.x.x is.

Maybe that is in ( your or the ) book which you mention.

Will
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

To be complete the link with tutorial I have been referring to is here.

http://www.javabeat.net/articles/40-creating-webservice-using-jboss-and-eclipse-europa-1.html

I am listing it again because half the time I paste it in, it winds up being an invalid paste and the corresponding link fails.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I don't require JBoss 4.x, it can be JBoss 5.x. I just attempting to be consistent and use packages of the same error. In fact, I have both representives of both JBoss4.x and JBoss5.x installed and swap back and forth.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson,

I am guessing that you would recommend jdk6 over jdk5.

I do have to download these versions of JBoss - I think it will be best to use the exact versions which you recommend.

I do have a rather slow internet connection so it will take me a while to get there, not due to lack of interest, but these downloads will probably take all night for me here.

Seems like you have written a really nice book, and you are the first author I've ever met in my life.

I feel lucky already.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter,

Now that I've skimmed chapter nine of your book, I can address your question

"Does you app include the WSDL or are you letting the server generate it?
If you include the WSDL, please post it. Also, post the source for the web service."

I am using the the bottom-up approach — as you explain in your book

I have coded the web service first and then planned to generate the
WSDL from the web service. I didn't realize that I could generate the WSDL
using a utility, such as the wsprovide utility supplied by JBossWS, so I was
package the web service and deploying it with the expectation that the web
services deployer would automatically generate the WSDL.

I sitll don't understand why when I attempt to go to

<jboss_path>\server\default\data\wsdl\<project_name>.war\<filename>.wsdl

in the data directory there is no wsdl directory. Why ???

I was able to attempt your SaleTax webservice using eclipse and jboss-5.0.0CR2 candidate release 2
and upon deploy the log shows

org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException Error during deploy: vfszip:/opt/jboss_5.0.0GA/jboss-5.0.0.CR2/server/default/deploy/ch09.war

followed later by

*** CONTEXTS IN ERROR: Name -> Error

followed by a java.lang.NoSuchMethodError

When I visit localhost:8080/jbossws/services, I see no services - no
endpoints are deployed.

So I will have to wait until my downloads of JBoss5.0.1 have finished before I will know if my problems are specific to candidate release 2.

I did have to comment out ${SalesTax.import} and ${SalesTax.annotation} to allow an error free compile.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If anyone feels they can help me please respond...even if you don't know how to write a web service.

I feel that if I can accumulate all the wrong ways of doing it, by process of elimination I will arrive at the one
and only final correct way(s)...

do your level best and let's see if we can't solve this...
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Peter,

I successfully got your webservice working with JBoss4.2.3 - the salestax one.

I am using the the bottom-up approach — as you explain in your book

I have coded the web service first and then generate the
WSDL from the web service.

I tried with JBoss5.0.1 and had a problem configuring with Eclipse. There is a bug
as referenced here...https://bugs.eclipse.org/bugs/show_bug.cgi?id=257823 which
I just saw as a nuissance and it seemed like a timesaver to just jump to 4.2.3.

I can go back and fiddle with JBoss5.0.1, but at least it's nice to know that there is
something on the other end to dig for as opposed to just digging a big hole in the ground
too see more dirt.

Now I have a different issue and that is I guess as a security measure JBoss4.2.3 on up
or somewhere thereabouts is not accessible from the net and it was in earlier versions.

I would like it accessible - what I mean is I want to be able to see at the jbossws page
from the net...I could in earlier JBoss versions, I can't with 4.2.3. Must be a setting.

Thanks,
Will
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Well, I was able to get it internet visible from 4.2.3 so from my point of view I accomplished
what I was hoping to accomplish.

Thanks Everyone!

I may have more related questions, however, this is what was really getting.

Will
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I am surprised that the code would not work with JBoss5.0.0CR2 because I didn't have the dam bug which I listed above, but it stil won't work.
 
William Richards
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I mean jboss5.0.0cr2 doesn't have the bug that jboss5.0.1 does.
 
Whatever. Here's a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic