-
15. Re: WSDL is not genreated
yonghongb Jul 24, 2009 5:12 PM (in response to yonghongb)Sorry, I did create a war file....... ( It will be better if I can edit....)
-
16. Re: WSDL is not genreated
peterj Jul 24, 2009 5:19 PM (in response to yonghongb)Yes, I did create the jar
Is 'jar' a typo? Did you really mean "Yes, I did create the war"?Should i exclude the jar files in lib?
That will not fix the WAR file. But I have a few questions:
1) Are you familiar with the correct layout for a WAR file?
2) Have you tried creating a simple WAR file that has a "hello" service? If not, then you should try that first. -
17. Re: WSDL is not genreated
yonghongb Jul 25, 2009 8:19 PM (in response to yonghongb)Thanks. I figured it out.
I have another issue:
I created a java application to call a web service. Jboss 4.2.2GA. jbossws-native 3.0.4. JDK 1.5 . I got error. Any idea?
Thanks for your help.
[java] org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new
SAX parser
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:180)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
va:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
a:1216)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
faultExecutor.java:40)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068
)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[java] Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to c
reate a new SAX parser
[java] at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryI
mpl.newUnmarshaller(UnmarshallerFactory.java:100)
[java] at org.jboss.ws.metadata.config.JBossWSConfigFactory.parse(JBoss
WSConfigFactory.java:76)
[java] at org.jboss.ws.metadata.config.JBossWSConfigFactory.getConfig(J
BossWSConfigFactory.java:134)
[java] at org.jboss.ws.metadata.umdm.EndpointMetaData.initEndpointConfi
g(EndpointMetaData.java:704)
[java] at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilde
r.rebuildEndpointMetaData(JAXWSClientMetaDataBuilder.java:288)
[java] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPortIntern
al(ServiceDelegateImpl.java:262)
[java] at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.getPort(Servi
ceDelegateImpl.java:193)
[java] at javax.xml.ws.Service.getPort(Service.java:116)
[java] at org.tempuri.DeIdentifyService.getBasicHttpBindingIDeIdentify(
Unknown Source)
[java] at deIdentify.DeIdentifyProcess.main(Unknown Source)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.jav
a:202)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
.java:134)
[java] ... 15 more
[java] Caused by: org.jboss.xb.binding.JBossXBException: Failed to create a
new SAX parser
[java] at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJB
ossXBParser.java:96)
[java] at org.jboss.xb.binding.UnmarshallerImpl.(UnmarshallerImpl
.java:55)
[java] at org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryI
mpl.newUnmarshaller(UnmarshallerFactory.java:96)
[java] ... 30 more
[java] Caused by: javax.xml.parsers.ParserConfigurationException: Feature '
http://apache.org/xml/features/xinclude' is not recognized. -
18. Re: WSDL is not genreated
peterj Jul 26, 2009 12:59 PM (in response to yonghongb)Thanks. I figured it out.
Please post what the problem was, or what you did to fix the problem, for the benefit others who run across your post in the future.
When looking at an exception stack trace, always follow the ""caused by" trail. The last "caused by" is the root cause:
[java] Caused by: javax.xml.parsers.ParserConfigurationException: Feature '
http://apache.org/xml/features/xinclude' is not recognized.
Do you have an XML file containing the text "http://apache.org/xml/features/xinclude"? If so, that text is not valid. If not, thensince I have no idea what your build script is doing, or how you defined the java task displaying these messages, I have no idea what to suggest.