JSP page pre-compile fails with modifier private error
I am attempting to precompile the JSP pages for a web application using the instructions found in the Web Application Compilation section at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html. When I run the ant tasks as described in that section, the jspc task runs fine but the compile task generates a number of errors complaining about private modifiers; e.g., [javac] /usr/local/tomcat/webapps/blackboard/WEB-INF/src/about/techinfo_jsp.java:11: modifier private static not allowed here [javac] private static java.util.Vector _jspx_includes; [javac] ^ [javac] /usr/local/tomcat/webapps/blackboard/WEB-INF/src/about/techinfo_jsp.java:13: modifier private not allowed here [javac] private org.apache.jasper.runtime.TagHandlerPool _jspx_tagPool_template_insert_template; [javac]^ Any ideas what I'm doing wrong? I'm using Tomcat 4.1.18, Struts 1.0.2, and Java 1.4.1. Thanks in advance. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question about Tomcat 4.1.12 WebDAV application
Version: Tomcat 4.1.12 on Solaris 8 I'm trying to configure the WebDAV application included in the Tomcat 4.1.12 distribution so that it requires a login to add or remove files but not to view them. If I use the web.xml security-constraint contained in the distribution -- security-constraint web-resource-collection web-resource-nameThe Entire Web Application/web-resource-name url-pattern/*/url-pattern /web-resource-collection auth-constraint role-nametomcat/role-name /auth-constraint /security-constraint -- then all attempts to access the content, including a simple browser request for http://localhost:8080/webdav/ require a login. I thought I could password protect only adding and removing files by adding http-method for PUT and DELETE as shown below -- security-constraint web-resource-collection web-resource-nameThe Entire Web Application/web-resource-name url-pattern/*/url-pattern http-methodDELETE/http-method http-methodPUT/http-method /web-resource-collection auth-constraint role-nametomcat/role-name /auth-constraint /security-constraint -- but, if I do that, I seem to be able to add and remove files using my WebDAV client (Web Folders on Windows XP) without authenticating. I can't help but think that I'm missing something obvious. Can anyone help? Thanks in advance. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat 4.1.12 doesn't find class in shared/classes/
Tomcat 4.1.12 on Solaris 8. Put a new class in $CATALINA_HOME/shared/classes/foo/. Stopped and restarted Tomcat. Tried to use the class in a web app but Tomcat couldn't find it. Put the same class in $CATALINA_HOME/common/classes/foo/ and Tomcat found it just fine. Any idea why it didn't find it in the shared/classes directory? Thanks. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Start Apache/Jakarta-Tomcat as Non-root user
I accomplished this yesterday on Solaris 8 using the following script called at system startup (linked to S40tomcat in rc3.d) ... Replace tomcat after the two su commands with the user you want Tomcat to run as and, of course, change the paths as appropriate for your system. You'll also need to make sure your tomcat user has appropriate permissions on your tomcat directories. --Jim #!/sbin/sh # # Jim Coble 09 Jun 02 # Modified 27 Sep 02 to try to get to run as user tomcat CATALINA_HOME=/usr/local/tomcat;export CATALINA_HOME JAVA_HOME=/usr/java;export JAVA_HOME case $1 in start) su tomcat /usr/local/tomcat/bin/startup.sh sleep 5 ;; stop) su tomcat /usr/local/tomcat/bin/shutdown.sh ;; *) echo Usage: $0 {start|stop} exit 1 ;; esac exit 0 == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == Lars Nielsen Lind [EMAIL PROTECTED] 09/28/2002 10:12 AM Please respond to Tomcat Users List To: [EMAIL PROTECTED] cc: Subject:Start Apache/Jakarta-Tomcat as Non-root user Hi. Are the some easy ways to start Apache / Jakarta-Tomcat as Non-root user - for instance with a user created for the purpose? Are the any security risks (for instance access to root) to be aware of? Best regards, Lars Nielsen Lind -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Warp connections
Someone with more experience may have a better answer but it is my understanding that mod_webapp does not permit you to distinguish between static and dynamic content. When you use mod_webapp, Tomcat services all requests; i.e., you can't do what you want to do--serve html with Apache and jsp/servlets with Tomcat--using mod_webapp -- you would have to continue using mod_jk if that's what you want to do. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == SigurĂ°ur BjarnasonTo: Tomcat Users List [EMAIL PROTECTED] [EMAIL PROTECTED]cc: m Subject: Warp connections 09/28/2002 12:17 PM Please respond to Tomcat Users List Hi all.. I want to use the mod_webapp module for apache to connect it to tomcat.. I have one question about this The thing is.. i want apache to serve all static content.. like html and let tomcat handle the jsp and servlets. Now when i use the apj1.2 connector with mod_jk.so i use line like JkMount /TESTSUITE/servlet/* ajp12 JkMount /TESTSUITE/*.jsp ajp12 when i use the mod_webapp.. i use lines like as follows WebAppDeploy examplesconn /examples ..that is here that i have a problem ! how can i exclude the jsp pages... with this. ?! i have tryed to use WebAppDeploy examplesconn /examples/*.jsp But that have not worked for me.. so if someone out there have the answer.. i would be greatful ! :) Regards Siggi (See attached file: winmail.dat)-- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] =?iso-8859-1?Q?winmail.dat?= Description: Binary data -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Best practice advice sought: Classes shared by 1 webapp
I am developing two web applications that will share a few classes in common. What is the best practice for handling this? Put a copy of the class in the WEB-INF/classes/ directory structure of both web applications? Or put the class in Tomcat's common/classes/ directory structure? These common classes are specific to our business, not general purpose ones. Also, these web applications are for our own internal use only, not ones that we will bundle up and distribute, though we will need to manage moving them successfully from our development server to our production server. Thanks in advance for any advice on best practices in this situation. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat shutdown does not kill java process
- Forwarded by Jim Coble/Libraries/Provost/Academic/Univ/Duke on 08/30/2002 10:18 AM - Jim Coble To: [EMAIL PROTECTED] 08/30/2002 08:17 cc: AM Subject: Tomcat shutdown does not kill java process I'm running Tomcat 4.0.3 stand-alone on a Solaris 8 server. When I execute bin/shutdown.sh, the java process that has been running Tomcat does not terminate. I can restart Tomcat fine (via bin/startup.sh) but, if I then do a ps -ef, I see both the old and new java processes there. I have to kill the old java process to get rid of it. I do all shutdown.sh and startup.sh commands as root. Before I discovered that this was happening, I ended up with multiple (Tomcat) java processes spanning several days. I don't think the now-unused java processes are consuming CPU time (at least not much) but I worry that they are consuming memory. (ps -leaf still shows them as having memory allocated, if I'm understanding what I'm seeing properly.) Any ideas why the java process doesn't terminate when I shutdown Tomcat? Thanks in advance. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Problem using Tomcat, WebDAV, and Dreamweaver
When I attempt to connect from Dreamweaver 4.01 to Tomcat 4.0.3 using WebDAV on the HTTP/1.1 connector port, Dreamweaver is never able to make the connection and stops responding. In archives for this list, I saw the suggestion to use an HTTP/1.0 connector instead and I tried that--it worked, in that Dreamweaver quickly connected to Tomcat. However, if I understand correctly, HTTP/1.0 doesn't support the PUT command, which is why I need to make the connection in the first place. (If I try to do a PUT while connected to HTTP/1.0 port, I get a Dreamweaver error message The desired action could not be completed because the desired resource was not found.) I have no problem uploading to Tomcat via WebDAV using another WebDAV client (Web Folders) via the HTTP/1.1 connector so I don't think the problem is with the Tomcat server. Does anyone know how I can get Dreamweaver 4.01 to make a successful HTTP/1.1 WebDAV connection with Tomcat 4.0.3? Thanks in advance. --Jim == Jim Coble Senior Technology Specialist Center for Instructional Technology Email: [EMAIL PROTECTED] Voice: 919-660-5974 Fax: 919-660-5923 Box 90198, Duke University Durham, NC 27708-0198 == -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]