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.

Similar Messages

  • 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

  • Class org.apache.catalina.ant.ListTask cannot be found

    i have this message when i was compiling one of the tutorial examples...
    i added JWSDP_HOME/apache_ant/bin and JWSDP_HOME/jwsdp-shared/bin... but i still get it... anybody any idea? should i use tomcat5? i am using tomcat 4 for now... is that why?
    thanks in advance...

    I faced the same problem, however my environment is setup a bit differently.
    1. Apache-Ant is installed in the directory: c:\opt\apache-ant-1.5.4
    2. Tomcat is installed in the directory: c:\opt\jakarta-tomcat-5.0.16
    Yes, i'm not using the one recommended by the JWSDP. Anyway, the error is due to the path/classpath not found. Hence, a few things has to be changed, in order for me to use the 2 above.
    1. Created a batch file, that I ran in a Windows environment to set my path to point to the Ant in my installation folder above
    SET ANT_HOME=c:\opt\apache-ant-1.5.4
    SET PATH=%PATH%;%ANT_HOME%\bin
    2. Override the JWSDP variable which is set within the Ant installation that comes with JWSDP. This can be set by creating a variable within the file C:\opt\jwstutorial13\examples\common\build.properties. Change the directory as reflected below (Ensure you use the forward slash)
    jwsdp.home=c:/opt/jwsdp-1.3
    3. Override the Tomcat settings in the build properties file (C:\opt\jwstutorial13\examples\common\build.properties). Ensure you use the forward slash
    catalina.home=c:/opt/jakarta-tomcat-5.0.16
    4. Lastly, override the targets.xml file within the web/common directory. (C:\opt\jwstutorial13\examples\web\common\targets.xml) to use the Tomcat installation of your own.
    <!--fileset dir="${jwsdp.home}/common/lib"-->
    <fileset dir="${catalina.home}/common/lib">
    This should allow you to compile the class using your preferred installation directory. Well, I admit its a lot of dabbling with the configuration files, but fits me fine as i'm also trying to make it work with a pre-existing installation of Tomcat and Ant.

  • Classname="org.apache.catalina.ant.StopTask"

    http://localhost:8080/manager/help/stop?path=%2FMyProjectFolder
    I am using a build xml and trying to use the StopTask method of the ant class.
    I am assuming the error I have is the fact that the %2F should be a / but it get converted behind the scenes.
    Can someone tell me what I must do to get this to work?
    <stop
                   url="${server.manager.url}"
                   username="${server.manager.admin}"
                   password="${server.manager.password}"
                   path="/${project.name}"
              />

    Where is the code where you actually invoke StopTask? Also, what is the actual error you are getting?
    - Saish

  • 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

  • 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.

  • 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 . . . . . . . . . .

  • Failed to load servlet Class: org.apache.jasper.servlet.JspServlet

    I am evaluating Weblogic 12c and is stuck in deployment of an application.
    My application is locally developed and is working fine in Oracle Glassfish. I have install glassfish and deploy application multiple time.
    In weblogic I can deploy the application successfully and the state= Prepared while Health=OK.
    When I access applicaiton from web browser, it says:
    Error 503--Service Unavailable
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.5.4 503 Service Unavailable
    The server.log is having messages similar to following:
    When processing WebService module 'SHMA'. Failed to load servlet Class: org.apache.jasper.servlet.JspServlet
    Ignoring: unable to load class:java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet at: weblogic.xml.schema.binding.util.ClassUtil.loadClass(ClassUtil.java:76)
    Jun 4, 2013 5:59:36 PM com.sun.xml.ws.model.JavaMethodImpl freeze
    WARNING: Input Action on WSDL operation RegisterOperation and @Action on its associated Web Method registerOperation did not match and will cause problems in dispatching the requests
    Any idea about how to fix this??
    Application is working fine in Glassfish 3.2
    I am having RHEL6-3 x86 with JDK 1.6u45 for Bea Weblogic 12c.
    Thanks

    Probably not the right forum. But you have the honour of being the first person to ask a specific WebLogic Server question here.
    The BEA dev-2-dev site still seems to be active. Try here hunting for a category here: http://forums.bea.com/index.jspa
    -steve-

  • 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

  • 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="" />

  • 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 . . . . . . . . . .

  • 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.

  • Use org.apache.catalina.FileLogger

    Hi All,
    Does any1 know of a neat way to implement the org.apache.catalina.logger.FileLogger class in a JSP ?
    I have referred to a number of sites and all I got was to configure the server.xml file's Context for the org.apache.catalina.logger.FileLogger class.
    But that's not what I want.
    What I want is to be able to implement the logging thru JSP code so that I can write my own errors in the log file.
    Any suggessions ??
    Thanx.
    Sherbir

    Hi,
    you must to try whit this
    in the web.xml
    <init-param>
         <param-name>FileLog</param-name>
    <param-value>/log/logfile.log</param-value>
    </init-param>
    <init-param>
         <param-name>log4j-init-conf</param-name>
    <param-value>log4j.properties</param-value>
    </init-param>
    in your class
    String directory = this.getServlet().getInitParameter("FileLog");
    System.out.print(directory);
    System.setProperty("log.directory", directory);
    String prefix = this.getServlet().getServletContext().getRealPath("/");
    String file = this.getServlet().getInitParameter("log4j-init-conf");
    System.out.println(prefix+file);
    if(file == null|| file.trim().length()==0 ||(new File(prefix+file).isFile())){
    System.out.println("ERROR: no se puede leer el archivo ");

  • J2sdkee 1.3 ERROR org.apache.catalina.connector.ResponseStream.flush(Respon

    Hi all
    Hope someone can help me out on this one.
    I can start the server ok but when I try and look at
    http://localhost:8000/index.html I get this exception in the command window:
    java.lang.NoSuchMethodError
         at org.apache.catalina.connector.ResponseStream.flush(ResponseStream.java:209)
         at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:245)
         at java.io.PrintWriter.flush(PrintWriter.java:120)
         at org.apache.catalina.connector.ResponseWriter.flush(ResponseWriter.java:125)
         at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBase.java:426)
         at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpResponseBase.java:228)
         at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(HttpResponseImpl.java:288)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1021)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1088)
         at java.lang.Thread.run(Thread.java:484)
    I have configured the JAVA_HOME, J2EE_HOME and J2EE_CLASSPATH correctly, as far as the documentation tells me. Would I be correct in assuming that I have a missing JAR file, if so any idea which one ?
    TIA Matt

    Solved my problem.
    After checking the CPATH, J2EE_HOME, and JAVA_HOME and finding no problem I found a post on a website that talked about a conflict with servlet.jar in the JAVA_HOME\jre\ext folder and with other versions of Java.
    So I reordered my PATH env variable and put the JDK1.3.1_01 paths at the beginning, as I have Oracle installed and Jbuilder and they have JDK's with them as well. I aslo removed several JAR's from JAVA_HOME\jre\ext (including servlet.jar)....
    and eureka I can now get the congratulations page.
    Not sure if Oracle or JBuilder are going to like it !!!
    regards
    Matt

  • In wich jar can i get this class org.apache.batik.dom.util.DOMUtilities

    please let me know in which jar file can i get this class and tell me the location for downloading
    org.apache.batik.dom.util.DOMUtilities;
    import org.w3c.dom.Document;

    Hai,
    I think you have to use the xml-apis.jar file from the batik project, which has the class org.apache.batik.dom.util.DOMUtilities.
    Yogesh.

Maybe you are looking for