Re: What to put into JAVA_HOME on Windows xp
Move it up one level, in your case: C:\JDK1.4\AppServer\jdk On 9/25/05, Markus Hapke [EMAIL PROTECTED] wrote: Hello, I just installed tomcat 5.0.28 successfully. Then tested the samples in C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked. Thed tried to test a .jsp of my own- getting the error msg in the MS Internet-Explorer: === BEGIN of error Msg HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP org.apache.jasper.compiler.DefaultErrorHandler.javacError( DefaultErrorHandler.java:97) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java :346) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler (CompilerAdapterFactory.java:106) org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935) org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :511) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :295) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. === END of error Msg= == I set the environment entry of JAVA_HOME to C:\JDK1.4\AppServer\jdk\bin Is that correct? OK, nobody of you could know where I have my J2EE (1.4) : it is 'mounted' under: C:\JDK1.4\AppServer and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin Is my entry of the JAVA_HOME correct? Is there another error? Thanx in advance, Markus -- ,, 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Art D'Alessandro
Re: Multiple SSL certificate on tomcat
You may have multiple certs, but each cert must be contained within it's own keystore file.. You also must have each cert on it's own host IP, as noted below, each cert is bound to 443 on 10.1.1.1 http://10.1.1.1 and 10.1.1.2... snipplet from server.xml: Connector port=443 maxThreads=100 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS maxKeepAliveRequests=1 keystoreFile=/usr/tomcat/conf/certs/firstcert.kdb address=10.1.1.1 http://10.1.1.1 / Connector port=443 maxThreads=100 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false sslProtocol=TLS maxKeepAliveRequests=1 keystoreFile=/usr/tomcat/conf/certs/secondcert.kdb address=10.1.1.2 http://10.1.1.2 / On 9/20/05, Arvind Saxena [EMAIL PROTECTED] wrote: Hi, I would like to know more about how the multiple Verisign certificate will work with Tomcat 5.0.25. I'v taken 2 diffrent Verisign SSL certificate for tomcat. Example: [1] a.mysite.com http://a.mysite.com [2] b.secondsite.com http://b.secondsite.com After that i'd imported above certificate to keystore. When I'm calling https://a.mysite.com:8443 or https://b.secondsite.com:8443 == I'm getting Tomcat default certificate, which is I'd created as per SSL-howto docs. can we host multiple SSL id Like Mircosoft IIS? regards __ Yahoo! for Good Donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Art D'Alessandro
Re: Tomcat5.5 stops responding after sevral days
Try adding the LD_ASSUME_KERNEL from the tomcat readme.. Tomcat on Linux: GLIBC 2.2 / Linux 2.4 users should define an environment variable: export LD_ASSUME_KERNEL=2.2.5 Redhat Linux 9.0 users should use the following setting to avoid stability problems: export LD_ASSUME_KERNEL=2.4.1 On 9/16/05, Brian Cook [EMAIL PROTECTED] wrote: I am running Tomcat 5.5 and about every 2 - 5 days it stops fully responding. Meaning that nothing will load in a browser when accessing Tomcat but the browser will never time out either. It will just sit there waiting forever. It happens to all of the modules loaded in webapps as well as to the admin and deployment modules. Nothing in Tomcat will respond. Stopping and then restarting Tomcat resolves the problem for 2 -5 days until it happens again. Catalina.out does not show any errors, exceptions, or warnings before it happens. Netstat only shows 5 - 10 connections well under the max set for any of the modules. Top shows the processor 0% userd with 50 - 100 MB of RAM and lots of swap space available. The database logs also do not report any errors. Usually when I see the symptom of Tomcat not responding but not timing out either. It is caused by an in accessible data base. But in those instances the connection failure is logged in catalina.out, it only effects the one module that can not get to its data base. This lead me to wonder if Tomcat was some how losing its connection to the data base that stores the realm user data.(NOTE: This instance of Tomcat is configured to access MySQL to get user realm info) But if that were the case I would have assumed the failed connection would be logged in Catalina.out. Just in case I added ?autoReconnect=true to all of the DB URLs but it has not helped. I could use some ideas of other things I should be looking into and or options I should be setting to log more details. Thoughts any one? I have included system details and the server.xml file below OS : Redhat 9.0 JVM : 1.5.3 Tomcat : 5.5 MySQL : 4.1.8 server.xml !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN !-- Comment these entries out to disable JMX MBeans support used for the administration web application -- Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ !-- Global JNDI resources -- GlobalNamingResources !-- Test entry for demonstration purposes -- Environment name=simpleValue type=java.lang.Integer value=30/ !-- Editable user database that can also be used by UserDatabaseRealm to authenticate users -- !-- Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / -- !-- Resource name=UserDatabase auth=Container type=javax.sql.DataSource description=User database that can be updated and saved username=root password=printtime!! driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://192.168.2.3/PTOnlineUsers?autoReconnect=true maxActive=6 maxIdle=2 / -- /GlobalNamingResources !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Catalina !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 5 documentation bundle for more detailed instructions): * If your JDK version 1.3 or prior, download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
Re: Failed JDBC connection hangs Tomcat
What version of the JTDS are you referring to, I know they recently released 1.0 code... On Sun, 30 Jan 2005 20:06:07 -0800, Hari Mailvaganam [EMAIL PROTECTED] wrote: The JTDS driver can cause the hanging you described - this has occured in a test we did on Win 2k, SQL Server 2k, 1.5 JDK. reagrds, Hari Mailvaganam On Sun, 30 Jan 2005 08:39:50 +0200, Igor [EMAIL PROTECTED] wrote: We have the same problem, that described in http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg58799.html There is ServletContextListener in our application, that schedule two tasks for repeated fixed rate execution on context initialization (Timer.scheduleAtFixedRate). First task is executed every minute. It queries MS SQL server, second task is executed every hour. If MS SQL server goes down, first task tries to use connection to database. After this Tomcat may hang: when user tries to download a page, he or her will wait for a long time (more that 1 day). At the same time second taks (that is executed every hour) works as it was expected: there are corresponding entries in log file. First task is executed in separate thread, and I do not understand how can it hang whole tomcat (at least one context). We use JDK 1.5, tomcat 5.0.28. The same problem was on 1.4.2. Both for MS and JTDS drivers :-( Does somebody know how can I prevent tomcat from hang in such situations? Thank you in advance, Igor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Art D'Alessandro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]