Skip to main content

JAXWS-2.0 RI ER - Errors compiling 'fromjava' samples

2 replies [Last post]
christhatcher
Offline
Joined: 2005-11-15
Points: 0

Hello,

I'm trying to build the samples bundled with the jaxws-2.0 ri early release. I am using the latest glassfish binary running on localhost:8080. With the samle from java, there are no errors running 'ant server'. The ws is successfully deployed, but when I run 'ant client' i get the following output from ant:

C:\Documents and Settings\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\sample
s\fromjava>ant client
Buildfile: build.xml

generate-client:
[wsimport] XML stream reader exception: javax.xml.stream.XMLStreamException: Pa
rseError at [row,col]:[1,1]
[wsimport] Message: Premature end of file.
[wsimport] XML stream reader exception: javax.xml.stream.XMLStreamException: Pa
rseError at [row,col]:[1,1]
[wsimport] Message: Premature end of file.
[wsimport] at com.sun.xml.ws.streaming.StAXReader.next(StAXReader.java:202)

[wsimport] at com.sun.tools.ws.processor.config.parser.Reader.validateInput
(Reader.java:69)
[wsimport] at com.sun.tools.ws.processor.config.parser.Reader.parse(Reader.
java:48)
[wsimport] at com.sun.tools.ws.wscompile.CompileTool.createConfiguration(Co
mpileTool.java:510)
[wsimport] at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:2
69)
[wsimport] at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:43)
[wsimport] at com.sun.tools.ws.WsImport.main(WsImport.java:21)

[wsimport] CAUSE:

[wsimport] javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
[wsimport] Message: Premature end of file.
[wsimport] at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:508)

[wsimport] at com.sun.xml.ws.streaming.StAXReader.next(StAXReader.java:191)

[wsimport] at com.sun.tools.ws.processor.config.parser.Reader.validateInput
(Reader.java:69)
[wsimport] at com.sun.tools.ws.processor.config.parser.Reader.parse(Reader.
java:48)
[wsimport] at com.sun.tools.ws.wscompile.CompileTool.createConfiguration(Co
mpileTool.java:510)
[wsimport] at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:2
69)
[wsimport] at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:43)
[wsimport] at com.sun.tools.ws.WsImport.main(WsImport.java:21)
[wsimport] Command invoked: wsimport "C:\Program Files\Java\jdk1.5.0_02\jre\bin
\java.exe" -classpath "C:\Program Files\Java\jdk1.5.0_02\lib\tools.jar;C:\Docume
nts and Settings\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\samples\lib\jax
wsSampleUtils.jar;C:\Documents and Settings\GuitarWolf\My Documents\java_tools\j
axws-2.0ea2\lib\FastInfoset.jar;C:\Documents and Settings\GuitarWolf\My Document
s\java_tools\jaxws-2.0ea2\lib\activation.jar;C:\Documents and Settings\GuitarWol
f\My Documents\java_tools\jaxws-2.0ea2\lib\jaxb-api.jar;C:\Documents and Setting
s\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\lib\jaxb-impl.jar;C:\Documents
and Settings\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\lib\jaxb-libs.jar;
C:\Documents and Settings\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\lib\ja
xb-xjc.jar;C:\Documents and Settings\GuitarWolf\My Documents\java_tools\jaxws-2.
0ea2\lib\jaxws-api.jar;C:\Documents and Settings\GuitarWolf\My Documents\java_to
ols\jaxws-2.0ea2\lib\jaxws-rt.jar;C:\Documents and Settings\GuitarWolf\My Docume
nts\java_tools\jaxws-2.0ea2\lib\jaxws-tools.jar;C:\Documents and Settings\Guitar
Wolf\My Documents\java_tools\jaxws-2.0ea2\lib\jsr173_api.jar;C:\Documents and Se
ttings\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\lib\jsr181-api.jar;C:\Doc
uments and Settings\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\lib\relaxngD
atatype.jar;C:\Documents and Settings\GuitarWolf\My Documents\java_tools\jaxws-2
.0ea2\lib\saaj-api.jar;C:\Documents and Settings\GuitarWolf\My Documents\java_to
ols\jaxws-2.0ea2\lib\saaj-impl.jar;C:\Documents and Settings\GuitarWolf\My Docum
ents\java_tools\jaxws-2.0ea2\lib\sjsxp.jar" com.sun.tools.ws.WsImport -d "C:\Doc
uments and Settings\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\samples\buil
d\classes" -httpproxy:webcache.sfbay.sun.com:8080 http://localhost:8080/jaxws-fr
omjava/addnumbers?wsdl -b "C:\Documents and Settings\GuitarWolf\My Documents\jav
a_tools\jaxws-2.0ea2\samples\fromjava\etc\custom-schema.xml" -b "C:\Documents an
d Settings\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\samples\fromjava\etc\
custom-client.xml"

BUILD FAILED
C:\Documents and Settings\GuitarWolf\My Documents\java_tools\jaxws-2.0ea2\sample
s\etc\common-targets.xml:107: wsimport failed

I am using java 1.5.2 and ant 1.6.2. and this happens with all of the samples begining with 'fromjava*'. I am going to try to find the documentation on producing the wsdl without deploying the war so I can see if it is malformed, but in the mean time, does anyone know whats going on here?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
christhatcher
Offline
Joined: 2005-11-15
Points: 0

well the url

http://localhost:8080/jaxws-fromjava/addnumbers?wsdl

returns nothing so I'm going to look for some answers in the logs

Thatcher

christhatcher
Offline
Joined: 2005-11-15
Points: 0

ok examining the logs was my semi-answer...

[#|2005-11-15T15:39:53.891-0500|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=12;_ThreadName=Timer-3;|WebModule[/jaxws-fromjava]Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.JAXRPCContextListener
java.lang.ClassNotFoundException: com.sun.xml.ws.transport.http.servlet.JAXRPCContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1480)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1261)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4132)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4706)
at com.sun.enterprise.web.WebModule.start(WebModule.java:290)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:827)
at org.apache.catalina.core.ContainerBase.access$000(ContainerBase.java:125)
at org.apache.catalina.core.ContainerBase$PrivilegedAddChild.run(ContainerBase.java:147)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:809)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:653)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1441)
at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1118)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:169)
at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:263)
at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:952)
at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:939)
at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:446)
at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:158)
at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:301)
at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:197)
at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:283)
at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:117)
at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:91)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:826)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:241)
at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:259)
at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:527)
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 com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:337)
at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:320)
at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:391)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
at $Proxy1.invoke(Unknown Source)
at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:295)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymentService(AutoDeployer.java:413)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:394)
at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:251)
at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$AutoDeployTask.run(AutoDeployControllerImpl.java:358)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
|#]

So basically the ws wasnt being deployed because i guess the server isnt configured correctly. I'm not terribly familiar with glassfish, but I used it because the deploy and install functionality of the jaxws-2.0 ea is setup for it.

I moved the war files to my tomcat and started it up on 8080 and the client build for all 'fromjava*' sample apps was succesful, as too was the 'ant run' target.

yeah. im on my way and will probably stick with tomcat for the time being

Thatcher