JSF/Tiles: [java.lang.ClassNotFoundException: org.apache.tiles.servlets.Til

Hi,
I am working on JSF1.2 in SAP NetWeaver CE and I am using Tiles. Please help me to resolve the following issues.
~~~~~~~~~~~~~~~~~~~
1. File:G:\ws_wd\ce_ws.jdi\LocalDevelopment\DCs\demo.sap.com\lbsjsf\ear\_comp\gen\default\deploy\demo.sap.com~lbsjsf~ear.ear
     Name:lbsjsf~ear
     Vendor:demo.sap.com
     Location:localDevelopment
     Version:20090402105707
     Deploy status:Warning
     Version:NEW
     Description:
          1. Warning occurred on server 4585250 during deploy demo.sap.com/lbsjsf~ear : Web Class Existence Test: servlet class "org.apache.tiles.servlets.TilesServlet" cannot be found in the application class path. Possible reasons: 1) package or class name not correct; 2) missing referenced component (application or library); 3) missing reference to component (application or library)., file: demo.sap.com~lbsjsf~web.war#WEB-INF/web.xml, column 0, line 0, severity: warning
Warning occurred on server 4585250 during deploy demo.sap.com/lbsjsf~ear : Web Class Existence Test: The servlet "com.cg.lbs.ui.controller.StartupConfigurationServlet" must implement "javax.servlet.Servlet"., file: demo.sap.com~lbsjsf~web.war#WEB-INF/web.xml, column 0, line 0, severity: warning
          2. Warning exception has been returned while the 'demo.sap.com/lbsjsf~ear' was starting. Warnings:
