Cannot import package org.apache.catalina in Tomcat 4.1

Hi,
Don't know why I cannot import org.apache.catalina.realm.RealmBase.*; or org.apache.catalina.*; but no problem in importing org.apache.*; ?
error prompts "package org.apache.catalina.realm.RealmBase does not exist " Thanks.
Jackie

Yes, I can find org.apache.catalina.jar in /lib but why my jsp program cannot locate this class? Something wrong with my web.xml / server.xml? Thank you.

Similar Messages

  • Package org.apache.axis.message not found in import.

    Hi,
    I am using axis to give response to another bpel process after any operation is completed of a BPEL process.I am using JDeveloper to deploy my bpel process.It has succesfully deployed process without any error but when bpel server is unpacking it and deploying it to oc4j,it get error:
    Package org.apache.axis.message not found in import.
    06/02/08 12:40:40 import org.w3c.dom.Element;import java.util.Calendar;import java.util.Date;import com.collaxa.cube.engine.ext.process;
    import com.oracle.services.bpel.task.*;import com.oracle.bpel.client.BPELFault;import com.collaxa.cube.xml.schema.XMLSchemaUtils;import com.
    oracle.bpel.client.util.WhereCondition;import com.oracle.bpel.client.Locator;import com.oracle.bpel.client.delivery.IDeliveryService;import
    com.oracle.bpel.client.NormalizedMessage;import com.oracle.bpel.client.IInstanceHandle;import com.oracle.bpel.client.ServerException;import
    com.oracle.services.bpel.Process.*;import org.apache.axis.message.*;import javax.xml.soap.Name;
    I have manually copied all axis jars to
    1)OraBPEL\integration\orabpel\system\appserver\oc4j\j2ee\home\applib
    2)OraBPEL\integration\orabpel\lib
    But no use.
    Can anybody help!

    I've put a lot og jar files in the bpel-inf/lib but it looks as if they are not in the class path when I need them. The result is a ClassNotFoundException? Do I have to specify anything else? I've put a class in the bpel-inf/classes and it looks to me as if it is found by the BPM.

  • Tomcat error: package org.apache.jsp;

    I am trying to compile my EJB Home,EJBObject classes and its giving error saying that package javax.ejb.EJBHome not found in interface package.org.apache.jsp;
    C:\Apache\work\localhost\_\Bonus$jsp.java:0: Class javax.ejb.EJBHome not found in interface Beans.CalcHome.
    package org.apache.jsp;
    Can anybody tell me if I do need to set some classpath for it ??

    Hi,
    Which version of Tomcat r u using?
    Ar u using JBoss along with it?
    Include all the jar files in Jboss folder in the classpath.
    Seetesh

  • Taskdef class org.apache.catalina.ant.deploytask cannot be found

    I am trying some examples of webserives. These examples are required to be run by Ant tool. Now I intall JWSDP-2.0 and tomcat50-jwsdp separately. And set up enviroment variable. now run Ant to compile the program, displays an error-----D:\CIS631\JWSNutshell\examples\chapter1\amazon\buildsetup.xml:31:taskdef class org.apache.catalina.ant.deploytask cannot be found. I have no any idea for this error. Who could tell me how to solve it? Thanks for your help!

    >
    BUILD FAILED
    ........jwsdp-1.1/tutorial/examples/jaxrpc/common/targe
    s.xml:4: taskdef class
    org.apache.catalina.ant.DeployTask cannot be foundFrom the "Getting Started" section of the tutorial, you need to add <JWSDP_HOME>/jakarta-ant-1.5.1/bin to the front of your PATH. This ensures that you're using the correct version of ant for the example.
    Cheers,
    Bobby Bissett

  • Newbie question: taskdef class org.apache.catalina.ant.DeployTask error

    Hi,
    I am trying to run one of the examples in the JWS tutorial, but everytime I go "ant build" it throws the following error
    <stuff_up_front>/jaxrpc/common/targets.xml:30: taskdef class org.apache.catalina.ant.DeployTask cannot be found
    As far as I know I have all the necessary path and environmental variable set. Only thing I can think of is that I choose not to install the Tomcat that comes bundled with the JWSDP package since I already had tomcat server running on my machine. But my Catalina_Home has been set from a long time and it works with other applications. So I really not sure what I am suppose to do. Help would be very welcomed. Thansk you.

    Please dis regard I just now noticed the dates on this thread. (I sure hope you have gotten it working by now.)
    I did get these examples running. The fact that I had several versions of Tomcat installed by IDE's I think alot of my env.vars where not pointing to the proper place. I ended up just using all the stuff that came with the jwsdp(server and likes). maybe later once I get a greater understanding I can do better. BUT I AM A BIT SLOW. Thanks all.
    If you every reply to me type slow so i can keep up.

  • Error msg "package org.apache.xmlrpc does not exist ... "

    Hi everybody,
    I am new to java. While creating build through cruise control Error Msg comes
    BUILD FAILED
    Ant Error Message:      C:\Program Files\CruiseControl\projects\Myproject\build.xml:47: Compile failed; see the compiler error output for details.
    C:\Program Files\CruiseControl\projects\Myproject\src\org\xtpl\admin\common\CallBack.java:9: package org.apache.xmlrpc does not exist
    import org.apache.xmlrpc.*;
    C:\Program Files\CruiseControl\projects\Myproject\src\org\xtpl\admin\common\CallBack.java:18: cannot find symbol
    symbol : class XmlRpcClient
    location: class org.xtpl.admin.common.CallBack
    XmlRpcClient rpcClient = new XmlRpcClient();
    Can anyone help me out!
    Thanks,
    Sunil Braroo

    check your classpath.

  • Package org.apache.soap does not exist

    Hi,
    I'm trying to deploy a webservice made out of stateless session bean.
    When i run the service by invoking its method through browser then I get an exception as
    Servlet error: Cannot generate Class:
    package org.apache.soap does not exist
    import org.apache.soap.Header;
    -- It seems that the oc4j is not loading soap.jar under soap/lib
    But when I add soap.jar to WEB-INF/lib then I get an exception as
    java.lang.LinkageError: Class org/apache/soap/rpc/SOAPContext violates loader constraints
    Which means soap.jar is loaded previosuly
    The required classes are present in soap.jar
    Can you please help me on this
    Regards
    ~Anil

    Yippee... problem solved... classpath setting problem

  • Container org.apache.catalina.core.ContainerBase has not been started

    Hi I'm integrated Tomcat 5 with Apache 2.0 using mod_jk on Fedora core 7 server. My problem is
    i cannot deploy my web application residing on /var/www/webapps/scienceph folder
    which has my index.jsp file.
    here is my code:
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" errorPage="" %>
    <html>
    <head>
    <title>science.ph</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <%java.util.Date today = new java.util.Date();
    out.println("Today's date is: "+today);
    %>
    scienceph ..
    </body>
    </html>when i started tomcat i got the following exceptions in my log file..
    Apr 23, 2008 5:28:03 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error in resourceStart()
    Apr 23, 2008 5:28:03 PM org.apache.catalina.core.StandardContext start
    SEVERE: Error getConfigured
    Apr 23, 2008 5:28:03 PM org.apache.catalina.core.StandardContext start
    SEVERE: Context [/conf] startup failed due to previous errors
    Apr 23, 2008 5:28:03 PM org.apache.catalina.core.StandardContext stop
    INFO: Container org.apache.catalina.core.ContainerBase.[Integration].[www.science.ph].[/conf] has not been started
    Apr 23, 2008 5:28:03 PM org.apache.commons.modeler.Registry registerComponent
    SEVERE: Error registering Integration:type=Cache,host=www.science.ph,path=/server
    sun.misc.InvalidJarIndexException: Invalid index
            at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:854)
            at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:762)
            at sun.misc.URLClassPath$JarLoader.findResource(URLClassPath.java:732)
            at sun.misc.URLClassPath.findResource(URLClassPath.java:145)
            at java.net.URLClassLoader$2.run(URLClassLoader.java:362)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
            at java.lang.ClassLoader.getResource(ClassLoader.java:977)
            at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:867)
            at org.apache.commons.modeler.Registry.findDescriptor(Registry.java:960)
            at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:665)
            at org.apache.commons.modeler.Registry.findManagedBean(Registry.java:1014)
            at org.apache.commons.modeler.Registry.registerComponent(Registry.java:831)
            at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3869)
            at org.apache.catalina.core.StandardContext.start(StandardContext.java:4024)
            at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
            at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
            at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
            at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
            at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
            at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
            at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
            at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
            at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
            at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
            at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
            at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
            at org.apache.catalina.core.StandardService.start(StandardService.java:448)
            at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
            at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)here is my server.xml
    <Server port="8005" shutdown="" debug="0">
      <Listener className="org.apache.jk.config.ApacheConfig" modJk="/etc/httpd/modules/mod_jk.so"/>
       <Service name="Tomcat-Apache">
         <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
            address="www.science.ph" port="8009" minProcessors="5" maxProcessors="75"
            enableLookups="false" protocol="AJP/1.3" acceptCount="10" debug="0" maxPostSize="4097152"/>
         <Engine name="Integration" debug="0" defaultHost="www.science.ph">
    <!--        <Logger className="org.apache.catalina.logger.FileLogger"
                    prefix="catalina_log." suffix=".txt"
                    timestamp="true"/> -->
            <Host name="www.science.ph" debug="0" unpackWARS="true" appBase="" autodeploy="true"
                    xmlValidation="false" xmlNameSpaceAware="false">
         <Listener className="org.apache.jk.config.ApacheConfig" append="true" forwardAll="false" modJk="/etc/httpd/modules/mod_jk.so"/>
                <Context path="" docBase="/var/www/webapps/scienceph"  debug="0" reloadable="true">
    <!--              <Logger className="org.apache.catalina.logger.FileLogger"
                    prefix="localhost_DBTest_log." suffix=".txt"
                    timestamp="true"/> -->
                   </Context>
            </Host>
        </Engine>
      </Service>
    </Server>how can i solve this problem.. I'm not seeing my application in the browser.. please help me.. thanks in advance for your help..

    I already solved this problem.. for others who might also encounter this problem..
    just uninstall tomcat from FC7 and install a fresh copy from tomcat website
    tomcat version 5.0.26 works for me. hope this help..
    God bless..
    <img class="emoticon" src="images/emoticons/wink.gif" border="0" alt="" />

  • BundleException: Unable to resolve package; (package=org.apache.felix.scr.annotations)

    Hi guys,
    My bundle is installed but not active:
    Got the following errors in my log:
    org.apache.sling.installer.core.impl.tasks.BundleStartTask Could not start bundle (bundle ID=1246) : myservlet.bundle. Reason: org.osgi.framework.BundleException: Unresolved constraint in bundle myservlet.bundle [1246]: Unable to resolve 1246.0: missing requirement [1246.0] package; (package=org.apache.felix.scr.annotations). Will retry.
    org.apache.felix.scr.annotations is imported and included in the bnd file.
    In Felix console I get this:
    org.apache.felix.scr from org.apache.felix.scr (41)
    org.apache.felix.scr.annotations -- Cannot be resolved
    org.apache.felix.scr.annotations.sling -- Cannot be resolved
    org.apache.sling.api from org.apache.sling.api (92)
    org.apache.sling.api.resource from org.apache.sling.api (92)
    org.apache.sling.api.servlets from org.apache.sling.api (92)
    org.ietf.jgss from org.apache.felix.framework (0)
    org.osgi.framework from org.apache.felix.framework (0)
    org.slf4j from slf4j.api (11)
    org.w3c.dom from org.apache.felix.framework (0)
    org.xml.sax from org.apache.felix.framework (0)
    Just can't figure out what else  need to be done to have org.apache.felix.scr.annotations resolved?
    Thanks!!!

    You might be importing the wrong ComponentContext if you're using one in your activate method's signature.  CRXDE gives errors with no explanation in that case.  Ensure that you have:
    import org.osgi.service.component.ComponentContext;
    as there are a couple of other ComponentContext classes and the class from the osgi package may not be the default chosen by CRXDE when imports are auto-populated.

  • Error NPE at org.apache.catalina.loader.StandardClassLoader.java

    On staring Tomcat Cluster - i get this error:
    org.apache.catalina.cluster.tcp.SimpleTcpCluster start
    SEVERE: Unable to start cluster.
    java.lang.NullPointerException
    at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:804)
    at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:756)
    Any help in pointing out what could be wrong would be greatly appreciated.
    ======
    My Tomcat server.xml - cluster part looks like:
    <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
    managerClassName="org.apache.catalina.cluster.session.DeltaManager"
    expireSessionsOnShutdown="false"
    useDirtyFlag="true">
    <Membership
    className="org.apache.catalina.cluster.mcast.McastService"
    mcastAddr="228.0.0.4"
    mcastPort="45564"
    mcastFrequency="500"
    mcastDropTime="3000"/>
    <!�auto below has been replaced with 127.0.0.1 it still does not help �
    <Receiver className="org.apache.catalina.cluster.tcp.ReplicationListener"
    tcpListenAddress="auto"
    tcpListenPort="4001"
    tcpSelectorTimeout="100"
    tcpThreadCount="6"/>
    <Sender
    className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
    replicationMode="pooled"/>
    <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
    filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
    </Cluster>

    You're right, you posted a new thread, but . . .
    This whole forum is dedicated to Messaging Server
    You might want to find the correct forum to post your question . . . . . . . . . .

  • Java.lang.ClassNotFoundException:myclass org.apache.catalina.loader

    I've been building some HTTP servlets and to ease up on the typing I've created a ServletUtilities file and class for repetitve tasks. I then added this file to my core package. However once I made a call to my ServletUtilites class from the other classes I've been getting:
    HTTP Status 500 - Exception Report
    java.lang.ClassNotFoundException:FactoryClass org.apache.catalina.loader. WebappClassLoader. loadClass(WebappClassLoader.java:1453)

    You're right, you posted a new thread, but . . .
    This whole forum is dedicated to Messaging Server
    You might want to find the correct forum to post your question . . . . . . . . . .

  • Org.apache.catalina.servlets.DefaultServlet??!! Where is the jar?

    Hello,
    My server keeps doing errors like,
    HTTP Status 404 - Servlet default is not available
    type Status report
    message Servlet default is not available
    description The requested resource (Servlet default is not available) is not available.
    Apache Tomcat/5.5.9
    Would you let me know what wrong with Defaultservlet. I set it up with
    <servlet>
    <servlet-name>default</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>listings</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    But it doesnt work. Pls help me. Where is the jar with Defaultservlet.
    Thanks,
    Tony

    Thanks!
    Would you let me know how to set it up. I know it should be working by default. However, I tried times with reinstallation. Still nothing comes out. This is my servlet mapping within web.xml
    <servlet>
    <servlet-name>default</servlet-name>
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    <init-param>
    <param-name>listings</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>default</servlet-name>
    <url-pattern>/</url-pattern>
    </servlet-mapping>
    Tony

  • Import problem org.apache.log4j.PropertyConfigurator

    Sorry if this is a dumb question but:-
    I have entered
    import org.apache.log4j.PropertyConfigurator;
    into NB5.5 and it says "package org.apache.log4j does not exist".
    Am I supposed to download this package or is it on my PCs hard disk somewhere? I've done a file search but failed to find it. Does it come with JDE or JDK? or have I not set up a CLASSPATH variable/parameter?
    Please can someone help?
    Drew

    First check whether you have log4j libraries on your machine.
    By Default its not available with JRE or JDK.
    If you dont find locally, download it from the apache site.

  • Org.apache.catalina.startup.Bootstrap

    On our XServe with MacOS X Server 10.6.8 there appears in the dock 'org.apache.catalina.startup.Bootstrap'. This prevents the system from rebooting. How can we remove 'org.apache.catalina.startup.Bootstrap'?

    Catalina is part of Apache Tomcat, which is a web services environment.  That tool is not part of the default contents of the Dock on OS X Server 10.6, so it's been added.  If you don't want it in the Dock.app, then drag it off the Dock.app.   Might also want to see if Tomcat is being automatically launched during bootstrap, if you don't want that.  Usual launch would be via launchd or maybe via a login item or via a web-related start-up. 
    Which implies there's something else going on here, or something else that's concerning you related to the OS X Server environment.  Could you elaborate a little more on what's happening or the specific text of any diagnostics you're receiving? 
    Now if Tomcat is running and you're trying to reboot, for instance, then you'll probably want to shut down Tomcat first, or rework the shutdown to perform that shutdown automatically. 
    If you're intending to run Apache Tomcat and don't want that icon to appear in the Dock, then you'll want to use a command-line editor or TextWrangler text editor (do not use a GUI text editor, Office, nor the TextEdit tool, to edit this file, as these will convert the file to a format that won't be readable by the Unix environment) the catalina.properties file, and add the following configuration setting:
    java.awt.headless=true
    On a local 10.6 OS X Server box, here's the path to that file:
    $ locate catalina.properties
    /Library/Tomcat/conf/catalina.properties
    $

  • Webaccess on SLES10: ERROR org.apache.catalina.startup.HostC

    Hi,
    How to solve:
    ERROR org.apache.catalina.startup.HostConfig - Error deploying web application directory gw
    java.lang.UnsupportedClassVersionError: com/novell/webaccess/WebAccessServlet (Unsupported major.minor version 49.0)
    While java -version shows:
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20061002a (SR3) )
    IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20061001 (JIT enabled)
    J9VM - 20060915_08260_lHdSMR
    JIT - 20060908_1811_r8
    GC - 20060906_AA)
    JCL - 20061002
    And the manual says:
    OES 2 Linux / SLES 10
    Apache 2.2 plus:
    Tomcat 5 or later
    Tomcat 5 is included with the Linux operating system.
    JRE 5 or later
    ModProxy Module
    And rpm -qa | grep java
    java-1_5_0-ibm-1.5.0_sr3-13.10
    With regards,
    Alex

    On 1/30/2012 1:56 AM, twslex3 wrote:
    >
    > Hi,
    >
    > How to solve:
    >
    > ERROR org.apache.catalina.startup.HostConfig - Error deploying web
    > application directory gw
    > java.lang.UnsupportedClassVersionError:
    > com/novell/webaccess/WebAccessServlet (Unsupported major.minor version
    > 49.0)
    >
    > While java -version shows:
    > java version "1.5.0"
    > Java(TM) 2 Runtime Environment, Standard Edition (build
    > pxi32dev-20061002a (SR3) )
    > IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32
    > j9vmxi3223-20061001 (JIT enabled)
    > J9VM - 20060915_08260_lHdSMR
    > JIT - 20060908_1811_r8
    > GC - 20060906_AA)
    > JCL - 20061002
    >
    > And the manual says:
    > OES 2 Linux / SLES 10
    > Apache 2.2 plus:
    > Tomcat 5 or later
    > Tomcat 5 is included with the Linux operating system.
    > JRE 5 or later
    > ModProxy Module
    >
    > And rpm -qa | grep java
    > java-1_5_0-ibm-1.5.0_sr3-13.10
    >
    >
    > With regards,
    >
    > Alex
    >
    >
    Sorry, you are not running Java 5. I know you think you are, and I
    don't know how to prove there is an older Java (probably 1.42) installed
    somewhere). But there is
    > java.lang.UnsupportedClassVersionError:
    > com/novell/webaccess/WebAccessServlet (Unsupported major.minor version
    > 49.0)
    This error can ONLY occur if the JVM is running too old a version. As it
    happens 49.0 is 5.0 (50 is 6.0, 51 is 7.0).
    java -version doesn't prove much. (that proves a version of java you
    have is 1.5, but not that tomcat is running it). Go to the tomcat dirs,
    find the bin directory and try running startup.sh directly there. IIRC
    it spits out the JAVA_HOME var it is using.

