Error loading servlet.jar
I deployed a web application in tomcat server. I'm getting following error when starting the server
WebappClassLoader: validateJarFile(D:\jakarta-tomcat-4.1.27\webapps\registeruser
\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2.
Offending class: javax/servlet/Servlet.class
I am trying to deploy a web application using Netbeans 6.1 but when I am running it I am getting the following errors:
deployed with moduleid = S
validateJarFile(/home/aadhya/sanju/S/build/web/WEB-INF/lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
##### Error java.lang.ClassNotFoundException: com.mysql.Driver
##### Error java.lang.ClassNotFoundException: com.mysql.Driver
Can any body please tell me how to solve this problem???
I tried even by deleting servlet.jar from my application but still the same problem exists.
Thanks & Regards,
Sanjeev K
Edited by: sanjeev.pk on Sep 2, 2008 3:35 PM
Similar Messages
-
Hi, there:
we have deployed our application in EAR format in \config\mydomain\applications.
This EAR contains one ejb.jar and one web.war. I can access a servlet after I
deployed the EAR file into weblogic 6.1 sp1. However, if I redeploy this EAR file
from within weblogic console. I got the following error when I revisit that servlet
again.
<Jan 17, 2002 9:30:41 PM PST> <Error> <HTTP> <[WebAppServletContext(1485918,plat
form,/platform)] Error loading servlet: 'EbuController'
java.lang.NoClassDefFoundError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:665)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:643)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:588)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
<Jan 17, 2002 9:30:41 PM PST> <Error> <HTTP> <[WebAppServletContext(1485918,plat
form,/platform)] Error loading servlet: "EbuController"
java.lang.NoClassDefFoundError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:665)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:643)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:588)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Your help is highly appreciated!
Jerry
Hi, there:
we have deployed our application in EAR format in \config\mydomain\applications.
This EAR contains one ejb.jar and one web.war. I can access a servlet after I
deployed the EAR file into weblogic 6.1 sp1. However, if I redeploy this EAR file
from within weblogic console. I got the following error when I revisit that servlet
again.
<Jan 17, 2002 9:30:41 PM PST> <Error> <HTTP> <[WebAppServletContext(1485918,plat
form,/platform)] Error loading servlet: 'EbuController'
java.lang.NoClassDefFoundError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:665)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:643)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:588)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
>
<Jan 17, 2002 9:30:41 PM PST> <Error> <HTTP> <[WebAppServletContext(1485918,plat
form,/platform)] Error loading servlet: "EbuController"
java.lang.NoClassDefFoundError
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:237)
at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubIm
pl.java:665)
at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStub
Impl.java:643)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
mpl.java:588)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.
java:368)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:242)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2456)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Your help is highly appreciated!
Jerry
-
Error loading servlet because a ClassNotFoundError
Hi,
I send a request to a servlet named "ControlAcceso".
The WebLogic server prints:
Error loading servlet: 'ControlAcceso'
java.lang.NoClassDefFoundError: gov/co/ssp/suin/ejb/ServiciosAutenticacionHome
at gov.co.ssp.suin.web.ControlAcceso.init(ControlAcceso.java:23)
I have an EJB that has a home interface named gov.co.ssp.suin.ejb.ServiciosAutenticacionHome;
the file ServiciosAutenticacionHome.class is located in a directory named /gov/co/ssp/suin/ejb
in a sui_ejb.jar file and in a sui_web.war file.
Besides, I put the sui_ejb.jar in the CLASSPATH of WebLogic Server in the setEnv.cmd
file.
A piece of code of the ControlAcceso.java servlet follows:
package gov.co.ssp.suin.web;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.naming.*;
import gov.co.ssp.suin.ejb.ServiciosAutenticacionHome ;
import gov.co.ssp.suin.ejb.ServiciosAutenticacion ;
import gov.co.ssp.suin.comun.* ;
import gov.co.ssp.suin.ejb.ServiciosAutenticacionHome ;
public class ControlAcceso extends HttpServlet {
ServiciosAutenticacion servAutenticacion;
HttpSession session ;
* Initialize global variables
public void init(ServletConfig config) throws ServletException {
super.init(config);
try{
Context ctx = new InitialContext();
ServiciosAutenticacionHome home = (ServiciosAutenticacionHome) ctx.lookup("ServiciosAutenticacion.ServiciosAutenticacionHome");
servAutenticacion = home.create();
} catch ( java.rmi.RemoteException re ) {
System.out.println("ControlAcceso.init: Excepcion RemoteException: ####
" + re.getMessage() );
throw new ServletException(re);
catch (javax.naming.NamingException ne) {
System.out.println("ControlAcceso.init: Excepcion NamingException: ####
" + ne.getMessage() );
javax.naming.Name name = ne.getRemainingName();
for (Enumeration e = name.getAll() ; e.hasMoreElements() ;) {
System.out.println(e.nextElement());
throw new ServletException(ne);
catch(Exception e){
System.out.println("ControlAcceso.init: #######" + e.getMessage() );
throw new ServletException(e);
Any help is really appreciated.
Regards.
- Ricardo De la Rosa (Colombia)
[NoClassDefFoundError.txt]You're welcome. Glad to help.
Regards,
Slava Imeshev
"Ricardo De la Rosa" <[email protected]> wrote in message
news:[email protected]...
>
Slava,
Thank you very much.
Your answer (and clues) were the solution to my problem.
Best regards from Colombia !
- Ricardo.
"Slava Imeshev" <[email protected]> wrote:
Hi Ricardo,
NoClassDefFoundError means that though the classloader
has been able to find ServiciosAutenticacionHome, it's not
been able to locate supporting classes or interfaces used by
ServiciosAutenticacionHome. Make sure your ejb-jar contains
all necessary classes.
Regards,
Slava Imeshev
"Ricardo De la Rosa" <[email protected]> wrote in message
news:[email protected]...
Hi,
I send a request to a servlet named "ControlAcceso".
The WebLogic server prints:
Error loading servlet: 'ControlAcceso'
java.lang.NoClassDefFoundError:gov/co/ssp/suin/ejb/ServiciosAutenticacionHome
at
gov.co.ssp.suin.web.ControlAcceso.init(ControlAcceso.java:23)
>>>
I have an EJB that has a home interface namedgov.co.ssp.suin.ejb.ServiciosAutenticacionHome;
the file ServiciosAutenticacionHome.class is located in a directorynamed
/gov/co/ssp/suin/ejb
in a sui_ejb.jar file and in a sui_web.war file.
Besides, I put the sui_ejb.jar in the CLASSPATH of WebLogic Serverin the
setEnv.cmd
file.
A piece of code of the ControlAcceso.java servlet follows:
package gov.co.ssp.suin.web;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
import javax.naming.*;
import gov.co.ssp.suin.ejb.ServiciosAutenticacionHome ;
import gov.co.ssp.suin.ejb.ServiciosAutenticacion ;
import gov.co.ssp.suin.comun.* ;
import gov.co.ssp.suin.ejb.ServiciosAutenticacionHome ;
public class ControlAcceso extends HttpServlet {
ServiciosAutenticacion servAutenticacion;
HttpSession session ;
* Initialize global variables
public void init(ServletConfig config) throws ServletException {
super.init(config);
try{
Context ctx = new InitialContext();
ServiciosAutenticacionHome home = (ServiciosAutenticacionHome)ctx.lookup("ServiciosAutenticacion.ServiciosAutenticacionHome");
servAutenticacion = home.create();
} catch ( java.rmi.RemoteException re ) {
System.out.println("ControlAcceso.init: Excepcion
RemoteException:
" + re.getMessage() );
throw new ServletException(re);
catch (javax.naming.NamingException ne) {
System.out.println("ControlAcceso.init: Excepcion
NamingException:
" + ne.getMessage() );
javax.naming.Name name = ne.getRemainingName();
for (Enumeration e = name.getAll() ; e.hasMoreElements() ;) {
System.out.println(e.nextElement());
throw new ServletException(ne);
catch(Exception e){
System.out.println("ControlAcceso.init: #######" + e.getMessage());
throw new ServletException(e);
Any help is really appreciated.
Regards.
- Ricardo De la Rosa (Colombia) -
Servlets have been working for months. Suddenly, I'm getting
this error (see below) as soon as I try to hit a servlet.
The startup process looks normal. I've re-installed WL v 4.0.3
several time, gotten the license in place, so on and so forth,
but cannot get around this problem. "weblogic.properties" file
still reads:
weblogic.httpd.register.file=weblogic.servlet.FileServlet
All my servlets and EJBs have been registered, and db connection and
pool made, as usual. As I said above, everything looks normal until
I try to hit a servlet.
[... startup output tidied up a bit ...]
Thu Jan 27 14:46:05 MST 2000:<I> <ListenThread> Listening on port: 80
Thu Jan 27 14:46:06 MST 2000:<I> <SSLListenThread> Listening on port: 7002
Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Error loading servlet: weblogic.servlet.FileServlet
Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> java.lang.IncompatibleClassChangeError: class
weblogic.utils.classloaders.ClasspathClassFinder does not implement interface weblogic.utils.classloaders.ClassFinder
at weblogic.utils.classloaders.GenericClassloader.findLocalClass(GenericClassloader.java:196)
at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadClass(RecursiveReloadOnModifyClassLoader.java:221
at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLocalClass(RecursiveReloadOnModifyClassLoader.java:96)
at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:82)
at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
at weblogic.servlet.internal.ServletContextImpl.loadClass(ServletContextImpl.java:440)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:121)
at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:85)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:67)
at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:203)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:505)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Servlet failed with ServletException ...
... and so on with multiple cascading failures.
Does anyone have any idea as to what could cause this?
Thanks.
Paul Furbacher
[email protected]
Did you register your servlets after reinstalling. FileServlet is only for handling html pages. It has no role in loading servlets.
"Paul Furbacher [TeamB]" wrote:
> Servlets have been working for months. Suddenly, I'm getting
> this error (see below) as soon as I try to hit a servlet.
> The startup process looks normal. I've re-installed WL v 4.0.3
> several time, gotten the license in place, so on and so forth,
> but cannot get around this problem. "weblogic.properties" file
> still reads:
>
> weblogic.httpd.register.file=weblogic.servlet.FileServlet
>
> All my servlets and EJBs have been registered, and db connection and
> pool made, as usual. As I said above, everything looks normal until
> I try to hit a servlet.
>
> ****
>
> [... startup output tidied up a bit ...]
> Thu Jan 27 14:46:05 MST 2000:<I> <ListenThread> Listening on port: 80
> Thu Jan 27 14:46:06 MST 2000:<I> <SSLListenThread> Listening on port: 7002
> Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Error loading servlet: weblogic.servlet.FileServlet
> Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> java.lang.IncompatibleClassChangeError: class
> weblogic.utils.classloaders.ClasspathClassFinder does not implement interface weblogic.utils.classloaders.ClassFinder
> at weblogic.utils.classloaders.GenericClassloader.findLocalClass(GenericClassloader.java:196)
> at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
> at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader$Slave.loadClass(RecursiveReloadOnModifyClassLoader.java:221
> at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
> at weblogic.utils.classloaders.RecursiveReloadOnModifyClassLoader.findLocalClass(RecursiveReloadOnModifyClassLoader.java:96)
> at weblogic.utils.classloaders.GenericClassloader.reallyLoadClass(Compiled Code)
> at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:82)
> at weblogic.utils.classloaders.GenericClassloader.loadClass(GenericClassloader.java:66)
> at weblogic.servlet.internal.ServletContextImpl.loadClass(ServletContextImpl.java:440)
> at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:121)
> at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:85)
> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:67)
> at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:203)
> at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:505)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
> at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
>
> Thu Jan 27 14:47:32 MST 2000:<E> <ServletContext-Servlets> Servlet failed with ServletException ...
>
> ... and so on with multiple cascading failures.
>
> ****
>
> Does anyone have any idea as to what could cause this?
>
> Thanks.
>
> Paul Furbacher
> [email protected]
-
Error loading dbwsclient.jar
I downloaded the dbws-callout-utility-10R2.zip to install the dbwsclient.jar as instructed in the readme file.
The database version is 10.1.0.4.2
The command used is:
loadjava -user sys/vector -r -v -f -s -grant public -noverify -genmissing dbwsclient.jar
I get the following response with error message:
arguments: '-user' 'sys/vector' '-r' '-v' '-f' '-s' '-grant' 'public' '-noverify' '-genmissing' 'dbwsclient.jar'
genmissing: com/sun/msv/datatype/xsd/UnsignedIntType
Exception in thread "main" java.lang.UnsatisfiedLinkError: t2cParseExecuteDescribe
at oracle.jdbc.driver.T2CStatement.t2cParseExecuteDescribe(Native Method)
at oracle.jdbc.driver.T2CCallableStatement.executeForDescribe(T2CCallableStatement.java:519)
at oracle.jdbc.driver.T2CCallableStatement.executeForRows(T2CCallableStatement.java:764)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1159)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3284)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3389)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:4222)
at oracle.aurora.server.tools.loadjava.GenMissing.lookFor(GenMissing.java:528)
at oracle.aurora.server.tools.loadjava.GenMissing.classReference(GenMissing.java:503)
at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:436)
at oracle.aurora.server.tools.loadjava.GenMissing.add(GenMissing.java:398)
at oracle.aurora.server.tools.loadjava.CommonClassObject.genMissing(CommonClassObject.java:137)
at oracle.aurora.server.tools.loadjava.ClientClassObject.genMissing(ClientClassObject.java:120)
at oracle.aurora.server.tools.loadjava.SchemaObject.process1(SchemaObject.java:205)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:532)
at oracle.aurora.server.tools.loadjava.LoadJava.addClass(LoadJava.java:586)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:436)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
at oracle.aurora.server.tools.loadjava.LoadJava.addJar(LoadJava.java:727)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:432)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:380)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:349)
at oracle.aurora.server.tools.loadjava.LoadJava.add(LoadJava.java:652)
at oracle.aurora.server.tools.loadjava.LoadJava.processDeferredFiles(LoadJava.java:617)
at oracle.aurora.server.tools.loadjava.LoadJava.process(LoadJava.java:818)
at oracle.aurora.server.tools.loadjava.LoadJava.command(LoadJava.java:251)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.run(LoadJavaMain.java:103)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.main(LoadJavaMain.java:28)
Any suggestions as for what's going wrong?
Regards, RobWhen I try to follow the Readme.Callout.htm instructions on a 10gR1 instance, I get an error on running jpub to generate the proxy. All previous objects were loaded into SCOTT rather than SYS (if that makes a difference). The error is:
C:\Projects\_RESEARCH\WebServices\oracle\javacallout>jpub -u scott/tiger -sysuser sys/oracle -proxywsdl="http://localhost:8888/javacallout/javacallout?WSDL"
tmp\src\genproxy\HttpSoap11ClientJPub.java
plsql_wrapper.sql
plsql_dropper.sql
plsql_grant.sql
plsql_revoke.sql
Executing plsql_dropper.sql
Executing plsql_wrapper.sql
Executing plsql_grant.sql
Loading sqlj/lib/dbwsclient.jar (about 5 minutes)...
Error loading dbwsclient.jar, please check the database trace file and make sure dbwsclient.jar exists in ORACLE_HOME/sqlj/lib.
Loading plsql_proxy.jarI'm really not sure what dbwsclient.jar it's talking about since this is NOT included with the latest callout utility. There is a dbwsclientws.jar which I placed into that same folder and RENAMED it.
If I examine the trace file location for my local 10gR1 instance, there is a ~1300K trace file in the folder: C:\Oracle\product\10.1.0\admin\orcl\udump. This file contains NUMEROUS ORA-29534 errors, i.e. ORA-29534: referenced object SYS.com/evermind/util/OpmnHelper could not be resolved. Later, the same trace file says: The following operations failed, and lists about 500+ entries followed by an error:
exiting : Failures occurred during processing
oracle.aurora.server.tools.loadjava.ToolsError: Error during loadjava: Failures occurred during processing. Check trace file for details
at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:68)
at oracle.aurora.server.tools.loadjava.LoadJavaMain.serverMain(LoadJavaMain.java:42)I don't know what else I'm to examine.
It does appear to work when logged in as SCOTT in sql*plus:
scott@localhost> select jpub_plsql_wrapper.sayhello('hey there') from dual;
JPUB_PLSQL_WRAPPER.SAYHELLO('HEYTHERE')
HELLO!! You just said :hey there
1 row selected.Can these errors be ignored?
Eric -
Error Loading xerces.jar file
Hi,
I am getting the following errors while loading the Apache xercesImpl.jar file.
ORA-29534: referenced object SIRIUS.org/apache/xml/serialize/HTMLSerializer
could not be resolved
errors : class org/apache/xml/serialize/XML11Serializer
ORA-29534: referenced object SIRIUS.org/apache/xml/serialize/XMLSerializer c
ould not be resolved
errors : class org/apache/xml/serialize/XMLSerializer
ORA-29534: referenced object SIRIUS.org/apache/xml/serialize/OutputFormat co
uld not be resolved
errors : class org/w3c/dom/html/HTMLDOMImplementation
ORA-29521: referenced name org/w3c/dom/html/HTMLDocument could not be found
I am loading the jar file using the following command
loadjava -user demo/demo@userdemo -resolve xercesImpl.jar
Any help will be really appricated.
Thanks in advance
MohammadHi,
Check whether the file is open? close the file and try to pull once again.
Fields are matching with the data source? check it once. it should be in sync with MData fields.
and may be the problem with data...I think some Extra permitted chars / lower case is there in flat file. this can be solved by RSKC -
Error Loading servlet in iplanet app server NotSerializableException
I am trying to load a servlet and everything runs correct but when i try to connect to the database of the system I get java.io.NotSerializableException. I am not passing any data through rmi or writing any data to the system, but still get this message. The wierd thing is that this runs without a problem on my windows, running JRun, and linux, running tomcat, machine but give me this message on my unix machine running Iplanet, does anyone have any clue to what would cause such an error, when everything works on all the other machines but the unix one.
Thanks.I am not sure what that realy means???
Here is the error
[01/Apr/2002 16:34:59:2] error: Exception:
SERVLET-IO_exception: IOException occurred
Exception Stack Trace:
java.io.NotSerializableException:
org.meinds.forum.database.DbAuthorization
at
at java.lang.Throwable.fillInStackTrace(Native
ative Method)
at
at java.lang.Throwable.fillInStackTrace(Compiled
piled Code)
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at
at java.io.ObjectStreamException.<init>(Compiled
piled Code)
at
at
at java.io.NotSerializableException.<init>(Compiled
ed Code)
at
at
at java.io.ObjectOutputStream.outputObject(Compiled
ed Code)
at
at
at java.io.ObjectOutputStream.writeObject(Compiled
ed Code)
at
at
at
at
java.io.ObjectOutputStream.outputClassFields(Compiled
Code)
at
at
at
at
java.io.ObjectOutputStream.defaultWriteObject(Compiled
Code)
at
at
at java.io.ObjectOutputStream.outputObject(Compiled
ed Code)
at
at
at java.io.ObjectOutputStream.writeObject(Compiled
ed Code)
at
at
at
at
com.netscape.server.servlet.platformhttp.PlatformNASSe
ssion.putMemberValue(Compiled Code)
at
at
at
at
com.netscape.server.servlet.platformhttp.PlatformNASSe
ssion.saveSession(Compiled Code)
at
at
at
at
com.netscape.server.servlet.platformhttp.PlatformNASSe
ssion.decrementActiveRequestCount(Compiled Code)
at
at
at
at
com.netscape.server.servlet.platformhttp.PlatformHttpS
ervletRequest.releaseSession(Compiled Code)
at
at
at
at
com.netscape.server.servlet.servletrunner.ServletRunne
r.execute(Compiled Code)
at
at
at com.kivasoft.applogic.AppLogic.execute(Compiled
ed Code)
at
at
at com.kivasoft.applogic.AppLogic.execute(Compiled
ed Code)
at com.kivasoft.thread.ThreadBasic.run(Native
n(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native
n(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native
n(Native Method)
at com.kivasoft.thread.ThreadBasic.run(Native
n(Native Method)
at
at com.kivasoft.thread.ThreadBasic.run(Compiled
piled Code)
at java.lang.Thread.run(Compiled Code) -
Error Loading PLSQL.jar
I am getting a java error when trying to load plsql.jar on Oracle 8.1.7
"Exception: java.util.zip.ZipException: invalid END header format"
the command i used is loadjava -user sys/passw plsql.jar
Thank you for your helpBrief search on My Oracle Support indicates that you need to raise an SR for this with Oracle support. However, since you are running an obsolete version of Oracle, you cannot raise an SR for the same.
Not sure if it would help but you can create a new Oracle home with your installable and try copying the JAR file from there. -
Error message - servlet.jar ?
can anyone tell me what this error message means. Ive installed a .war file that should work. but i get this error. Is it something to do with not being able to find servlet.jar ? if it is where do i need to put it?
Thanks
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.NullPointerException
org.apache.jsp.products_jsp._jspService(org.apache.jsp.products_jsp:72)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)can anyone tell me what this error message means. Ive
installed a .war file that should work. but i get
this error. Is it something to do with not being able
to find servlet.jar ? if it is where do i need to put
it?
Thanks
exception
org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(J
spServletWrapper.java:373)
org.apache.jasper.servlet.JspServlet.serviceJspFile(J
spServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServl
et.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:802)
root cause
java.lang.NullPointerException
org.apache.jsp.products_jsp._jspService(org.apache.js
p.products_jsp:72)
org.apache.jasper.runtime.HttpJspBase.service(HttpJsp
Base.java:99)
javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:802)
org.apache.jasper.servlet.JspServletWrapper.service(J
spServletWrapper.java:325)
org.apache.jasper.servlet.JspServlet.serviceJspFile(J
spServlet.java:295)
org.apache.jasper.servlet.JspServlet.service(JspServl
et.java:245)
javax.servlet.http.HttpServlet.service(HttpServlet.ja
va:802)
Pal..pls quote d JSP code....
Hope the forum could get more info regarding your problem, and help u !
Cheers !
Shekhar -
Error Loading xmlparserv2.jar
Platform: NT4 SP5
Database: 8.1.6
When loading xmlparserv2.jar via loadjava, I'm getting an ORA-01401: inserted value too large for column.
Command:
loadjava -user eclipse/eclipse@bugs -r -v xmlparserv2.jar
Errors:
loading : oracle/xml/parser/v2/mesg/XMLErrorMesg_zh_CN.properties
creating : oracle/xml/parser/v2/mesg/XMLErrorMesg_zh_CN.properties
Error while creating resource oracle/xml/parser/v2/mesg/XMLErrorMesg_zh_CN.prope
rties
ORA-00604: error occurred at recursive SQL level 1
ORA-01401: inserted value too large for column
ORA-06512: at line 2
loading : oracle/xml/parser/v2/mesg/XMLErrorMesg_cs_CZ.properties
creating : oracle/xml/parser/v2/mesg/XMLErrorMesg_cs_CZ.properties
Error while creating resource oracle/xml/parser/v2/mesg/XMLErrorMesg_cs_CZ.prope
rties
ORA-00604: error occurred at recursive SQL level 1
ORA-01401: inserted value too large for column
ORA-06512: at line 2
I just manually upgraded to 8.1.6 from an 8.1.5 database. I also ran jvmu815.sql to upgrade the JVM.
I noticed that there is a patch out for 8.1.6, would this be helpful to install?
Thanks.
nullChristine,
I apologize for the delay.
I verified that the system is OK so I believe that the solution is a good work around.
1.) Export the schema that you want to utilize the XML Parser and all the schema constraints, procedures, etc.
2.) Drop the user/schema and cascade all of the user's objects.
3.) Recreate the user with the same priveledges and with the same default and temp storage locations.
4.) Load the xmlparserv2.jar and the xmlplsql.jar files with loadjava as the user you just recreated.
5.) Run the sql script to create the java packages as the same user.
6.) Now, import the schema that you exported in step 1.
7.) After the import, I had to recompile three xml package bodies. They were: XMLDOM, XMLPARSER and XMLPROCESSOR. Check them to see if they are invalid in your user's shema.
Good luck,
Eric -
Errors loading xsu111.jar
When I run the oraclexmlsqlload.bat file and it gets to the 'call loadjava -r -v -g PUBLIC -u %USER_PASSWORD% xsu111.jar' line and in the phase where it tries to resolve references I get the following Errors:
ORA-29534: referenced object SYS.oracle/xml/sql/dml/OracleXMLSave could not be resolved
ORA-29534: referenced object SYS.oracle/xml/sql/query/OracleXMLQuery could not be resolved
ORA-29534: referenced object SYS.oracle/xml/sql/dml/OracleXMLStaticSave could not be resolved
ORA-29534: referenced object SYS.oracle/xml/sql/query/OracleXMLStaticQuery could not be resolved
ORA-29521: referenced name oracle/jdbc2/Clob could not be found
Does any one know what's the problem? I followed the installation instructions to the letter. Help!see if the classes111.zip is in your classpath env. variable.... It looks as though it is trying to find the classes referenced in your message above.
Other than that, I do not know. -
Error compilng servlet - even after including servlet.jar in classpath
I have the tomcat installation , which shows the default page on stating the tomcat.
I have my classpath set to -
set CLASSPATH=c:\tomcat4.1\comman\lib\servlet.jar;c:\j2sdk1.4\lib\tools.jar;
set PATH=c:\j2sdk1.4\bin;
I have a greetserv.java which is a simple example servlet. When i try to compile this, it gives me the error javax.servlet.jar does not exist.I have it included in the classpath, but it still doesnt work.
Any help will be appreciated.
Thanks,
JyothiWhat is javax.servlet.jar?
-
Problems loading Servlet in WAR deployment
I'm deploying a servlet using a war file. I am able to deploy the war under
both WebLogic 6.0 sp2 and WebLogic 6.1 beta. However, when I try to access
the servlet from a browser I get the following error:
[java] <Aug 7, 2001 2:49:13 PM CDT> <Error> <HTTP>
<[WebAppServletContext(1
287677,Alert-weblogic60,/Alert-weblogic60)] Error loading servlet:
'AlertEventLi
stenerServlet'
[java] java.lang.NoClassDefFoundError: org/apache/log4j/Category
[java] at
com.agea.alert.servlet.AlertEventListenerServlet.<init>(Alert
EventListenerServlet.java:25)
[java] at java.lang.Class.newInstance0(Native Method)
[java] at java.lang.Class.newInstance(Class.java:237)
[java] at
weblogic.servlet.internal.ServletStubImpl.createServlet(Servl
etStubImpl.java:641)
[java] at
weblogic.servlet.internal.ServletStubImpl.createInstances(Ser
vletStubImpl.java:619)
[java] at
weblogic.servlet.internal.ServletStubImpl.prepareServlet(Serv
letStubImpl.java:564)
[java] at
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletS
tubImpl.java:344)
[java] at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servl
etStubImpl.java:240)
[java] at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servl
etStubImpl.java:200)
[java] at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(
WebAppServletContext.java:2279)
[java] at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletR
equestImpl.java:1923)
[java] at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
[java] at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
[java] >
Obviously the problem is that the servlet can't load the
org.apache.log4j.Category class. However, I have included the log4j.jar
file (which contains the org.apache.log4j.Category class) in the war under
WEB-INF/lib. Why isn't the classloader picking it up?
Thanks for the help,
Tim
Did you make sure that:
org/apache/log4j/Category
is in the server's classpath?
"Timothy O'Hara" <[email protected]> wrote in message
news:[email protected]...
> I'm deploying a servlet using a war file. I am able to deploy the war
under
> both WebLogic 6.0 sp2 and WebLogic 6.1 beta. However, when I try to
access
> the servlet from a browser I get the following error:
>
> [java] <Aug 7, 2001 2:49:13 PM CDT> <Error> <HTTP>
> <[WebAppServletContext(1
> 287677,Alert-weblogic60,/Alert-weblogic60)] Error loading servlet:
> 'AlertEventLi
> stenerServlet'
> [java] java.lang.NoClassDefFoundError: org/apache/log4j/Category
> [java] at
> com.agea.alert.servlet.AlertEventListenerServlet.<init>(Alert
> EventListenerServlet.java:25)
> [java] at java.lang.Class.newInstance0(Native Method)
> [java] at java.lang.Class.newInstance(Class.java:237)
> [java] at
> weblogic.servlet.internal.ServletStubImpl.createServlet(Servl
> etStubImpl.java:641)
> [java] at
> weblogic.servlet.internal.ServletStubImpl.createInstances(Ser
> vletStubImpl.java:619)
> [java] at
> weblogic.servlet.internal.ServletStubImpl.prepareServlet(Serv
> letStubImpl.java:564)
> [java] at
> weblogic.servlet.internal.ServletStubImpl.getServlet(ServletS
> tubImpl.java:344)
> [java] at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servl
> etStubImpl.java:240)
> [java] at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servl
> etStubImpl.java:200)
> [java] at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(
> WebAppServletContext.java:2279)
> [java] at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletR
> equestImpl.java:1923)
> [java] at
> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
>
> [java] at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> [java] >
>
> Obviously the problem is that the servlet can't load the
> org.apache.log4j.Category class. However, I have included the log4j.jar
> file (which contains the org.apache.log4j.Category class) in the war under
> WEB-INF/lib. Why isn't the classloader picking it up?
>
> Thanks for the help,
> Tim
>
>
-
Error when loading servlet using JDOM
hi,
I'm new in the servlet developpement and I would like to have your helps.
I use JDOM to access to XML files. I use Eclipse WTP, and Tomcat like servlet container.
When I try to load the simple servlet file, I get an exception which shows me that there is java.lang.NoClassDefFoundError: org/jdom/JDOMException.
I think there are problems in the configuration, but I don't know why. Any help would be welcome.
This is my code
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import org.jdom.xpath.XPath;
import org.jdom.*;
* Servlet implementation class for Servlet: test1
public class test1 extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet {
String xparams_input_file="xparamsdata.xml";; //Fichier d'entr�e XML
Document xparams_document;
Element xparams_Element;
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#HttpServlet()
public test1() {
super();
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
doPost(request,response);
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
System.out.println("TestOK");
/* (non-Javadoc)
* @see javax.servlet.GenericServlet#init()
public void Lire_XParams_XML(){
SAXBuilder saxBuilder = new SAXBuilder();
try{
xparams_document = saxBuilder.build(xparams_input_file);
xparams_Element = xparams_document.getRootElement();
catch (JDOMException e)
{ // indicates a well-formedness or other error
//e.printStackTrace();
System.out.println(xparams_input_file + " is not a well formed XML document.");
System.out.println(e.getMessage());
catch (IOException e)
{ // indicates an IO problem
System.out.println(xparams_input_file + " could not be parsed");
System.out.println(e.getMessage());
public void init() throws ServletException {
// TODO Auto-generated method stub
super.init();
System.out.println("TestOK init");
And the errors
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Error instantiating servlet class test1
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
java.lang.Thread.run(Unknown Source)
root cause
java.lang.NoClassDefFoundError: org/jdom/JDOMException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
java.lang.Class.getConstructor0(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
java.lang.Thread.run(Unknown Source)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
Apache Tomcat/5.5.17Have u set the classpath for jdom.jar. If u have jdom.jar file in ur machine , set the classpath to that. otherwise download one from the net .
http://www.jdom.org/dist/binary/
put it in ur build path. -
Error can't load Servlet org.apache.struts.action.ActionServlet
Hi,
I have SAP J2EE 6.20 installed on linux machine. I am trying to deploy struts framework based application and while deploying it..... I am getting error message:
Error can't load Servlet org.apache.struts.action.ActionServlet : java.lang.NoClassDefFoundError: org/xml/sax/SAXException
07 19:27:48 - ***********************************************************
08/10/07 19:27:48 - Applying user role management mappings.
08/10/07 19:27:48 - Start updating EAR-file...D:\SAPJ2EE Client\deploying\sambodh\sambodh.ear
08/10/07 19:28:26 - Temp files deleted...
08/10/07 19:28:26 - Ear-file updated successfully for 37860ms.
08/10/07 19:28:27 - Start deploying ...
08/10/07 19:30:35 - Ear-file uploaded to server for 128047ms.
08/10/07 19:30:37 - Successfuly deployed! Deployment took 1953ms.
08/10/07 19:30:37 - WARNING : Deploy service return folowing WARNINGs:
Error can't load Servlet org.apache.struts.action.ActionServlet : java.lang.NoClassDefFoundError: org/xml/sax/SAXException
Deployment took 1953ms.
08/10/07 19:30:37 - ***********************************************************
First time when I got this error, I added struts.jar in my server's <inst_dir>/alone/additional_libs/...... but then also error still exists... Do I have to start SAP J2EE instance once again and then deploy my application?
Can anyone help me out in this as this is very very very imp.
regardsHi,
As per your actions above I believe you have already found SAP Note 435363.
Basically for a struts application there are no special requirements other than
1. Make a reference to the inqmyxmltoolkit from the application that is going to use struts before the deployment
2. Put the struts library into WEB-INF/lib of the application (struts can't be shared among applications)
3. Deploy the application
For making the reference you can:
1. Telnet to the Engine (if you run it as a service and do not have access to its shell directly)
If telnet port on the Engine dispatcher is 2323
telnet localhost 2323
2. Jump to the server node
for example if the application node's cluster id is 4001
jump 4001
3. Execute the commands
add deploy
changeref -m MyApplication library:inqmyxml
So if it does not work, then I see two reasons possible:
1. You are using a really old version of the 6.20 Engine - check if you are on PL41.
2. You have misspelled the name of your application in the reference. The names are case sensitive so you need to be careful. MyApplication is not the same as myApplication or myapplication.
Regards,
Iavor
Maybe you are looking for
-
''''''bold text''''''
-
How can my Geek Squad protection plan be cancelled without even notifying me!?
I bought my Iphone 5 back in September 2012 and had to get it replaced in June 2013 because it kept crashing. When I got it replaced I had to cancel my Geek Squad protection plan from my old phone and purchase a new one to cover me till June 2015, wh
-
My daughters forgotten the charger for her MacBook pro. Can she charger it another way?
MMy daughter's forgotten the charger for her MacBook pro. Is there an alternative to charge it?
-
IPhoto crashes on exit and when using iPhoto Library Manager
Hi all, When attempting to split up my 70,000 iPhoto library using iPhoto Library Manager, the application crashes when attempting to import the photos to a new iPhoto library. This is when it is trying to make iPhoto quit during the import process.
-
Do not disturb still not working
Hi guys, I just did the update to iOs 6.1 and the don't disturb still isn't fixed. It's showing in sleep settings (half moon at the top) when the times are no where near the sleep time