|
From: Hubert F. <Hub...@ab...> - 2010-07-09 11:56:34
|
Niambh Could it be, that there are different versions of Xerces jars used? >>> Niambh Scullion <NSc...@cu...> 07.07.2010 12:34 >>> Hi Leif, Many thanks for your response, I have tried what you have suggested and I am still seeing the same error. I have tried attaching the log, however it is too large, so I will attach a portion of the log. I have attempted to stop the service four times. Each time I stop my service the same error appears. 1) I added logging - wrapper.java.command.loglevel=INFO (this is my base). 2) I updated my path to look at the sun java. The stop failed. 3) I had a local variable called JAVA_HOME_OVERRIDE - this was set to look at a WAS version of java, I removed this, I also updated a J2EE_JAR to point to Suns version of j2ee.jar, I checked my Java version which is 1.5.0_06. The stop failed. 4) I changed wrapper.java.command.loglevel=DEBUG, to see if I could see anything else. I am attaching the logs, I am not sure if this is local as I have run this on another machine with the same issue. Many thanks, Niambh From: Leif Mortenson [mailto:lei...@ta...] Sent: 05 July 2010 21:13 To: wra...@li... Subject: Re: [Wrapper-user] org.apache.xerces.parsers.XIncludeAwareParserConfiguration when trying to stop an XMLServer service Niambh, My first guess is that you are using the wrong JVM. By default, the Wrapper locates a JVM on the system path. this can be different when running as a service vs running in a console. Please add the wrapper.java.command.loglevel=INFO property and make sure that the JVM being used is valid. If that is the problem then you can be more specific with the following property as follows: wrapper.java.command=%JAVA_HOME%/bin/java Please let me know how this works for you. Cheers, Leif On Tue, Jul 6, 2010 at 3:45 AM, Niambh Scullion <NSc...@cu...<mailto:NSc...@cu...>> wrote: Hi Guys, I hope someone can be of help to me, I am creating a service as part of an XMLServer installation. When I install my XMLServer via the control panle, when I start my service, the service as expected starts successfully. However when I restart or stop my service the following error is appearing in the log: The version of Xerces, the xmlserver build file is using is xerces-2.9.1.jar. BUILD FAILED INFO | jvm 1 | 2010/07/05 16:25:25 | java.lang.ClassCastException: org.apache.xerces.parsers.XIncludeAwareParserConfiguration INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.xerces.parsers.SAXParser.<init>(Unknown Source) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown Source) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.tools.ant.util.JAXPUtils.newSAXParser(JAXPUtils.java:215) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.tools.ant.util.JAXPUtils.getNamespaceXMLReader(JAXPUtils.java:172) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:185) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:140) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:93) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.tools.ant.Main.runBuild(Main.java:743) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.tools.ant.Main.startAnt(Main.java:217) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104) INFO | jvm 1 | 2010/07/05 16:25:25 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1 | 2010/07/05 16:25:25 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 1 | 2010/07/05 16:25:25 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 1 | 2010/07/05 16:25:25 | at java.lang.reflect.Method.invoke(Method.java:585) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.tanukisoftware.wrapper.WrapperStartStopApp.stop(WrapperStartStopApp.java:423) INFO | jvm 1 | 2010/07/05 16:25:25 | at org.tanukisoftware.wrapper.WrapperManager$13.run(WrapperManager.java:3341) The thing is, when I stop the service via the command prompt, it stops successfully C:\Curam\XmlServer\bin>Wrapper.exe -r ..\conf\wrapper.conf wrapper | Service is running. Stopping it... wrapper | Curam XML Server service stopped. wrapper | Curam XML Server service removed. Has any one seen this issue before? Many thanks in advance, Niambh The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. |