Maybe you are looking for

  • Error in select statement

    Hello experts, i am quite new to forms and i am trying to do a select based on a condition. but its giving me and error post_query begin if :EFT_EXCLUSION.retailer_num <> null and :EFT_EXCLUSION.bank_acct = null select retailer_name into :EFT_EXCLUSI

  • Analytic function problem

    Hi, I have a problem using analytic function: when I execute this query SELECT TSIUPSITE, TSIUPCEAN , TSIUPDATE, sum(TSIUPCA) TSIUPCA, TSIUPCTVA,TSIUPP4N,TSIUPPIEC, sum(TSIUPQTE) TSIUPQTE,sum(TSIUPQTEP) TSIUPQTEP, TSIUPMDIU,TSIUPMDar, sum(TSIUPCRIU)

  • Invoice Smartform - Printing sales tax rate

    Hey, I am having difficulties figuring out what changes I need to make in the print program RLB_INVOICE and the smartform LB_BIL_INVOICE in order to print out the sales rate tax. Thanks! Kas

  • Export Function Broken

    I have just upgraded to Garage Band 10.0.1 and am using System 10.9.1 on a MacBook 2.4 GHz Intel Core 2 Duo. I was able to export a song to disk once. Then I found I needed to make a change. I went back into the file to make the change, saved it and

  • Tried to do factory restore on 3G Ipod, now get a file folder with a ?

    I tried to do a factory restore on my 3G ipod for windows, during it, i got an error, and now the ipod just shows a folder with a question mark on it, and itunes won't recognize it - any suggestions on what to do?