Here's a problem for all you Weblogic types... I created a
Java app that works fine from the command line (not using WebLogic). I rewrote the same code, imports, etc into a
JSP - and it isn't working. The problem has been narrowed down to one line of code.
The classpath in the command line environment is *almost* identical to the one I'm using on the Weblogic server (it has weblogic.jar in it).
Below is the error, code, classpaths, etc I have. Any ideas, thoughts, anything are welcomed. I'm running out of ideas... Thanks!!
================================================
JAVA CODE:
// Validate Schema - this is currently running against the
test data
VerifierFactory factory = VerifierFactory.newInstance("http://www.w3.org/2001/XMLSchema");
File verifile = new File("D:\\bea\\wlserver6.0sp1\\config\\mydomain\\applications\\soap\\DataFolder\\MySchema.xsd");
Schema schema = factory.compileSchema(verifile); // This is the line of code that is being difficult - works in java, not in the JSP
Verifier verifier = schema.newVerifier();
================================================
ERROR ON WEBLOGIC SERVER FROM JSP:
<Mar 29, 2002 1:26:03 PM EST> <Error> <HTTP> <[WebAppServletContext(4917231,
soap )]
Servlet failed with Exception
java.lang.NoSuchMethodError
at com.sun.msv.reader.GrammarReader._parse(Unknown Source)
at com.sun.msv.reader.GrammarReader.parse(Unknown Source)
at com.sun.msv.reader.xmlschema.XMLSchemaReader.parse(Unknown Source)
at com.sun.msv.verifier.jarv.XSFactoryImpl.parse(Unknown Source)
at com.sun.msv.verifier.jarv.FactoryImpl.compileSchema(Unknown Source)
at org.iso_relax.verifier.VerifierFactory.compileSchema(Unknown Source)
at jsp_servlet._datafolder._senddoc._jspService(_senddoc.java:348)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:213)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:246)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1265)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1622)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
================================================
WEBLOGIC (JSP) CLASSPATH:
set SOAPJAR=D:\soap\soap-2_2\lib\soap.jar
set JAVA_HOME=D:\bea\jdk130
set SOAPHOME=D:\soap
set MSV=D:\msv\msv-20011113
set JAVAMAIL=D:\soap\javamail-1.2
set JBUILD=C:\amesl\jbproject\classes
set CLASSPATH=.\lib\weblogic.jar;%JAVA_HOME%\lib\tools.jar;%SOAPJAR%;%JAVAMAIL%\mail.jar;%JAVAMAIL%\mailapi.jar;%SOAPHOME%\jaf-1.0.1\activation.jar;%SOAPHOME%\bsf.jar;%SOAPHOME%\pop3.j ar;%SOAPHOME%\smtp.jar;%SOAPHOME%\xmisoap.jar;%MSV%\msv.jar;%MSV%\isorelax.jar;%JBUILD%
set PATH=.\bin;%JAVA_HOME%\bin;%PATH%
================================================
JAVA ENVIRONMENT CLASSPATH (WORKS):
set SOAPJAR=D:\soap\soap-2_2\lib\soap.jar
set JAVA_HOME=D:\bea\jdk130
set SOAPHOME=D:\soap
set MSV=D:\msv\msv-20011113
set JAVAMAIL=D:\soap\javamail-1.2
set JBUILD=C:\amesl\jbproject\classes
set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%SOAPJAR%;%JAVAMAIL%\mail.jar;%JAVAMAIL%\mailapi.jar;%SOAPHOME%\jaf-1.0.1\activation.jar;%SOAPHOME%\bsf.jar;%SOAPHOME%\pop3.jar;%SOAPHOME%\smtp. jar;%SOAPHOME%\xmisoap.jar;%MSV%\msv.jar;%MSV%\isorelax.jar;%JBUILD%
set PATH=%BASEDIR%;%JAVA_HOME%\bin;%PATH%
================================================