Warning occurred on server 4585250 during startApp demo.sap.com/lbsjsf~ear : Cannot load servlet [org.apache.tiles.servlets.TilesServlet]. Error is: [java.lang.ClassNotFoundException: org.apache.tiles.servlets.TilesServlet
------------------------- Loader Info -------------------------
ClassLoader name: [demo.sap.com/lbsjsf~ear]
Living status: alive
Direct parent loaders:
[system:Frame]
[service:servlet_jsp]
[service:ejb]
Resources:
F:\usr\sap\CE1\J00\j2ee\cluster\apps\demo.sap.com\lbsjsf~ear\servlet_jsp\lbsjsf\root\WEB-INF\classes
++++++++++++++below is my web.xml+++++++++
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns="http://java.sun.com/xml/ns/javaee"
     xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
     id="WebApp_ID" version="2.5">
     <display-name>
          LocalDevelopment~LocalDevelopment~lbsjsf(2fweb~demo.sap.com
     </display-name>
     <filter>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <filter-class>
               org.apache.myfaces.webapp.filter.ExtensionsFilter
          </filter-class>
          <init-param>
               <param-name>maxFileSize</param-name>
               <param-value>20m</param-value>
          </init-param>
     </filter>
     <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
     <filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
          <servlet-name>Faces Servlet</servlet-name>
     </filter-mapping>
     <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
     <filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
     </filter-mapping>
     <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
     <filter-mapping>
          <filter-name>MyFacesExtensionsFilter</filter-name>
          <url-pattern>*.jsf</url-pattern>
     </filter-mapping>
     <servlet>
          <servlet-name>Tiles Servlet</servlet-name>
          <servlet-class>
               org.apache.tiles.servlets.TilesServlet
          </servlet-class>
          <init-param>
               <param-name>definitions-config</param-name>
               <param-value>/WEB-INF/tiles.xml</param-value>
          </init-param>
          <load-on-startup>3</load-on-startup>
     </servlet>
     <servlet>
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>2</load-on-startup>
     </servlet>
     <servlet>
          <servlet-name>StartupConfiguration</servlet-name>
          <servlet-class>
               com.cg.lbs.ui.controller.StartupConfigurationServlet
          </servlet-class>
          <init-param>
               <param-name>log4j-init-file</param-name>
               <param-value>sswblog4j.xml</param-value>
          </init-param>
          <load-on-startup>1</load-on-startup>
     </servlet>
     <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>*.faces</url-pattern>
     </servlet-mapping>
     <welcome-file-list>
          <welcome-file>index.html</welcome-file>
     </welcome-file-list>
</web-app>

That's a pretty decent error message. Have you eliminated the potential causes which were listed in the message?

Similar Messages

  • Java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet

    Hi,
    I am developping a simple portlet.These are all my files..
    TestPortlet.java,
    context.xml
    liferay-display.xml
    liferay-portlet.xml
    porltet.xml
    web.xml
    But when i am trying execute i am getting this error. Any one can help?
    Help would be greatly appreciated.
    Thanks
    Prasad
    Feb 9, 2009 4:01:31 PM com.liferay.portal.kernel.log.Jdk14LogImpl error
    SEVERE: Portal class loader is not available to override the default Catalina web class loader
    Feb 9, 2009 4:01:31 PM org.apache.catalina.core.ApplicationContext log
    INFO: Marking servlet jsp as unavailable
    Feb 9, 2009 4:01:31 PM org.apache.catalina.core.ApplicationContext log
    SEVERE: Error loading WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    org.apache.jasper.servlet.JspServlet
    java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Feb 9, 2009 4:01:31 PM org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /PortalExample1 threw load() exception
    java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

    So what are the contents of the relevant files?
    It looks like an error at Tomcat startup:
    Do you need any Portlet library jar files in your web app?
    However I would suggest that you would have more luck at the other end of a google search on the error message.
    The [Liferay wiki |http://www.liferay.com/web/guest/community/wiki] seems a good place to start.

  • Java.lang.ClassNotFoundException: org.apache.log4j.Logger

    I got below error tried to load the first JSP in JDeveloper 11g. The log4j library is defined in the project. There is not compilation error. Please help!
    ava.lang.NoClassDefFoundError: org/apache/log4j/Logger
         at jsp_servlet.__index._jspService(__index.java:98)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         Truncated. see log file for complete stacktrace

    Did you read this part there:
    There is a second possible issue that is specific to the commons-logging and related libraries when used with Integrated WLS and the configuration (which includes ADF) out-of-the-box. Because the commons-logging.jar is apparently in the system classpath, due to the way Java classloader delegation works, any log4j classes at the web application level are not visible to the logger factory by default. As long as this is the case, you may need to add the following to your web-application's WEB-INF/weblogic.xml:
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    What this does is tell the WLS JSP servlet to let web application classes override classes found in the system classloader. Standard Java classloader delegation gives the highest priority to the system classes.

  • Root exception is java.lang.ClassNotFoundException: org.apache.naming.java.

    Hi, All
    From where i can get .jar file which should have org.apache.naming.java.javaURLContextFactory class ..
    Thank You,

    Hi, All
    From where i can get .jar file which should have org.apache.naming.java.javaURLContextFactory class ..
    Thank You,

  • Deployment error, java.lang.NoClassDefFoundError: org/apache/commons/digest

    Hi all,
    I get the following stack trace when deploying an app where I added some JSF stuff:
    <Aug 24, 2005 9:49:24 AM PDT> <Error> <Deployer> <BEA-149201> <Failed to complete the deployment task with ID 0 for the application appsdircg_war.
    java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
         at java.lang.Class.getConstructor0(Class.java:1930)
         at java.lang.Class.newInstance0(Class.java:278)
         at java.lang.Class.newInstance(Class.java:261)
         at weblogic.servlet.internal.WebAppServletContext.registerEventListener(WebAppServletContext.java:2785)
         at weblogic.servlet.internal.WebAppServletContext.activateFromDescriptors(WebAppServletContext.java:2373)
         at weblogic.servlet.internal.WebAppServletContext.activate(WebAppServletContext.java:5600)
         at weblogic.servlet.internal.WebAppServletContext.setActive(WebAppServletContext.java:5578)
         at weblogic.servlet.internal.WebAppModule.activate(WebAppModule.java:838)
         at weblogic.j2ee.J2EEApplicationContainer.activateModule(J2EEApplicationContainer.java:3012)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2076)
         at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2057)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2624)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2547)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2349)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2431)
         at weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2343)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2511)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet]
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2523)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    The relevant jar file, commons-digester.jar is in the the WEB-INF/lib folder, just like all the other commons-*.jar files.
    My CLASSPATH variable doesn't contain anything except a an XMLSpy jar file.
    I'm running WLS 8.1 SP2.
    Any help/hints are greatly appreciated.

    I would set "prefer-web-inf-classes" to "true" in your "weblogic.xml" file. Without this, you may be getting classloader confusion with some of the commons jars that are used within WebLogic.

  • Java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver...the same old pr

    Hi,
    I am a new user in this forum..
    I have just installed tomcat and mysql and jdbc fresh on my new system..
    first of all here is what i have done...
    i have installed mysql integrated in xampp at c:\xampp\mysql
    i have installed my tomcat at C:\Programme\Apache Software Foundation\Tomcat 5.5
    i have put jdbc <dirver>.jar file copied in all sorts of directories like ....
    <tomcat_home>\common\lib
    <tomcat_home>\webapps\axis\WEB-INF\lib\ext
    <java_home>\lib
    <java_home>\jre\lib\ext
    my calsspath looks something like this
    .;C:\Programme\QuickTime\QTSystem\QTJava.zip;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\common\lib\mysql-connector-java-5.0.6-bin.jar;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\webapps\axis\WEB-INF\lib\mysql-connector-java-5.0.6-bin.jar;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\common\lib\servlet-api.jar;C:\Programme\"Apache Software Foundation"\"Tomcat 5.5"\common\lib\jsp-api.jar;C:\Programme\Java\jdk1.5.0_05\jre\lib\ext\mysql-connector-java-5.0.6-bin.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\activation.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis-ant.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\mail.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\saaj.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;C:\Programme\Apache Software Foundation\Tomcat 5.5\webapps\axis\WEB-INF\lib\mysql-connector-java-5.0.6-bin.jar
    which is basically all the jar files in the web-inf\lib folder and references to all the copies of driver as mentioned before
    these are results of a lot of desperatio but still the code which i run....
    package mypackage;
    import java.sql.*;
    public class JDBCConnector
    public static void main(String[] arg) throws Exception
         System.out.println("Initiating Database Mysql Connection");
         //try {
                   Statement stmt;
                        //     Register the JDBC driver for MySQL.
                   Class.forName("org.gjt.mm.mysql.Driver ").newInstance();
                        //     Define URL of database server for
                        // database named mysql on the localhost
                        //      with the default port number 3306.
                   String url = "jdbc:mysql://wifh-1.fhso.ch:3306/";
                        //          Get a connection to the database for a
                        // user named root with a blank password.
                        // This user is the default administrator
                        // having full privileges to do anything.
                   Connection con = DriverManager.getConnection(url,"root", "birnExy");
                        //Display URL and connection information
                   System.out.println("URL: " + url);
                   System.out.println("Connection: " + con);
                        //Get a Statement object
                   stmt = con.createStatement();
                        //     Create the new database
                   stmt.executeUpdate("CREATE DATABASE JunkDB3");
                        //Register a new user named auser on the
                        // database named JunkDB with a password
                        // drowssap enabling several different
                        // privileges.
                   stmt.executeUpdate("GRANT SELECT,INSERT,UPDATE,DELETE," +"CREATE,DROP " +"ON JunkDB3.* TO 'nishant'@'localhost' " +"IDENTIFIED BY 'nishant';");
                   con.close();
         //}catch( Exception e ) {
              //     e.printStackTrace();
         //}//end catch
              //return hook;
         }//end main
    }//end class JDBCConnector
    gives the following error.....
    <soapenv:Envelope>
    &#8722;
         <soapenv:Body>
    &#8722;
         <soapenv:Fault>
    <faultcode>soapenv:Server.userException</faultcode>
    &#8722;
         <faultstring>
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    </faultstring>
    &#8722;
         <detail>
    <ns1:hostname>SADMC0087</ns1:hostname>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    please help me

    20.05.2007 22:43:26 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jdk1.5.0_05\jre\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\QuickTime\QTSystem\;C:\Programme\ATI Technologies\ATI Control Panel;C:\Programme\Java\jdk1.5.0_05\bin;C:\Programme\Apache Software Foundation\Tomcat 5.5\common\lib;
    20.05.2007 22:43:27 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    20.05.2007 22:43:27 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1203 ms
    20.05.2007 22:43:27 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    20.05.2007 22:43:27 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
    20.05.2007 22:43:27 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    20.05.2007 22:43:28 org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive SIpages.war
    20.05.2007 22:43:31 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    20.05.2007 22:43:31 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    20.05.2007 22:43:31 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/109 config=null
    20.05.2007 22:43:31 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    20.05.2007 22:43:32 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 4813 ms
    now this is when i run from eclipse where SIpages.war is my war file to be deployed...which looks something like this
    sipages/web-inf/classes
    sipages/web-inf/src
    sipages/web-inf/lib-this has the jar file as you mentioned
    and come other files...nwo where soes my .java file go in this war and how do i compile the java file

  • JSP error java.lang.NoClassDefFoundError: org/apache/commons/fileupload/Fil

    I'm rather new to jsp. I'm using myeclipse and I'm deploying my site on tomcat. I've been slowly working away on the errors in my log files. Most of the problems that I've run into have been missing jar files. The log error that I'm stuck on follows:
    10:14:40,359 ERROR [Faces Servlet]:253 - Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUpload
         at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at com.wolverinecrane.view.util.SecurityFilter.doFilter(SecurityFilter.java:77)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)
    In my buildpath I have commons-fileupload-1.0.jar which includes org.apache.commons.fileupload which has the class FileUpload.class in it.
    Any help on what may be going wrong here would be appreciated.
    Dan

    Solved:
    http://javalive.com/modules/newbb/viewtopic.php?topic_id=355&post_id=1013&order=0&viewmode=flat&pid=0&forum=4#forumpost1013

  • Java.lang.NoClassDefFoundError: org/apache/commons/fileupload/DiskFileUploa

    i have a servlet for the upload of the files...I compile and it's ok, but in esecution i've this error:
    java.lang.NoClassDefFoundError: org/apache/commons/fileupload/DiskFileUpload
    Why? Any idea?
    The classpath it's ok...
    Thanx !

    Ah...I use package commons-fileupload-1.0.jar
    I hope in your answer...Thanx!

  • Java.lang.NoSuchMethodError: org.apache.xerces.parsers.SAXParser. init

    java.lang.NoSuchMethodError: org.apache.xerces.parsers.SAXParser.<init>(Lorg/apache/xerces/xni/parser/XMLParserConfiguration;)V
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser$MySAXParser.(RDFXMLParser.java:55)
         at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.create(RDFXMLParser.java:82)
         at com.hp.hpl.jena.rdf.arp.JenaReader.(JenaReader.java:77)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at java.lang.Class.newInstance0(Class.java:350)
         at java.lang.Class.newInstance(Class.java:303)
         at com.hp.hpl.jena.rdf.model.impl.RDFReaderFImpl.getReader(RDFReaderFImpl.java:113)
         at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:225)
         at com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:387)
         at com.hp.hpl.jena.util.FileManager.loadModelWorker(FileManager.java:297)
         at com.hp.hpl.jena.util.FileManager.loadModel(FileManager.java:248)
    Hi all,
    Getting above exception only in Weblogic 9.2
    JDK Version : jdk1.5.0_16
    jena-2.5.6.jar
    xercesImpl-2.6.2.jar
    SAXParser is working fine in JBoss with same jdk and jar version. But it's throwing above exception in webloigc9.2 (Windows ) and more over, if i add -Xbootclasspath and specify the xercesImpl-2.6.2.jar file it works in weblogic 9.2 also..
    Is there any other 'good' solution for this??? I feel , this issue is related to classloader but dont know how :(.
    Regards
    Anand

    Hi,
    try to add your jar to the PRE_CLASSPATH.

  • Java.lang.IllegalArgumentException: org.apache.fop.svg.SVGElementMapping

    Hi,
    I have an FOP application which presents the data retrieved from database in a PDF format.
    Now when Iam trying to deploy the FOP application to OC4J and I get the following error.
    java.lang.IllegalArgumentException: org.apache.fop.svg.SVGElementMapping is not an ElementMapping
         at org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
         at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
         at org.apache.fop.apps.Driver.<init>(Driver.java:222)
         at org.appfuse.fop.FOPHelper.createPDF(FOPHelper.java:48)
         at FOPServlet.execute(FOPServlet.java:168)
         at FOPServlet.doPost(FOPServlet.java:109)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    I believe its the problem with the class loaders.
    I even configured my orion-web.xml to load the local classes and following is the conf file:
    <orion-web-app
         deployment-version="9.0.4.0.0"
         temporary-directory="./temp"
         internationalize-resources="false"
         default-mime-type="application/octet-stream"
         servlet-webdir="/servlet/"
    >
         <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="false" />
    </orion-web-app>
    I have loaded the most stable jar files(fop-0.20.5) required for the generation of PDF.
    The same application runs well in JDeveloper(10.1.2.0.0)
    Could somebody help me out with this.
    Its very urgent.
    Need to be able to deploy this by evening.
    Thanks
    Sridhar
    Message was edited by:
    Sridhar

    This means the code loading the element mappings does not recognize
    the SVGElementMapping as an ElementMapping, as it expects. The most
    likely reason is that they are loaded from different class loaders -That was the reason of my simple suggestion above.
    There are many ways that you can try now.
    One way is to put all libraries in your war into ORACLE_HOME/j2ee/home/applib. Also remove the following line
    <web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="false" />
    since this search-local-classes-first is problematic sometimes.
    It might be nice if you can verify that the classloader that loads SVGElementMapping is different from the one that loads Elementmapping at that point of code.
    Now Could somebody help me out as this is the problem of OC4J .Hmm, I would not say "problem of OC4J". A usage error or a false incompatibility at worst. "False" because there should be many normal and standard ways to make it work.

  • Java.lang.ClassCastException: org.apache.crimson.tree.XmlDocument

    Hi all,
    i am new to java. I am trying to parse an xml document. the code is as follows:-
    Document document = null;
    DocumentBuilderFactory factory = ocumentBuilderFactory.newInstance();
    try {
         DocumentBuilder builder = factory.newDocumentBuilder();
         document = builder.parse( new File(xmlFile) );
    after this i am trying to traverse using treewalker :-
    Element docElem = document.getDocumentElement();
                   DocumentTraversal docTrav = (DocumentTraversal) document;
                   TreeWalker treeWalk = docTrav.createTreeWalker(docElem, NodeFilter.SHOW_ELEMENT, new ConfigNodeFilter(), false);
              Node node = treeWalk.nextNode();
    when i compile all is fine but while runnig it. i get the following error:-
    java.lang.ClassCastException: org.apache.crimson.tree.XmlDocument
    at - DocumentTraversal docTrav = (DocumentTraversal) document;.
    my import statements are as follows:-
    import java.io.File;
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    import java.util.Vector;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.RequestDispatcher;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.traversal.DocumentTraversal;
    import org.w3c.dom.traversal.NodeFilter;
    import org.w3c.dom.traversal.TreeWalker;
    import org.xml.sax.SAXException;
    i am not able to understand why the error is coming.
    any help will be appreciated.

    "In DOMs which support the Traversal feature, DocumentTraversal will be implemented by the same objects that implement the Document interface. "
    My guess is that the DOM parser you are using doesn't support the DocumentTraversal interface which is why you can not cast to that class.

  • Java.lang.NoClassDefFoundError: org/apache/log4j/Logger when creating ABCS

    Hi,
    I am trying to create a AIA Service Component Project using 11.1.1.5 jdev.
    The following error occured while executing this line: C:\XXX\Developement\AIA\build.xml:78: Could not create type evaluateFTL due to java.lang.NoClassDefFoundError:org/apache/log4j/Logger.
    do I have to put some jar files anywhere in jdeveloper ? Please advice.
    Thanks
    Sai

    Hi,
    The jar to be added is com.bea.core.apache.log4j_1.2.13.jar located in $MIDDLEWARE_HOME/modules
    Cheers,
    Vlad

  • Error: java.lang.NoClassDefFoundError: org.apache.struts.taglib.html.BaseHa

    I am using JDeveoper10.1.2 with JHeadStart
    I am developing the OrderEntry application using ADF with Struts. Whenever i make the "Gender" field as Radio Group Button i get the following error message
    Error: java.lang.NoClassDefFoundError: org.apache.struts.taglib.html.BaseHandlerTag
    Please help what could be the cause.

    I have another way to solve this problem!
    When these errors happened, u double clicked on the error line in Embedded OC4J Server log window. The error will lead to the blue marked line, may be:
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> (1)
    or
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> (2)
    If line (1) marked, change the prefix="html" to prefix="html1"
    If line (2) marked, find the lines like <bean:message key="link.something_here"/>
    and change to <bean:message key="link.something_here1"/> and the correspond line of this key in the ApplicationResources.properties file of the project
    I successfully using this way but only if one error happend at a time or two errors from two kinds of error
    This way is not as good as the previous way mentioned in previous post.

  • Java.lang.NoClassDefFoundError: org/apache/jsp/login_jsp

    sorry once again to hijack earlier .

    i am using jboss 4.2 and jsf1.1,Authenticating to restrict user to direct acces of every page here i've used filters concept when user comes from other page
    he will be redirected to login page
    public void doFilter(ServletRequest request, ServletResponse response,
                   FilterChain chain) throws IOException, ServletException {
              HttpServletRequest httpRequest = (HttpServletRequest) request;
              String requestURI = httpRequest.getRequestURI();
              HttpSession session = httpRequest.getSession();
              String loginPage=filterConfig.getInitParameter("login");
              if (!requestURI.endsWith(loginPage) ) {                    
                   HttpServletResponse httpServletResponse = (HttpServletResponse) response;
                   httpServletResponse.sendRedirect("/ConnectVendorsWeb/faces/login.jsp");
                   return;
                   else{
                        System.out.println(requestURI.toString());
                        HttpServletResponse httpServletResponse = (HttpServletResponse) response;     httpServletResponse.sendRedirect("/faces/login.jsp");                    
                        //chain.doFilter(request, response);                    
    here is the exception what i am getting
    03:08:01,015 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NoClassDefFoundError: org/apache/jsp/login_jsp (wrong name: org/apache/jsp/Login_jsp)

  • Comms6 IM java.lang.NoClassDefFoundError: org/apache/log4j/Layout

    Hi,
    After install (and configure) Comms6 Instant Messaging Server I cannot turn on IM services:
    bash-3.00# svcadm enable sunim
    bash-3.00# svcs -xv
    svc:/application/sunim:default (Sun Instant Messaging Server)
    State: offline since Thu Sep 18 18:57:15 2008
    Reason: Start method is running.
    See: http://sun.com/msg/SMF-8000-C4
    See: /var/svc/log/application-sunim:default.log
    Impact: This service is not running.
    (I added some debug lines to the /opt/sun/comms/im/sbin/imadmin)
    bash-3.00# tail /var/svc/log/application-sunim:default.log
    at com.iplanet.im.server.Watchdog.main(Watchdog.java:224)
    [TIMEOUT]
    [ Sep 18 18:41:57 Method "start" exited with status 1 ]
    [ Sep 18 18:44:57 Leaving maintenance because disable requested. ]
    [ Sep 18 18:44:57 Disabled. ]
    [ Sep 18 18:57:15 Enabled. ]
    [ Sep 18 18:57:15 Executing start method ("/opt/sun/comms/im/sbin/imadmin start") ]
    Starting Watchdog /opt/sun/comms/im/sbin/../lib/execdaemon /usr/jdk/entsys-j2se/bin/java -Dlogdir=/var/opt/SUNWiim/default/log -Djava.awt.headless=true -cp /opt/sun/comms/im/sbin/../lib/imcommon.jar:/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar:/opt/SUNWmfwk/lib/mfwk_agent.jar:/opt/SUNWmfwk/lib/rmi2rpc.jar:/opt/SUNWmfwk/lib/xml-apis.jar:/opt/SUNWmfwk/lib/javax77.jar:/opt/SUNWmfwk/lib/jdom.jar:/opt/SUNWmfwk/lib/xercesImpl.jar:/opt/SUNWjdmk/5.1/lib/jmx.jar:/opt/SUNWjdmk/5.1/lib/jmxremote.jar:/opt/SUNWjdmk/5.1/lib/jmxremote_optional.jar:/opt/SUNWjdmk/5.1/lib/jdmkrt.jar:/usr/share/lib/xmpp/improvider.jar:/usr/share/lib/imservice.jar:/opt/sun/comms/im/sbin/../lib/xmppd.jar:/usr/share/lib/jso.jar:/usr/share/lib/xp.jar:/usr/share/lib/log4j.jar:/usr/share/lib/jaxen-core.jar:/usr/share/lib/saxpath.jar com.iplanet.im.server.Watchdog -m noncluster -c /opt/sun/comms/im/sbin/../config/iim.conf
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Layout
    at com.iplanet.im.server.Watchdog.main(Watchdog.java:224)
    Anyway,
    When I try to start it manually I get the same error:
    bash-3.00# /opt/sun/comms/im/lib/execdaemon /usr/jdk/entsys-j2se/bin/java -Dlogdir=/var/opt/SUNWiim/default/log -Djava.awt.headless=true -cp /opt/sun/comms/im/sbin/../lib/imcommon.jar:/opt/SUNWmfwk/lib/mfwk_instrum_tk.jar:/opt/SUNWmfwk/lib/mfwk_agent.jar:/opt/SUNWmfwk/lib/rmi2rpc.jar:/opt/SUNWmfwk/lib/xml-apis.jar:/opt/SUNWmfwk/lib/javax77.jar:/opt/SUNWmfwk/lib/jdom.jar:/opt/SUNWmfwk/lib/xercesImpl.jar:/opt/SUNWjdmk/5.1/lib/jmx.jar:/opt/SUNWjdmk/5.1/lib/jmxremote.jar:/opt/SUNWjdmk/5.1/lib/jmxremote_optional.jar:/opt/SUNWjdmk/5.1/lib/jdmkrt.jar:/usr/share/lib/xmpp/improvider.jar:/usr/share/lib/imservice.jar:/opt/sun/comms/im/sbin/../lib/xmppd.jar:/usr/share/lib/jso.jar:/usr/share/lib/xp.jar:/usr/share/lib/log4j.jar:/usr/share/lib/jaxen-core.jar:/usr/share/lib/saxpath.jar com.iplanet.im.server.Watchdog -m noncluster -c /opt/sun/comms/im/sbin/../config/iim.conf
    bash-3.00# Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Layout
    at com.iplanet.im.server.Watchdog.main(Watchdog.java:224)
    It comes from non global zone on Solaris 10u5.

    The package SUNWiimdv was not installed.
    bash-3.00# pwd
    /install/SunOS_i386/IMAPI/Packages
    bash-3.00# pkgadd -d . SUNWiimdv
    Processing package instance <SUNWiimdv> from </export/install/comms/SunOS_i386/IMAPI/Packages>
    Sun Java System Instant Messaging and Presence APIs(i386) 7.3,REV=2008.01.14
    Copyright (c) 2006 Sun Microsystems, Inc. All rights reserved.
    PROPRIETARY/CONFIDENTIAL
    Use is subject to license terms.
    Using </> as the package base directory.
    ## Processing package information.
    ## Processing system information.
    3 package pathnames are already properly installed.
    ## Verifying package dependencies.
    ## Verifying disk space requirements.
    ## Checking for conflicts with packages already installed.
    ## Checking for setuid/setgid programs.
    Installing Sun Java System Instant Messaging and Presence APIs as <SUNWiimdv>
    ## Installing part 1 of 1.
    /usr/share/lib/imservice.jar
    /usr/share/lib/jaxen-core.jar
    /usr/share/lib/jso.jar
    /usr/share/lib/log4j.jar
    /usr/share/lib/saxpath.jar
    /usr/share/lib/xmpp/improvider.jar
    /usr/share/lib/xmpp/xmppd
    /usr/share/lib/xmpp/xmppd.conf
    /usr/share/lib/xp.jar
    [ verifying class <none> ]
    Installation of <SUNWiimdv> was successful.
    bash-3.00# /opt/sun/comms/im/sbin/imadmin stop
    Stopping IM services using SMF. Please see the SMF logs for progress messages
    bash-3.00# /opt/sun/comms/im/sbin/imadmin start
    Starting IM services using SMF. Please see the SMF logs for progress messages
    bash-3.00# /opt/sun/comms/im/sbin/imadmin status
    Server [UP]
    Multiplexor [UP]
    Agent:calendar [UP]
    Watchdog [UP]

Maybe you are looking for

  • MacBook Pro to HDTV via ATV

    Is it possible to use ATV as a wireless bridge so that my HDTV can serve as an external monitor for a MacBook Pro?

  • Object Link to Batch Number (MCH1 & MCHA)

    I am trying to link a DIR to Batch Number. For this i tried object MCH1(Batch Number without Plant) & MCHA (Batch Number with Plant).Screen Numbers for MCH1 is 264 & for MCHA is 265. After making the reqd. configurations, ie. defining object links fo

  • HT4847 How do I get my pics off iCloud & on to my new phone?

    How do I get my pics off iCloud & on to my new phone?

  • Problems with BAPI_ENTRYSHEET_CREATE

    Hi, I am using that function to fill several lines in a document. He puts the lines but the field costcenter - kostl is the same to every line but i am sending diferent kostl's in the function. It apears that he choses random number in the table send

  • JDeveloper,  Table with Partitions

    Hi, iḿ designing a database with JDeveloper 11, but in the table object does not appear the partitioning option as manual shows. (I'm following the example in the help.) What's the problem ? cheers campos