|
From: Niambh S. <NSc...@cu...> - 2010-07-09 12:28:03
|
Hi there, I have checked that as that was my first approach. The XMLServer that I am installing is pretty much a standalone application, it does ship xerces-2.9.1.jar. However and the build script has a classpath setting set, to ensure the version we ship is used. The application has a start and stop command, and both of these have a classpath set. I have also checked my own classpath to see if I had a reference to xerces or xerces-impl, and I don't Over the past few weeks I have been testing our installer infrastructure, and I have been installing and deploying applications on Websphere. I was having problems logging in to the application and was looking at the SystemError.log file and I spotted a similar issue org.apache.xerces.parsers.XIncludeAwareParserConfiguration incompatible with org.apache.xerces.xni.parser.XMLParserConfiguration I did some more investigations (we are using WAS 7.0.0.7) and came across this known issue with IBM http://www-01.ibm.com/support/docview.wss?uid=swg1PK95911 . Obviously the calling classes are different but this is the same error I am getting in the wrapper log file, only the calling class appears to be at org.tanukisoftware.wrapper.WrapperStartStopApp.stop(WrapperStartStopApp.java:423) at org.tanukisoftware.wrapper.WrapperManager$13.run(WrapperManager.java:3341). When I am testing our XMLServer, I have to be very careful of what version of JAVA is used and I must have JAVA_HOME set to Suns version of Java. Many thanks, Niambh -----Original Message----- From: Hubert Felber [mailto:Hub...@ab...] Sent: 09 July 2010 12:56 To: wra...@li... Subject: [Wrapper-user] Antw: Re: org.apache.xerces.parsers.XIncludeAwareParserConfiguration when trying to stop an XMLServer service 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. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user 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. |