Class not found in web-inf/classes folder of war file within ear file

Hi all,
          I am using Weblogic 8.1 sp4. I have a war file within an ear file. I am trying to deploy the war file with a few classes within its web-inf/classes folder, however when the classes are in that folder I consistently get a class not found exception when trying to instantiate them. If I package the classes in a jar file and then put that jar file within the web-inf/lib folder of the war, the classes are also not found.
          If I put these two classes in the app-inf/classes folder of the ear file, everything works as expected and the classes are found.
          Any ideas of why this is happening. This seems to be a very simple thing that should work, but appears to not be working at all.
          thanks in advance for any suggestions or ideas.

Hi,
          This is a known limitation/issue with WL. There is also no way around this.
          Regards,
          LG

Similar Messages

  • Beans: class not found in web application of my own

    i am using tomcat 4.0 & j2sdk1.4.0
    i have path like
    c:\myjspapp\ourproject\WEB-INF\classes
    my .jsp,.html,.java file r in /ourproject folder
    i dont want to store my files in /webapps folder of tomcat
    i want to store them in folder as mentioned above
    i am displaying .jsp file contents in .html file in frames
    my .jsp file name is:ourmenu10.jsp
    my .html file name is:webmenu10.html
    my .java file name is:menuCreate.java
    i am using .java file as beans in my .jsp file
    i am getting error while accessing class file
    error trace is:::
    Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred at line: 9 in the jsp file: /ourproject/ourmenu10.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\jigishatest\ourproject\ourmenu10$jsp.java:72: Class org.apache.jsp.menuCreate not found.
    menuCreate createmenu = null;
    ^
    An error occurred at line: 9 in the jsp file: /ourproject/ourmenu10.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\jigishatest\ourproject\ourmenu10$jsp.java:75: Class org.apache.jsp.menuCreate not found.
    createmenu= (menuCreate)
    ^
    An error occurred at line: 9 in the jsp file: /ourproject/ourmenu10.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\jigishatest\ourproject\ourmenu10$jsp.java:80: Class org.apache.jsp.menuCreate not found.
    createmenu = (menuCreate) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "menuCreate");
    ^
    3 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
         at java.lang.Thread.run(Thread.java:536)
    Please help me as early as possible
    thanks in advance

    Okay, first things first,
    You did put the class into a package? good.
    You did compile the class, so we no longer care about the .java file, only the .class file, right?
    You read documentation on deploying applications in tomcat? If not, do a google search.
    As was started earlier, keep things under Tomcat/webapps/yourapp at least until you get things up and working. Then worry about changing paths, mapped drives, and all those other things. Do this one step at a time and you will get there. Try to do too much at once and you will get lost and frustrated.
    If you find the documetnation about deplying your applications in tomcat, you will also find info on how to change the absolute path of the context and/or host
    A good place to start is: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html

  • Classes are not loading from WEB-INF/classes directory

    Hi All,
    I am in a deep troble because the class files in the WEB-INF/classes directory are not loading.
    I have deployed the application in Tomcat 6 server. And stored all class files under WEB-INF/classes dirctory. But when I execute a JSP page, I am getting following error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    JSP FileName:/hello.jsp
    An error occurred at line: 1 in the jsp file: /hello.jsp
    com.flt.Test cannot be resolved to a type
    1: <%=new com.flt.Test().hello()%>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:98)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)The classes are available in the WEB-INF/classes directory and the folder name and package name of the classes are correct. I have also tried to execute the application by creating a jar file and put it in the WEB-INF/lib directory. But I am getting same result.
    Is it the problem with Tomcat configuration? When I gone through Tomcat documentation, I get to know that the WebAppX class loader in Tomcat, loads application specific classes for a web application. Is it possible to start/stop WebAppx classloader manually?
    Please help me to solve this issue.
    Many Thanks,
    Francis Lukose
    Edited by: francis_ on May 13, 2008 10:03 AM

    Thanks for your reply, Soultech2012.
    <%=new com.flt.Test().hello()%>is the only code in the JSP page. Just a single line. Nothing more than that.
    The code in Test.java is as follows:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package com.flt;
    * @author Francis Lukose
    public class Test {
        public static String hello()    {
            return "hello";
    }Many Thanks,
    Francis
    Edited by: francis_ on May 13, 2008 6:45 PM

  • JAR Files not found from /WEB-INF/lib

    It appears that weblogic server (6.1 SP2 I believe) is not finding all
    the jar files in the /WEB-INF/lib directory. Some, but not all. I am
    not using a WAR file, the dirctories are right on the disk. I start
    out with the following jar files in my WEB-INF/lib directory:
    Volume in drive C has no label.
    Volume Serial Number is 641F-B7A0
    Directory of C:\bea\wlserver6.1\config\mydomain\applications\garyapp\WEB-INF\li
    b
    02/13/2002 11:34a <DIR> .
    02/13/2002 11:34a <DIR> ..
    01/25/2002 09:44a 45,386 activation-1.0.1.jar
    01/07/2002 04:49p 1,124,276 classes12.jar
    01/25/2002 09:44a 379,658 ecs-1.4.1.jar
    01/25/2002 09:44a 175,666 hsql.jar
    01/25/2002 09:44a 76,964 httpunit.jar
    01/25/2002 09:44a 236,041 idb.jar
    01/25/2002 09:44a 29,937 jakarta-regexp-1.3-dev.jar
    01/25/2002 09:44a 84,854 jdbc-se2.0.jar
    01/25/2002 09:44a 6,727 jdbc2_0-stdext.jar
    01/25/2002 09:44a 98,496 jndi-1.2.1.jar
    01/25/2002 09:44a 17,619 jta1.0.1.jar
    01/25/2002 09:44a 97,382 junit-3.2.jar
    01/25/2002 09:44a 152,037 log4j-1.1.jar
    01/25/2002 09:44a 280,984 mail-1.2.jar
    01/25/2002 09:44a 109,927 mm.mysql-2.0.4.jar
    01/25/2002 09:44a 76,734 oro.jar
    01/25/2002 09:44a 194,500 postgresql.jar
    01/25/2002 09:44a 4,041 README.txt
    01/25/2002 09:44a 208,635 sapdbc.jar
    02/13/2002 11:21a 216,879 STT.jar
    02/08/2002 12:15p 707,897 turbine-2.2b1.jar
    01/25/2002 09:44a 369,494 velocity-1.2-dev.jar
    01/25/2002 09:44a 31,326 village-1.5.1.jar
    01/25/2002 09:44a 436,094 xalan-1.2.1.jar
    01/25/2002 09:44a 840,704 xerces-1.3.0.jar
    01/25/2002 09:44a 47,926 xmlrpc.jar
    26 File(s) 6,050,184 bytes
    2 Dir(s) 29,539,246,080 bytes free
    When I run the server, only these files are put in the tmp_war
    directory:
    Volume in drive C has no label.
    Volume Serial Number is 641F-B7A0
    Directory of C:\bea\wlserver6.1\config\mydomain\applications\garyapp\WEB-INF\_t
    mp_war_myserver_myserver_garyapp\WEB-INF\lib
    02/15/2002 12:31p <DIR> .
    02/15/2002 12:31p <DIR> ..
    02/15/2002 12:31p 1,124,276 classes1263855.jar
    02/15/2002 12:31p 175,666 hsql63856.jar
    02/15/2002 12:31p 76,964 httpunit63857.jar
    02/15/2002 12:31p 236,041 idb63858.jar
    02/15/2002 12:31p 6,727 jdbc2_0-stdext63859.jar
    02/15/2002 12:31p 76,734 oro63860.jar
    02/15/2002 12:31p 194,500 postgresql63861.jar
    02/15/2002 12:31p 208,635 sapdbc63862.jar
    02/15/2002 12:31p 216,879 STT63863.jar
    02/15/2002 12:31p 47,926 xmlrpc63864.jar
    10 File(s) 2,364,348 bytes
    2 Dir(s) 29,539,078,144 bytes free
    It's not only that the files don't show up, of course: if I run the
    system and it makes references to the files, I get a
    ClassNotFoundException:
    <Feb 15, 2002 12:32:39 PM EST> <Error> <HTTP>
    <[WebAppServletContext(7243997,gar
    yapp,/garyapp)] Error loading servlet: "garyapp"
    java.lang.ClassNotFoundException: org.apache.turbine.Turbine
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
    Loader.java:179)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
    areClassLoader.java:65)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
    areClassLoader.java:43)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:583)
    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:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    <Feb 15, 2002 12:32:39 PM EST> <Error> <HTTP>
    <[WebAppServletContext(7243997,gar
    yapp,/garyapp)] Servlet failed with ServletException
    javax.servlet.ServletException: Servlet class:
    'org.apache.turbine.Turbine' coul
    d not be loaded - the requested class wasn't found in the classpath:
    'C:\bea\wl
    server6.1\config\mydomain\applications\garyapp;C:\bea\wlserver6.1\.\config\mydom
    ain\applications\garyapp\WEB-INF\classes;C:\bea\wlserver6.1\.\config\mydomain\ap
    plications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\classe
    s1263855.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_
    tmp_war_myserver_myserver_garyapp\WEB-INF\lib\hsql63856.jar;C:\bea\wlserver6.1\.
    \config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp
    \WEB-INF\lib\httpunit63857.jar;C:\bea\wlserver6.1\.\config\mydomain\applications
    \garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\idb63858.jar;C:\
    bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver
    myservergaryapp\WEB-INF\lib\jdbc2_0-stdext63859.jar;C:\bea\wlserver6.1\.\confi
    g\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-I
    NF\lib\oro63860.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WE
    B-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\postgresql63861.jar;C:\bea\
    wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_mys
    erver_garyapp\WEB-INF\lib\sapdbc63862.jar;C:\bea\wlserver6.1\.\config\mydomain\a
    pplications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\STT63
    863.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_w
    ar_myserver_myserver_garyapp\WEB-INF\lib\xmlrpc63864.jar'
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:594)
    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:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >

    Please open a case with support on this issue.
    Thanks,
    Michael
    Gary Bisaga wrote:
    It appears that weblogic server (6.1 SP2 I believe) is not finding all
    the jar files in the /WEB-INF/lib directory. Some, but not all. I am
    not using a WAR file, the dirctories are right on the disk. I start
    out with the following jar files in my WEB-INF/lib directory:
    Volume in drive C has no label.
    Volume Serial Number is 641F-B7A0
    Directory of C:\bea\wlserver6.1\config\mydomain\applications\garyapp\WEB-INF\li
    b
    02/13/2002 11:34a <DIR> .
    02/13/2002 11:34a <DIR> ..
    01/25/2002 09:44a 45,386 activation-1.0.1.jar
    01/07/2002 04:49p 1,124,276 classes12.jar
    01/25/2002 09:44a 379,658 ecs-1.4.1.jar
    01/25/2002 09:44a 175,666 hsql.jar
    01/25/2002 09:44a 76,964 httpunit.jar
    01/25/2002 09:44a 236,041 idb.jar
    01/25/2002 09:44a 29,937 jakarta-regexp-1.3-dev.jar
    01/25/2002 09:44a 84,854 jdbc-se2.0.jar
    01/25/2002 09:44a 6,727 jdbc2_0-stdext.jar
    01/25/2002 09:44a 98,496 jndi-1.2.1.jar
    01/25/2002 09:44a 17,619 jta1.0.1.jar
    01/25/2002 09:44a 97,382 junit-3.2.jar
    01/25/2002 09:44a 152,037 log4j-1.1.jar
    01/25/2002 09:44a 280,984 mail-1.2.jar
    01/25/2002 09:44a 109,927 mm.mysql-2.0.4.jar
    01/25/2002 09:44a 76,734 oro.jar
    01/25/2002 09:44a 194,500 postgresql.jar
    01/25/2002 09:44a 4,041 README.txt
    01/25/2002 09:44a 208,635 sapdbc.jar
    02/13/2002 11:21a 216,879 STT.jar
    02/08/2002 12:15p 707,897 turbine-2.2b1.jar
    01/25/2002 09:44a 369,494 velocity-1.2-dev.jar
    01/25/2002 09:44a 31,326 village-1.5.1.jar
    01/25/2002 09:44a 436,094 xalan-1.2.1.jar
    01/25/2002 09:44a 840,704 xerces-1.3.0.jar
    01/25/2002 09:44a 47,926 xmlrpc.jar
    26 File(s) 6,050,184 bytes
    2 Dir(s) 29,539,246,080 bytes free
    When I run the server, only these files are put in the tmp_war
    directory:
    Volume in drive C has no label.
    Volume Serial Number is 641F-B7A0
    Directory of C:\bea\wlserver6.1\config\mydomain\applications\garyapp\WEB-INF\_t
    mp_war_myserver_myserver_garyapp\WEB-INF\lib
    02/15/2002 12:31p <DIR> .
    02/15/2002 12:31p <DIR> ..
    02/15/2002 12:31p 1,124,276 classes1263855.jar
    02/15/2002 12:31p 175,666 hsql63856.jar
    02/15/2002 12:31p 76,964 httpunit63857.jar
    02/15/2002 12:31p 236,041 idb63858.jar
    02/15/2002 12:31p 6,727 jdbc2_0-stdext63859.jar
    02/15/2002 12:31p 76,734 oro63860.jar
    02/15/2002 12:31p 194,500 postgresql63861.jar
    02/15/2002 12:31p 208,635 sapdbc63862.jar
    02/15/2002 12:31p 216,879 STT63863.jar
    02/15/2002 12:31p 47,926 xmlrpc63864.jar
    10 File(s) 2,364,348 bytes
    2 Dir(s) 29,539,078,144 bytes free
    It's not only that the files don't show up, of course: if I run the
    system and it makes references to the files, I get a
    ClassNotFoundException:
    <Feb 15, 2002 12:32:39 PM EST> <Error> <HTTP>
    <[WebAppServletContext(7243997,gar
    yapp,/garyapp)] Error loading servlet: "garyapp"
    java.lang.ClassNotFoundException: org.apache.turbine.Turbine
    at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClass
    Loader.java:179)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAw
    areClassLoader.java:65)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAw
    areClassLoader.java:43)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:583)
    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:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    <Feb 15, 2002 12:32:39 PM EST> <Error> <HTTP>
    <[WebAppServletContext(7243997,gar
    yapp,/garyapp)] Servlet failed with ServletException
    javax.servlet.ServletException: Servlet class:
    'org.apache.turbine.Turbine' coul
    d not be loaded - the requested class wasn't found in the classpath:
    'C:\bea\wl
    server6.1\config\mydomain\applications\garyapp;C:\bea\wlserver6.1\.\config\mydom
    ain\applications\garyapp\WEB-INF\classes;C:\bea\wlserver6.1\.\config\mydomain\ap
    plications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\classe
    s1263855.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_
    tmp_war_myserver_myserver_garyapp\WEB-INF\lib\hsql63856.jar;C:\bea\wlserver6.1\.
    \config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp
    \WEB-INF\lib\httpunit63857.jar;C:\bea\wlserver6.1\.\config\mydomain\applications
    \garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\idb63858.jar;C:\
    bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver
    myservergaryapp\WEB-INF\lib\jdbc2_0-stdext63859.jar;C:\bea\wlserver6.1\.\confi
    g\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-I
    NF\lib\oro63860.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WE
    B-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\postgresql63861.jar;C:\bea\
    wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_war_myserver_mys
    erver_garyapp\WEB-INF\lib\sapdbc63862.jar;C:\bea\wlserver6.1\.\config\mydomain\a
    pplications\garyapp\WEB-INF\_tmp_war_myserver_myserver_garyapp\WEB-INF\lib\STT63
    863.jar;C:\bea\wlserver6.1\.\config\mydomain\applications\garyapp\WEB-INF\_tmp_w
    ar_myserver_myserver_garyapp\WEB-INF\lib\xmlrpc63864.jar'
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
    mpl.java:594)
    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:2495)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Class not Found Execption for inner classes

    Hi ,
    When I am trying to deploy a custom component despite of putting the class path I am facing isses regarding class not found for classes that are present in an inner jar.Can someone please let me know what could nbe wrong.Please let me know the correct way of doing so.
    I am adding a data type as well and adding the path thre also.
    Regards,
    Leena

    The most common problem is in the path part of the class-path.  One thing to remember is not to bother with .. or / at the start of the path.  For example my jar files are in a lib folder off the root of my application:
    <class-path>lib\aglj40.jar lib\pdfcore.jar lib\pdfencryption.jar lib\pdfservices.jar lib\rideau.jar</class-path>

  • MySql driver not found in WEB-INF/lib

    Hello
    This topic is very often met on this forum but there are no
    suitable answers for the problem I have. I am creating
    a Jsf application and I have setup a connection pool using
    the MySql jar. I want to supply the jar with the war and I keep
    it in WEB-INF/lib directory but I still get ClassNotFoundException.
    I am running this on a Debian machine with Sun JVM 1.5,
    Tomcat 5.0, Mysql 4.1, Connector/J - nightly build from
    20060403 (since the stable version has bugs with Charset).
    Here are the confings. If I missed some of them, pleaste tell
    me.
    War task in build.xml
        <target name="war" depends="build">
          <mkdir dir="${build.dir}"/>
          <war
            basedir="${webroot.dir}"
            warfile="${build.dir}/${project.distname}.war"
            webxml="${webinf.dir}/web.xml">
            <metainf dir="${meta.dir}">
              <include name="context.xml"/>
            </metainf>
            <exclude name="WEB-INF/${build.dir}/**"/>
            <exclude name="WEB-INF/src/**"/>
            <exclude name="WEB-INF/web.xml"/>
          </war>
        </target>
    context.xml
    <Context  path="/jsfblog" docBase="jsfblog.war" reloadable="false" crossContext="true" useNaming="true">
      <Resource name="jdbc/jsfblog" auth="Container" type="javax.sql.DataSource"/>
      <ResourceParams name="jdbc/jsfblog">
        <parameter>
          <name>factory</name>
          <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
        </parameter>
        <parameter>
          <name>url</name>
          <value>jdbc:mysql://localhost/jsfblog</value>
        </parameter>
        <parameter>
          <name>driverClassName</name><value>com.mysql.jdbc.Driver</value>
        </parameter>
        <parameter>
          <name>username</name>
          <value>blog</value>
        </parameter>
        <parameter>
          <name>password</name>
          <value>blog</value>
        </parameter>
        <parameter>
          <name>maxWait</name>
          <value>3000</value>
        </parameter>
        <parameter>
          <name>maxIdle</name>
          <value>100</value>
        </parameter>
        <parameter>
          <name>maxActive</name>
          <value>10</value>
        </parameter>
      </ResourceParams>
    </Context>
    hibernate.cfg.xml
    <hibernate-configuration>
        <session-factory>
            <property name="connection.datasource">java:comp/env/jdbc/jsfblog</property>
            <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
            <property name="current_session_context_class">thread</property>
            <property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
            <property name="show_sql">true</property>
            <mapping resource="......"/>
        </session-factory>
    </hibernate-configuration>
    web.xml
    I am not sure if I really need this.
    <web-app>
      <!-- Connection pool configuration  -->
      <resource-ref>
        <description>JSF Blog Database</description>
        <res-ref-name>jdbc/jsfblog</res-ref-name>
        <res-ref-type>javax.sql.DataSource</res-ref-type>
        <res-auth>Container</res-auth>
      </resource-ref>
      <!--  jsf and facelets declarations  -->
    jsfblog.policy
    Not all the rules apply at the same time. I also tried to
    setup the mysql jar in ${catalina.home}/common/lib
    directory and it was loaded but I need to make it work
    in WEB-INF/lib location.
    grant
         permission java.io.FilePermission "${catalina.home}/webapps/jsfblog/WEB-INF/lib/mysql-connector-java-3.1.12-bin.jar", "read";
         permission java.io.FilePermission "${catalina.home}/webapps/jsfblog/WEB-INF/lib/mysql-connector-java-3.1-nightly-20060403-bin.jar", "read";
         permission java.net.SocketPermission "localhost:3306", "connect,resolve";
    grant codeBase "jar:file:${catalina.home}/webapps/jsfblog/WEB-INF/lib/hibernate3.jar!/-" {
         permission java.lang.RuntimePermission "accessDeclaredMembers";
         permission java.util.PropertyPermission "*", "read,write";
         permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
    grant codeBase "jar:file:${catalina.home}/webapps/jsfblog/WEB-INF/lib/mysql-connector-java-3.1-nightly-20060403-bin.jar!/-"
         permission java.net.SocketPermission "localhost:3306", "connect,resolve";
         permission java.lang.RuntimePermission "accessDeclaredMembers";
         permission java.util.PropertyPermission "*", "read,write";
         permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
    Project layout
    |-- build
    |   `-- jsfblog.war
    |-- build.xml
    |-- conf
    |   `-- 99jsfblog.policy
    |-- deploy
    |   `-- jsfblog.war
    |-- doc
    |   |-- WEB-INF
    |   |   |-- classes
    |   |   |   |-- beans
    |   |   |   |   `-- CategoryBean.class
    |   |   |   |-- blog
    |   |   |   |   |-- Category.class
    |   |   |   |   |-- Category.hbm.xml
    |   |   |   |   |-- Comment.class
    |   |   |   |   |-- Comment.hbm.xml
    |   |   |   |   |-- Post.class
    |   |   |   |   `-- Post.hbm.xml
    |   |   |   |-- hibernate.cfg.xml
    |   |   |   |-- log4j.properties
    |   |   |   `-- util
    |   |   |       |-- HibernateSessionFactory.class
    |   |   |       |-- HibernateUtil.class
    |   |   |       `-- Service.class
    |   |   |-- faces-config.xml
    |   |   |-- lib
    |   |   |   |-- antlr-2.7.5.jar
    |   |   |   |-- asm-attrs.jar
    |   |   |   |-- asm.jar
    |   |   |   |-- cglib-2.1.3.jar
    |   |   |   |-- common-annotations.jar
    |   |   |   |-- commons-beanutils.jar
    |   |   |   |-- commons-collections-2.1.1.jar
    |   |   |   |-- commons-digester.jar
    |   |   |   |-- commons-lang.jar
    |   |   |   |-- commons-logging-1.0.4.jar
    |   |   |   |-- commons-validator.jar
    |   |   |   |-- dom4j-1.6.1.jar
    |   |   |   |-- el-api.jar
    |   |   |   |-- el-ri.jar
    |   |   |   |-- hibernate3.jar
    |   |   |   |-- jsf-api.jar
    |   |   |   |-- jsf-facelets.jar
    |   |   |   |-- jsf-impl.jar
    |   |   |   |-- jsf-tlds.jar
    |   |   |   |-- jstl.jar
    |   |   |   |-- jta.jar
    |   |   |   |-- log4j-1.2.11.jar
    |   |   |   |-- mysql-connector-java-3.1-nightly-20060403-bin.jar
    |   |   |   `-- standard.jar
    |   |   `-- web.xml
    |   |-- admin
    |   |   |-- admintemplate.xhtml
    |   |   |-- category.xhtml
    |   |   |-- index.xhtml
    |   |   `-- skeleton.xhtml
    |   |-- index.jsp
    |   `-- layout.css
    |-- lib
    |   `-- servlet.jar
    |-- meta
    |   `-- context.xml
    `-- src
        |-- beans
        |   `-- CategoryBean.java
        |-- blog
        |   |-- Category.hbm.xml
        |   |-- Category.java
        |   |-- Comment.hbm.xml
        |   |-- Comment.java
        |   |-- Post.hbm.xml
        |   `-- Post.java
        |-- hibernate.cfg.xml
        |-- log4j.properties
        `-- util
            `-- HibernateUtil.javaAnd, finally, the error message:
    Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
         at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854)
         at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:760)
         ... 60 moreI don't really understand how I can setup the CLASSPATH in this
    context. So there should be something else. Does anyone have an
    idea?
    Thanks.
    Igor

    This is what I achived using the <metainf> tags from
    war task in build.xml. Look at the first code
    listing. The
    magic code is:
    <metainf dir="${meta.dir}">
    <include name="context.xml"/>
    </metainf>where ${meta.dir} is defined as ./meta and there
    resides
    the context.xml file (look at the project layout).Very good, thanks.
    Any guesses why Tomcat is not loading mysql jar from
    WEB-INF/lib directory?No. 8(
    My understanding is that JARs in the WEB-INF/lib are visible only to your web app. Those in /common/lib are visible to all apps and the container. Those in /server/lib are visible only to the container and no apps. It SHOULD work from WEB-INF/lib. I've done it that way, but it was an older version of Tomcat.
    Checked the Tomcat docs. They say to put it in /common/lib, but they don't explicitly forbid it in WEB-INF/lib.
    I'll try a simpler example.
    %

  • Class not Found when accessing Proxy class from backing bean in VC.

    Hi All,
    I'm attempting to access a class of a webservice(generated as a proxy) within my ADF application and invoke the method within a backing bean of the View Controller(bean scope : backing bean). The proxy has generated an ObjectFactory class among other classes. When I access this Object factory class from within the backing bean, the application throws a Class not found error.
    I don't know where the error lies since I've declared the View Controller of the ADF application dependent on the Proxy and I've imported the class and accessing it within a backing bean. How would you suggest I approach resolveing this.
    JDev : 1.1.1.4
    Thank you.
    Regards
    PP.

    Hello Arun,
    Thank you for suggesting a Data control, but my requirement isn't to drag and drop the method as a button. It's more of a behind the scnes updating data via a database adapter requirement.
    I've resolved the issue. turns out, my deployment archive didn't include the proxy.jpr. Once included it works likea charm.
    Thanks
    PP.

  • Class not found error afer loading classes to oracle

    hi i have loaded quite a few jars into oralce 11g databse
    created a java stored function
    and executed it
    some times it works... and hits the java front end environment... we are hitting a servlet.. and recording some output statements .. in the function
    but sometimes it throws class not found error
    any idea why its working sometimes and not some othr times?
    Also when i load the jars.. the classes are loaded but when i see the name of the classes using
    select * from user_objects where object_type like 'J%'
    then i see some additional characters prefixxed the class names ... is that causing the problem?
    something like this
    /1a248e6f_GetMethod
    Edited by: learning_man on Mar 11, 2010 1:27 PM

    Learning_man,
    Obviously you need to learn how to ask a question.
    There is nothing in your post other than 'It doesn't work. Why? Help"
    without any specific example. Also you still fail to include a 4 digit version!!!
    It is also the third or the fourth time you asked this very same question.
    Can you learn how to ask a question please? And stop repeating the question when you don't get a response?
    And no, the extra characters are not the problem.
    An incorrect CLASSPATH probably is.
    Sybrand Bakker
    Senior Oracle DBA

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

  • Class not found for web service

    hi,
    I'm tring to develop a simple web service using axis 1.3 and Tomcat 5.0 as container and server but I've got some problem catching some class. I've downloaded all the jar files (all the org.apache.axis.* and all in the WSDP2.0) but when I open jar files I get only the *.class and not the *.java.... I use the NetBeans IDE 5.0 to develop all the class but it say that it can find all these class.
    (I've put all the needed jar file in the library of the package)
    actually I need the AdminClient.java, Service.java all the jaxrpc.
    I think it could be really a simple problem.... but I don't know how I can go on....
    thanks

    I've just done the download of wsdp 2.0 or the previous version but in all jar file I can find only files with extension *.class. I need the *.java ?Isn't it?
    It's possible that the problem is using netbeans 5.0?
    I don't think so because also from the dos command line I can't found the property class....( java2wsdl.java )

  • Classes not picked up from WEB-INF/classes

    9ias R2: OC4j
    Some classes could be found from WEB-INF/classes by JSP pages but some others could not.
    WEB-INF/classes is part of the classpath in JSP's point of
    view.
    And if explicitly import the class such as
    import abc;
    in JSP pages and the class could be found.
    Anybody has any idea? Or anything wrong I am doing?
    Thanks!
    David Yuan

    9ias R2: OC4j
    Some classes could be found from WEB-INF/classes by JSP pages but some others could not.
    WEB-INF/classes is part of the classpath in JSP's point of
    view.
    And if explicitly import the class such as
    import abc;
    in JSP pages and the class could be found.
    Anybody has any idea? Or anything wrong I am doing?
    Thanks!
    David Yuan

  • Servlet class not found error deploying a WAR on Web Logic Server 8.1

    I'm re-deploying an updated web application to a web logic server, but when I navigate to the login page of the web application to test it, I get a class not found error for my login servlet. I have both the web.xml and the weblogic.xml descriptors in my WEB-INF directory, and all of my compiled classes are in the WEB-INF/classes directory, is there something else I'm missing? Any help would be much appreciated.

    Thanks for the response. Here's the web.xml file:
    <?xml version="1.0" ?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
         <display-name>Web Forms</display-name>
    <servlet>
    <servlet-name>LoginServlet</servlet-name>
    <display-name>LoginServlet</display-name>
    <servlet-class>LoginServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <display-name>ChangePasswordServlet</display-name>
    <servlet-class>ChangePasswordServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>LogoutServlet</servlet-name>
    <display-name>LogoutServlet</display-name>
    <servlet-class>LogoutServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>PageServlet</servlet-name>
    <display-name>PageServlet</display-name>
    <servlet-class>PageServlet</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>UploadServlet</servlet-name>
    <display-name>UploadServlet</display-name>
    <servlet-class>UploadServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>LoginServlet</servlet-name>
    <url-pattern>/LoginServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>ChangePasswordServlet</servlet-name>
    <url-pattern>/ChangePasswordServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>LogoutServlet</servlet-name>
    <url-pattern>/LogoutServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>UploadServlet</servlet-name>
    <url-pattern>/UploadServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>PageServlet</servlet-name>
    <url-pattern>/PageServlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>Login.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    None of the classes are in a package (I know it's not the best idea, but I didn't write these, I'm just doing some updates). So the file structure is pretty much just WEB-INF/classes/
    At the moment I've got a fix by just putting the entire project (not in any sort of archive) on the server itself instead of deploying it as a WAR, any thoughts on why the WAR isn't working would be much appreciated though.

  • Class not found for class generated by autotype when deploy

    I'm getting a ClassNotFoundException when I attempt to deploy a webservice that was originally generated from an XSD.
    1) I create the stubs using "autotype" and the schemaFile attribute. Class files are generated and placed in the location specified by destDir.
    2) I then run source2wsdd to generate the web-services.xml and WSDL files. source2wsdd specified the "javaSource" attribute and points to the java file the WebService is to call.
    I also take all the generated JAVA classes and put it into a JAR file for step 3.
    3) I run wspackage to create the EAR file. For "webAppClasses" I specify the class files that goes with the "javaSource" specified in step 2. I also take the JAR file created in step 2 (which contains all the code generated by step 1) and use "utilJars" to put in the the /lib directory of the war file.
    4) When I deploy, I get a "class not found" for one of the classes that is in the utility jar file I created in step 2. I have verified that the jar file is in the "web-inf/lib" directory.
    What am I not seeing that is causing WebLogic (WLS 8.0 SP2) to not find the class?
    Thanks in advance...
    Wayne

    Bruce: Got it working. (Bad news is I'm not sure what I did to fix it. :-( )
    My service now deploys, but I'm having problems doing a "source2wsdd" from inside
    Eclipse. Found another customer in this group with the same issue, and added my
    info to his message.
    For now I have to run the build outside Eclipse, but at least my service is deployable.
    Thanks for taking the time to reply to my message!
    Wayne
    Bruce Stephens <[email protected]> wrote:
    I think attachments are working again, so you might post a short example
    and we can take a look...
    Bruce Stephens wrote:
    Hi Wayne,
    Could it be something simple like not being capital "WEB-INF"
    ...probably not, but who knows. Also, in step 1, is your destDir going
    to WEB-INF/classes ?? Might review the working example Manoj generated
    [1].
    HTH,
    Bruce
    [1]
    http://www.manojc.com/?sample43
    Wayne Holmes wrote:
    I'm getting a ClassNotFoundException when I attempt to deploy a webservice
    that was originally generated from an XSD.
    1) I create the stubs using "autotype" and the schemaFile attribute.Class files are generated and placed in the location specified by destDir.
    2) I then run source2wsdd to generate the web-services.xml and WSDLfiles. source2wsdd specified the "javaSource" attribute and points to
    the java file the WebService is to call.
    I also take all the generated JAVA classes and put it into a JARfile for step 3.
    3) I run wspackage to create the EAR file. For "webAppClasses" Ispecify the class files that goes with the "javaSource" specified in
    step 2. I also take the JAR file created in step 2 (which contains all
    the code generated by step 1) and use "utilJars" to put in the the /lib
    directory of the war file.
    4) When I deploy, I get a "class not found" for one of the classesthat is in the utility jar file I created in step 2. I have verified
    that the jar file is in the "web-inf/lib" directory.
    What am I not seeing that is causing WebLogic (WLS 8.0 SP2) to notfind the class?
    Thanks in advance...
    Wayne

  • Class not found********please help!

    I'm trying to run my jsp application which imports two classes that i have saved in ROOT/WEB-INF/classes/business and ROOT/WEB-INF/classes/data. when I run the application by entering the url on the browser i get the following error. Does this mean the server cannot locate these two classes and what should i do to resolve this problem?
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    /opt/jakarta/tomcat/work/localhost/_/replace$jsp.java:3: Package business not found in import.
    import business.*;
    ^
    /opt/jakarta/tomcat/work/localhost/_/replace$jsp.java:4: Package data not found in import.
    import data.*;
    ^
    2 errors
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
    at java.lang.Thread.run(Thread.java:479)

    Sorry for taking long to reply but here is the code for both packages. The main aim is to write information captuired from a form into a file.
    Package business
    package business;
    public class User{
    private String Msisdn;
    private String Nimsi;
    public User(){}
    public User(String msisdn, String nimsi){
    Msisdn = msisdn;
    Nimsi = nimsi;
    public void setmsisdn(String m){
    Msisdn = m;
    public String getmsisdn() { return Msisdn; }
    public void setnimsi(String n){
    Nimsi = n;
    public String getnimsi(){ return Nimsi; }
    package data;
    import java.io.*;
    import business.*;
    public class UserIO{
    public synchronized static void addRecord(User user, String filename)
    throws IOException{
    PrintWriter out = new PrintWriter(
    new FileWriter(filename, true));
    out.println(user.getmsisdn()+ "|"
    + user.getnimsi());
    out.close();
    }

  • Weblogic Server not picking the jar files in WEB-INF/lib folder

    we are facing a strange problem where Weblogic App Server is not picking the jar files present inside the WEB-INF/lib folder if we update the jar file path in the classpath of the start script then the classes get loaded properly.
    Is there any specific setting which I need to do in weblogic to pick these jars ?

    Class loaders associated with a Web application can be configured to locate local classes first. To enable this we have to set the <prefer-web-inf-classes> to true in the deployment override weblogic.xml, for example
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    http://blog.transfer-solutions.com/2010/12/weblogic-class-loading/

Maybe you are looking for

  • Synchronization with windows vista

    I never had a problem synchronizing my Palm TX with Outlook (Vista) until I recently installed adobe reader. Although that shouldn't have anything to do with it, since I installed it I can not fully synchronize anymore. At the end of my synchronizati

  • How do you import off of a DVD???

    If you already have a DVD, how do you import this into Premire CS3? We have a dozen football games that were recorded on a DVD camcorder and immediately put into the share station to finalize. We want to make a skills video for college coaches from t

  • EqualsIgnoreCase

    I need to use equalsIgnoreCase to see if a string value matches the word "Yes" or not. and I'm also asked about which one of the following ways I would choose, and why. str = obj.getValue(); 1) "Yes".equalsIgnoreCase(str); 2) str.equalsIgnoreCase("Ye

  • How can I add attachment files – or photos – to my created Adobe reader XI files?

    How can I add attachment files – or photos – to my created Adobe reader XI files?

  • Just bought Photography plan, trial expired but PS and LR won't work. Help?

    Hello, I recently downloaded Photoshop CC 2014 and Lightroom 5. I bought the Photography Plan after my 30-day trials ended but the apps won't load. Photoshop won't load because it says I need to activate my copy but I understand CC Subscriptions don'