Tomcat 4.0.1 and Apache
I have read documentation that come with Tomcat 4.0.1 distribution. But i found a little concrete example of how to use Tomcat 4.0.1 with Apache 1.3 web server. Please tell me where can I read another documentation that come with concrete example of httpd.con and another file configuration. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Caching of JSPs within Tomcat
Hi, I have some trouble with the reload of JSPs. Basic data is - Win XP, Apache 1.3.xx, Tomcat 4.01, IE 6.0 (IE6 with the option to reload the page at each access) Suppose You have an JSP page prj_.jsp that includes another JSP page by using a tag like this: %@ include file=prj_0007.inc % If I have changed the file prj_0007.inc and I press Reload in the browser. The changes will have no effect (are not loaded into the browser). I have to change also the file prj_.jsp (by adding a blank line to the file to change the files modification date). How can I disable the caching of the JSPs within tomcat so that changes in included files have their effect? Greetings and thank you for your help Michael Timpe Melchiorstr. 24 50670 Köln eMail: [EMAIL PROTECTED]
Re: TC 4.0.1/SAXParserFactory.newInstance() error
Hi Mark, 1/13/02 3:00:50 AM, Mark [EMAIL PROTECTED] wrote: I thought CLASSPATH isn't used for locating jars in TC 4.0? You're right, it is not. I'd meant to say that there's a jaxp implementation being loaded somehow. In any case, I do use the startup scripts that come with Tomcat and was already through step 3 of your suggestions when I originally posted the question (eg. no jaxp/crimson available in any Tomcat or $JAVA_HOME directories, and The TC version of xerces.jar in common/lib). To answer your question, no my app isn't bundling xerces or crimson. I'm not sure why this exception is being thrown to begin with... Since the tomcat startup script sets aside the CLASSPATH env. variable, and assembles together one of it's own, the only places from where jars are going to be loaded from are: 1. The $JAVA_HOME/jre/lib/ext directory. 2. The tomcat folder hierarchy For the first, point, please check that you indeed have nothing in the $JAVA_HOME/jre/lib/ext directory. It may even be something silly like having two JDKs installed, and you thinking you're using one, where as you might be using the other. For the second point, 1. List out all jar files, and see if there's any repeat xerces or jaxp or crimson jar from somewhere. 2. If this doesn't work, then try setting up a fresh Tomcat 4.0.1 directory and running you app in this newly setup tomcat. Lastly, if all this doesn't help, post your complete StackTrace. Someone might be able to help. Sriram _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat 3.3, req.getRemoteAddr() - only returns 127.0.0.1
Background: I'm working on a utility to administer logged on clients for a power monitoring system, using java applets/servlets/JSP. Each clients IP address, user name, logon date are displayed for the administrator. Recently, I upgraded from Tomcat 3.2.3 standalone to Tomcat 3.3 standalone, running on Win2000/NT4.0 and Unix Tru64 version 4 and 5. Problem: The clients IP addresses are not displayed correctly using req.getRemoteAddr. It only returns 127.0.0.1 for all clients (and localhost from getRemoteHost). This worked fine in Tomcat 3.2.3. It also works fine using Apache 1.2 and Tomcat together (both with mod_jserv for Tomcat 3.2.3 and mod_jk for Tomcat 3.3), but I want to run Tomcat standalone. As a next step, I will try this on Tomcat 4.0.1. I have studied the Tomcat manuals, looked in this forum and compared the configuration in 3.2.3 with 3.3 without finding any clue to fix this! Any Ideas? Thanks in advance /Per _ Chatta med vänner online, prova MSN Messenger: http://messenger.msn.se -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: apache mod_auth and tomcat
That depends on whether you are using mod_webapp or not. IMHO it would be better to simply comment out the connector that services port 8080 from server.xml. That way, AJP13 protocol for mod_jk is still available (if that's what you use). --David On Friday 11 January 2002 05:45 pm, you wrote: You could completely disable the Standalone container in the server.xml. Leave the warp-connected apache container and remove everything in the standalone one. Then there will be no port :8080. That's just one idea though. Charlie -Original Message- From: W. Wood Harter [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 5:43 PM To: [EMAIL PROTECTED] Subject: apache mod_auth and tomcat I've searched the archives and didn't find how to use apache mod_auth for basic authorization to protect tomcat pages. My problem is that apache is on port 80 and tomcat is on 8080. If I protect a link at http://myhost:80/myapp/ with Apache's mod_auth, a smart user could just use http://myhost:8080/myapp. Anyone know how to configure Tomcat to only speak with my Apache server? If this is impossible, I guess I could use Tomcat, but I have a database already populated with unix crypt passwords which work fine with mod_auth_mysql. I don't want to have to change my password storage system. Thanks, Wood -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomcat 3.3. apache did not call jk_handlers
Hello After installed tomcat 3.3 final on Mandrake 7.2. the localhost:8080 works well but I can not go through it from apache (Apache-AdvancedExtranetServer/1.3.14 ) So I try it on mandrake 8.0 and with same configuration. It works well. After set the JkLogLevel to debug and compare the mod_jk.log. then check the mod.jk.c I found: jk_translate has been called by apache and return match and worker name, but apache did not call jk_handlers. Could sb tell me how can I fix it or how to debug it. Thanks Lix There is the apache -V: Server version: Apache-AdvancedExtranetServer/1.3.14 (Linux-Mandrake/2mdk) Server built: Oct 24 2000 10:55:49 Server's Module Magic Number: 19990320:10 Server compiled with -D EAPI -D EAPI_MM -D EAPI_MM_CORE_PATH=/var/run/mm -D HAVE_MMAP -D HAVE_SHMGET -D USE_SHMGET_SCOREBOARD -D USE_MMAP_FILES -D MMAP_SEGMENT_SIZE=32768 -D USE_FCNTL_SERIALIZED_ACCEPT -D USE_QSC -D FAST_TIME -D NO_GRACEFUL -D USE_QUICK_LOG -D USE_STAT_CACHE -D HTTPD_ROOT=/etc/httpd -D SUEXEC_BIN=/usr/sbin/suexec -D DEFAULT_PIDLOG=/var/run/httpd.pid -D DEFAULT_SCOREBOARD=/var/run/httpd.scoreboard -D DEFAULT_LOCKFILE=/var/run/httpd.lock -D DEFAULT_XFERLOG=/var/log/httpd/access_log -D DEFAULT_ERRORLOG=/var/log/httpd/error_log -D TYPES_CONFIG_FILE=conf/mime.types -D SERVER_CONFIG_FILE=conf/httpd.conf -D ACCESS_CONFIG_FILE=conf/access.conf -D RESOURCE_CONFIG_FILE=conf/srm.conf http://my.yahoo.com.au - My Yahoo! - It's My Yahoo! Get your own! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
WARP / mod_webapp not working --- help needed!
Hi there! I've been trying to connect Apache and Tomcat via the Warp connector (mod_webapp) for quite a while now, but I don't seem to get it working. Even extensive research of this mailing list didn't point me to the solution of my problem. I'm getting desperate... Forgive me, if I am asking the same questions discussed at least 100 times on this list, but for me the hints given just don't work, and I don't know why and what's wrong. I am trying to run Tomcat 4.01 on SuSE Linux 7.3 x86 with Apache 1.3.20. Tomcat runs properly standalone. So, please, could you have a look at my configuration and the log files I get. I'd be _very_ grateful for any help, as I just don't get along on my own, here, it seems. I am probably missing something obvious, but I don't know what it is. Can you help? THANKS IN ADVANCE to all of you! Here is my configuration. I actually just want to get the standard configuration running. No virtual hosts or something other more complex. I just want to be able to get the Tomcat examples with http://MyHost/examples not having to specify the port number. If I get the installation instructions in the file INSTALL.TXT of the mod_webapp distribution right, then this should work just by adding these five lines to /etc/httpd.conf. LoadModule webapp_module/usr/lib/apache/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp orion6.trav.orb:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info But for me, as I said, it just doesn't work. I have copied the file mod_webapp.so to /usr/lib/apache, which is the replacement directory for libexec on SuSE Linux. I have also tried to use softlinks called libexec placed in the DocumentRoot directory of Apache pointing to /usr/lib/apache. However, this didn't have any effect, as expected. Other than in previous versions of Tomcat there are no automatically created config files explicitly using paths containing libexec, right? So this shouldn't matter, in my understanding. Something else must be wrong, however! Here are the log files. I included some comments to indicate which of the following steps was just completed at the end of a paragraph. Step 1: Tomcat started Step 2: Request to Tomcat Step 3: Apache started Step 4: Request to Apache Step 5: Request to Tomcat, again Step 6: Apache shutdown Step 7: Tomcat shutdown apache-log -- --Step 1: Tomcat started (file not yet created) --Step 2: Request to Tomcat (file not yet created) 2002-01-13 15:17:00 [org.apache.catalina.connector.warp.WarpConnector] Connection from orion6.trav.orb/192.168.22.6:34396 to orion6.trav.orb/192.168.22.6:8008 2002-01-13 15:17:00 WarpHost[orion6.trav.orb]: Installing web application at context path /examples from URL file:/usr/java/jakarta-tomcat-4.0.1/webapps/examples 2002-01-13 15:17:00 WebappLoader[/examples]: Deploying class repositories to work directory /usr/java/jakarta-tomcat-4.0.1/work/orion6.trav.orb/examples 2002-01-13 15:17:00 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2002-01-13 15:17:00 StandardManager[/examples]: Seeding of random number generator has been completed 2002-01-13 15:17:00 ContextConfig[/examples]: Configured an authenticator for method FORM 2002-01-13 15:17:00 ContextListener: contextInitialized() 2002-01-13 15:17:00 SessionListener: contextInitialized() 2002-01-13 15:17:00 ContextListener: attributeReplaced('org.apache.catalina.WELCOME_FILES', '[Ljava.lang.String;@6e22f7') 2002-01-13 15:17:00 StandardWrapper[/examples:default]: Loading container servlet default 2002-01-13 15:17:00 default: init 2002-01-13 15:17:00 StandardWrapper[/examples:invoker]: Loading container servlet invoker 2002-01-13 15:17:00 invoker: init 2002-01-13 15:17:00 jsp: init 2002-01-13 15:17:00 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (2) --Step 3: Apache started 2002-01-13 15:23:50 [org.apache.catalina.connector.warp.WarpConnector] Connection from orion6.trav.orb/192.168.22.6:34480 to orion6.trav.orb/192.168.22.6:8008 2002-01-13 15:23:50 [org.apache.catalina.connector.warp.WarpConfigurationHandler] Filter mappings (2) --Step 4: Request to Apache --Step 5: Request to Tomcat, again 2002-01-13 15:26:30 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket java.io.IOException: Premature packet header end at org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237) at org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112) at org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194) at java.lang.Thread.run(Thread.java:484) 2002-01-13 15:26:30 [org.apache.catalina.connector.warp.WarpConnection] Exception on socket
RE: Tomcat 4.0.1 and Apache
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 -Original Message- From: Rizki Wicaksono [mailto:[EMAIL PROTECTED]] Sent: January 13, 2002 3:35 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.0.1 and Apache I have read documentation that come with Tomcat 4.0.1 distribution. But i found a little concrete example of how to use Tomcat 4.0.1 with Apache 1.3 web server. Please tell me where can I read another documentation that come with concrete example of httpd.con and another file configuration. Go through $CATALINA_HOME/webapps/tomcat-docs/config/warp.html (or start up Tomcat and then go to http://yourhost:8080/tomcat-docs/config/warp.html - need I say you replace yourhost with your host name/IP address). If you're still unclear, come back here. Emir. -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPEGu61jCfVNHgcFCEQLosACg9eMtVI8dwwhtPkUo3EiXfvsKrNIAnRW5 Tc8RT1cN2FCYXd36dE7pSlXk =sVKA -END PGP SIGNATURE- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
Hi, I'm using tomcat4 on windows NT platform. The classpath is set as follows: JAVA_HOME: D:\jdk1.3 CATILINA_HOME: E:\jakarta-tomcat-4.0.1 I'm having trouble accessing class files stored in the web-inf/classes folder. In the server.xml file, i've configured a context path to a folder which is under webapps. Context path=/chetna docBase=chetna debug=0 reloadable=true / And the directory structure is: webapps/chetna/web-inf/classes/ and the file name is Test.java and the Jsp resides in : webapps/chetna/Login.jsp in the Login.jsp file i'm trying to instantiating the Test bean and calling its methods. It gives me the following error:: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type : Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90: Class org.apache.jsp.Test not found. Test monitor1 = null; ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93: Class org.apache.jsp.Test not found. monitor1= (Test) ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98: Class org.apache.jsp.Test not found. monitor1 = (Test) java.beans.Beans.instantiate(this.getClass().getClassLoader(), Test); ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106) at java.lang.Thread.run(Thread.java:484) Is there any other configuration required for accessing the file from the classes folder. I had also
Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
did you try to import the class? matt - Original Message - From: Chetna Bhatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 11:42 AM Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON Hi, I'm using tomcat4 on windows NT platform. The classpath is set as follows: JAVA_HOME: D:\jdk1.3 CATILINA_HOME: E:\jakarta-tomcat-4.0.1 I'm having trouble accessing class files stored in the web-inf/classes folder. In the server.xml file, i've configured a context path to a folder which is under webapps. Context path=/chetna docBase=chetna debug=0 reloadable=true / And the directory structure is: webapps/chetna/web-inf/classes/ and the file name is Test.java and the Jsp resides in : webapps/chetna/Login.jsp in the Login.jsp file i'm trying to instantiating the Test bean and calling its methods. It gives me the following error:: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error -- -- type : Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90: Class org.apache.jsp.Test not found. Test monitor1 = null; ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93: Class org.apache.jsp.Test not found. monitor1= (Test) ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98: Class org.apache.jsp.Test not found. monitor1 = (Test) java.beans.Beans.instantiate(this.getClass().getClassLoader(), Test); ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at
Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
hi, Yes i did try that ...it gave me the error that it could not find the package Matt Egyhazy wrote: did you try to import the class? matt - Original Message - From: Chetna Bhatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 11:42 AM Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON Hi, I'm using tomcat4 on windows NT platform. The classpath is set as follows: JAVA_HOME: D:\jdk1.3 CATILINA_HOME: E:\jakarta-tomcat-4.0.1 I'm having trouble accessing class files stored in the web-inf/classes folder. In the server.xml file, i've configured a context path to a folder which is under webapps. Context path=/chetna docBase=chetna debug=0 reloadable=true / And the directory structure is: webapps/chetna/web-inf/classes/ and the file name is Test.java and the Jsp resides in : webapps/chetna/Login.jsp in the Login.jsp file i'm trying to instantiating the Test bean and calling its methods. It gives me the following error:: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error -- -- type : Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90: Class org.apache.jsp.Test not found. Test monitor1 = null; ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93: Class org.apache.jsp.Test not found. monitor1= (Test) ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98: Class org.apache.jsp.Test not found. monitor1 = (Test) java.beans.Beans.instantiate(this.getClass().getClassLoader(), Test); ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at
Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
Hi, I don't know if it matters, but the web-inf directory is not all caps i.e. WEB-INF If that doesn't work, try putting your jsp and class in the examples directory provided with the distribution. You should be able to access it then. If not, you have other problems. --Peter On Sunday, January 13, 2002, at 09:15 AM, Chetna Bhatt wrote: hi, Yes i did try that ...it gave me the error that it could not find the package Matt Egyhazy wrote: did you try to import the class? matt - Original Message - From: Chetna Bhatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 11:42 AM Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON Hi, I'm using tomcat4 on windows NT platform. The classpath is set as follows: JAVA_HOME: D:\jdk1.3 CATILINA_HOME: E:\jakarta-tomcat-4.0.1 I'm having trouble accessing class files stored in the web-inf/classes folder. In the server.xml file, i've configured a context path to a folder which is under webapps. Context path=/chetna docBase=chetna debug=0 reloadable=true / And the directory structure is: webapps/chetna/web-inf/classes/ and the file name is Test.java and the Jsp resides in : webapps/chetna/Login.jsp in the Login.jsp file i'm trying to instantiating the Test bean and calling its methods. It gives me the following error:: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error -- -- type : Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta- tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90: Class org.apache.jsp.Test not found. Test monitor1 = null; ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta- tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93: Class org.apache.jsp.Test not found. monitor1= (Test) ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta- tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98: Class org.apache.jsp.Test not found. monitor1 = (Test) java.beans.Beans.instantiate(this.getClass().getClassLoader(), Test); ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary (JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: 5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: 5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: 5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke (ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: 5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: 5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: 5 64) at
Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
Hi, i've tried what u've suggested...but still if i tryto access thru examples directory it gives me the following error: Generated servlet error: C:\jakarta-tomcat-4.0.1\work\localhost\examples\Test$jsp.java:90: Class org.apache.jsp.Test not found. Test monitor1 = null; ^ Thanks for the help in advance regards chetna [EMAIL PROTECTED] wrote: Hi, I don't know if it matters, but the web-inf directory is not all caps i.e. WEB-INF If that doesn't work, try putting your jsp and class in the examples directory provided with the distribution. You should be able to access it then. If not, you have other problems. --Peter On Sunday, January 13, 2002, at 09:15 AM, Chetna Bhatt wrote: hi, Yes i did try that ...it gave me the error that it could not find the package Matt Egyhazy wrote: did you try to import the class? matt - Original Message - From: Chetna Bhatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 11:42 AM Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON Hi, I'm using tomcat4 on windows NT platform. The classpath is set as follows: JAVA_HOME: D:\jdk1.3 CATILINA_HOME: E:\jakarta-tomcat-4.0.1 I'm having trouble accessing class files stored in the web-inf/classes folder. In the server.xml file, i've configured a context path to a folder which is under webapps. Context path=/chetna docBase=chetna debug=0 reloadable=true / And the directory structure is: webapps/chetna/web-inf/classes/ and the file name is Test.java and the Jsp resides in : webapps/chetna/Login.jsp in the Login.jsp file i'm trying to instantiating the Test bean and calling its methods. It gives me the following error:: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error -- -- type : Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta- tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90: Class org.apache.jsp.Test not found. Test monitor1 = null; ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta- tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93: Class org.apache.jsp.Test not found. monitor1= (Test) ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta- tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98: Class org.apache.jsp.Test not found. monitor1 = (Test) java.beans.Beans.instantiate(this.getClass().getClassLoader(), Test); ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary (JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service (JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: 5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: 5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: 5
TOMCAT 4.0 and Ant 1.4?
hi, was just wondering if tomcat4.0 require installation of Ant 1.4? Thanks for the tip in advance. regards chetna -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
Hi, Are your classes in a package or not? If they are not then you cannot access them because TC will look for them in his default package Amine - Original Message - From: Chetna Bhatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 4:42 PM Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON Hi, I'm using tomcat4 on windows NT platform. The classpath is set as follows: JAVA_HOME: D:\jdk1.3 CATILINA_HOME: E:\jakarta-tomcat-4.0.1 I'm having trouble accessing class files stored in the web-inf/classes folder. In the server.xml file, i've configured a context path to a folder which is under webapps. Context path=/chetna docBase=chetna debug=0 reloadable=true / And the directory structure is: webapps/chetna/web-inf/classes/ and the file name is Test.java and the Jsp resides in : webapps/chetna/Login.jsp in the Login.jsp file i'm trying to instantiating the Test bean and calling its methods. It gives me the following error:: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type : Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90: Class org.apache.jsp.Test not found. Test monitor1 = null; ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93: Class org.apache.jsp.Test not found. monitor1= (Test) ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98: Class org.apache.jsp.Test not found. monitor1 = (Test) java.beans.Beans.instantiate(this.getClass().getClassLoader(), Test); ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at
Re: TOMCAT 4.0 and Ant 1.4?
No Amine - Original Message - From: Chetna Bhatt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 6:22 PM Subject: TOMCAT 4.0 and Ant 1.4? hi, was just wondering if tomcat4.0 require installation of Ant 1.4? Thanks for the tip in advance. regards chetna -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
H Amine AMAR , have tried to keep in package com.mypackage gives the following error: javax.servlet.ServletException: class com.mypackage.Test : java.lang.IllegalAccessException: com.mypackage.Test Could anyone throw some light on the error Thanks in advance regards chetna Amine AMAR wrote: Hi, Are your classes in a package or not? If they are not then you cannot access them because TC will look for them in his default package Amine - Original Message - From: Chetna Bhatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 4:42 PM Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON Hi, I'm using tomcat4 on windows NT platform. The classpath is set as follows: JAVA_HOME: D:\jdk1.3 CATILINA_HOME: E:\jakarta-tomcat-4.0.1 I'm having trouble accessing class files stored in the web-inf/classes folder. In the server.xml file, i've configured a context path to a folder which is under webapps. Context path=/chetna docBase=chetna debug=0 reloadable=true / And the directory structure is: webapps/chetna/web-inf/classes/ and the file name is Test.java and the Jsp resides in : webapps/chetna/Login.jsp in the Login.jsp file i'm trying to instantiating the Test bean and calling its methods. It gives me the following error:: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error type : Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90: Class org.apache.jsp.Test not found. Test monitor1 = null; ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93: Class org.apache.jsp.Test not found. monitor1= (Test) ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98: Class org.apache.jsp.Test not found. monitor1 = (Test) java.beans.Beans.instantiate(this.getClass().getClassLoader(), Test); ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at
Compiling latest 4.0.1 fails with 'not found in import' ...
Nice and simple, probably ... I *think* I've followed the instructions pretty much to the letter, have everything installed from ports that can be, downloaded the rest ... modifed build.properties for where everything is, but when I'm doing an 'ant dist', I'm getting: build-main: [javac] Compiling 4 source files to /usr/local/java_misc/jakarta-tomcat-4.0.1-src/catalina/build/server/classes [javac] Compiling 5 source files to /usr/local/java_misc/jakarta-tomcat-4.0.1-src/catalina/build/server/classes [javac] /usr/local/java_misc/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/net/SSLServerSocketFactory.java:71: Class javax.net.ServerSocketFactory not found in import. [javac] import javax.net.ServerSocketFactory; [javac]^ [javac] /usr/local/java_misc/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/net/SSLServerSocketFactory.java:72: Class javax.net.ssl.SSLServerSocket not found in import. [javac] import javax.net.ssl.SSLServerSocket; [javac]^ [javac] /usr/local/java_misc/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/net/SSLServerSocketFactory.java:73: Class javax.net.ssl.SSLSocket not found in import. [javac] import javax.net.ssl.SSLSocket; [javac]^ etc, etc, etc There are a total of 36 errors ... I can do searches for this stuff using find, and the various packages appear to be installed: reilly2001# find /usr/local -name *SSLServerSocket* -print /usr/local/jsse1.0.2/doc/apidoc/javax/net/ssl/SSLServerSocket.html /usr/local/jsse1.0.2/doc/apidoc/javax/net/ssl/SSLServerSocketFactory.html /usr/local/java_misc/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/net/SSLServerSocketFactory.java And, according to build.properties, I believe things are set right: # - Java Secure Sockets Extension (JSSE), version 1.0.2 or later - jsse.home=${base.path}/jsse-1.0.2 jsse.lib=${jsse.home}/lib jcert.jar=${jsse.lib}/jcert.jar jnet.jar=${jsse.lib}/jnet.jar jsse.jar=${jsse.lib}/jsse.jar reilly2001# ls -lt /usr/local/jsse1.0.2/lib/ total 476 -rw-r--r-- 1 root wheel 463471 Aug 1 2000 jsse.jar -rw-r--r-- 1 root wheel7637 Aug 1 2000 jcert.jar -rw-r--r-- 1 root wheel3098 Aug 1 2000 jnet.jar Yet it can't find it? Help? Thanks ... -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Integrating catalina(Tomcat) and apache
I followed the advice and upgraded my system to Redhat 7.1. I recompiled the source code ant made entried in httpd.conf. However right now I am getting following error: can not load /etc/httpd/modules/mod_webapp.so into server :/etc/httpd/modules/mod_webapp.so undefined symbol: pthread_sigmask it seems to me system is not finding way to link with some library. Please let me know what you think about it. Thank you. santos --- Denny Chambers [EMAIL PROTECTED] wrote: The binaries for the linux version of WebApp are compiled for RH 7.1 I think. To make them work in a 6.x version of RedHat, you will need to download the source an compile it. You also need to make sure that you Apache distro supports DSO modules. Denny Santos Jha wrote: Hello, I am trying to integrate catalina and apache on Redhat 6.1 server using what they call Warp connector. Tomcat and Apache both work nice and fine if they have to work independently. In order to integrate I took following steps. 1. put mod_webapp.so in modules directory 2. put follwing lines in httpd.conf LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples Similarly I made changes in server.xml. However when I tried to restart apache I got following error Syntax error on line 1188 of /etc/httpd/conf/httpd.conf Invalid command 'WebAppDeploy' perhaps mis-spelled or defined my a module not included in the server configuration. Do you have any clue, what is wrong am I doing? any help will be highly appreciated. Thank you. Santos __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: new to java, apache and tomcat.. but I want to learn!
--- Donald Lee [EMAIL PROTECTED] wrote: I have am looking for. I would like to start with something simple but actually usable like a guest book program or a message board. The code doesn't even need to work, just point me in the right direction. I plan to keep going with this in the best way I can. Thanks Hi Donald, There are a number of java message boards listed here. Some appear to be open source. http://www.hotscripts.com/Java/JSP_and_Servlets/Discussion_Boards/ -Janek __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
500 Internal Server Error usually after ~ 6 hours of use
Hi. My configuration is Apache 1.3.14 Tomcat 3.2 I receive 500 Internal Server Error usually after ~ 6 hours of use. At this moment i need to restart tomcat and it's work fine again on mod_jk.log file, i have this line more and more up to the crash : [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 and this line : [jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to server else i have a great number of this line ( i think this is normally) : [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters Can you help me? Thanks... NB: my connection pooling to the database is enable and works fine. Sébastien Caillaud
Re: 500 Internal Server Error usually after ~ 6 hours of use
hi there do you have a router or firewall between some of your components (webserver, tomcat server, database, etc.) ? if so may be you could check if timeout settings match your problem i met the problem with a websphere 3.5.x talking to a sql server through a router it (websphere datasource system) wasn't aware that the router had cut the connection after some time of inactivity hope this helps David - Original Message - From: Sébastien Caillaud [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 8:58 PM Subject: 500 Internal Server Error usually after ~ 6 hours of use Hi. My configuration is Apache 1.3.14 Tomcat 3.2 I receive 500 Internal Server Error usually after ~ 6 hours of use. At this moment i need to restart tomcat and it's work fine again on mod_jk.log file, i have this line more and more up to the crash : [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111 [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1 and this line : [jk_ajp12_worker.c (601)]: ajpv12_handle_response, error writing back to server else i have a great number of this line ( i think this is normally) : [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters Can you help me? Thanks... NB: my connection pooling to the database is enable and works fine. Sébastien Caillaud -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Tomcat + Apache working, but JSPs not passed to Tomcat by Apache...
I have managed to get Tomcat 4.0.1 and Apache 1.3.20 working nicely on my Windows box... but Apache is only passing requests to Tomcat as directed by the WebAppDeploy directives in httpd.conf, e.g.: WebAppConnection conn warp test.panoguide.com:8008 WebAppDeploy examples conn /examples/ How do I instruct Apache to pass through all *.jsp requests to Tomcat too but leave all other files (e.g. *.jpg, *.gif) handled by Apache? Using mod_jk it is easy to do this kind of selective mapping, such as: JkMount /*.jsp ajp12 Is there some syntactic equivalent when using mod_webapp and Tomcat 4, or should I use mod_jk instead and forget mod_webapp??? Thanks for any help, pointers advice etc... James. -- panoguide.com broadening your horizons -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Integrating catalina(Tomcat) and apache
Under freeBSD, with PHP4+Apache2, I get similar, where I have to recompile Apache2 with -lc_r to tell it to compile in the thread'd libraries ... might be similar under Linux? On Sun, 13 Jan 2002, Santos Jha wrote: I followed the advice and upgraded my system to Redhat 7.1. I recompiled the source code ant made entried in httpd.conf. However right now I am getting following error: can not load /etc/httpd/modules/mod_webapp.so into server :/etc/httpd/modules/mod_webapp.so undefined symbol: pthread_sigmask it seems to me system is not finding way to link with some library. Please let me know what you think about it. Thank you. santos --- Denny Chambers [EMAIL PROTECTED] wrote: The binaries for the linux version of WebApp are compiled for RH 7.1 I think. To make them work in a 6.x version of RedHat, you will need to download the source an compile it. You also need to make sure that you Apache distro supports DSO modules. Denny Santos Jha wrote: Hello, I am trying to integrate catalina and apache on Redhat 6.1 server using what they call Warp connector. Tomcat and Apache both work nice and fine if they have to work independently. In order to integrate I took following steps. 1. put mod_webapp.so in modules directory 2. put follwing lines in httpd.conf LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples Similarly I made changes in server.xml. However when I tried to restart apache I got following error Syntax error on line 1188 of /etc/httpd/conf/httpd.conf Invalid command 'WebAppDeploy' perhaps mis-spelled or defined my a module not included in the server configuration. Do you have any clue, what is wrong am I doing? any help will be highly appreciated. Thank you. Santos __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
List of jsp pages
Is there an easy way to get a list of JSP pages that are inside the war file? I can do this with the java.io.File class but would like to do it by get access to the resources in the jar file? thanks, scott. = ~~~ Scott __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Integrating catalina(Tomcat) and apache
I am using Apache 1.3.x --- Marc G. Fournier [EMAIL PROTECTED] wrote: Under freeBSD, with PHP4+Apache2, I get similar, where I have to recompile Apache2 with -lc_r to tell it to compile in the thread'd libraries ... might be similar under Linux? On Sun, 13 Jan 2002, Santos Jha wrote: I followed the advice and upgraded my system to Redhat 7.1. I recompiled the source code ant made entried in httpd.conf. However right now I am getting following error: can not load /etc/httpd/modules/mod_webapp.so into server :/etc/httpd/modules/mod_webapp.so undefined symbol: pthread_sigmask it seems to me system is not finding way to link with some library. Please let me know what you think about it. Thank you. santos --- Denny Chambers [EMAIL PROTECTED] wrote: The binaries for the linux version of WebApp are compiled for RH 7.1 I think. To make them work in a 6.x version of RedHat, you will need to download the source an compile it. You also need to make sure that you Apache distro supports DSO modules. Denny Santos Jha wrote: Hello, I am trying to integrate catalina and apache on Redhat 6.1 server using what they call Warp connector. Tomcat and Apache both work nice and fine if they have to work independently. In order to integrate I took following steps. 1. put mod_webapp.so in modules directory 2. put follwing lines in httpd.conf LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples Similarly I made changes in server.xml. However when I tried to restart apache I got following error Syntax error on line 1188 of /etc/httpd/conf/httpd.conf Invalid command 'WebAppDeploy' perhaps mis-spelled or defined my a module not included in the server configuration. Do you have any clue, what is wrong am I doing? any help will be highly appreciated. Thank you. Santos __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Integrating catalina(Tomcat) and apache
regardless, it sounds like the same sort of issue ... On Sun, 13 Jan 2002, Santos Jha wrote: I am using Apache 1.3.x --- Marc G. Fournier [EMAIL PROTECTED] wrote: Under freeBSD, with PHP4+Apache2, I get similar, where I have to recompile Apache2 with -lc_r to tell it to compile in the thread'd libraries ... might be similar under Linux? On Sun, 13 Jan 2002, Santos Jha wrote: I followed the advice and upgraded my system to Redhat 7.1. I recompiled the source code ant made entried in httpd.conf. However right now I am getting following error: can not load /etc/httpd/modules/mod_webapp.so into server :/etc/httpd/modules/mod_webapp.so undefined symbol: pthread_sigmask it seems to me system is not finding way to link with some library. Please let me know what you think about it. Thank you. santos --- Denny Chambers [EMAIL PROTECTED] wrote: The binaries for the linux version of WebApp are compiled for RH 7.1 I think. To make them work in a 6.x version of RedHat, you will need to download the source an compile it. You also need to make sure that you Apache distro supports DSO modules. Denny Santos Jha wrote: Hello, I am trying to integrate catalina and apache on Redhat 6.1 server using what they call Warp connector. Tomcat and Apache both work nice and fine if they have to work independently. In order to integrate I took following steps. 1. put mod_webapp.so in modules directory 2. put follwing lines in httpd.conf LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples Similarly I made changes in server.xml. However when I tried to restart apache I got following error Syntax error on line 1188 of /etc/httpd/conf/httpd.conf Invalid command 'WebAppDeploy' perhaps mis-spelled or defined my a module not included in the server configuration. Do you have any clue, what is wrong am I doing? any help will be highly appreciated. Thank you. Santos __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: List of jsp pages
Have you taken a look at the Jarfile class? It has some methods that may prove useful. At 01:15 PM 1/13/2002 -0800, you wrote: Is there an easy way to get a list of JSP pages that are inside the war file? I can do this with the java.io.File class but would like to do it by get access to the resources in the jar file? thanks, scott. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
use the full package name when importing the class. if you arent importing the class, use the full name when instantiating an object. matt - Original Message - From: Chetna Bhatt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 1:46 PM Subject: Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON H Amine AMAR , have tried to keep in package com.mypackage gives the following error: javax.servlet.ServletException: class com.mypackage.Test : java.lang.IllegalAccessException: com.mypackage.Test Could anyone throw some light on the error Thanks in advance regards chetna Amine AMAR wrote: Hi, Are your classes in a package or not? If they are not then you cannot access them because TC will look for them in his default package Amine - Original Message - From: Chetna Bhatt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 4:42 PM Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON Hi, I'm using tomcat4 on windows NT platform. The classpath is set as follows: JAVA_HOME: D:\jdk1.3 CATILINA_HOME: E:\jakarta-tomcat-4.0.1 I'm having trouble accessing class files stored in the web-inf/classes folder. In the server.xml file, i've configured a context path to a folder which is under webapps. Context path=/chetna docBase=chetna debug=0 reloadable=true / And the directory structure is: webapps/chetna/web-inf/classes/ and the file name is Test.java and the Jsp resides in : webapps/chetna/Login.jsp in the Login.jsp file i'm trying to instantiating the Test bean and calling its methods. It gives me the following error:: Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error -- -- type : Exception report message: Internal Server Error description: The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception : org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90: Class org.apache.jsp.Test not found. Test monitor1 = null; ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93: Class org.apache.jsp.Test not found. monitor1= (Test) ^ An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp Generated servlet error: E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98: Class org.apache.jsp.Test not found. monitor1 = (Test) java.beans.Beans.instantiate(this.getClass().getClassLoader(), Test); ^ 3 errors at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:177) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:189) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at
JDBC authentication configuration
Hello, I am relatively new to servlet/jsp programming, and struggling with JDBC authentication. I have a tiny test application that works fine using form authentication against passwords and names in the tomcat-users.xml file. However, when I reconfigure the server.xml file for JDBC authentication (following the instructions on the Apache/Tomcat site) the server hangs during startup. My little app is in a folder called /rmta-test. Specifically, in the log, the hang comes early on in the startup process, right after a line saying: Standard Manager [:/rmta-test]: Seeding of random number generator has completed. Below I have quoted the relavant lines from the server.xml file, and the web.xml file for this application. I don't think this has anything to do with the database, as Tomcat seems to hang on startup well before any interaction with the database. However, the database tables are setup correctly per the docs, and I can query it manually. I have also used a small stand-alone java program to create a table using the JDBC driver, so I know that the driver is installed correctly (in the tomcat library). If I simply remove the Realm statement, then Tomcat starts up normally. I'm pretty sure I've got something wrong in the configuration, of server.xml or web.xml, but i can't figure out what it is. I would be grateful for anyone's help. By the way, I'm using Tomcat 4.0.1 on unix. Thanks! Paul Phillips ___ Here are the lines that I inserted in my server.xml file to try and get JDBC authentication going: Context path=/rmta-test docBase=rmta-test debug=99 reloadable=true Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=org.gjt.mm.mysql.Driver connectionURL=jdbc:mysql://localhost/rmta?user=myuser;password=mypassword userTable=tablename userNameCol=login userCredCol=password userRoleTable=rolestable roleNameCol=role / /Context ___ Here is my web.xml file: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameGreetingServlet/servlet-name servlet-classfenced.GreetingServlet/servlet-class /servlet servlet-mapping servlet-nameGreetingServlet/servlet-name url-pattern/greeting/url-pattern /servlet-mapping security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-namethename/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/error.jsp/form-error-page /form-login-config /login-config /web-app ___ Paul Phillips Director of Orchestral Activities, Meadows School of the Arts Southern Methodist University You must sing every note you play, sing even through the rests! Arturo Toscanini -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Missing database connectivity
Hi, Been using Tomcat 3.1 and 3.2 for about a year now and I noticed that whenever our database administrator shuts down and restarts the database (Oracle), all of my Java beans and jsp files can't redetect the database after the restart. So most of the time, I had to restart the Tomcat to redetect the database. Could anyone (especially the development team) explain the why it can't re-establish the database connectivity to the database and is there a way to resolve this? regards, Cheong Takhoe -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
VAJ 4.0, Tomcat 4.0 Apache SOAP - How to Debug in IDE
I've searched the archives and the Net on this one with no luck, and I'm hoping perhaps someone on this list may be able to help. I'm running Tomcat 4.0 and Apache SOAP. I would like to debug the target class in my IDE, VisualAge 4.0. So I now have a running Tomcat server up and running and all works well. My test class is invoked with parms from the SOAP request fine, IF the class is in the specified directory for my SOAP app. I've also successfully loaded the IBM Tomcat test environment, and I can invoke Tomcat successfully from within the IDE. It seems this is a Class loader issue in Apache SOAP. I was hoping if I removed my SOAP interface class from the Apache SOAP directory, it would then pass off the request to the class loader in the IDE and invoke that instance of the class, and voila I could debug it. Problem is if I do that Apache Tomcat SOAP can't find any class, and I get a class not found error. If I leave the class there, and try and use the IDE to debug an external class, the breakpoint is never triggered but Apache does find the class and handle the request properly. Does anyone have any idea 1. whether this can be done 2. any idea what I may need to do to enable debugging of my SOAP class? Any help appreciated. Thanks in advance. Tom -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
tomcat.log in Catalina
I have my console printing out lots of Exception messages. Can I print them in a file instead of console? For Tomcat 3.x, this involves configurating the tc_log to a file. But for Catalina, how to achieve this? I have tried to add a Logger of SystemErrLogger or SystemOutLogger, But nothing more printed out. Indeed, I have nothing printed out in catalina.out Thx. and Regards. Steve. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: List of jsp pages
In a Servlet 2.3 environment like Tomcat 4, you can use the ServletContext.getResourcePaths() method to list the contents of directories in your web application. It works even when the app is run from an unpacked WAR, so it's more portable (on 2.3 or later conatiners, of course). Craig On Sun, 13 Jan 2002, Mark wrote: Date: Sun, 13 Jan 2002 17:37:36 -0500 From: Mark [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Re: List of jsp pages Have you taken a look at the Jarfile class? It has some methods that may prove useful. At 01:15 PM 1/13/2002 -0800, you wrote: Is there an easy way to get a list of JSP pages that are inside the war file? I can do this with the java.io.File class but would like to do it by get access to the resources in the jar file? thanks, scott. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Confusing basic concept about apache-tomcat works.
I wonder what is the difference between using tomcat as stand alone web server and using tomcat as servlet/jsp engine and apache as web server ? Can anyone tell me how can we sure that we have succeeded configuring tomcat- apache web server or how can we know that apache really do their job, not tomcat do it alone. What happen if client access this : http://myserver:8080/somecontext/something.jsp in the case : 1. tomcat and apache work together with tomcat in port 8080 and apache in port 80. 2. tomcat work as standalone web server in port 8080. Does the :8080 means that the client directly serviced by something waiting in the port 8080 (in this case tomcat engine). if it is true, it means that tomcat work by himself to accept request, process and give response to client connecting to port 8080. How can we sure that apache get involved in this request ? Thank you. Kutipan Emir Alikadic [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 -Original Message- From: Rizki Wicaksono [mailto:[EMAIL PROTECTED]] Sent: January 13, 2002 3:35 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.0.1 and Apache I have read documentation that come with Tomcat 4.0.1 distribution. But i found a little concrete example of how to use Tomcat 4.0.1 with Apache 1.3 web server. Please tell me where can I read another documentation that come with concrete example of httpd.con and another file configuration. Go through $CATALINA_HOME/webapps/tomcat-docs/config/warp.html (or start up Tomcat and then go to http://yourhost:8080/tomcat-docs/config/warp.html - need I say you replace yourhost with your host name/IP address). If you're still unclear, come back here. Emir. -BEGIN PGP SIGNATURE- Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com iQA/AwUBPEGu61jCfVNHgcFCEQLosACg9eMtVI8dwwhtPkUo3EiXfvsKrNIAnRW5 Tc8RT1cN2FCYXd36dE7pSlXk =sVKA -END PGP SIGNATURE- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Integrating TC 4.0 with Apache 1.3.12
hi, PLATFORM: WINDOWS NT SERVER have gone thru documents and was able to configure Apache and TC with mod_webapp.so I hope the configuration whcih i did was correct: I installed the mod_weabb.so in the modules directory of Apache, copied the libapr.dll under Apache directory and in the httpd.cong file the following lines were added: LoadModule webapp_module modules/mod_webapp.so AddModule mod_webapp.c WebAppConnection warpConnection warp 191.1.24.15:8080 WebAppDeploy examples warpConnection /examples/ WebAppDeploy chetna warpConnection /chetna/ WebAppInfo /webapp-info Just wanted to confirm about the port no. mentioned on 3rd line...is it the port no. of TC or should i mention the port no. of th Apache server which is 80. was also confused about calling .jsp files from html files residing in htdocs folder of Apache. do i have to give the http://191.1.24.15:8080/chetna/Test.jsp or just http://191.1.24.15/chetna/Test.jsp Can anyone help me? Th documents are not very helpful. Thanks in advance Regards Chetna
User Registration Login Problem
Hi! Let me describe a scenario first: 1) When viewing protected pages (defined in web.xml), user is prompted for login. 2) If the user doesn't have a login, he could get an option to register, and 3) directed to the requested page after registration. I can create an auth-realm to fulfill the requirements 1 and 2. However, how can I accomplish 3 without prompting the user to login again? Could I make use of the login mechanism (basic, digest, cert, form) provided by the servlet container? Any idea would be helpful. Thanks Arion -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
question on form login
Hi! I would like to ask if the user somehow bookmarked the page for login, what should it goes to after login? I know it is not defined in 2.2/2.3 spec. Thanks Arion -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: TC 4.0.1/SAXParserFactory.newInstance() error
Dear All, Tomcat 4 is installed on D drive of my machine. and my web directory for jsp pages is situated on E drive. How do i set my web driectory path for the web server in the configuration files. Please help. Regards, Ravi. - Original Message - From: Sriram Narayanan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, January 13, 2002 12:09 AM Subject: Re: TC 4.0.1/SAXParserFactory.newInstance() error Hi, Looks like there's may be another copy of the Jaxp classes somewhere in the classpath..Please try the following: 1. Use the startup scripts that come with tomcat 4.0.1. These unset the CLASSPATH environment variables and crete custom variables for Tomcat's startup. 2.Check to see if you're having any older Xerces or (Crimson+Jaxp) jars files in $JAVA_HOME/lib/ext 3. Remove all instances of the files xerces.jar, parser.jar, crimson.jar and jaxp.jar from where ever you have placed them in the $CATALINA_HOME sub directories. Having done that, place a copy of xerces.jar in $CATALINA_HOME/common/lib The xerces.jar file that comes with tomcat 4.0.1 is 1.72 MB in size (1,808,883 bytes) 4. Just a question, is your app also bundling Xerces/crimson ? Look for the jars in the WIB-INF/lib sub-directory. Sriram 1/12/02 11:17:36 PM, Mark [EMAIL PROTECTED] wrote: I'm attempting to port a working application to Tomcat 4.0.1 and hit a problem with SAX parsing. When this line of code is executed SAXParserFactory factory = SAXParserFactory.newInstance(); I got a ClassCastException error: java.lang.ClassCastException: org.apache.crimson.jaxp.SAXParserFactoryImpl at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:148) I looked at the Tomcat archives and tried what the Tomcat documentation says to do, eg. move xerces.jar into my WEB-INF directory or into the $CATALINA_HOME/lib directory and move crimson.jar and jaxp.jar out. Documentation located at http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#Tom c at%204%20and%20XML%20Parsers After doing that however, I get the same error but from xerces (org.apache.xerces.jaxp.SAXParserFactoryImpl) vs. crimson. Has someone slayed this dragon before? If so, any help would be greatly appreciated. Mark -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]