Problems finding classes in weblogic

Hi, I'm trying to package under the EAR an EJB and a WAR... but when i try to perform an action i get:
java.lang.ClassNotFoundException: this.is.MyActionClass at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297) at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at ....
here this.is.MyActionClass is in my WAR. all my action classes are in my WAR, nothing in EJB so I don't see how this would be running with EJB jars not finding my WAR, i also tried setting +<prefer-web-inf-classes>trueprefer-web-inf-classes>+ and rebuild, restarting the server, cleaning cache, it didn't work either. What other options do I have?
Any suggestions?
Thanks.

Hi Malky,
java.lang.ClassNotFoundException: this.is.MyActionClass --> This is because weblogic cant find the specific class in your classpath.
Try placing the class path in the web-inf folder inside the war file.
Other options
If you want to set the CLASSPATH for all the managed Servers available in your Domain then "$DOMAIN_HOME/bin/setDomainEnv.sh" has an Environment variable with name "PRE_CLASSPATH" which is usually preferred for Patches or any JAR which we want to override from the WebLogic's existing classpath.
But if you don;t want to override WebLogic's default CLASSPATH rather include your Jars in it then please add your JAR filenem including absolute path inside the "POST_CLASSPATH" variable inside "$DOMAIN_HOME/bin/setDomainEnv.sh"
Apart from this another option will be putting your Jars inside the "$DOMAIN_HOME/lib" directory because The jars located in this directory will be picked up and added dynamically to the end of the server classpath at server startup. The jars will be ordered lexically in the classpath. The domain library directory is one mechanism that can be used for adding application libraries to the server classpath. It is possible to override the $DOMAIN_DIR/lib directory using the -Dweblogic.ext.dirs system property during startup. This property specifies a list of directories to pick up jars from and dynamically append to the end of the server classpath using java.io.File.pathSeparator as the delimiter between path entries.
If you are starting your Managed Servers using NodeManager then please refer to the following Article.:
Topic: Nodemanager Based ManagedServers setting MEM_ARGS
http://middlewaremagic.com/weblogic/?p=780
Regards
FAbian

