• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Problem with Weblogic and JSP

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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%
================================================
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Try to put soap.jar or other jar file to web_inf/lib/

Good luck
Anna
 
The world's cheapest jedi mind trick: "Aw c'mon, why not read this tiny ad?"
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic