Tomcat 4 on Linux

I am trying to move a App from a Sun Installation to Linux for testing purposes. Very thing has been copy from the Sun Server, but I cant get the App to load, I keep getting the following error, any one any ideas, thanks
2005-10-18 11:46:43 StandardHost[localhost]: Installing web application at context path /www.test.com from URL file:/data/web-data/webapps/test.test.com
2005-10-18 11:46:43 HostConfig[localhost] Error deploying web application directory www.test.com
java.lang.IllegalArgumentException: Context path /www.test.com must match the directory or WAR file name: test.ftse.com
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:280)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:788)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Please ask on-topic questions. This is a forum about JavaHelp.
http://forum.java.sun.com/forum.jspa?forumID=33 seems to be more appropriate.

Similar Messages

  • Error 500 when I'm running JSP with tomcat on Linux

    I'm using Tomcat on linux and when I'm running any JSP file I got this Error:
    Error: 500
    Location: /examples/jsp/snp/snoop.jsp
    Internal Servlet Error:
    javax.servlet.ServletException: sun/tools/javac/Main
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:484)
    Root cause:
    java.lang.NoClassDefFoundError: sun/tools/javac/Main
    at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
    at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java:484)
    What I'm doing wrong?
    thank you for help, Snir

    I've got the same problem but on a Win98 platform also in Solaris OS
    By copying the file JAVA_HOME/lib/tools.jar to the following path :
    JAVA_HOME/jre/lib/ext/
    another alternative is to set your classpath so that it point to the .jar files in your environnement variaoble
    ex under Win98:
    include this line in your autoexec.bat file
    SET CLASSPATH=.;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\lib\dt.jar
    under Linux:
    edit your .source that include environnment variables and add :"anOldPath:/jdk1.3/lib/tools.jar"
    run the source in your terminal window then you can run ./startup under solaris or startup.sh
    JAVA_HOME : c:\jdk1.3 or c:\jdk1.2.2 under win98
    /home/user/auser/jdk1.2.2/ on linux
    I hope that you encounter this problem.
    Hichem Hassainia.

  • How to setup Tomcat in Linux

    I want clear steps to setup Tomcat in Linux for running JSP and Servlet.
    Thanks in advance!

    [sigh]
    Is your Google broken?
    http://www.google.com/search?q=Install+Tomcat+on+Linux

  • Tomcat on Linux with10g using OCI Client UnsatisfiedLinkError: no ocijdbc10

    I'm having some issues configuring Tomcat with a 10g JDBC driver under Linux using the OCI thick client. When I attempt to get a database connection I get the following:
    java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
         java.lang.ClassLoader.loadLibrary(Unknown Source)
         java.lang.Runtime.loadLibrary0(Unknown Source)
         java.lang.System.loadLibrary(Unknown Source)
         oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:2854)
         oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
         oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:343)
         oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:135)
         oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
         oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
         org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:37)
         org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:290)
         org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:877)
         org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:851)
         org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
         org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:107)
         org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
         org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:446)
         org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:512)
         org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:543)
         org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:564)
         org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:114)
         org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:201)
    Now I've seen other instances of the above and they basically come down to making sure that the ojdbc14.jar file is in my classpath, and I thought I had that covered.
    Here's everything I've done:
    added ojdbc14.jar to $TOMCAT_HOME/common/endorsed
    added ojdbc14.jar to $TOMCAT_HOME/common/lib
    verified that ORACLE_HOME is defined: /app/oracle/product/10.1.0/client_1
    verified that LD_LIBRARY_PATH is defined: /app/oracle/product/10.1.0/client_1/lib
    added the following to the java commandline for Tomcat:
    -Djava.library.path="$ORACLE_HOME"
    the above -Djava.library.path didn't work so made the following change (which still didn't work)
    -Djava.library.path="$ORACLE_HOME"/lib
    my PATH variable includes both $ORACLE_HOME and $ORACLE_HOME/lib
    echo $PATH:
    /app/oracle/product/10.1.0/client_1:/app/oracle/product/10.1.0/client_1/lib
    I have no idea what else I am missing or if my Oracle client installation is just hosed.
    Any assistance would be appreciated.

    Use the thin driver.
    no ocijdbc10 in java.library.path

  • Character encoding problem using XSLT and Tomcat on Linux

    Hi,
    I have an application running on a Tomcat 4.1.18 application server that applies XSLT transformations to DOM objects using standard calls to javax.xml.transform API. The JDK is J2SE 1.4.1_01.
    It is all OK while running on a development enviroment (which is Windows NT 4.0 work station), but when I put it in the production enviroment (which is a red hat linux 8.0), it comes up with some kind of encoding problem: the extended characters (in spanish) are not shown as they should.
    The XSL stylesheets are using the ISO-8859-1 encoding, but I have also tried with UTF-8.
    These stylesheets are dynamicly generated from a JSP:
    // opens a connection to a JSP that generates the XSL
    URLConnection urlConn = (new URL( xxxxxx )).openConnection();
    Reader readerJsp = new BufferedReader(new InputStreamReader( urlConn.getInputStream() ));
    // Gets the object that represents the XSL
    Templates translet = tFactory.newTemplates( new StreamSource( readerJsp ));
    Transformer transformer = translet.newTransformer();
    // applies transformations
    // the output is sent to the HttpServletResponse's outputStream object
    transformer.transform(myDOMObject, new StreamResult(response.getOutputStream()) );Any help would be appreciated.

    Probably you need to set your LANG OS especific environment variable to spanish.
    Try adding this line:
    export LANG=es_ES
    to your tomcat/bin/catalina.sh, and restart tomcat.
    It should look like this:
    # OS specific support.  $var _must_ be set to either true or false.
    cygwin=false
    case "`uname`" in
    CYGWIN*) cygwin=true;;
    esac
    export LANG=es_ES
    # resolve links - $0 may be a softlink
    PRG="$0"
    .(BTW, keep using ISO-8859-1 encoding for your XSL)
    HTH
    Un Saludo!

  • Install and run blazeds-turnkey-3.2.0-3978 in Tomcat in Linux

    I Installed and ran the blazeds-turnkey-3.2.0-3978 distrubution in Tomcat 5.0.27 with JVM 1.5.0_22 in Window Vista successfully.
    Blazeds, ds-consolo, and samples applications are working fine. I'm not using the Tomcat with Flex Builder. The ds-consolo and samples are
    accessed through http://localhost:8080/ds-consolo and http://localhost:8080/samples. I did not change any of the configuration files
    (service-config.xml, ...) in the distribution package.
    Now I try to Install and run the same blazeds-turnkey-3.2.0-3978 distrubution in the same  Tomcat 5.0.27 with JVM 1.5.0_22 in a remote Linux server.
    I changed the configuration files as following:
    For blazeds application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name, and we use default port 80)
    {context-root} to blazeds
    For ds-consolo application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name,  and we use default port 80)
    {context-root} to ds-consolo
    For samples application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name,  and we use default port 80)
    {context-root} to samples
    It seems they were all deployed to the Tomcat OK, but when I tried to run the ds-consolo and samples apps, I got
    errors. Did I set the parameters, especially {context-root}, correctly? Am I missing anything?

    I Installed and ran the blazeds-turnkey-3.2.0-3978 distrubution in Tomcat 5.0.27 with JVM 1.5.0_22 in Window Vista successfully.
    Blazeds, ds-consolo, and samples applications are working fine. I'm not using the Tomcat with Flex Builder. The ds-consolo and samples are
    accessed through http://localhost:8080/ds-consolo and http://localhost:8080/samples. I did not change any of the configuration files
    (service-config.xml, ...) in the distribution package.
    Now I try to Install and run the same blazeds-turnkey-3.2.0-3978 distrubution in the same  Tomcat 5.0.27 with JVM 1.5.0_22 in a remote Linux server.
    I changed the configuration files as following:
    For blazeds application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name, and we use default port 80)
    {context-root} to blazeds
    For ds-consolo application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name,  and we use default port 80)
    {context-root} to ds-consolo
    For samples application, I changed the parameters in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port} to xyz.com   (xyz.com is the domain name,  and we use default port 80)
    {context-root} to samples
    It seems they were all deployed to the Tomcat OK, but when I tried to run the ds-consolo and samples apps, I got
    errors. Did I set the parameters, especially {context-root}, correctly? Am I missing anything?

  • Install and run blazeds-turnkey-3.2.0-3978 in Tomcat on Linux

    I Installed and ran the  blazeds-turnkey-3.2.0-3978 distrubution in Tomcat 5.0.27 with JVM  1.5.0_22 in my laptop (Window Vista Pro) successfully.
    Blazeds, ds-consolo, and  samples applications are working fine. I'm not using  Flex Builder for this. The ds-consolo and samples are
    accessed  through http://localhost:8080/ds-consolo and http://localhost:8080/samples.  I did not change any of the configuration files
    (service-config.xml,  ...) in the distribution package.
    Now I try to Install and run the same  blazeds-turnkey-3.2.0-3978 distrubution with the same Tomcat 5.0.27 with  JVM 1.5.0_22 in a remote Linux server.
    I changed the configuration  files as following:
    For blazeds application, I changed the parameters in all  the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port}  to xyz.com   (xyz.com is the domain name, and we use default port 80).
    {context-root}  to blazeds
    For ds-consolo application, I changed the  parameters in all the configuration files under WEB-INF/flex in  following way:
    {server.name}:{server:port} to xyz.com   (xyz.com  is the domain name,  and we use default port 80).
    {context-root} to  ds-consolo
    For samples application, I changed the parameters  in all the configuration files under WEB-INF/flex in following way:
    {server.name}:{server:port}  to xyz.com   (xyz.com is the domain name,  and we use default port 80).
    {context-root}  to samples
    It seems they were all deployed to the Tomcat OK,  but when I tried to run the ds-consolo and samples apps, I got
    errors.  Did I set the parameters in the configuration files, especially {context-root}, correctly? Am I  missing anything?

    If it is caused by a wrong port, I should get an error message or timeout.
    This is the services-config.xml file I'm using for Blazeds app
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service-include file-path="remoting-config.xml" />
            <service-include file-path="proxy-config.xml" />
            <service-include file-path="messaging-config.xml" />       
        </services>
        <security>
            <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
        </security>
        <channels>
            <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://infody.com/blazeds/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
            </channel-definition>
            <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
                <endpoint url="https://xyz.com/blazeds/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
                <properties>
                    <add-no-cache-headers>false</add-no-cache-headers>
                </properties>
            </channel-definition>
            <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://xyz.com/blazeds/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>true</polling-enabled>
                    <polling-interval-seconds>4</polling-interval-seconds>
                </properties>
            </channel-definition>
        </channels>
        <logging>
            <target class="flex.messaging.log.ConsoleTarget" level="Error">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>false</includeLevel>
                    <includeCategory>false</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                    <pattern>Service.*</pattern>
                    <pattern>Configuration</pattern>
                </filters>
            </target>
        </logging>
        <system>
            <redeploy>
                <enabled>false</enabled>
            </redeploy>
        </system>
    </services-config>
    There is no url or port settings in the other three Blazeds configuration xml file: remoting-config.xml, proxy-config.xml, messaging-config.xml
    Here is the services-config.xml file for ds-console app:
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <!--
                    REMOTING SERVICE
            -->
            <service id="remoting-service" class="flex.messaging.services.RemotingService">
                <adapters>
                    <adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/>
                </adapters>
                <!-- Runtime management console destination -->
                <destination id="RuntimeManagement" channels="amf">
                    <properties>
                        <source>flex.management.jmx.MBeanServerGateway</source>
                    </properties>
                </destination>
            </service>
        </services>
            <security>
                <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>              
            </security>
        <channels>
            <channel-definition id="amf" class="mx.messaging.channels.AMFChannel">
                <endpoint url="http://xyz.com/ds-console/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
                <properties>
                    <polling-enabled>false</polling-enabled>
                </properties>
            </channel-definition>
        </channels>
        <logging>
            <!-- You may also use flex.messaging.log.ServletLogTarget -->
            <target class="flex.messaging.log.ConsoleTarget" level="Error">
                <properties>
                    <prefix>[BlazeDS] </prefix>
                    <includeDate>false</includeDate>
                    <includeTime>false</includeTime>
                    <includeLevel>true</includeLevel>
                    <includeCategory>true</includeCategory>
                </properties>
                <filters>
                    <pattern>Endpoint.*</pattern>
                </filters>
            </target>
        </logging>
        <system>
            <redeploy>
                <enabled>true</enabled>
                <watch-interval>20</watch-interval>
                <watch-file>ds-console/WEB-INF/flex/services-config.xml</watch-file>
                <touch-file>ds-console/WEB-INF/web.xml</touch-file>
            </redeploy>
        </system>
    </services-config>

  • HTTP2302 error  with tomcat and linux environment

    We are using Sun Java(TM) System Web Server 7.0 with Tomcat 6.0.14 in Linux environment. We are frequently facing "Service Unavailable error" in the frontend . while verifying the logs we found the details as below :
    could you guinde what could be issue here ?
    In Webserver log the following error thrown many times
    func_exec reports: HTTP2302: Function jk_service aborted the request without setting the status code
    We are using the tomcat connector nsapi_redirector-1.2.26-sjsws6.1sp11.so in our environment
    nsapi.log
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [debug] jk_open_socket::jk_connect.c (448): socket TCP_NODELAY set to On
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [debug] jk_open_socket::jk_connect.c (548): trying to connect socket 30 to 160.254.92.190:8051
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [info] jk_open_socket::jk_connect.c (566): connect to 160.254.92.190:8051 failed (errno=111)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [info] ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket to (160.254.92.190:8051) (errno=111)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [error] ajp_send_request::jk_ajp_common.c (1359): (ajp13) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [info] ajp_service::jk_ajp_common.c (2186): (ajp13) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [error] ajp_service::jk_ajp_common.c (2204): (ajp13) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [error] jk_service::jk_nsapi_plugin.c (398): service() failed with http error 503
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [debug] ajp_reset_endpoint::jk_ajp_common.c (691): (ajp13) resetting endpoint with sd = 4294967295 (socket shutdown)
    [Thu Nov 19 06:22:11.602 2009] [20843:4074314640] [debug] ajp_done::jk_ajp_common.c (2522): recycling connection pool slot=0 for worker ajp13
    h1. Obj.conf
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    <If $uri =~ '^/$'>
    NameTrans fn="redirect" from="/" url="http://wikitest.pershing.com/confluence/" code="301"
    </If>
    NameTrans fn="assign-name" from="/confluence/*" name="servlet"
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    AddLog fn="flex-log"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    <Object name="servlet">
    ObjectType fn="force-type" type="text/html"
    Service fn="jk_service" worker="ajp13"
    </Object>

    Hi, The reason tomcat had to be used is that the software is bundled with tomcat. Hence we are in the following configuration:
    -Sun Web Server 7.0 update 5
    -Tomcat 6, Using JRE1.6
    -The server runs Linux.
    -As for the tomcat web server plugin, the 32-bit tomcat connector is downloaded from http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.26/sparc/
    With this configuration. seems when we refresh a page quickly, we get "service unavailable error". But if we only put web contents, the issue does not exist. Looks like the issue resides in the plugin....
    Any help is greatly appreciated

  • Tomcat over Linux

    hi
    i need to know which is better, to deploy JSP application over Windows or over Linux and why ?

    The Java runtime environment doesn't automatically give you access to the OS environment variables. You need to pass the environment variables that you want available in your runtime during startup. This is done using the "-D<name>=<value>" options (see java -help for full syntax).
    For Tomcat 4.0 you can pass parameters to the JRE by specifying the options to be passed in an environment variable named JAVA_OPTS (e.g. export JAVA_OPTS='-Dname=value'). For more info on this checkout the documentation at the beginning of the bin/catalina.sh in your Tomcat install directory.
    Hope this helps.

  • How to  configur Tomcat in Linux

    Hello,
    Want some help about how to conficure Tomcat5.1 in Lunux...I had worked alot in windows ...
    Thanks....
    Regards
    AaronN
    :)

    Go to the Tomcat home page. You will find good documentation there on how to do it.

  • Eclipse + Tomcat (Sysdeo) + linux

    Hi,
    eclipse 3.0.1
    tomcat 5.5.7
    jdk 1.5.0
    slackware 10.0
    sysdeo 3.0.0
    Tomcat starts from Eclipse fine. But when i try to stop
    it:
    =============================
    INFO: Server startup in 2361 ms
    Mar 12, 2005 11:34:54 AM org.apache.coyote.http11.Http11Protocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-8087
    Mar 12, 2005 11:38:03 AM org.apache.catalina.connector.Connector pause
    SEVERE: Protocol handler pause failed
    ========================
    It hangs for few minutes... and:
    =========================
    java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at java.net.Socket.<init>(Socket.java:365)
    at java.net.Socket.<init>(Socket.java:207)
    at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:460)
    at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:272)
    at org.apache.jk.server.JkMain.pause(JkMain.java:677)
    at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:208)
    at org.apache.catalina.connector.Connector.pause(Connector.java:933)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:491)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:561)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.jsp_classpath', '/home/lmierzej/jakarta-tomcat-5.5.7/webapps/servlets-examples/WEB-INF/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/shared/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/common/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-en.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-es.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-fr.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-ja.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/commons-el.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-compiler-jdt.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-compiler.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-runtime.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jsp-api.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-factory-dbcp.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-factory.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-resources.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/servlet-api.jar:/home/lmierzej/jakarta-tomcat-5.5.7/bin/bootstrap.jar:/home/lmierzej/jdk1.5.0_01/lib/tools.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/sunjce_provider.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/sunpkcs11.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/dnsns.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/localedata.jar')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('javax.servlet.context.tempdir', '/home/lmierzej/jakarta-tomcat-5.5.7/work/Catalina/localhost/servlets-examples')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.resources', 'org.apache.naming.resources.ProxyDirContext@dc024a')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1a70b8')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1de6817')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1de6817')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@83d37a')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextDestroyed()
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextDestroyed()
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.jsp_classpath', '/home/lmierzej/jakarta-tomcat-5.5.7/webapps/jsp-examples/WEB-INF/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/webapps/jsp-examples/WEB-INF/lib/jstl.jar:/home/lmierzej/jakarta-tomcat-5.5.7/webapps/jsp-examples/WEB-INF/lib/standard.jar:/home/lmierzej/jakarta-tomcat-5.5.7/shared/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/common/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-en.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-es.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-fr.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-ja.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/commons-el.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-compiler-jdt.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-compiler.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-runtime.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jsp-api.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-factory-dbcp.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-factory.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-resources.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/servlet-api.jar:/home/lmierzej/jakarta-tomcat-5.5.7/bin/bootstrap.jar:/home/lmierzej/jdk1.5.0_01/lib/tools.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/sunjce_provider.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/sunpkcs11.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/dnsns.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/localedata.jar')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('javax.servlet.context.tempdir', '/home/lmierzej/jakarta-tomcat-5.5.7/work/Catalina/localhost/jsp-examples')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.resources', 'org.apache.naming.resources.ProxyDirContext@1899213')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@d5276a')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@eb724')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@eb724')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@19ccba')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextDestroyed()
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextDestroyed()
    Mar 12, 2005 11:38:04 AM org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-8087
    ==================
    Anyone have idea why?
    I would appriciate any halp.
    Regards,
    lmierzej

    Hi,
    eclipse 3.0.1
    tomcat 5.5.7
    jdk 1.5.0
    slackware 10.0
    sysdeo 3.0.0
    Tomcat starts from Eclipse fine. But when i try to stop
    it:
    =============================
    INFO: Server startup in 2361 ms
    Mar 12, 2005 11:34:54 AM org.apache.coyote.http11.Http11Protocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-8087
    Mar 12, 2005 11:38:03 AM org.apache.catalina.connector.Connector pause
    SEVERE: Protocol handler pause failed
    ========================
    It hangs for few minutes... and:
    =========================
    java.net.ConnectException: Connection timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
    at java.net.Socket.connect(Socket.java:507)
    at java.net.Socket.connect(Socket.java:457)
    at java.net.Socket.<init>(Socket.java:365)
    at java.net.Socket.<init>(Socket.java:207)
    at org.apache.jk.common.ChannelSocket.unLockSocket(ChannelSocket.java:460)
    at org.apache.jk.common.ChannelSocket.pause(ChannelSocket.java:272)
    at org.apache.jk.server.JkMain.pause(JkMain.java:677)
    at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:208)
    at org.apache.catalina.connector.Connector.pause(Connector.java:933)
    at org.apache.catalina.core.StandardService.stop(StandardService.java:491)
    at org.apache.catalina.core.StandardServer.stop(StandardServer.java:717)
    at org.apache.catalina.startup.Catalina.stop(Catalina.java:586)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:561)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409)
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.jsp_classpath', '/home/lmierzej/jakarta-tomcat-5.5.7/webapps/servlets-examples/WEB-INF/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/shared/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/common/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-en.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-es.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-fr.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-ja.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/commons-el.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-compiler-jdt.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-compiler.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-runtime.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jsp-api.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-factory-dbcp.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-factory.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-resources.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/servlet-api.jar:/home/lmierzej/jakarta-tomcat-5.5.7/bin/bootstrap.jar:/home/lmierzej/jdk1.5.0_01/lib/tools.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/sunjce_provider.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/sunpkcs11.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/dnsns.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/localedata.jar')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('javax.servlet.context.tempdir', '/home/lmierzej/jakarta-tomcat-5.5.7/work/Catalina/localhost/servlets-examples')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.resources', 'org.apache.naming.resources.ProxyDirContext@dc024a')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1a70b8')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1de6817')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@1de6817')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@83d37a')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextDestroyed()
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextDestroyed()
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.jsp_classpath', '/home/lmierzej/jakarta-tomcat-5.5.7/webapps/jsp-examples/WEB-INF/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/webapps/jsp-examples/WEB-INF/lib/jstl.jar:/home/lmierzej/jakarta-tomcat-5.5.7/webapps/jsp-examples/WEB-INF/lib/standard.jar:/home/lmierzej/jakarta-tomcat-5.5.7/shared/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/common/classes/:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-en.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-es.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-fr.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/i18n/tomcat-i18n-ja.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/commons-el.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-compiler-jdt.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-compiler.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jasper-runtime.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/jsp-api.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-factory-dbcp.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-factory.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/naming-resources.jar:/home/lmierzej/jakarta-tomcat-5.5.7/common/lib/servlet-api.jar:/home/lmierzej/jakarta-tomcat-5.5.7/bin/bootstrap.jar:/home/lmierzej/jdk1.5.0_01/lib/tools.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/sunjce_provider.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/sunpkcs11.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/dnsns.jar:/home/lmierzej/jdk1.5.0_01/jre/lib/ext/localedata.jar')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('javax.servlet.context.tempdir', '/home/lmierzej/jakarta-tomcat-5.5.7/work/Catalina/localhost/jsp-examples')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.resources', 'org.apache.naming.resources.ProxyDirContext@1899213')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeRemoved('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@d5276a')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@eb724')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@eb724')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@19ccba')
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextDestroyed()
    Mar 12, 2005 11:38:04 AM org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextDestroyed()
    Mar 12, 2005 11:38:04 AM org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-8087
    ==================
    Anyone have idea why?
    I would appriciate any halp.
    Regards,
    lmierzej

  • JNI and Tomcat running on Linux

    Hi all!
    I have a small problem with calling a native library from my Tomcat running on a linux.
    The code is simple enough
    System.loadLibrary(myLibrary);I know that when libmyLibrary.so isn't in the java.library.path I get an error at this line. When it is in the path it goes past this line with out problems but on the next line
    myFunction(); that is a function within myLibrary i get something like
    java.lang.UnsatisfiedLinkError: myFunction()The thing is. This exact code when either executed in a standalone java application or from a Tomcat running on windows works with out problem. Tomcat on linux doesn't.
    myLibrary uses other libraries on a different path and my guess is that tomcat for some reason won't allow access to those. The security manager however doesn't give me any errors, nor does tomcat itself other than the UnsatisfiedLinkError.
    Anyone running Tomcat on linux and using native libraries or perhaps just knows alot about this?
    Please help. Thanks!

    Are you sure you are not running into a class loader issue? Does this occur the very first LoadLibrary call or after the first successfull call?
    It could be that your JNI or bridge has already been loaded by another class loader in the tomcat class loader hierarchy and this would result in the UnsatisfiedLinkError.
    Check out: http://www.onjava.com/pub/a/onjava/2004/06/30/classloader2.html

  • JDBC DRIVER LINUX TOMCAT APACHE

    Hello all
    I am woking on APACHE + TOMCAT + RH LINUX
    enviorment . I have a main page which calls another JSP on clicking to a button . That JSP makes connection with oracle 7.3.4 which is running on another machine whose enviorment is AIX 4.2 .
    whenever I clicked on button it access the JSP but it could nt find the driver which is classes12.zip in
    TOMCAT_HOME/lib directory and classpath is already set
    Error I am getting is driver not found in case the statement is
    DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
    and error is Document contain no data in case I change the above statement to
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Please help ?
    Thanks in Advance
    Avi

    Thanks for yor reply beattris
    Still it didbnt work Please have a look at the code
    <%
    System.out.println("1");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    System.out.println("2");
    conn = java.sql.DriverManager.getConnection("jdbc:oracle:thin:@blackadder:1521:ORCL","driver","norman");
    stmt = conn.createStatement();
    rs = stmt.executeQuery("SELECT FILE_STATUS FROM GOLFFILES WHERE GOLFFILE_ID = (SELECT MAX(GOLFFILE_ID) FROM GOLFFILES)");
    while (rs.next()) {
    varIsUpdated = rs.getString(1);
    rs.close();
    stmt.close();
    if (varIsUpdated.equals("START") && !(varIsUpdated.equals("LOADED"))) {
    conn.close();
    %>
    Above is the code it comes to JSP and it prints 1 which is above the class.forName statement but after that it wont print 2 .. which means it is able execute this statement
    One more thing do .zip files work on linux
    Please see if u can help ?
    Thanks
    KS

  • Problem on NetBeans 6.0.1 with Tomcat 6.0.14

    I had to uninstall and reinstall netbeans because at some point I always appeared a message in which I was reported that tomcat 8025 had already started.
    I closed and reopened the environment without result.
    In Server uninstall apache and try to put a standalone vers 5.5.25.
    It seems ok but does not appear in the list of available servers for my projects.
    If i tried to add tomcat 6.0.14 it's appear on the list but i obtain always the error:
    Starting of Tomcat failed, the server port 8025 is already in use.
    Deployment error:
    Starting of Tomcat failed, the server port 8025 is already in use.
    See the server log for details.
            at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:163)
            at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:104)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
            at sun.reflect.GeneratedMethodAccessor160.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:357)
            at org.apache.tools.ant.Target.performTasks(Target.java:385)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
            at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:277)
            at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:460)
            at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
    Caused by: org.netbeans.modules.j2ee.deployment.impl.ServerException: Starting of Tomcat failed, the server port 8025 is already in use.
            at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(ServerInstance.java:1270)
            at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1224)
            at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget(ServerInstance.java:1035)
            at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.start(ServerInstance.java:912)
            at org.netbeans.modules.j2ee.deployment.impl.TargetServer.startTargets(TargetServer.java:417)
            at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:140)
            ... 16 more
    BUILD FAILED (total time: 0 seconds)For the moment i have resolved by change the port from 8025 to 8026 but i don't like this solution. :-(
    While the problem on tomcat 5.5.25 that it's not appear on the list of servers for my projects remain.

    I'm resolved the problem on server list, simply specifying a project as j2ee 5 can not appear tomcat 5.5 is necessary to specify j2ee 1.4.
    While for the problem on port just in use I have noticed that sometimes the server remains it isn't close, even exiting from NetBeans, for the moment i use the workaround of closing the process tomcat of linux.
    I hope that on netbeans 6.1 the problem is solved (if it had solved the problem permgen would be even more pleased, but that apparently is a problem of java and then not entered the environment from development).

  • Why do I need to restart Apache and Tomcat every time a java file is change

    If a java file is changed and complied the changes are not reflected if Tomcat is not restarted.
    The settings in server.xml are as:
    <!-- Tomcat Manager Context -->
    <Context path="/manager" docBase="manager" debug="0" privileged="true"/>
         <Context path="/cf" docBase="cf" debug="0" reloadable="false"/>
    Here "cf" is my Application folder under webapps. The reloadable property when set to "true" for standalone Tomcat on Windows98 reflects the changes for compiled java files without restarting Tomcat. But on Linux 7.1 with Apache 1.3.19 and Tomcat 4.0.3 this is not working.
    Also tried out with Manager Application of tomcat-users.xml with reloadable="false" as well as reloadable="true",
    But when I reload the application using the command
    http://servername:8080/manager/reload?path=/appli.name
    It tells me that the application is reloaded but changes in the java file are still not reflected.
    Also when reloaded through Manager Servlet, Only my load-on-startup servlet is reloaded, but other java classes are not.
    Is it neccessary to execute this reload command from the server itself. I m executing it from a remote m/c. and have mapped the application with a domain name virtually.
    Is it the case with Tomcat on Linux with Apache. Or is something going wrong on my part.
    Can someone Help out plz.
    Regards,
    Rupali

    or you can "touch" your web.xml file.
    touch web.xmlor that command is for *nix systems, not sure what the Windows command is.  But basically, when you edit the web.xml, even if it means updating the last modified time, it will restart only your application and you should see the changes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Jdbc on tomcat problem

    Hi all,
    I'm experiencing a unusual problem in
    Apache Tomcat/4.1
    sdk:1.4.1_03-b02
    Linux 2.4.20-8 i386
    I've got an application running on commons-DBCP
    everything seems ok:
    - libs in the commons/lib folder
    - datasource in the context:
    <Resource name="jdbc/devel4_minePooledDS" scope="Shareable" type="javax.sql.DataSource"/>
    <ResourceParams name="jdbc/devel4_minePooledDS">
    <parameter>
    <name>url</name>
    <value>jdbc:oracle:thin:@10.10.45.4:1521:orlx</value>
    </parameter>
    <parameter>
    <name>driverClassName</name>
    <value>oracle.jdbc.driver.OracleDriver</value>
    </parameter>
    <parameter>
    <name>factory</name>
    <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
    </parameter>
    <parameter>
    <name>maxIdle</name>
    <value>30000</value>
    </parameter>
    <parameter>
    <name>maxWait</name>
    <value>500</value>
    </parameter>
    <parameter>
    <name>maxActive</name>
    <value>30</value>
    </parameter>
    <parameter>
    <name>password</name>
    <value>mine</value>
    </parameter>
    <parameter>
    <name>username</name>
    <value>mine</value>
    </parameter>
    </ResourceParams>
    - enabled in web.xml:
    <resource-ref>
    <description>Resource for DB connections</description>
    <res-ref-name>jdbc/devel4_minePooledDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    - used in this way:
    InitialContext initCtx = new InitialContext();
    DataSource ds = (DataSource)initCtx.lookup("java:comp/env/jdbc/devel4_minePooledDS");
    Connection conn = ds.getConnection();
    - the application simply doesnt start with the following errors, not so helpful, to be honest:
    2004-05-04 09:46:06 StandardWrapperValve[action]: Allocate exception for servlet action
    javax.servlet.ServletException: Servlet.init() for servlet action threw exception
         at org.apache.catalina.core.StandardWrapper.loadServlet(Unknown Source)
         at org.apache.catalina.core.StandardWrapper.allocate(Unknown Source)
         at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
         at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
         at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
         at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    ----- Root Cause -----
    java.lang.StackOverflowError
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
         at gnu.xml.pipeline.ValidationConsumer$ChildrenRecognizer.acceptElement(ValidationConsumer.java:1795)
    I didn't find anything similar
    any helop will be appreciated
    thanks in advance
    jc

    Very worrisome.
    Everything you posted looks right to me.
    I'd forward those errors to the Tomcat mailing lists. They look like serious problems with Tomcat on Linux.

Maybe you are looking for