Similar Messages

  • Problem finding class in jar file

    I have an applet that will run when I have all the classes sitting in the same directory. ex) http://IPaddress/directory. But I try to put them all into a jar file and run the code and it says cant find the class. Below is my html code. Please help!
    <HTML>
    <HEAD>
    </HEAD>
    <BODY>
    <APPLET
    CODEBASE="http://IPaddress/directory1/directory2"
    CODE="Applet.class"
    ARCHIVE="1stJar.jar,2ndJar.jar,3rdJar.jar,Applet.jar"
    WIDTH=600 HEIGHT=600>
    </APPLET>
    </BODY>
    </HTML>

    Where are your jar files contained? They need to be in the same directory as your CODEBASE, or otherwise include a relative directory.
    Also, what browser are you using?
    From the Java web page on APPLET tags
    "Unfortunately, not all browsers understand the same archive format or use the same HTML code to specify the applet archive"

  • Problems Finding Class

    Hello,
    I apologise if this is a fairly basic question, but I require assistance.
    I have moved alot of code into various utility classes to avoid repetition of code in my JSP pages.
    On my development system everything works as it should, however when I migrate all my code to a new unix system I get the follwing error message.
    org.apache.jasper.JasperException: Unable to compile class for JSP
    and it says it can't find my classes, which live under WEB-INF/classes/web.utils.db.MYCLASS
    Can anyone help ?
    Is there someplace I need to set a classpath?
    Any help would be greatfully recieved.
    Many Thanks
    Les,

    Apologies I thought this might be a simple one.
    When we did the migrate WEB-INF was being converted to (web-inf)lower case and hence the reason for the classes not being found.
    Thanks Again
    Les,

  • Problem finding class?

    So, I am trying to load an applet in a web page using:
    <applet archive="https://www.foo.com.my.jar"
    code="com.foo.example.my.class"
         width="450" height="150">
    </applet>
    But I get:
    java.lang.ClassNotFoundException: com.foo.example.my.class
    However, if I open up the jar com\foo\example\my.class is clearly there, along with my$1.class, my$2.class, etc.
    I exported this jar from Eclipse using Export -> JAR file.
    Any thoughts on what might be going on?

    Specify one of the following:
    com.foo.example.my
    or
    com/foo/example/my.class

  • Problem finding class MySql

    If i run this code I have an Exception like this:
    Exception: com.mysql.jdbc.Driver
    why? what I have to do?
    package com.stardeveloper.example;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    public class JdbcExample2 {
    public static void main(String args[]) {
    Connection con = null;
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    con = DriverManager.getConnection("jdbc:mysql:///test",
    "root", "secret");
    if(!con.isClosed())
    System.out.println("Successfully connected to " +
    "MySQL server using TCP/IP...");
    } catch(Exception e) {
    System.err.println("Exception: " + e.getMessage());
    } finally {
    try {
    if(con != null)
    con.close();
    } catch(SQLException e) {}
    }

    I found a jar file and its name is
    mysql-connector-java-3.1.7-bin.jar Is it the right
    one?
    Where have I to put it?Wherever it is, add it to your CLASSPATH. :)If you have a project called MyApp, you can arrange things like this:
    (1) Have a directory under MyApp named /java; put your .java files in there, arranged in their package structure,
    (2) Have a directory under MyApp named /lib; put your JARs in there.
    When you compile your .java files, write the output to a directory called /classes.
    You add your JARs to the CLASSPATH using the -classpath option on javac.exe and java.exe. Do not use a system CLASSPATH environment variable.
    %

  • Compiling JSP within a WAR cannot find classes

              I have developed a WAR file containing a trivial JSP that simply invokes functionality contained within
              a Java class. The WAR file is registered without a problem, and unpacks my libraries and classes to
              C:\weblogic\myserver\_tmp_war (jar files & top-level package dirs are in the root). When I invoke the
              JSP, the code is generated correctly within C:\weblogic\myserver\_tmp_war\jsp_servlet. However the
              compiler fails to find the class referenced by the JSP, and the following error is logged.
              java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, C:\weblogic\myserver\serverclasses;C:\weblogic\jre1_2\jre\lib\rt.jar;C:\weblogic\jre1_2\jre\lib\i18n.jar;C:\weblogic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudscape.jar;C:\weblogic\license;C:\weblogic\classes;C:\weblogic\myserver\serverclasses;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\myserver.war;C:\weblogic\myserver\_tmp_war\cos.jar;C:\weblogic\myserver\_tmp_war\gnu-regexp-1.0.8.jar;C:\weblogic\myserver\_tmp_war\xerces.jar, -d, C:\weblogic\myserver\_tmp_war, C:\weblogic\myserver\_tmp_war\jsp_servlet\_test.java])
              My classes are contained within /WEB-INF/classes inside the WAR file when it is generated. Upon
              inspection of the compile command, it would appear that the libraries expanded from the WAR are
              added, but not the general classes (i.e. C:\weblogic\myserver\_tmp_war is not in the compile classpath.
              Any help on this would be greatly appreciated.
              David Barton
              >>> The following is the web.xml file <<<<<
              <!DOCTYPE web-app PUBLIC
              "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              </web-app>
              >>>>> The following is the JSP page <<<<<<<<<
              <%@ page import="oneit.Formatter" %>
              <html>
              <body>
              <%= Formatter.format (10) %>
              </body>
              </html>
              >>>>> The Formatter class is below <<<<<<
              package oneit;
              public class Formatter
              public static String format (int number)
              return String.valueOf (number);
              

              I have also found that extracting the WAR file and referencing the resulting directory rather then
              the WAR works.
              David Barton
              

  • HELP: cannot find class RDBMSRealm !!!

    After setting the realmClass in weblogic.properties file:
    weblogic.security.realmClass=rdbmsrealm.RDBMSRealm
    weblogic.security.realm.cache.user.enable=true
    weblogic.security.realm.cache.group.enable=true
    weblogic.security.realm.cache.permission.enable=true
    weblogic.security.realm.cache.acl.enable=true
    weblogic.security.realm.cache.auth.enable=true
    However, when I restart weblogic server, this exception occured:
    java.lang.ClassNotFoundException: rdbmsrealm.RDBMSRealm
    at
    weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java:355)
    at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:111)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at weblogic.security.acl.Realm.getRealm(Realm.java:79)
    at weblogic.security.acl.Realm.getRealm(Realm.java:57)
    at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1086)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    Anyone know how to avoid this? Thanks !

    It looks like there is a problem finding the RDBMSRealm class - make sure
    that it is in your classpath
    terry
    Gary Wang <[email protected]> wrote in message
    news:[email protected]..
    After setting the realmClass in weblogic.properties file:
    weblogic.security.realmClass=rdbmsrealm.RDBMSRealm
    weblogic.security.realm.cache.user.enable=true
    weblogic.security.realm.cache.group.enable=true
    weblogic.security.realm.cache.permission.enable=true
    weblogic.security.realm.cache.acl.enable=true
    weblogic.security.realm.cache.auth.enable=true
    However, when I restart weblogic server, this exception occured:
    java.lang.ClassNotFoundException: rdbmsrealm.RDBMSRealm
    at
    weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java:355)
    at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java:111)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at weblogic.security.acl.Realm.getRealm(Realm.java:79)
    at weblogic.security.acl.Realm.getRealm(Realm.java:57)
    at weblogic.t3.srvr.T3Srvr.initializeSecurity(T3Srvr.java:1747)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:1086)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:827)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:99)
    at weblogic.Server.main(Server.java:65)
    at weblogic.Server.main(Server.java:55)
    Anyone know how to avoid this? Thanks !

  • Unable to find class oracle.adf.controller.faces.lifecycle.ADFPhaseListener

    hi ,OTN
    I have an ADF 10g application which I migrate to Jdeveloper 11.1.1.3.0 version after migration and turning Adf faces to Apache Trinidad components and fixing all my code,compiling the application without any Errors,when I deployed my application to weblogic I had a deployment exception this is all the stack trace
    User defined listener com.sun.faces.config.ConfigureListener failed: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener '
    com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener'
         at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
         at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:195)
         at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         Truncated. see log file for complete stacktrace
    Caused By: com.sun.faces.config.ConfigurationException:
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener'
         at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:248)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:141)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:114)
         at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
         Truncated. see log file for complete stacktrace
    <08/10/2010 EET 04:11:11 م> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1286547027015' for task '0'. Error is: 'weblogic.application.ModuleException: '
    weblogic.application.ModuleException:
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1514)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
         Truncated. see log file for complete stacktrace
    Caused By: com.sun.faces.config.ConfigurationException:
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener'
         at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:248)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:141)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:114)
         at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
         Truncated. see log file for complete stacktrace
    >
    <08/10/2010 EET 04:11:11 م> <Error> <Deployer> <BEA-149202> <Encountered an exception while attempting to commit the 1 task for the application 'Version4'.>
    <08/10/2010 EET 04:11:11 م> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'Version4'.>
    <08/10/2010 EET 04:11:11 م> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: :com.sun.faces.config.ConfigurationException:
    Source Document: file:/C:/Documents and Settings/Administrator/Application Data/JDeveloper/system11.1.1.3.37.56.60/o.j2ee/drs/Version4/ViewControllerWebApp.war/WEB-INF/faces-config.xml
    Cause: Unable to find class 'oracle.adf.controller.faces.lifecycle.ADFPhaseListener'
         at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(AbstractConfigProcessor.java:248)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.addPhaseListeners(LifecycleConfigProcessor.java:141)
         at com.sun.faces.config.processor.LifecycleConfigProcessor.process(LifecycleConfigProcessor.java:114)
         at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(AbstractConfigProcessor.java:108)
         at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:132)
         Truncated. see log file for complete stacktrace
    help please?

    thank you for quick reply. but I ran my application in the integrated weblogic server in the Jdeveloper.I did not deploy it to a standalone one.did you mean the default domain?

  • Unable to find class oracle.panama.personalization.login

    oracle.jsp.parse.JspParseException: Line # 21, Error: Unable to find class for bean: login defined by tag with class: oracle.panama.personalization.login
    I get this message when trying to go to "http://{hostname}/papz/login.jsp"
    window 2k, Oracle 8.1.7, 9iASwe 1.0.2.0.0.
    Any help would be great.
    Thanks in advance
    Sean.

    I'm also having this problem. Could really use some help

  • Problem using myfaces on webLogic

    I run into the problem using myfaces on webLogic 9.1.
    That is... a managedBean's instance is created twice in one page.
    That page is consisted with one <h:inputText> and <h:commandButton>.
    After some tests, we found out that the problems happens in a JSP which has <h:inputText>...
    This problem didn't happen on Tomcat or JDeveloper.
    We tried with another application.
    And oh my goodness, it didn't happen.
    It worked collect with no problems at all.
    The difference between two application is,
    the former managedBean extends abstract class,
    and the latter doesn't.
    Pls help me.....

    It was a program bag rather than weblogic's problem.
    In the program, it deleted all the objects in the session scope.
    So, after JSF render the next JSP, it re-create a managed bean.
    But, I'm still wonder why the same things didn't happen in Tomcat.
    WebLogic put managed bean into the session soon after JSF
    creates it.
    On the otherhand, Tomcat does that after managedbean's action
    is completed???
    Considering the JSF specification, i think weblogic is right.
    Cos,JSF put all the components and related managed bean
    into session, in the rendering phase.
    Thanks for asking anyway.

  • Cannot find class in same package but in different file

    I have following two source files. Both the file has same package statement as below
    package java.buron.doeacc ;
    But whenever i try to compile File: shoepolish.java ( mainfram.java compiled succesfully before)
    following error message appear
    ..\..\buron\doeacc\shoepolish.java:12: cannot resolve symbol
    symbol : class MainFrame
    location: class java.buron.doeacc.shoepolish
              MainFrame mainFrame = new MainFrame();
    ^
    ..\..\buron\doeacc\shoepolish.java:12: cannot resolve symbol
    symbol : class MainFrame
    location: class java.buron.doeacc.shoepolish
              MainFrame mainFrame = new MainFrame();
    ^
    Please tell me What is the problem and how it can be solved.
    why cannot find the class that are in same package.
    I have JDK 1.3
    FOLLOWING ARE THE TWO FILES
    File: mainframe.java/////////////////////////////////////////////////////////////////////
    package java.buron.doeacc ;
    import javax.swing.* ;
    import java.awt.*;
    import java.awt.event.* ;
    class MainFrame extends JFrame
         private final String APP_NAME = "Shoe Polish";
         // constructor
         public MainFrame()
              super("Shoe Polish");
              setSize(500, 500);
              setVisible(true);
    File : shoepolish.java
    package java.buron.doeacc ;
    import java.io.* ;
    import java.buron.doeacc.* ;
    class shoepolish
         public static void main(String args[])
              MainFrame mainFrame = new MainFrame();

    The javac compiler uses the Classpath to find classes. If your directory structure is c:\myjava\buron\doeacc (for example) then you need to have c:\myjava in the Classpath when you compile. For example javac -classpath c:\myjava MainFrame.java

  • Can't find class org/apache/jk/apr/AprImpl

    Hi
    I have Tomcat 4.1.29 and Apache Web Server 2.0.48 installed.
    I have used this tutorial since I'm a newbie :(
    http://www.gregoire.org/howto/Apache2_Jk2_TC4.1.x_JSDK1.4.x.html
    My problem is when I try to regroup them, I obtained this error error.log.
    error] Can't find class org/apache/jk/apr/AprImpl
    java.lang.NoClassDefFoundError: javax/management/MBeanRegistration
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.defineClass(Unknown Source)
         at java.net.URLClassLoader.access$100(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Here is my confid file (workers.properties) :
    [logger]
    level=DEBUG
    [config:]
    #file=C:/Apache2/conf/workers2.properties
    file=C:/Apache2/conf/workers2.properties
    debug=0
    debugEnv=0
    [uriMap:]
    info=Maps the requests. Options: debug
    debug=0
    # Alternate file logger
    #[logger.file:0]
    #level=DEBUG
    #file=C:/Apache2/logs/jk2.log
    [shm:]
    info=Scoreboard. Required for reconfiguration and status with multiprocess servers
    file=C:/Apache2/logs/jk2.shm
    size=1000000
    debug=0
    disabled=0
    [workerEnv:]
    info=Global server options
    timing=1
    debug=0
    # Default Native Logger (apache2 or win32 )
    # can be overriden to a file logger, useful
    # when tracing win32 related issues
    #logger=logger.file:0
    [lb:lb]
    info=Default load balancer.
    debug=0
    #[lb:lb_1]
    #info=A second load balancer.
    #debug=0
    [channel.socket:localhost:8009]
    info=Ajp13 forwarding over socket
    debug=0
    tomcatId=localhost:8009
    #[channel.socket:localhost:8019]
    #info=A second tomcat instance.
    #debug=0
    #tomcatId=localhost:8019
    #lb_factor=1
    #group=lb
    #group=lb_1
    #disabled=0
    #[channel.un:/opt/33/work/jk2.socket]
    #info=A second channel connecting to localhost:8019 via unix socket
    #tomcatId=localhost:8019
    #lb_factor=1
    #debug=0
    [channel.jni:jni]
    info=The jni channel, used if tomcat is started inprocess
    [status:]
    info=Status worker, displays runtime informations
    [vm:]
    info=Parameters used to load a JVM in the server process
    #JVM=C:\jdk\jre\bin\hotspot\jvm.dll
    OPT=-Djava.class.path=c:/Tomcat/bin/tomcat-jni.jar;c:/Tomcat/server/lib/commons-logging.jar
    OPT=-Dtomcat.home=${TOMCAT_HOME}
    OPT=-Dcatalina.home=${TOMCAT_HOME}
    OPT=-Xmx128M
    #OPT=-Djava.compiler=NONE
    disabled=0
    [worker.jni:onStartup]
    info=Command to be executed by the VM on startup. This one will start tomcat.
    class=org/apache/jk/apr/TomcatStarter
    ARG=start
    disabled=0
    stdout=C:/Apache2/logs/stdout.log
    stderr=C:/Apache2/logs/stderr.log
    [worker.jni:onShutdown]
    info=Command to be executed by the VM on shutdown. This one will stop tomcat.
    class=org/apache/jk/apr/TomcatStarter
    ARG=stop
    disabled=0
    [uri:/jkstatus/*]
    info=Display status information and checks the config file for changes.
    group=status:
    #[uri:127.0.0.1:8003]
    #info=Example virtual host. Make sure myVirtualHost is in /etc/hosts to test it
    #alias=myVirtualHost:8003
    #[uri:127.0.0.1:8003/ex]
    #info=Example webapp in the virtual host. It'll go to lb_1 ( i.e. localhost:8019 )
    #context=/ex
    #group=lb_1
    [uri:/examples]
    info=Example webapp in the default context.
    context=/examples
    debug=0
    #[uri:/examples1/*]
    #info=A second webapp, this time going to the second tomcat only.
    #group=lb_1
    #debug=0
    [uri:/examples/servlets/*]
    info=Prefix mapping
    [uri:/examples/*.jsp]
    info=Extension mapping
    [uri:/examples/*]
    info=Map the whole webapp
    [uri:/examples/servlets/HelloW]
    info=Exampel with debug enabled.
    debug=10
    Thank you for your time !
    Max

    Btw: I get the warning starting IIS - It seems to me that IIS tries to load Tomcat on-the-fly. The Tomcat load the fails and IIS continues to load successfully.
    The beginning of the IIS Event log outputs this:
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (340)]: vm.detach() ok
    Apache Jakarta Connector2, Warning, Error: [jk_worker_jni.c (308)]: Can't find class org/apache/jk/apr/AprImpl
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (297)]: Loaded org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, None, Debug: [jk_vm_default.c (302)]: vm.attach() allready attached
    Apache Jakarta Connector2, Information, Info: [jk_worker_jni.c (252)]: jni.validate() class= org/apache/jk/apr/TomcatStarter
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (607)]: vm.open2() done
    Apache Jakarta Connector2, Information, Info: [jk_vm_default.c (500)]: vm.init(): Jni lib: C:\wwwapps\j2sdk1.4.2_01\jre\bin\client\jvm.dll
    /watson

  • Javah problem - super class could not be found !!

    Hi all,
    i have already posted this message but i didn't get enough help to solve my poor situation.
    and this is my problem:
    i got in my project (myProject) MyClass class.
    i wrote in another java class ,in OtherClass.class ,jni function that use MyClass object as parameter to the jni interface, as follow:
    private native int myFunction (MyClass obj); //function in OtherClass
    when i write the javah command line :
    javah -jni OtherClass (in order to create OtherClass.h)
    i always get the following error:
    A required super class myPackage.MyClass could not be found.
    my qoustion is how can i let the javah command line to know about the existence of myPackage.MyClass and how can i create and .h file when i using other class instance as jni function parameter in other class??
    Thanks Sendy.

    Lets define a few terms here.
    Java can be a java virtual machine which is what runs when you type 'java' on the command line. It is also represented by the compiler which runs when you type 'javac'. And in your case it also is represented by 'javah'.
    The class path defines where java finds classes that it needs.
    In older versions of java you had to tell it where to find everything. It couldn't even find java.lang.String unless you told it were it was. Now days you have to tell it where to find stuff that you add (or where 3rd party libraries are.)
    There are two ways to define the class path: a command line option and an environment variable.
    A class path can, currently, have three types of things in it:
    -A path to a zip file
    -A path to a jar file
    -A path
    For example
    -Path to zip file in windows: C:\mystuff\mylib\mystuff.zip
    -Path to zip file in unix: /opt/system/projects/mystuff/mystuff.zip
    -Path to jar file in windows: C:\mystuff\mylib\myjar.jar
    -Path to jar file in unix: /opt/system/projects/mystuff/myjar.jar
    -Path in windows: C:\mystuff\mylib
    -Path in unix: /opt/system/projects/mystuff
    Zip files aren't used as much anymore, but you should at least be aware of them.
    Java uses the class path to look for classes which are stored in files. It does this by translating the class name into a file name. It uses packages as directory names and class names as file names. So in your case it would try to find a class called myPackage.MyClass in a file called myPackage\MyClass.class. It would try to find that in any zip files, jar files, in in any paths that you specified in the class path.
    So java is trying to find myPackage\MyClass.class in your class path. It would try to find that in any zip files, jar files, in in any paths that you specified in the class path.
    Right now your class path is probably just "." which means that if you do the following commands
    cd C:\mystuff
    javah -jni OtherClass
    Then java is going to try to find myPackage.MyClass in the following file
    .\myPackage\MyClass.class
    That, because you 'cd' to C:\mystuff, translates to the following absolute path
    C:\mystuff\myPackage\MyClass.class
    So if java doesn't find that file then it is going to tell you that it can't find the file.
    So where is your file? Let's say it is here.
    C:\work\lib\myPackage\MyClass.class
    So you must tell javah where the root is. Keep in mind that 'myPackage' must be part of the path. That is not optional. The root is the directory above 'myPackage'. So the root is
    C:\work\lib
    So now you have a path that is ready for your class path. So your javah command could look like this
    javah -classpath ".;C:\work\lib" -jni OtherClass
    Or using an environment variable
    set CLASSPATH=.;C:\work\lib
    javah -jni OtherClass
    Keep in mind in the above that class path is a generic term and there can be other ways to define it. For example the Sun command "java" allows you to use "-classpath" or "-cp".
    So does the above help?

  • Cannot find class: Exception??

    Hi
    The compiler claims it cannot find class FileNotFoundException or any other exception in my Main. Any packages I import has no problem. My structure:
    java \ myMain \ Main.java
    java \ com \ myName \ packages //no, the space is just there as visual help:)
    Use javac -classpath java\ @compile.file
    ...where compile.file is a txt file giving the paths and filenames to all files I include.
    This is first time I use the -classpath parameter, but I believed java.lang always was included. What Am I doing wrong.
    regards
    JT

    You should review the tool documentation for the javac command and its use of classpath.
    Your problem appears to be due to the way you defined classpath, "-classpath java\". While you don't provide enough information to conclusively say what it should be, I'm guessing it should also include java\myMain\ - assuming that you're issuing the javac command from the parent of the \java\ directory, as your command example indicates.
    Here is a clip about its use of the classpath.
    "When compiling a source file, the compiler often needs information about a type whose definition did not appear in the source files given on the command line. The compiler needs type information for every class or interface used, extended, or implemented in the source file. This includes classes and interfaces not explicitly mentioned in the source file but which provide information through inheritance.
    For example, when you subclass java.applet.Applet, you are also using Applet's ancestor classes: java.awt.Panel, java.awt.Container, java.awt.Component, and java.lang.Object.
    When the compiler needs type information, it looks for a source file or class file which defines the type. The compiler searches for class files first in the bootstrap and extension classes, then in the user class path (which by default is the current directory). The user class path is defined by setting the CLASSPATH environment variable or by using the -classpath command line option. (For details, see Setting the Class Path).
    If you set the -sourcepath option, the compiler searches the indicated path for source files; otherwise the compiler searches the user class path for both class files and source files."

  • How to Find Classes Urgent!

    I have loaded .class files using classLoader ..
    i want to find calsses & interfaces which are present in perticular package structure(in memory)..if i use Package.getPackages() mathod
    its returning me all the packages which are loaded in memory.using that package structure how to find the
    classes and interface's
    Advance Thanx

    the problem is that its to hard to track the each classes and its packages.. i have more then 20 jars..each jar having morethen 25 classes with diff packge structure.. (more then one jar having same package structued classes )
    so that i have loade all the classes using Systems class loader..
    now my need is to find classes whichare present in perticular package structure..
    for Ex. in system class loader it will automatically load java.jang.allclasses;
    what i want is if i knew that package name (java.jang)
    i should find the class name's like Object,String,Long...etc

Maybe you are looking for

  • BAPI for displaying stock

    hi, Is there a bapi/FM which gives us the stock of a material on a particular date. Satish

  • Sidebar favourites start to point at wrong drive randomly and I have no idea why?

    I have 3 firewire drives connected to my iMac, "Media Drive", "Media Drive Mirror" and "Media Drive Mirror 2". Media Drive is my primary work drive and the other two are mirrored backups. I have links to my working directories on the primary drive in

  • Trying to retrieve old photos

    I have an old 3G (??) phone that i no longer use. the sim card is removed and it has a 1000 pictures that i would like to import into itunes. I have just bought my first mac computer. the problem is that the computer does not recongnize my old phone.

  • Training for OAT Suite

    hi, Can anyone help me from where i can get the training for Oracle Application Testing Suite Tool?

  • Graph doesn't appear until cycle is complete

    Hey everyone, This is probably a bit of a daft question, but it's something that I can't seem to resolve.  Anyway, if I'm using a loop (say, a FOR loop) and building an array of resulting points (one column might be the iteration number, and the othe