Tomcat + JDK = Not Working

Thanks to all for at least viewing my topic...
First off, I am running Linux Mandrake 8.0, here are the specs:
Apache: Apache 1.3.19
JDK: jdk-1.3.1-fcs
Tomcat: tomcat-3.1-3k
I've been running apache as a stable server for, oh, about 3 months now. I am hosting multiple websites and one of my clients asked me, "Is JSP supported?" so I tried an example JSP page and it didn't work.
I installed jdk and then Tomcat but for some reason, the TOMCAT daemon won't startup as supposed to... It just says this:
[root@skynet conf]# service tomcat start
Starting tomcat:
[root@skynet conf]#
Doesn't start. So I don't know where the error is... these were installed in RPM's, not tar's.
Any help would be much obliged, email me: [email protected]
Jamie Savard
Elite Innovations

somebody please help me.
i have installed jdk1.2.2
Tomcat3.2.1
oracle 8.1.7
My path settings are
JAVA_HOME=c:\jdk1.2.1
TOMCAT_HOME=c:\tomcat\tom3.2.1
running on windows98
when i try to start Tomcat i get the following error
Using CLASSPATH:
Bad command or file name
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Unable to set CLASSPATH dynamically.
Note: To set the CLASSPATH dynamically on Win9x systems
only DOS 8.3 names may be used in TOMCAT_HOME!
Setting your CLASSPATH statically.
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Using CLASSPATH:
Bad command or file name
Please help me what i need to do. I'm new to this environment.

