RE: Trouble with ant install command and ResourceLink
hi jacob, thx for the input, now it works smoothly. However, it would be great if the config-parameter gets mentioned in the manager app howto http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html target name=install description=Install web application depends=compile install url=${url} username=${username} password=${password} path=${path} war=file://${build}/ /target thx alot Johannes Jacob Kjome [EMAIL PROTECTED] 29.03.2003 20:16 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject RE: Trouble with ant install command and ResourceLink You need to look at the attributes provided for the install task... target name=catalina-install depends=compile,manager.init description=Install application to servlet container catalina-install url=${manager.url} username=${manager.username} password=${manager.password} config=${app.ccf} path=${app.path} / /target Notice the config attribute. At build time, that resolves to a file:/// URL pointing to where the context configuration file is. Now look at the deploy task... target name=catalina-deploy depends=war,manager.init description=Deploy web-app war echo message=${app.war}/ catalina-deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} war=${app.war} / /target There is no config attribute. You might argue that there should be one. File a bug on that if you think so. However, the fact is, there isn't one now and the current mechanism here is the META-INF/context.xml file that Tomcat looks for. Jake At 05:55 PM 3/29/2003 +0100, you wrote: p.s. if I do ant undeploy ant install - context info gets lost ant remove ant deploy - context info is here again! == so with deploy the context is ok, with install not. *) I put /build/context.xml and /build/myapp.xml into the build-directory, but it still doesn't get the context inited. *) wouldn't it make sense to read the context.xml for ant install out of the same directory as ant deploy? (e.g. /build/META-INF/context.xml) thx Johannes
SOLVED RE: Trouble with ant install command and ResourceLink
Hi Jacob, My solution for the problem: target name=install description=Install application to servlet container install url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path} config=file:///${build.home}/META-INF/context.xml war=file:///${build.home}/ /target == So I have the same context.xml for development (ant install) and for production (ant deploy) thx alot for your great input!!! Johannes
SOLVED: Preview Tomcat XML documentation locally with IE 6.0
Hi there, Has anybody yet tried to preview a xml file from the tomcat docs locally with MS IE? I think this makes sense if you add some sentences and want to see the results without ant rebuild. There are only two minor things MS IE 6.0 complains: *) the src and *) the alt variables are declared twice. If one corrects in the file tomcat-docs.xsl to logo-alt and logo-src xsl:commentJAKARTA LOGO/xsl:comment xsl:variable name=logo-alt xsl:value-of select=$home-name/ /xsl:variable xsl:variable name=href xsl:value-of select=$home-href/ /xsl:variable xsl:variable name=logo-src xsl:value-of select=$relative-path/xsl:value-of select=$home-logo/ /xsl:variable a href={$href} img src={$logo-src} align=left alt={$logo-alt} border=0/ /a and declares the XSL in the XML file: ?xml-stylesheet type=text/xsl href=tomcat-docs.xsl? == voila! you can preview the complete XML rendered as HTML in MS IE 6.0! cheers, johannes
Strange naming effect when trying to compile JSP using JSPC
hi there, Imagine the following file structure for the ant build process: /jsp/firstpart/form.jsp /jsp/secondpart/form.jsp if I try to compile these jsps using jspc, they get generated as expected to /jsp-src/firstpart/form_jsp.java /jsp-src/secondpart/form_jsp.java == Then I try ant compile, but the compiler complains about having two jsps with the same name!!! If I put the JSPs into the static web directory: /web/firstpart/form.jsp /web/secondpart/form.jsp == then everything runs smoothly. How can I get rid of this strange effect?? thx alot Johannes
JSP Taglib resolution trouble
Hi there, If I try to compile a JSP with an absolute URI to a taglib like %@ taglib prefix=c uri = http://java.sun.com/jstl/core; % then the compiler complains: jspc: 2003-03-30 12:30:05 - ERROR-the file '\views\mylist\list.jsp' ge nerated the following general exception: org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.x ml or the jar files deployed with this application [jasper2] Error in class org.apache.jasper.JspC However, if I have this absolut URI in the static web/myfile.jsp directory, everything runs smoothly (i.e. if Tomcat compiles during runtime, it does not complain). However, if I change the absolute URI to a local URI and supply the TLD-file, everything runs fine again (i.e. JSPC is working fine): %@ taglib prefix=c uri = /WEB-INF/c.tld % Has anybody an idea why JSPC works differently to the JSP compilation during runtime? thx alot Johannes
Library management for Tomcat using ant
Hi there, I know this is more a question about ant, but maybe a tomcat user here has faced the same issue as I do when using a central lib directory for all of the JAR files in the various webapps: In the prepare task I copy the JAR files I need for my webapp into the WEB-INF/lib folder in the build path: === copy todir=${build.home}/WEB-INF/lib fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset /copy = However, this library listing is the only thing which distinguishes the various build.xml files for my different webapps. I'd prefer to have only ONE build.xml file for all of my webapps so they all have the same structure. How can I import a fileset like above from a separate filename? (so I can have *) ONE build.xml for all of my webapps and *) a specific lib.xml for each of my webapps? thx alot Johannes
Jasper2 (JSPC) compiler option for WEB-INF directory?
Hi there, I have the following file structure: /jsp/myfile.jsp /web/WEB-INF/web.xml /web/WEB-INF/c.tld When I run ant jspc, it looks for the web.xml file in the /jsp/WEB-INF/web.xml directory. So I always have to copy the /web/WEB-INF folder to the jsp directory. Is there a way to tell the jasper2 task where to find the WEB-INF directory?? At first glance it seems there is no option for this available: jasper2 validateXml=false uriroot=${basedir}/jsp webXmlFragment=${basedir}/webinc.xml outputDir=${basedir}/src / thx alot Johannes
Re: Library management for Tomcat using ant
[EMAIL PROTECTED] wrote: Hi there, I know this is more a question about ant, but maybe a tomcat user here has faced the same issue as I do when using a central lib directory for all of the JAR files in the various webapps: In the prepare task I copy the JAR files I need for my webapp into the WEB-INF/lib folder in the build path: === copy todir=${build.home}/WEB-INF/lib fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset /copy = However, this library listing is the only thing which distinguishes the various build.xml files for my different webapps. I'd prefer to have only ONE build.xml file for all of my webapps so they all have the same structure. How can I import a fileset like above from a separate filename? (so I can have *) ONE build.xml for all of my webapps and *) a specific lib.xml for each of my webapps? thx alot Johannes Hi Johannes, why not coding your own task ? reading a single filename then copying files is an easy task to be coded in Java isn't it ? HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Library management for Tomcat using ant
Hi Jerome, Yes, certainly that's what I thought at the first glance as well. But wouldn't it make more sense to make the fileset importable from another file (i.e. extend the FileSet datatype to allow imports from another file)? e.g. build.xml: copy todir=${build.home}/WEB-INF/lib fileset src=lib.xml / /copy lib.xml: fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset == but since I'm not yet an ant expert, I don't know where to start to extend the FileSet datatype of ant. Anybody any ideas? I think this kind of action (=reading a tag from an external file) could be required more often, so I think it would make sense to extend the FileSet datatype. Has anybody a good idea where to start? (probably at the ant mailinglist :)? thx, Johannes jerome moliere [EMAIL PROTECTED] 30.03.2003 14:26 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Library management for Tomcat using ant [EMAIL PROTECTED] wrote: Hi there, I know this is more a question about ant, but maybe a tomcat user here has faced the same issue as I do when using a central lib directory for all of the JAR files in the various webapps: In the prepare task I copy the JAR files I need for my webapp into the WEB-INF/lib folder in the build path: === copy todir=${build.home}/WEB-INF/lib fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset /copy = However, this library listing is the only thing which distinguishes the various build.xml files for my different webapps. I'd prefer to have only ONE build.xml file for all of my webapps so they all have the same structure. How can I import a fileset like above from a separate filename? (so I can have *) ONE build.xml for all of my webapps and *) a specific lib.xml for each of my webapps? thx alot Johannes Hi Johannes, why not coding your own task ? reading a single filename then copying files is an easy task to be coded in Java isn't it ? HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Single sign on problem!!
Requesting again!!! Any suggestion on the below given problem??? btw, I am using Tomcat 4.0.4 regards, Madhavi At 17:22 28/03/2003 +, you wrote: Hi there! I am trying to use Single sign on feature of tomcat and got stuck. My problem is - even after configuring my webapps (all running under tomcat) for single sign-on, when i change to a different app, it is asking me to authenticate again. I must be missing something that ties all these webapps, but don't know what it is. Here is what I have done - --- In server.xml: Engine name=Standalone defaultHost=localhost debug=0 Realm className=org.apache.catalina.realm.JDBCRealm debug=99 driverName=sun.jdbc.odbc.JdbcOdbcDriver connectionURL=jdbc:odbc:singleSignOn userTable=STUDENT userNameCol=USERNAME userCredCol=PASSWORD userRoleTable=ROLES roleNameCol=USERROLE / Host name=localhost debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.authenticator.SingleSignOn debug=0/ --- In web.xml of each application: security-constraint web-resource-collection web-resource-nameWebapp safe access .../web-resource-name url-pattern/addPackage.do/url-pattern url-pattern/delPackage.do/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-nameadmin/role-name role-namevisitor/role-name role-nameauthor/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-pagexLogin.do/form-login-page form-error-page/index.jsp/form-error-page /form-login-config /login-config --- Is there anything else I have to do??? Any help on this would be greatly appreciated. Also, can anybody point me to a place which has more information on this feature. So far, I have found only this: http://www.ingrid.org/jajakarta/tomcat/tomcat-4.0b5/src/catalina/docs/singlesignon.html Thanks. best regards, Madhavi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jni_connect.dll
- Original Message - From: Murtaza Bhaloo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 2:29 PM Subject: jni_connect.dll hello i want to install tomcat version 3.2.4 .cannot locate jni_connect.dll pls let me know where to get this file from i am using win2000 server and IIS waiting for your earliest reply thanks and regards murtaza - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat 4.1.18 NT service
Yes Larry, that's the weird thing - everything looks fine until the hang, then the Iexplorer globe just keeps rotating. No response, no timeout, nothing in the log, it just goes on... I'll try to leave it overnight to see if it eventually returns. The worst part is that it does actually work for a brief few minutes, so the config can't be that bad. meantime, I've installed on another NT4 box, and got exactly the same. I got the .exe from the apache site, so I'm hoping someone else has seen it. Any ideas gladly accepted... Andy = Larry Meadors Larry.Meadors () plumcreek ! com Did you look in the logs? [EMAIL PROTECTED] 03/28/03 10:14 AM All, The tomcat-4.1.18.exe installs perfectly as a service on my NT 4 box, starts up tomcat service happily, and immediately responds on port 8080 with the example servlets. Then within a minute or two, it stops responding completely - just hangs with no output anywhere. If I startup using the bat files in DOS, everything runs fine. Any ideas ? Thanks, Andy __ Yahoo! Plus For a better Internet experience http://www.yahoo.co.uk/btoffer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Porting a functioning Web App to Tomcat 3.2.4
I have a Web App that I have successfully deployed to a JRun server, but when I try to port it over to Tomcat 3.2.4 I get the error that it cannot find my Servlet class. I hard coded the path to that class in my refering HTML page and it found the class properly, however I have several servlets accessed in that first servlet, and now it is choking on the second servlet call. I have what I believe is a proper web.xml file, and in fact it was working properly on JRun, which could find all the abstracted servlets properly, but it apears that Tomcat is not reading the Web.xml file. Can anyone please help me? Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
iPlanet and Tomcat 4.1.24
I have dredge thru the archives and done a bunch of googling and can't quite seem to get all the needed pieces. I want to: have iPlanet iWS 4.1 sp 9 on Solaris 8 forward JSP/Servlet requests to Tomcat 4.1.24. I have seen the neshow page related to jk2, however it is very slanted to Win32. Further more I can't find anysort of binaries (of SOs) for solaris anywhere. I have tried building jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz to; however, I run into tons of compilation errors ane build snafus. There is no reall good documentation for the build process. Can I do this? Am I missing something? Is there another connector I should be using instead of JK2? Why? For various *organizational* reasons I need to front-end my J2EE work with an iPlanet WS, I have some latitued on the iWS rev (could go to 6 if needed), but it would be difficult/impossible (organizationally not technically) to use Tomcat alone. -Fred OK I will come clean: I have to use Netegrity's Siteminder (4.56) for SSO services. My organization is gun shy about useing Netegrity's J2EE AppServer agents (I don't know why, I think the reason is ignorance of ASA). So I am stuck with frontending all my J2EE work with iWS (even when I have on static content for iWS to serve).Oh and Apache is not an option either. So if you have another angle on cracking this nut, I am all ears? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Taglib resolution trouble
Make sure you add the TagLib definition in the web.xml. Dov Rosenberg On Sunday, March 30, 2003, at 05:32 AM, [EMAIL PROTECTED] wrote: Hi there, If I try to compile a JSP with an absolute URI to a taglib like %@ taglib prefix=c uri = http://java.sun.com/jstl/core; % then the compiler complains: jspc: 2003-03-30 12:30:05 - ERROR-the file '\views\mylist\list.jsp' ge nerated the following general exception: org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.x ml or the jar files deployed with this application [jasper2] Error in class org.apache.jasper.JspC However, if I have this absolut URI in the static web/myfile.jsp directory, everything runs smoothly (i.e. if Tomcat compiles during runtime, it does not complain). However, if I change the absolute URI to a local URI and supply the TLD-file, everything runs fine again (i.e. JSPC is working fine): %@ taglib prefix=c uri = /WEB-INF/c.tld % Has anybody an idea why JSPC works differently to the JSP compilation during runtime? thx alot Johannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Database connections and webapp reload in the Manager
Hello! I'm working on a small webapp using Struts, which is accessing a MySQL database using a DataSource. It works very nice, but I have noticed that every time I reload the webapp using the Tomcat Manager, the current database connection is kept but next time the DataSource is used again a new connection is opened. The only way to close the old connections seems to be to restart Tomcat. Is that normal or am I doing something wrong? Thanks in advance! Best Regards Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 logic check
I went through with your advice and it really removed the extra information from my files. The location directive works, but it maps the root of tomcat to the /ccpd directory and my configuration in workers2.properties file is ignored. What I really want is the /, root of ccpd.foo.edu to map the tomcat context ccpd httpd2.conf Location /ccpd JkUriSet worker ajp13:localhost:8009 /Location workers2.properties [uri:ccpd.foo.edu/*] info=ccpd context=/ccpd Here's my vhost configuration: # Winter Session VHost VirtualHost 192.168.222.169 ServerAdmin [EMAIL PROTECTED] ServerName ccpd.foo.edu DocumentRoot /home/httpd/servers/ccpd.foo.edu/html Location /ccpd JkUriSet worker ajp13:localhost:8009 /Location DirectoryIndex index.html index.php3 ErrorLog /home/httpd/servers/logs/ccpd.foo.edut-error_log CustomLog /home/httpd/servers/logs/ccpd.foo.edu-access_log.combined combined /VirtualHost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Library management for Tomcat using ant
[EMAIL PROTECTED] wrote: Hi Jerome, Yes, certainly that's what I thought at the first glance as well. But wouldn't it make more sense to make the fileset importable from another file (i.e. extend the FileSet datatype to allow imports from another file)? e.g. build.xml: copy todir=${build.home}/WEB-INF/lib fileset src=lib.xml / /copy lib.xml: fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset == but since I'm not yet an ant expert, I don't know where to start to extend the FileSet datatype of ant. Anybody any ideas? I think this kind of action (=reading a tag from an external file) could be required more often, so I think it would make sense to extend the FileSet datatype. Has anybody a good idea where to start? (probably at the ant mailinglist :)? This really is a question for the Ant list. You might be able to solve your problem, however, using the XML include technique described in http://ant.apache.org/faq.html#xml-entity-include, or by just piping the lib file list in on the command line, using: http://ant.apache.org/faq.html#passing-cli-args -Phil thx, Johannes jerome moliere [EMAIL PROTECTED] 30.03.2003 14:26 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Library management for Tomcat using ant [EMAIL PROTECTED] wrote: Hi there, I know this is more a question about ant, but maybe a tomcat user here has faced the same issue as I do when using a central lib directory for all of the JAR files in the various webapps: In the prepare task I copy the JAR files I need for my webapp into the WEB-INF/lib folder in the build path: === copy todir=${build.home}/WEB-INF/lib fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset /copy = However, this library listing is the only thing which distinguishes the various build.xml files for my different webapps. I'd prefer to have only ONE build.xml file for all of my webapps so they all have the same structure. How can I import a fileset like above from a separate filename? (so I can have *) ONE build.xml for all of my webapps and *) a specific lib.xml for each of my webapps? thx alot Johannes Hi Johannes, why not coding your own task ? reading a single filename then copying files is an easy task to be coded in Java isn't it ? HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Page not found errors with Tomcat 4.1.24
I recently moved a site from Tomcat 4.1.12 to 4.1.24. That site runs a Struts 1.1-RC1 application. After the update, the main menu worked OK, but my application failed with a Page cannot be displayed error. I tried various URLs and could get Tomcat errors for any page that did not actually exist but pages that actually did exist (xxx.do) failed. I am using the Coyote connector and have a single context defined in the webapps directory. I ended up bringing the site into Eclipse and started Debug on the Struts ActionServlet. I hit my break pointes and lo and behold, the pages work. After some trial and error, I can see that pages seem to fail most of the time, but sometimes they work. In debug with breakpoints they always seem to work. Does anyone have any ideas how I can narrow this down. I suppose I could go back to 4.1.12, but after spending a couple of hours I would like to see it work. Thanks, David Morris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk2 logic check
Do you know if there is anything that explains the syntax of JkUriSet? This shows how to set a worker, but I still need to tell it what context to hook to. The way I read this is /ccpd is a directory that apache maps as http://ccpd.foo.edu/ccpd Location /ccpd JkUriSet worker ajp13:localhost:8009 /Location Thanks --Rick Quinton McCombs wrote: -Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 6:11 PM To: Tomcat List Subject: mod_jk2 logic check I have apache 2.0.43 and tomcat 4.1.24. I've set up mod_jk2. Here is my understanding of how things should work. I need this logic double check. My webapp is locate in webapps/ccpd I restart tomcat and/or tomcat automaticly finds the webapp ccpd and maps a default contect to it. context=/ccpd In the apache2 httpd2.conf file the following is inserted: ###Load mod_jk2 and relate file LoadModule jk2_module modules/mod_jk2.so Include /etc/httpd2/conf/jk2.properties No. You do not include the jk2.properties file into your httpd.conf file. As long as your jk2.properties file is found under ${serverRoot}/conf, it will read it. You can manually set the location of the config file and a few other directives using the JkSet directive. I also set the virtual host up so apache recognizes it. From there I configure the workers2.properties file: [uri:ccpd.foo.edu/*] info=ccpd context=/ccpd From what I understand now that i have set these all in place. Everything now should work just fine. Anything that runs off of ccpd.foo.edu will not map directly to my tomcat4 context. I could not figure out what context and servlet path were meant to be used for. It did not seem to matter what combinations I tried, I could not seem to map servlet requests to a virtual host in jk2.properties. I was able to use the JkUriSet directive in httpd.conf to perform the mapping. You might run into a problem here if you have multiple virtual hosts mapping the same path... In your virtual host configuration, you do something like this: Location /ccpd JkUriSet worker ajp13:localhost:8009 /Location Is this correct? Maybe the problem is elsewhere. What's the best way to diagnose this? Thanks you for help. --Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat-users.xml getting erased
Every week or so, my tomcat-users.xml file is getting it's contents deleted. I'm assuming this probably happens when there is an abrupt shutdown of the server or something. Basically, when I can't login to my manager application, I look at tomcat-users.xml and all it has is: tomcat-users /tomcat-users Any ideas? Thanks, Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual hosting mod_jk2
Thanks, I'm going to go back and try mod_jk for now and see how that goes. Thanks for the help. --Rick Quinton McCombs wrote: None at all. I think that I encountered a bug or two in mod_jk2. This is when you have two virtual hosts mapping the same path to the worker. Only the last map is kept. I ended up switching to mod_jk. I got everything working under that connector. I can go into the details of how that is working if you are interested. -Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 5:56 PM To: Tomcat Users List Subject: Re: Virtual hosting mod_jk2 Did you have any luck getting this configured? I'm having difficulties doing the same thing. --Rick On Thursday, March 27, 2003, at 03:51 PM, Quinton McCombs wrote: I am having a difficult time figuring out how to properly configure Apache 2.0.44 and Tomcat 4.1.12 with virtual hosting. I am using mod_jk2 as my connector. I have all of this working with Apache 1.3, Tomcat 4.1, and mod_webapp In my testing environment, I have a servlet based application that is available over https and http. On the tomcat side, I have defined the default host and one virtual host. The virtual host (test.nequalsone.com) has a non-default appBase. The intent here is to only allow access to the application through test.nequalsone.com although the server can be accessed by serveral names. On the Apache side, I am using name based virtual hosting. I have one host defined to use SSL which should forward requests for my application to Tomcat. I have another virtual host (test.nequalsone.com) that is defined to also forward requests to tomcat. I am using JKUriSet to define the mapping to Tomcat. This seemed to work fine at first but then I noticed that the application did not work properly on the SSL version. My application did not detect that it was being accessed over SSL so it was generating links using http:// instead of https://. Everything else appeared to work... I decided to try creating a second AJP13 connector on tomcat. The second connection has scheme=https and secure=true. Both connectors are on different ports. Is this the correct way to solve this problem so far? Next, I created a new channel in workers2.properties. I then modified the JKSetUri directive for the SSL virtual host to use the new channel. This is where things started to go wrong Checking the jkstatus page showed that the last JKSetUri directive over wrote the previous one. Under the uri runtime info section, I had the following: Id=0, name=/neo/servlet, host=*, uri=/neo/servlet, group=ajp13:localhost:8010, context=/ The location that I mapped for both virtual hosts was /neo/servlet. It seems that it should have created two uri mappings with different hosts. After running into this problem, I tried setting the mapping in workers2.properties. I was unable to get that working properly. Consider the following section from the virtual host in apache. VirtualHost * ServerName test.nequalsone.com DocumentRoot /usr/local/www/test Alias /neo /opt/jakarta/test_webapps/neo Location /neo/servlet JKUriSet group ajp13:localhost:8009 /Location /VirtualHost I tried all of the following entries in workers2.properties: [uri:test.nequalsone.com/neo/servlet] Group=agp13:localhost:8009 [uri:test.nequalsone.com/neo/servlet/] Group=agp13:localhost:8009 [uri:test.nequalsone.com/neo/servlet/*] Group=agp13:localhost:8009 [uri:/neo/servlet] Group=agp13:localhost:8009 [uri:/neo/servlet/] Group=agp13:localhost:8009 [uri:/neo/servlet/*] Group=agp13:localhost:8009 None of them worked. The log file for the mod_jk2 module reported that the file /opt/jakarta/test_webapps/neo/servlet did not exist. What am I doing wrong here? Quinton McCombs NequalsOne - HealthCare marketing tools mailto:[EMAIL PROTECTED] http://www.NequalsOne.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual hosting mod_jk2
Actually, I'm interested. I wanted to try things out first. What did you do for the workers.properties file? --Rick Richard Anderson wrote: Thanks, I'm going to go back and try mod_jk for now and see how that goes. Thanks for the help. --Rick Quinton McCombs wrote: None at all. I think that I encountered a bug or two in mod_jk2. This is when you have two virtual hosts mapping the same path to the worker. Only the last map is kept. I ended up switching to mod_jk. I got everything working under that connector. I can go into the details of how that is working if you are interested. -Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 5:56 PM To: Tomcat Users List Subject: Re: Virtual hosting mod_jk2 Did you have any luck getting this configured? I'm having difficulties doing the same thing. --Rick On Thursday, March 27, 2003, at 03:51 PM, Quinton McCombs wrote: I am having a difficult time figuring out how to properly configure Apache 2.0.44 and Tomcat 4.1.12 with virtual hosting. I am using mod_jk2 as my connector. I have all of this working with Apache 1.3, Tomcat 4.1, and mod_webapp In my testing environment, I have a servlet based application that is available over https and http. On the tomcat side, I have defined the default host and one virtual host. The virtual host (test.nequalsone.com) has a non-default appBase. The intent here is to only allow access to the application through test.nequalsone.com although the server can be accessed by serveral names. On the Apache side, I am using name based virtual hosting. I have one host defined to use SSL which should forward requests for my application to Tomcat. I have another virtual host (test.nequalsone.com) that is defined to also forward requests to tomcat. I am using JKUriSet to define the mapping to Tomcat. This seemed to work fine at first but then I noticed that the application did not work properly on the SSL version. My application did not detect that it was being accessed over SSL so it was generating links using http:// instead of https://. Everything else appeared to work... I decided to try creating a second AJP13 connector on tomcat. The second connection has scheme=https and secure=true. Both connectors are on different ports. Is this the correct way to solve this problem so far? Next, I created a new channel in workers2.properties. I then modified the JKSetUri directive for the SSL virtual host to use the new channel. This is where things started to go wrong Checking the jkstatus page showed that the last JKSetUri directive over wrote the previous one. Under the uri runtime info section, I had the following: Id=0, name=/neo/servlet, host=*, uri=/neo/servlet, group=ajp13:localhost:8010, context=/ The location that I mapped for both virtual hosts was /neo/servlet. It seems that it should have created two uri mappings with different hosts. After running into this problem, I tried setting the mapping in workers2.properties. I was unable to get that working properly. Consider the following section from the virtual host in apache. VirtualHost * ServerName test.nequalsone.com DocumentRoot /usr/local/www/test Alias /neo /opt/jakarta/test_webapps/neo Location /neo/servlet JKUriSet group ajp13:localhost:8009 /Location /VirtualHost I tried all of the following entries in workers2.properties: [uri:test.nequalsone.com/neo/servlet] Group=agp13:localhost:8009 [uri:test.nequalsone.com/neo/servlet/] Group=agp13:localhost:8009 [uri:test.nequalsone.com/neo/servlet/*] Group=agp13:localhost:8009 [uri:/neo/servlet] Group=agp13:localhost:8009 [uri:/neo/servlet/] Group=agp13:localhost:8009 [uri:/neo/servlet/*] Group=agp13:localhost:8009 None of them worked. The log file for the mod_jk2 module reported that the file /opt/jakarta/test_webapps/neo/servlet did not exist. What am I doing wrong here? Quinton McCombs NequalsOne - HealthCare marketing tools mailto:[EMAIL PROTECTED] http://www.NequalsOne.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED]
Re: Memory Woes
Actually, this is 100% servlet-powered... no JSP pages are used. Anyone else know of any issues? Mark - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 28, 2003 8:17 AM Subject: Memory Woes Hello, Has anyone had any memory issues when running Tomcat in a production environment where it stays up for weeks? I have a webapp that is fairly intense, using the Struts framework (which is great, by the way!) with streaming data to sockets and database logging to mySQL. I have several of these apps running in one Tomcat installation. My problem is that memory usage keeps steadily creeping up on me until I start getting the dreaded java.lang.OutOfMemoryError (or something like that). I bumped up the memory settings for the JVM memory settings, which simply delays the problem, but it still happens. (-Xmx... ) I have also profiled the application, and found that after garbage collection all of my objects go back to the original usage levels (as far as instances). None of them are continually appending to a string or anything like that... mainly just state information. I'm not sure where to go from here - having to occasionally restart Tomcat once a month is not a workable solution for me. Any advice would be GREATLY appreciated! Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SOLVED: Re: Library management for Tomcat using ant
hi phil, the issue has already been solved on the ant mailinglist. if any tomcat-user is interested, I post the answer of Jake here: If various lib.xml files contain contents similar to your copy task below, the build.xml file might look like ?xml version=1.0 encoding=UTF-8? !DOCTYPE project [ !ENTITY lib-project1 SYSTEM file:./lib1.xml !ENTITY lib-project2 SYSTEM file:./lib2.xml ] project name=MyProject default=compile basedir=. ... ... ... target name=copyjars lib-project1; lib-project2; /target ... ... ... /project Jake Johannes Phil Steitz [EMAIL PROTECTED] 30.03.2003 18:30 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Library management for Tomcat using ant [EMAIL PROTECTED] wrote: Hi Jerome, Yes, certainly that's what I thought at the first glance as well. But wouldn't it make more sense to make the fileset importable from another file (i.e. extend the FileSet datatype to allow imports from another file)? e.g. build.xml: copy todir=${build.home}/WEB-INF/lib fileset src=lib.xml / /copy lib.xml: fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset == but since I'm not yet an ant expert, I don't know where to start to extend the FileSet datatype of ant. Anybody any ideas? I think this kind of action (=reading a tag from an external file) could be required more often, so I think it would make sense to extend the FileSet datatype. Has anybody a good idea where to start? (probably at the ant mailinglist :)? This really is a question for the Ant list. You might be able to solve your problem, however, using the XML include technique described in http://ant.apache.org/faq.html#xml-entity-include, or by just piping the lib file list in on the command line, using: http://ant.apache.org/faq.html#passing-cli-args -Phil thx, Johannes jerome moliere [EMAIL PROTECTED] 30.03.2003 14:26 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Library management for Tomcat using ant [EMAIL PROTECTED] wrote: Hi there, I know this is more a question about ant, but maybe a tomcat user here has faced the same issue as I do when using a central lib directory for all of the JAR files in the various webapps: In the prepare task I copy the JAR files I need for my webapp into the WEB-INF/lib folder in the build path: === copy todir=${build.home}/WEB-INF/lib fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset /copy = However, this library listing is the only thing which distinguishes the various build.xml files for my different webapps. I'd prefer to have only ONE build.xml file for all of my webapps so they all have the same structure. How can I import a fileset like above from a separate filename? (so I can have *) ONE build.xml for all of my webapps and *) a specific lib.xml for each of my webapps? thx alot Johannes Hi Johannes, why not coding your own task ? reading a single filename then copying files is an easy task to be coded in Java isn't it ? HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Library management for Tomcat using ant
Hi Phil, Thx for your input, I already posted to the Ant forum - if they don't jump on this topic I'll try to use the links you sent and keep you posted on the results thx alot Johannes Phil Steitz [EMAIL PROTECTED] 30.03.2003 18:30 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Library management for Tomcat using ant [EMAIL PROTECTED] wrote: Hi Jerome, Yes, certainly that's what I thought at the first glance as well. But wouldn't it make more sense to make the fileset importable from another file (i.e. extend the FileSet datatype to allow imports from another file)? e.g. build.xml: copy todir=${build.home}/WEB-INF/lib fileset src=lib.xml / /copy lib.xml: fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset == but since I'm not yet an ant expert, I don't know where to start to extend the FileSet datatype of ant. Anybody any ideas? I think this kind of action (=reading a tag from an external file) could be required more often, so I think it would make sense to extend the FileSet datatype. Has anybody a good idea where to start? (probably at the ant mailinglist :)? This really is a question for the Ant list. You might be able to solve your problem, however, using the XML include technique described in http://ant.apache.org/faq.html#xml-entity-include, or by just piping the lib file list in on the command line, using: http://ant.apache.org/faq.html#passing-cli-args -Phil thx, Johannes jerome moliere [EMAIL PROTECTED] 30.03.2003 14:26 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: Library management for Tomcat using ant [EMAIL PROTECTED] wrote: Hi there, I know this is more a question about ant, but maybe a tomcat user here has faced the same issue as I do when using a central lib directory for all of the JAR files in the various webapps: In the prepare task I copy the JAR files I need for my webapp into the WEB-INF/lib folder in the build path: === copy todir=${build.home}/WEB-INF/lib fileset dir=${lib.home} include name=cos.jar / include name=cos2.jar / /fileset /copy = However, this library listing is the only thing which distinguishes the various build.xml files for my different webapps. I'd prefer to have only ONE build.xml file for all of my webapps so they all have the same structure. How can I import a fileset like above from a separate filename? (so I can have *) ONE build.xml for all of my webapps and *) a specific lib.xml for each of my webapps? thx alot Johannes Hi Johannes, why not coding your own task ? reading a single filename then copying files is an easy task to be coded in Java isn't it ? HTH Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Taglib resolution trouble
Hi Dov, Do you know how to describe a taglib with an absolute uri (e.g. http://java.sun.com/jstl/core) in web.xml? Can you post a sample here? I haven't had to describe my taglib in web.xml yet, because I used the /WEB-INF/xxx.tld syntax in my JSPs, thus they always have worked so far! thx alot Johannes Dov Rosenberg [EMAIL PROTECTED] 30.03.2003 17:17 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: JSP Taglib resolution trouble Make sure you add the TagLib definition in the web.xml. Dov Rosenberg On Sunday, March 30, 2003, at 05:32 AM, [EMAIL PROTECTED] wrote: Hi there, If I try to compile a JSP with an absolute URI to a taglib like %@ taglib prefix=c uri = http://java.sun.com/jstl/core; % then the compiler complains: jspc: 2003-03-30 12:30:05 - ERROR-the file '\views\mylist\list.jsp' ge nerated the following general exception: org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.x ml or the jar files deployed with this application [jasper2] Error in class org.apache.jasper.JspC However, if I have this absolut URI in the static web/myfile.jsp directory, everything runs smoothly (i.e. if Tomcat compiles during runtime, it does not complain). However, if I change the absolute URI to a local URI and supply the TLD-file, everything runs fine again (i.e. JSPC is working fine): %@ taglib prefix=c uri = /WEB-INF/c.tld % Has anybody an idea why JSPC works differently to the JSP compilation during runtime? thx alot Johannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
?? Simple Newbie Question about Root Context ??
My Tomcat skills are rusty -- I must be missing something easy here. I just installed TC v4.1.24 on Win 2k. The installation worked right out of the box. I didn't have to make any changes to the server.xml. TC is up and running but I'm seeing something strange I was hoping someone could explain: Here's a quote from the TC documentation: ...you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path. Okay, that's fine, but when I look at conf/server.xml I see this: !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Why is this commented out? According to the documentation there must be a context path equal to a zero-length string. The quote I cited seems to contradict what I'm seeing in server.xml. Even though this is commented out everything seems to work fine. In other words, if I browse to localhost:8080 I do indeed see webapps/ROOT/index.jsp. Is the docBase named ROOT the default? If so, then the documentation should mention that I think. Thanks very much, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Caching problem with sendRedirect
I appear to be having a problem with caching when using sendRedirect. I have two filters: The first creates/loads a user profile and stores it in the session. The second checks to see if the user profile id is contained in the query string, if not it uses a sendRedirect to the same url but with the user profile id in the query string. This only happens the first time the user hits the site as all subsequent links contain the user profile id in the href. My problem is that the when the redirect occurs, if the page has been viewed before, the browser does loads the page from its cache no matter what I put in the response header. I have tried the following in the response to stop it caching: response.setHeader(Cache-Control, no-cache); response.setHeader(Pragma, no-cache); response.setDateHeader(max-age, 0); response.setDateHeader(Expires, 0); Yet if I hit the same page, but avoid the sendRedirect by including the user id in the url, the page is not loaded from the browser cache. This occurs for both IE6 and Mozilla 1.2. This is causing me grief for my web logging. Is there something in the sendRedirect HTTP header that I am missing or is this normal behaviour? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Page not found errors with Tomcat 4.1.24
Through trial and error, I found that the CoyoteConnector seems to be the root of the problem. My pages are served up find with the HttpConnector. I originally switched to the CoyoteConnector when I saw that the HttpConnector was deprecated. Does anyone know if this is a bug and if it has been reported? Thanks, David Morris [EMAIL PROTECTED] 03/30/03 10:00 AM I recently moved a site from Tomcat 4.1.12 to 4.1.24. That site runs a Struts 1.1-RC1 application. After the update, the main menu worked OK, but my application failed with a Page cannot be displayed error. I tried various URLs and could get Tomcat errors for any page that did not actually exist but pages that actually did exist (xxx.do) failed. I am using the Coyote connector and have a single context defined in the webapps directory. I ended up bringing the site into Eclipse and started Debug on the Struts ActionServlet. I hit my break pointes and lo and behold, the pages work. After some trial and error, I can see that pages seem to fail most of the time, but sometimes they work. In debug with breakpoints they always seem to work. Does anyone have any ideas how I can narrow this down. I suppose I could go back to 4.1.12, but after spending a couple of hours I would like to see it work. Thanks, David Morris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?? Simple Newbie Question about Root Context ??
Although I am really a newbie, I have the same o/s system. I have trouble loading my pages until I created them under the ROOT path and uncommented the section you are referring to. Here is a good web reference. http://www.moreservlets.com/Using-Tomcat-4.html - Original Message - From: Tony LaPaso [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 4:00 PM Subject: ?? Simple Newbie Question about Root Context ?? My Tomcat skills are rusty -- I must be missing something easy here. I just installed TC v4.1.24 on Win 2k. The installation worked right out of the box. I didn't have to make any changes to the server.xml. TC is up and running but I'm seeing something strange I was hoping someone could explain: Here's a quote from the TC documentation: ...you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path. Okay, that's fine, but when I look at conf/server.xml I see this: !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Why is this commented out? According to the documentation there must be a context path equal to a zero-length string. The quote I cited seems to contradict what I'm seeing in server.xml. Even though this is commented out everything seems to work fine. In other words, if I browse to localhost:8080 I do indeed see webapps/ROOT/index.jsp. Is the docBase named ROOT the default? If so, then the documentation should mention that I think. Thanks very much, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?? Simple Newbie Question about Root Context ??
Well, I don't have to create pages under ROOT as you did, but that's a separate issue from what I'm asking. - Original Message - From: Carol Carrick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 3:50 PM Subject: Re: ?? Simple Newbie Question about Root Context ?? Although I am really a newbie, I have the same o/s system. I have trouble loading my pages until I created them under the ROOT path and uncommented the section you are referring to. Here is a good web reference. http://www.moreservlets.com/Using-Tomcat-4.html - Original Message - From: Tony LaPaso [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 4:00 PM Subject: ?? Simple Newbie Question about Root Context ?? My Tomcat skills are rusty -- I must be missing something easy here. I just installed TC v4.1.24 on Win 2k. The installation worked right out of the box. I didn't have to make any changes to the server.xml. TC is up and running but I'm seeing something strange I was hoping someone could explain: Here's a quote from the TC documentation: ...you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path. Okay, that's fine, but when I look at conf/server.xml I see this: !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Why is this commented out? According to the documentation there must be a context path equal to a zero-length string. The quote I cited seems to contradict what I'm seeing in server.xml. Even though this is commented out everything seems to work fine. In other words, if I browse to localhost:8080 I do indeed see webapps/ROOT/index.jsp. Is the docBase named ROOT the default? If so, then the documentation should mention that I think. Thanks very much, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?? Simple Newbie Question about Root Context ??
The website I sent tells you to take the comments out. - Original Message - From: Tony LaPaso [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 5:01 PM Subject: Re: ?? Simple Newbie Question about Root Context ?? Well, I don't have to create pages under ROOT as you did, but that's a separate issue from what I'm asking. - Original Message - From: Carol Carrick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 3:50 PM Subject: Re: ?? Simple Newbie Question about Root Context ?? Although I am really a newbie, I have the same o/s system. I have trouble loading my pages until I created them under the ROOT path and uncommented the section you are referring to. Here is a good web reference. http://www.moreservlets.com/Using-Tomcat-4.html - Original Message - From: Tony LaPaso [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 4:00 PM Subject: ?? Simple Newbie Question about Root Context ?? My Tomcat skills are rusty -- I must be missing something easy here. I just installed TC v4.1.24 on Win 2k. The installation worked right out of the box. I didn't have to make any changes to the server.xml. TC is up and running but I'm seeing something strange I was hoping someone could explain: Here's a quote from the TC documentation: ...you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path. Okay, that's fine, but when I look at conf/server.xml I see this: !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Why is this commented out? According to the documentation there must be a context path equal to a zero-length string. The quote I cited seems to contradict what I'm seeing in server.xml. Even though this is commented out everything seems to work fine. In other words, if I browse to localhost:8080 I do indeed see webapps/ROOT/index.jsp. Is the docBase named ROOT the default? If so, then the documentation should mention that I think. Thanks very much, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JkUriSet how to use
Can all the properties in worker2.properties be set with JkUriSet? Is there a detailed description of the command anywhere? The documentation on this page has a description of use without the syntax and examples. http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/jk2/configweb.html --Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
workers2 context question
In the workers2.properties file why must the path specified in the [uri:] be equal to the context path? [uri:/ccpd.foo.edu/*] info=dir ccpd context=/ccpd.foo.edu ---desired version--- [uri:/ccpd/*] info=dir ccpd context=/ccpd.foo.edu -or even better, a virtual host- [uri:ccpd.foo.edu/*] info=dir ccpd context=/ccpd.foo.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: it's always the simplest things (redeploy)
To get Tomcat to recognize the new deploy, the previous deploy has to not exist! It only recognizes a new war on its first deploy. So you have to delete the previous files. Manually, in webapps, first delete the war, then the respective exploded dir hierarchy, and finally the respective dir in the work dir hierarchy. Then drop in the war in webapps (it's been awhile since I did a manual deploy, so I am pretty sure that is what it took to get it going). The key thing is clearing the existing one all out so Tomcat will deploy the new one - if anything is there in that context, then it will not. With Ant, use the Tomcat deploy and undeploy tasks. If previously deployed by dropping the war in webapps, then manually delete as above before the first use of deploy or there will be problems. The Tomcat Ant tasks are by far the easiest method I have found. The 3 app servers I have used (WebSphere, WebLogic, and Tomcat) all do it differently, behave differently, and have different side effects (or features ;-). -Original Message- From: Dan Allen [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 11:33 PM To: [EMAIL PROTECTED] Subject: it's always the simplest things (redeploy) I can't for the life of me understand why this has to be so difficult. It seems a major flaw of tomcat not to be able to simply redeploy and activate an application from a war file. I have read many posts on the subject from the archives of this list and no one seems to have a definitive solution. The solution just seems to be just use resin for development, it actually works right, then just deploy on tomcat. Since I have invested a great deal of time in tomcat, I wish not to give up this easily. In short, what does it take to drop a war into the webapps directory, overwriting a previous war and get tomcat to recognize the timestamp is newer and reissue the files so that you can see the changes when you visit the application in the browser? I am tempted just to do my development directly inside the web container to avoid this issue all together, but that just doesn't seem to be the right way to go about things. Since this question comes up so often, maybe we can work out a full answer in this thread so that it doesn't have to be asked again. Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, [EMAIL PROTECTED] http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Microsoft's Law of Software Engineering: Don't worry if it doesn't work right. If everything did, we'd be out of a job. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP Taglib resolution trouble
That is what we do as well. Here is what I have added in our web.xml taglib taglib-uri/CAStaglib/taglib-uri taglib-location/WEB-INF/tlds/conviveon.tld/taglib-location /taglib I would expect the taglib-location could just as easily be a URL. In our JSP pages we declare the taglibrary like %@ taglib uri=/CAStaglib prefix=CAS % HTH Dov Rosenberg On Sunday, March 30, 2003, at 03:22 PM, [EMAIL PROTECTED] wrote: Hi Dov, Do you know how to describe a taglib with an absolute uri (e.g. http://java.sun.com/jstl/core) in web.xml? Can you post a sample here? I haven't had to describe my taglib in web.xml yet, because I used the /WEB-INF/xxx.tld syntax in my JSPs, thus they always have worked so far! thx alot Johannes Dov Rosenberg [EMAIL PROTECTED] 30.03.2003 17:17 Please respond to Tomcat Users List [EMAIL PROTECTED] To Tomcat Users List [EMAIL PROTECTED] cc Subject Re: JSP Taglib resolution trouble Make sure you add the TagLib definition in the web.xml. Dov Rosenberg On Sunday, March 30, 2003, at 05:32 AM, [EMAIL PROTECTED] wrote: Hi there, If I try to compile a JSP with an absolute URI to a taglib like %@ taglib prefix=c uri = http://java.sun.com/jstl/core; % then the compiler complains: jspc: 2003-03-30 12:30:05 - ERROR-the file '\views\mylist\list.jsp' ge nerated the following general exception: org.apache.jasper.JasperException: This absolute uri (http://java.sun.com/jstl/core) cannot be resolved in either web.x ml or the jar files deployed with this application [jasper2] Error in class org.apache.jasper.JspC However, if I have this absolut URI in the static web/myfile.jsp directory, everything runs smoothly (i.e. if Tomcat compiles during runtime, it does not complain). However, if I change the absolute URI to a local URI and supply the TLD-file, everything runs fine again (i.e. JSPC is working fine): %@ taglib prefix=c uri = /WEB-INF/c.tld % Has anybody an idea why JSPC works differently to the JSP compilation during runtime? thx alot Johannes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shared resources
Craig, Thanks again for the information. The info. you've supplied has been very useful. However, my problem remains: I cannot access the class that resides in a JAR file (utilities.jar) in tomcat_home/shared/lib and get a java.lang.NoClassDefFoundError I am spinning my wheels on this so hopefully some details will shed some light on my problem. I wrote a very simple servlet that attempts to use the class in the shared dir. import com.myco.utilities.CASDate; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class Test1 extends HttpServlet { // public void doGet(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { System.out.println(GET method of Test1 invloked); performTask(request, response); } // public void doPost(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { System.out.println(POST method of Test1 invloked); performTask(request, response); } /** * Test the use of a shared class. */ public void performTask(HttpServletRequest request, HttpServletResponse response) { try { java.io.PrintWriter pw = response.getWriter(); CASDate today = new CASDate(); pw.println(CASDate today is + today.toString()); pw.println(CASDate class loaded...); } catch(Throwable theException) { System.out.println(Error...); theException.printStackTrace(System.out); } } } This is the utility class (some getXXX methods deleted for brevity): package com.myco.utilities; import java.util.Calendar; import java.util.GregorianCalendar; public class CASDate { private int ccc = 0; private int yyy = 0; private int mmm = 0; private int ddd = 0; private int time = 0; /** * Default constructor is to create CAS date using the current date. */ public CASDate() { super(); GregorianCalendar cal = new GregorianCalendar(); ccc = 20; yyy = cal.get(Calendar.YEAR) - 2000; mmm = cal.get(Calendar.MONTH) + 1; ddd = cal.get(Calendar.DAY_OF_MONTH); } /** * Return a string in MM/DD/CCYY format. */ public String toString() { String returnValue = getMonth() + / + getDay() + / + getYearAndCentury(); return returnValue; } } The error I get is: java.lang.NoClassDefFoundError: com/myco/utilities/CASDate When I moved utilities.jar to webapp/WEB-INF/lib the error goes away. I hope this provides some clues as to what is going wrong. At this point it looks like a bug but I hope I'm wrong. I am using Tomcat 4.1.18. Any help is GREATLY appreciated. Thanks, Todd -Original Message- From: Craig R. McClanahan[EMAIL PROTECTED] To: Pat McGroin[EMAIL PROTECTED] Date: Thu Mar 27 13:53:24 PST 2003 Subject: Re: shared resources On Thu, 27 Mar 2003, Pat McGroin wrote: Date: Thu, 27 Mar 2003 12:57:03 -0800 (PST) From: Pat McGroin [EMAIL PROTECTED] To: Craig R. McClanahan [EMAIL PROTECTED] Subject: Re: Re: shared resources Craig, Thanks very much for the detailed reply. That is very useful information for getting at resource files. However, my problem is much simpler. I am simply getting java.lang.NoClassDefFoundError errors when I try to use classes in JAR files in the tomcat_home/shared/lib directory. When I move the jar files to my webapp root/WEB-INF/lib the classes are loaded just fine and I don't see these errors. One likely cause for this sort of thing: if a class in your problem child JAR file is itself loaded from the shared class loader, but tries to access a different class that is in the webapp class loader, you'll get exactly this sort of problem. Note that NoClassDefFound errors do *not* say that the class named in the exception report cannot be found (that would be a ClassNotFoundException). Instead, it means that one of the classes that this class depends on cannot be found. Thanks, Todd Craig -Original Message- From: Craig R. McClanahan[EMAIL PROTECTED] To: Tomcat Users List[EMAIL PROTECTED] Date: Thu Mar 27 12:33:57 PST 2003 Subject: Re: shared resources On Thu, 27 Mar 2003, Pat McGroin wrote: Date: Thu, 27 Mar 2003 11:20:49 -0800 (PST) From: Pat McGroin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: shared resources Hello. I am trying to reference a few JAR files from an out-of-process Tomcat 4.1.18 application. The Tomcat 4.1 documentation says that unpacked shared classes and resources will be loaded out of the tomcat_root/shared/classes directory and packed shared resources are loaded out of tomcat_root/shared/lib: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html I put a few JAR files in tomcat_root/shared/lib but they are never loaded. I can move them into my webapp root/WEB-INF/lib and
Re: ?? Simple Newbie Question about Root Context ??
But my point is that everything works fine even *with* the comment. THAT is what's confusing. - Original Message - From: Carol Carrick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 4:20 PM Subject: Re: ?? Simple Newbie Question about Root Context ?? The website I sent tells you to take the comments out. - Original Message - From: Tony LaPaso [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 5:01 PM Subject: Re: ?? Simple Newbie Question about Root Context ?? Well, I don't have to create pages under ROOT as you did, but that's a separate issue from what I'm asking. - Original Message - From: Carol Carrick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 3:50 PM Subject: Re: ?? Simple Newbie Question about Root Context ?? Although I am really a newbie, I have the same o/s system. I have trouble loading my pages until I created them under the ROOT path and uncommented the section you are referring to. Here is a good web reference. http://www.moreservlets.com/Using-Tomcat-4.html - Original Message - From: Tony LaPaso [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 4:00 PM Subject: ?? Simple Newbie Question about Root Context ?? My Tomcat skills are rusty -- I must be missing something easy here. I just installed TC v4.1.24 on Win 2k. The installation worked right out of the box. I didn't have to make any changes to the server.xml. TC is up and running but I'm seeing something strange I was hoping someone could explain: Here's a quote from the TC documentation: ...you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path. Okay, that's fine, but when I look at conf/server.xml I see this: !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Why is this commented out? According to the documentation there must be a context path equal to a zero-length string. The quote I cited seems to contradict what I'm seeing in server.xml. Even though this is commented out everything seems to work fine. In other words, if I browse to localhost:8080 I do indeed see webapps/ROOT/index.jsp. Is the docBase named ROOT the default? If so, then the documentation should mention that I think. Thanks very much, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk2 logic check
No. The docs say that anything you can set in the properties file can be set in httpd.conf. You might try JkUriSet context /xxx. -Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Sunday, March 30, 2003 11:03 AM To: Tomcat Users List Subject: Re: mod_jk2 logic check Do you know if there is anything that explains the syntax of JkUriSet? This shows how to set a worker, but I still need to tell it what context to hook to. The way I read this is /ccpd is a directory that apache maps as http://ccpd.foo.edu/ccpd Location /ccpd JkUriSet worker ajp13:localhost:8009 /Location Thanks --Rick Quinton McCombs wrote: -Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 6:11 PM To: Tomcat List Subject: mod_jk2 logic check I have apache 2.0.43 and tomcat 4.1.24. I've set up mod_jk2. Here is my understanding of how things should work. I need this logic double check. My webapp is locate in webapps/ccpd I restart tomcat and/or tomcat automaticly finds the webapp ccpd and maps a default contect to it. context=/ccpd In the apache2 httpd2.conf file the following is inserted: ###Load mod_jk2 and relate file LoadModule jk2_module modules/mod_jk2.so Include /etc/httpd2/conf/jk2.properties No. You do not include the jk2.properties file into your httpd.conf file. As long as your jk2.properties file is found under ${serverRoot}/conf, it will read it. You can manually set the location of the config file and a few other directives using the JkSet directive. I also set the virtual host up so apache recognizes it. From there I configure the workers2.properties file: [uri:ccpd.foo.edu/*] info=ccpd context=/ccpd From what I understand now that i have set these all in place. Everything now should work just fine. Anything that runs off of ccpd.foo.edu will not map directly to my tomcat4 context. I could not figure out what context and servlet path were meant to be used for. It did not seem to matter what combinations I tried, I could not seem to map servlet requests to a virtual host in jk2.properties. I was able to use the JkUriSet directive in httpd.conf to perform the mapping. You might run into a problem here if you have multiple virtual hosts mapping the same path... In your virtual host configuration, you do something like this: Location /ccpd JkUriSet worker ajp13:localhost:8009 /Location Is this correct? Maybe the problem is elsewhere. What's the best way to diagnose this? Thanks you for help. --Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shared resources
Todd, You need to put your jar file under $CATALINA_HOME/common direcotry. $CATALINA_HOME/shared directory are only available to Catalina engine, not application but /common can be seen by both engine and application. Paul - Original Message - From: Pat McGroin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 5:32 PM Subject: Re: shared resources Craig, Thanks again for the information. The info. you've supplied has been very useful. However, my problem remains: I cannot access the class that resides in a JAR file (utilities.jar) in tomcat_home/shared/lib and get a java.lang.NoClassDefFoundError I am spinning my wheels on this so hopefully some details will shed some light on my problem. I wrote a very simple servlet that attempts to use the class in the shared dir. import com.myco.utilities.CASDate; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class Test1 extends HttpServlet { // public void doGet(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { System.out.println(GET method of Test1 invloked); performTask(request, response); } // public void doPost(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException { System.out.println(POST method of Test1 invloked); performTask(request, response); } /** * Test the use of a shared class. */ public void performTask(HttpServletRequest request, HttpServletResponse response) { try { java.io.PrintWriter pw = response.getWriter(); CASDate today = new CASDate(); pw.println(CASDate today is + today.toString()); pw.println(CASDate class loaded...); } catch(Throwable theException) { System.out.println(Error...); theException.printStackTrace(System.out); } } } This is the utility class (some getXXX methods deleted for brevity): package com.myco.utilities; import java.util.Calendar; import java.util.GregorianCalendar; public class CASDate { private int ccc = 0; private int yyy = 0; private int mmm = 0; private int ddd = 0; private int time = 0; /** * Default constructor is to create CAS date using the current date. */ public CASDate() { super(); GregorianCalendar cal = new GregorianCalendar(); ccc = 20; yyy = cal.get(Calendar.YEAR) - 2000; mmm = cal.get(Calendar.MONTH) + 1; ddd = cal.get(Calendar.DAY_OF_MONTH); } /** * Return a string in MM/DD/CCYY format. */ public String toString() { String returnValue = getMonth() + / + getDay() + / + getYearAndCentury(); return returnValue; } } The error I get is: java.lang.NoClassDefFoundError: com/myco/utilities/CASDate When I moved utilities.jar to webapp/WEB-INF/lib the error goes away. I hope this provides some clues as to what is going wrong. At this point it looks like a bug but I hope I'm wrong. I am using Tomcat 4.1.18. Any help is GREATLY appreciated. Thanks, Todd -Original Message- From: Craig R. McClanahan[EMAIL PROTECTED] To: Pat McGroin[EMAIL PROTECTED] Date: Thu Mar 27 13:53:24 PST 2003 Subject: Re: shared resources On Thu, 27 Mar 2003, Pat McGroin wrote: Date: Thu, 27 Mar 2003 12:57:03 -0800 (PST) From: Pat McGroin [EMAIL PROTECTED] To: Craig R. McClanahan [EMAIL PROTECTED] Subject: Re: Re: shared resources Craig, Thanks very much for the detailed reply. That is very useful information for getting at resource files. However, my problem is much simpler. I am simply getting java.lang.NoClassDefFoundError errors when I try to use classes in JAR files in the tomcat_home/shared/lib directory. When I move the jar files to my webapp root/WEB-INF/lib the classes are loaded just fine and I don't see these errors. One likely cause for this sort of thing: if a class in your problem child JAR file is itself loaded from the shared class loader, but tries to access a different class that is in the webapp class loader, you'll get exactly this sort of problem. Note that NoClassDefFound errors do *not* say that the class named in the exception report cannot be found (that would be a ClassNotFoundException). Instead, it means that one of the classes that this class depends on cannot be found. Thanks, Todd Craig -Original Message- From: Craig R. McClanahan[EMAIL PROTECTED] To: Tomcat Users List[EMAIL PROTECTED] Date: Thu Mar 27 12:33:57 PST 2003 Subject: Re: shared resources On Thu, 27 Mar 2003, Pat McGroin wrote: Date: Thu, 27 Mar 2003 11:20:49 -0800 (PST) From: Pat McGroin [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: shared resources Hello. I am trying to reference a few JAR files from an out-of-process Tomcat 4.1.18 application. The Tomcat 4.1 documentation says that unpacked shared classes
Re: mod_jk2 logic check
Quinton McCombs wrote: No. The docs say that anything you can set in the properties file can be set in httpd.conf. You might try JkUriSet context /xxx. That does work. When I check the /jkstatus it shows up but the desired action doesn't happen or hasn't happened yet. --Rick -Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Sunday, March 30, 2003 11:03 AM To: Tomcat Users List Subject: Re: mod_jk2 logic check Do you know if there is anything that explains the syntax of JkUriSet? This shows how to set a worker, but I still need to tell it what context to hook to. The way I read this is /ccpd is a directory that apache maps as http://ccpd.foo.edu/ccpd Location /ccpd JkUriSet worker ajp13:localhost:8009 /Location Thanks --Rick Quinton McCombs wrote: -Original Message- From: Richard Anderson [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 6:11 PM To: Tomcat List Subject: mod_jk2 logic check I have apache 2.0.43 and tomcat 4.1.24. I've set up mod_jk2. Here is my understanding of how things should work. I need this logic double check. My webapp is locate in webapps/ccpd I restart tomcat and/or tomcat automaticly finds the webapp ccpd and maps a default contect to it. context=/ccpd In the apache2 httpd2.conf file the following is inserted: ###Load mod_jk2 and relate file LoadModule jk2_module modules/mod_jk2.so Include /etc/httpd2/conf/jk2.properties No. You do not include the jk2.properties file into your httpd.conf file. As long as your jk2.properties file is found under ${serverRoot}/conf, it will read it. You can manually set the location of the config file and a few other directives using the JkSet directive. I also set the virtual host up so apache recognizes it. From there I configure the workers2.properties file: [uri:ccpd.foo.edu/*] info=ccpd context=/ccpd From what I understand now that i have set these all in place. Everything now should work just fine. Anything that runs off of ccpd.foo.edu will not map directly to my tomcat4 context. I could not figure out what context and servlet path were meant to be used for. It did not seem to matter what combinations I tried, I could not seem to map servlet requests to a virtual host in jk2.properties. I was able to use the JkUriSet directive in httpd.conf to perform the mapping. You might run into a problem here if you have multiple virtual hosts mapping the same path... In your virtual host configuration, you do something like this: Location /ccpd JkUriSet worker ajp13:localhost:8009 /Location Is this correct? Maybe the problem is elsewhere. What's the best way to diagnose this? Thanks you for help. --Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
which IBM SDK for AIX to use with Tomcat 4.1.24?
Hi, I'm trying to move from websphere to tomcat on AIX. At first I thought I could just use the same JDK that was installed with websphere: $ java -fullversion java full version J2RE 1.2.2 IBM build ca122-20011213was $ But this doesn' seem to work. I can setart Tomcat okay, but I get an error trying to open index.jsp: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) ...etc ... -- There is a bunch of env settings done in wrappers found in the file $JAVA_HOME/bin/sh/javac which at the end calls $JAVA_HOME/bin/javac, and I've set those in my environment so that the javac and java cmds seem to work okay at the shell prompt. But it doesn't work with Tomcat. So, my next step was to request an install a download of the SDK that comes in AIX installp format. Looks like I can go with SDK 1.2.2 with some fixes put on it, or with SDK 1.3.0, or SDK 1.3.1. I have an AIX 4.3.3 box, so I cannot get any newer than SDK 1.3.1. Anyone have advice on how to proceed? thanks Steve Peterson __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: which IBM SDK for AIX to use with Tomcat 4.1.24?
use either 1.3.x or 1.4.x Filip -Original Message- From: Stephen Peterson [mailto:[EMAIL PROTECTED] Sent: Sunday, March 30, 2003 8:17 PM To: [EMAIL PROTECTED] Subject: which IBM SDK for AIX to use with Tomcat 4.1.24? Hi, I'm trying to move from websphere to tomcat on AIX. At first I thought I could just use the same JDK that was installed with websphere: $ java -fullversion java full version J2RE 1.2.2 IBM build ca122-20011213was $ But this doesn' seem to work. I can setart Tomcat okay, but I get an error trying to open index.jsp: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultE rrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatc her.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationCont ext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap per.java:190) ...etc ... -- There is a bunch of env settings done in wrappers found in the file $JAVA_HOME/bin/sh/javac which at the end calls $JAVA_HOME/bin/javac, and I've set those in my environment so that the javac and java cmds seem to work okay at the shell prompt. But it doesn't work with Tomcat. So, my next step was to request an install a download of the SDK that comes in AIX installp format. Looks like I can go with SDK 1.2.2 with some fixes put on it, or with SDK 1.3.0, or SDK 1.3.1. I have an AIX 4.3.3 box, so I cannot get any newer than SDK 1.3.1. Anyone have advice on how to proceed? thanks Steve Peterson __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
encoding problem
Hello all, I am using struts in our project. application server is JBOSS with Tomcat as servlet container. If i set contenet type ans UTF-8 (%@ page contentType=text/html;charset=UTF-8%) in jsp i am getting the following error. org.apache.jasper.JasperException: null(-1,-1) Cannot read file: ze file if i use other charset like EUC-JP or Shift-jis its working fine. Can i get some solution how to solve this problem. waiting for the reply Thanx with regds santhosh hegde A
Re: ?? Simple Newbie Question about Root Context ??
The reason has to be, then, that the startup of the webapp creates a default context on its own, because it cannot happen magically. I hope that does not sound smart-alexey but, rather, clear. At 08:14 PM 3/30/03 -0600, you wrote: But my point is that everything works fine even *with* the comment. THAT is what's confusing. - Original Message - From: Carol Carrick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 4:20 PM Subject: Re: ?? Simple Newbie Question about Root Context ?? The website I sent tells you to take the comments out. - Original Message - From: Tony LaPaso [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 5:01 PM Subject: Re: ?? Simple Newbie Question about Root Context ?? Well, I don't have to create pages under ROOT as you did, but that's a separate issue from what I'm asking. - Original Message - From: Carol Carrick [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 3:50 PM Subject: Re: ?? Simple Newbie Question about Root Context ?? Although I am really a newbie, I have the same o/s system. I have trouble loading my pages until I created them under the ROOT path and uncommented the section you are referring to. Here is a good web reference. http://www.moreservlets.com/Using-Tomcat-4.html - Original Message - From: Tony LaPaso [EMAIL PROTECTED] To: Tomcat User [EMAIL PROTECTED] Sent: Sunday, March 30, 2003 4:00 PM Subject: ?? Simple Newbie Question about Root Context ?? My Tomcat skills are rusty -- I must be missing something easy here. I just installed TC v4.1.24 on Win 2k. The installation worked right out of the box. I didn't have to make any changes to the server.xml. TC is up and running but I'm seeing something strange I was hoping someone could explain: Here's a quote from the TC documentation: ...you MUST define a Context with a context path equal to a zero-length string. This Context becomes the default web application for this virtual host, and is used to process all requests that do not match any other Context's context path. Okay, that's fine, but when I look at conf/server.xml I see this: !-- Tomcat Root Context -- !-- Context path= docBase=ROOT debug=0/ -- Why is this commented out? According to the documentation there must be a context path equal to a zero-length string. The quote I cited seems to contradict what I'm seeing in server.xml. Even though this is commented out everything seems to work fine. In other words, if I browse to localhost:8080 I do indeed see webapps/ROOT/index.jsp. Is the docBase named ROOT the default? If so, then the documentation should mention that I think. Thanks very much, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: which IBM SDK for AIX to use with Tomcat 4.1.24?
I agree with Filip. While TC 4.1.x is only supposed to depend on Java 1.2.x, the testing on 1.3 has been near zero. I have enough headaches fighting the Java version battles for TC 3.3.x, so I really don't want to take this one on. Filip Hanik [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] use either 1.3.x or 1.4.x Filip -Original Message- From: Stephen Peterson [mailto:[EMAIL PROTECTED] Sent: Sunday, March 30, 2003 8:17 PM To: [EMAIL PROTECTED] Subject: which IBM SDK for AIX to use with Tomcat 4.1.24? Hi, I'm trying to move from websphere to tomcat on AIX. At first I thought I could just use the same JDK that was installed with websphere: $ java -fullversion java full version J2RE 1.2.2 IBM build ca122-20011213was $ But this doesn' seem to work. I can setart Tomcat okay, but I get an error trying to open index.jsp: --- org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultE rrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatc her.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationCont ext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap per.java:190) ...etc ... -- There is a bunch of env settings done in wrappers found in the file $JAVA_HOME/bin/sh/javac which at the end calls $JAVA_HOME/bin/javac, and I've set those in my environment so that the javac and java cmds seem to work okay at the shell prompt. But it doesn't work with Tomcat. So, my next step was to request an install a download of the SDK that comes in AIX installp format. Looks like I can go with SDK 1.2.2 with some fixes put on it, or with SDK 1.3.0, or SDK 1.3.1. I have an AIX 4.3.3 box, so I cannot get any newer than SDK 1.3.1. Anyone have advice on how to proceed? thanks Steve Peterson __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]