Similar Messages

  • Java JDK not working.

    Hello! I would like to program in Java on my new Arch Linux machine, but it doesn't seem to work. When I use the terminal javac works fine and compiles the file, but when I try running it with java, it does not work. Also, when one class calls another, javac ignores the fact that both files are in the same folder, and just gives errors. Please help!
    Thank you!

    Hm, sorry I have no idea then.
    I just made a minimal test with 3 classes myself but can't reproduce the problem.
    These are the JDK packages I have installed:
    $ yaourt -Qs jdk
    extra/jdk7-openjdk 7.b147_2.1-3
    Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - SDK
    extra/jre7-openjdk 7.b147_2.1-3
    Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs -Full Java runtime
    environment - needed for executing Java GUI and Webstart programs
    extra/jre7-openjdk-headless 7.b147_2.1-3
    Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - Minimal Java
    runtime - needed for executing non GUI Java programs

  • Tomcat does not work when using only netcfg to start network

    hello!
    for myself i wrote a script to connect automatically to a wireless network using netcfg. i do not start my network via the daemon (/etc/rc.d/network).
    i have a project and so i want to use tomcat. but it does not work correct, i can start it, but i can't connect via "localhost:8080". when i start my network using the network daemon it works! apache runs fine, but i need tomcat!
    can someone help me please?
    thx, marv

    where is "lo" enabled in the network script? i did not found it and/or i have no idea which function enables it.
    can you help me please? can i just copy the lines of code to my own script and it will enable lo?
    mfg iggy

  • Creating a link to text file in a tomcat server not working in JSP webapp

    I am using netbeans to create an web application within my desktop, and then I load the build/web folder to a tomcat server to test the application. Everything works fine. However, when I try to link up my JSP pages to text files (.txt) create by the application on the server, I seem to be getting files that might be kept in a terminal.
    When I get the Real path of the servlet context, I find that it is to a C:\ type file rather than a //hostname type of directory. So obviously those files are not being reached.
    Does anybody know how to deal this problem?

    There are a number of ways to get to the Flash Global Security settings dialog.
    My favourite way is just to double click on a Captivate SWF (not the HTM file) to open it in a web browser, then right click on the playing screen to get the Flash context menu.  On the context menu, click the Global Settings option.
    In the web page that opens, click the link on the left to Global Security Settings.
    Add the folder or drive location of your published Captivate content to the Trusted Locations.

  • Debugging LCDS Data Management from Flexbuilder3 on Tomcat does not work

    I have a sample with Data Management and when i use it on my tomcat it works fine. But i can´t debug it from flexbuilder 3. When i start it from the flexbuilder i get the connection and then i crashed with "No registered fault handler or token responder - throwing an error for destination:"
    It is the same tomcat i use to run standalone.
    is it a problem with the context.xml?
    [SWF] /flexine/dataService_wt2.swf - 1.422.965 bytes after decompression
    'cds-consumer-sandwich-null' consumer set destination to 'sandwich'.
    Configuration for destination='sandwich':
    New DataService for destination: sandwich
    DataService.fill() called for destination: sandwich with args: []
    '4A853118-F24B-5FE2-BF01-FCDFF6C93161' producer set destination to 'sandwich'.
    Creating a new independent data store for destination: sandwich
    Adding data service: sandwich to the data store: null initialized: false
    Finished validating destination: sandwich loadOnDemand/paged associations: [] sub-types:
    data store: null is initialized
    'my-rtmp' channel endpoint set to rtmp://localhost:2038
    'my-rtmp' channel settings are:
    'ds-producer-sandwich' producer sending message '52AF7949-7B16-7C8E-3B87-FCDFF6F8D3A2'
    'my-rtmp' channel got connect attempt status. (Object)#0
      code = "NetConnection.Connect.Success"
      description = "Connection succeeded."
      details = (null)
      DSMessagingVersion = 1
      id = "E35ECC7A-710F-4D9B-A507-330FDD83B283"
      level = "status"
      objectEncoding = 3
    'my-rtmp' channel is connected.
    'my-rtmp' channel sending message:
    (mx.messaging.messages::CommandMessage)
      body=(Object)#0
      clientId=(null)
      correlationId=""
      destination="sandwich"
      headers=(Object)#0
      messageId="CDC66303-F24B-1E87-4103-FCDFF8211298"
      operation="client ping"
      timeToLive=0
      timestamp=0
    'my-rtmp' channel sending message:
    (mx.data.messages.DataMessage)
      messageId = '52AF7949-7B16-7C8E-3B87-FCDFF6F8D3A2'
      operation = fill
      destination = sandwich
      identity = (null)
      body = []
      headers = {}
    'ds-producer-sandwich' producer connected.
    'ds-producer-sandwich' producer acknowledge of 'CDC66303-F24B-1E87-4103-FCDFF8211298'.
    'ds-producer-sandwich' producer acknowledge of '52AF7949-7B16-7C8E-3B87-FCDFF6F8D3A2'.
    'ds-producer-sandwich' producer fault for '52AF7949-7B16-7C8E-3B87-FCDFF6F8D3A2'.
    Dispatching fault event for destination: sandwich
    No registered fault handler or token responder - throwing an error for destination: sandwich
    [RPC Fault faultString="There was an unhandled failure on the server. javax/transaction/SystemException" faultCode="Server.Processing" faultDetail="null"]
         at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()[C:\depot\flex\branches\enterprise_corfu_b2\frameworks\projects\data\src\mx\data\ConcreteDataService.as:2401]
         at DataListRequestResponder/fault()[C:\depot\flex\branches\enterprise_corfu_b2\frameworks\projects\data\src\mx\data\ConcreteDataService.as:6970]
         at mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
         at NetConnectionMessageResponder/statusHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\NetConnectionChannel.as:523]
         at mx.messaging::MessageResponder/status()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\MessageResponder.as:222]

    Here's an update for future victims doing google searches :-)
    The issue appears to be related to compiz. When I'm doing basic 2D desktop with metacity everything simply rocks: the machine suspends/resumes with no issues.
    When compiz is enabled, there is about 10 second delay after resume, during which the screen is black and you better not touch the keyboard! If I sit and wait for 8-12 seconds, the dark screen goes away GDM login dialog shows up. But if I touch the keyboard or the touchpad, it will either freeze or become exceptionally slow.

  • JDBC in tomcat 4 not working

    hi
    how i can set in tomcat 4 JDBC ?
    i have applet->servlet->database
    it works in tomcat 3 but not in tomcat 4
    what i need wrote in servel.xml and does i need put my jdbc driver in it ???
    thanks

    Just a guess -- Make sure the classpath to jdbc driver is correct. In Tomcat 4, you may need to set the jdbc classpath in catalina.sh.

  • Tomcat server not working for OTM

    Hi
    we are using Oracle Transportation management
    we are getting the following error when i checked in error.log of apache
    [Thu May 14 12:43:22 2009] [error] [client 10.201.51.16] File does not exist: /opt/otm/apache/htdocs/images/themes/themesswanorange/dis-btn-bg.gif, referer: http://appsnet1.wiprosupport.com/GC3/LocationCustManagement/1242322904715?management_action=edit&manager_layout_gid=LOCATION&step=LocationRoles
    the following error is shown in mod_jk.log
    [Thu May 14 10:15:54 2009] [error] ajp_service::jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13 failed
    [Thu May 14 10:16:10 2009] [error] ajp_service::jk_ajp_common.c (1758): Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13 failed
    can you please help to resolve this issue,as its on high priority.
    Regards,
    pradeep

    Well this forum is neither for Tomcat and nor for OTM. This is Oracle Application Server forum. To get fast and meaningful response post in the appropriate forum. I am not sure which one (as I am not at all familiar with OTM) but you can try looking in one of either EBS or Industries forums:
    http://forums.oracle.com/forums/category.jspa?categoryID=3
    http://forums.oracle.com/forums/category.jspa?categoryID=150

  • Tomcat does not work all of the sudden

    I intstalled Tomcat about 4 months ago, and since that time it has been working correctly. Today, it decided that it wasn't going to work and when I try to load http://localhost:8080 after starting Tomcat I get the following error message only:
    HTTP Status 500 - No Context configured to process this request
    type Status report
    message No Context configured to process this request
    description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.

    well, now my application works when I type the full path name, but I still get the same error when I try to run tomcats home page. I don't understand the problem, and furthermore don't really care so long as I can run my own applications.

  • Tomcat 4.1.x not working under JDK 1.2.2

    We are trying to test our web application on all versions of JDK starting from 1.2.2. We use Tomcat as the servlet engine and after upgrading from Tomcat 3.2.x to 4.1.24 (we've tried 4.1.18 as well) we have noticed that the new Tomcat does not start under JDK 1.2.2, see command line output below. We've tried on several machines and it fails with the same Exception. Has anyone tried running Tomcat 4.x on JDK 1.2.x? We find it hard to believe that a product like Tomcat would fail to support JDK 1.2, so any information would be appreciated.
    C:\Java\jakarta-tomcat-4.1.24\bin>catalina.bat run
    Using CATALINA_BASE: ..
    Using CATALINA_HOME: ..
    Using CATALINA_TMPDIR: ..\temp
    Using JAVA_HOME: c:\java\jdk1.2
    Bootstrap: Class loader creation threw exception
    java.lang.IllegalMonitorStateException: current thread not owner
    at org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java, Compiled Code)
    at org.apache.catalina.loader.StandardClassLoader.<init>(StandardClassLoader.java, Compiled Code)
    at org.apache.catalina.startup.ClassLoaderFactory.createClassLoader(ClassLoaderFactory.java, Compiled Code)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java, Compiled Code)

    I had the same problem.
    No Tomcat 4.1.x is not working under JDK1.2.2.
    It has something to do with a difference in byte code of the classes between jdk1.2.2 and jdk 1.4.
    I am running now on J2SDK1.4.1_03 and have no problems any more

  • Working on Tomcat Server but same code is not working on oc4j server of E-B

    Hello,
    I have a jsp page that is working properly in tomcat 6 server but when i deployed it on oc4j server 10.1.3.1.0 than it is not working. I am confuse.
    ERROR MESSAGE:
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    CODE JSP:
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <!DOCTYPE html PUBLIC
         "-//W3C//DTD HTML 4.01 Transitional//EN"
         "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta
         http-equiv="Content-Type"
         content="text/html; charset=ISO-8859-1" />
    <meta
         name="author"
         content="MAX" />
    <title>Test Register Page</title>
    <link
         rel="stylesheet"
         href="css/style.css"
         type="text/css"
         media="screen" />
    </head>
    <body>
    <div id="content">
    <form name="demo" onsubmit="return validate_form()" action="RegisterServlet" method="post">
    <fieldset>
         <legend>VIEW USER</legend>
         <table border=1>
              <tr>
                   <td width="200px" align="center"><b>Bank Name</b></td>
                   <td width="200px" align="center"><b>User Name</b></td>
              </tr>
              <%
                        Connection connection = null;
                        String connectionURL = "jdbc:oracle:thin:@10.38.60.55:1521:edwdevdb";
                        ResultSet rs = null;
                   Statement statement = null;
                   try
                        // Get a Connection to the database
                        Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
                        connection = DriverManager.getConnection(connectionURL,
    "scott", "tiger");
                        statement = connection.createStatement();
                        rs = statement.executeQuery(" SELECT user_info.USER_KEY,user_info.FI_ID,d_fi.fi_nm, user_info.User_Name from user_info INNER join d_fi on user_info.fi_id = d_fi.fi_id order by fi_nm ");
                        //Set 'authentication' flag
                        while (rs.next())
         %>
                        <tr>
                                  <td width="200px"><a href="SearchUser?bankname=<%=rs.getString("USER_KEY")%">> <%= rs.getString("FI_NM")%></a> </td>
                                  <td width="200px"><%= rs.getString("User_Name")%></td>
                        </tr>
         <%                    
                   catch(SQLException e)
                   finally
                                            rs.close();
    statement.close();
    connection.close();
         %>
         </table>
         <label> </label>
    </fieldset>
    </form>
    </div>
    </body>
    </html>
    WEB xml:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <web-app     xmlns="http://java.sun.com/xml/ns/javaee"
                             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                             xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5">
    <description>Register</description>
    <display-name>Register</display-name>
    <!-- Declare Servlets -->
    <servlet>
         <servlet-name>BaseServlet</servlet-name>
         <servlet-class>BaseServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>CategoryServlet</servlet-name>
         <url-pattern>/Category</url-pattern>
    </servlet-mapping>
    <!-- Welcome File List -->
    <welcome-file-list>
         <welcome-file>login.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    Edited by: bappy007 on Oct 10, 2010 1:57 AM
    Edited by: bappy007 on Oct 10, 2010 1:58 AM

    ERROR IN LOG FILE:
    10/10/10 15:18:55.843 edwportal: Servlet error
    java.lang.NullPointerException
         at test.jspService(_test.java:93)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.1.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:619)

  • Runtime.getRuntime.exec() not working when Tomcat is made a windows Sevice

    Hi,
    I am working on a web application which launches a exe file on subitting the form. I am using Apache Tomcat 4.0.6 to run the web application. Initially Tomcat was not made a windows service on my machine and when I launch an exe it is launching without any problems. I used the following command to launch the exe file:
    <code>
    Process p = Runtime.getRuntime().exec("C:\\Program Files\\Mercury Interactive\\WinRunner\\arch\\wrun.exe" + strWROptions);
    </code>
    The above command launches WinRunner on the local machine.
    without using tomcat if I just compile and run a test program with this command, the exe is launching perfectly. But, Once I made tomcat a windows service on my machine the exe is not launching.
    Also, a process is being created in the windows task bar named wrun.exe once I submit the form but WinRunner is not lauching on the desktop.
    Can any one please help and suggest me.
    Thanks,
    Ramesh

    The version of Java I am using is 1.4.2. Even without
    using the string array as you mentioned, the exe
    (wrun.exe) is launched on my desktop if I don't run
    Tomcat as a windows service. But the problem arises on
    making it a service :-(
    That is strange because going by the documentation what you have been using should never work. I can't test it though, I'm not on MSWindows at the moment..
    Now, when I use this string array convention, I am
    getting an error saying "The tool could not launch..
    some error occured".
    That's not a Java error message, it must come from WinRunner. This means that you have succesfully started WinRunner (great!) but something else is wrong; maybe the parameters you pass to it are incorrect.
    How would you run it on the command line? Like this?wrun -t "D:\L5_QE\L5A\Initial" -create_text_report on -runThat line executes the wrun program and passes it five parameters, not three. The first parameter is "-t", the second "D:\L5_QE\L5A\Initial", the third "-create_text_report", the fourth "on", and the fifth "-run". The array of strings that corresponds to that line isString[] command = {"C:\\Program Files\\Mercury Interactive\\WinRunner\\arch\\wrun.exe",
                    "-t", "D:\\L5_QE\\L5A\\Initial",
                    "-create_text_report", "on",
                    "-run"};

  • Why Oracle 8i is not Working with JDK 1.3

    Why Oracle 8i is not Working with JDK 1.3 by using JDBC.

    try this
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:"somedsn","scott","tiger");
    I am using this for Oracle, it is working for me.
    Uma
    Java Developer
    http://www.globalleafs.com

  • CrossContext and WAR unpacking not working in the same context Tomcat 4.0.6

    I need an application to be able to crossContext so I entered a context tag in my server.xml file.
    However when I added the entry tomcat no longer unpacked the .war file. If I changed the path value in the context tomcat unpacked the war but then the crossContext would not work.
    Is there a way make the two work together?
    Here is a copy of the entries and what they achieve:
    <Context path="myApp" docBase="myApp" debug="0" crossContext="true"/> this will unpack the war but the app will not crossContext.
    <Context path="/myApp" docBase="myApp" debug="0" crossContext="true"/> will allow the app to crossContext but if I update the war and remove the myApp dir under webapps it will not extract the war file.
    Incidently the host tag has unpackWARs="true"
    Ideas anyone? It's a hassle to start the server twice each time, one to unpack and 2 to allow the crossContext.

    PS: Does anyone know how to edit your email address in your profile? I can't seem to do it through the settings link.

  • Works in Tomcat but not in iPlanet Web server

    I have a servlet which first generates a form which has one input field, when user fills in the text field and submits the form it is posted to same servlet. The posted data is processed and redirected to another servlet. Everything works fine on Tomcat3.2 but fails to work on iPlanet web server and throws HTTP Error 500.
    Can someone help me with this? What might be the problem?

    Don't know whey it worked in Tomcat and not in iPlanet, but the reason is because I missed '/' in getRequestDispatcher() methoc
    public RequestDispatcher getRequestDispatcher(java.lang.String path)
    The pathname must begin with a "/" and is interpreted as relative to the current context root.

  • System.out.println not working in Tomcat-4.1.x

    System.out.println not working in Tomcat-4.1.24. Any settings has to be enabled??? I am using tomcat for Solaris

    I think u can use ServletContext.log() to output info instased.

Maybe you are looking for