Re: Can't find web.xml
Yes I did it things working. I think this fix was part of it - web-inf was not all caps - WEB-INF. thanks, brian Sriram Narayanan wrote: Hi, This is a blind shot, but have you checked that the WEB-INF name is in capital ? And that the web.xml is a valid one ? TC 4 is stricter with this file. Sriram 30/11/2001 5:27:01 PM, Brian Elliott [EMAIL PROTECTED] wrote: Brian Elliott wrote: I am trying to install Tomcat 4 with a content management system called Stellent. Stellent runs Tomcat as a service. But I am getting an error when I try to request a JSP page: Can't find WEB-INF/web.xml Here is more of the actual error message: 11-29 16:48:52 StandardHost[localhost]: Installing web application at context path from URL file:D:\Stellent\tomcat4\webapps\ROOT 2001-11-29 16:48:52 WebappLoader[]: Deploying class repositories to work directory D:\Stellent\tomcat4\work\localhost\_ 2001-11-29 16:48:52 StandardManager[]: Seeding random number generator class java.security.SecureRandom 2001-11-29 16:48:52 StandardManager[]: Seeding of random number generator has been completed 2001-11-29 16:48:52 ContextConfig[]: Missing application web.xml, using defaults only 2001-11-29 16:48:52 StandardWrapper[:default]: Loading container servlet default 2001-11-29 16:48:52 default: init 2001-11-29 16:48:52 StandardWrapper[:invoker]: Loading container servlet invoker 2001-11-29 16:48:52 invoker: init 2001-11-29 16:48:52 StandardWrapper[:jsp]: Using Jasper classloader for servlet jsp 2001-11-29 16:48:52 jsp: init 2001-11-29 16:48:52 StandardWrapper[:ssi]: Loading container servlet ssi 2001-11-29 16:48:52 ssi: init 2001-11-29 16:48:52 Internal Error: File /WEB-INF/web.xml not found 2001-11-29 16:48:52 As for the logger, here is what I try - the catalina log works but the JASPER_LOG (which I hope contains the Tomcat CLASSPATH) gives me the following error: server.xml: !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosityLevel = DEBUG/ Logger name=JASPER_LOG verbosityLevel=WARNING timestamp=yes/ error: ERROR reading d:\stellent\config\server.xml At Line 17 /Server/Service/Engine/Logger/ name=JASPER_LOG verbosityLevel=WARNING timestamp=yes java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) -- Any help on the why of the /WEB-INF/web.xml error or the JASPER_LOG error would be appreciated. Brian -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Brian Elliott President CTO Unplugged Systems [EMAIL PROTECTED] http://www.unpluggedsystems.com 719.339.1204 (cell) 719.487.1437 (office) -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: Can't find web.xml
Brian Elliott wrote: I am trying to install Tomcat 4 with a content management system called Stellent. Stellent runs Tomcat as a service. But I am getting an error when I try to request a JSP page: Can't find WEB-INF/web.xml Here is more of the actual error message: 11-29 16:48:52 StandardHost[localhost]: Installing web application at context path from URL file:D:\Stellent\tomcat4\webapps\ROOT 2001-11-29 16:48:52 WebappLoader[]: Deploying class repositories to work directory D:\Stellent\tomcat4\work\localhost\_ 2001-11-29 16:48:52 StandardManager[]: Seeding random number generator class java.security.SecureRandom 2001-11-29 16:48:52 StandardManager[]: Seeding of random number generator has been completed 2001-11-29 16:48:52 ContextConfig[]: Missing application web.xml, using defaults only 2001-11-29 16:48:52 StandardWrapper[:default]: Loading container servlet default 2001-11-29 16:48:52 default: init 2001-11-29 16:48:52 StandardWrapper[:invoker]: Loading container servlet invoker 2001-11-29 16:48:52 invoker: init 2001-11-29 16:48:52 StandardWrapper[:jsp]: Using Jasper classloader for servlet jsp 2001-11-29 16:48:52 jsp: init 2001-11-29 16:48:52 StandardWrapper[:ssi]: Loading container servlet ssi 2001-11-29 16:48:52 ssi: init 2001-11-29 16:48:52 Internal Error: File /WEB-INF/web.xml not found 2001-11-29 16:48:52 As for the logger, here is what I try - the catalina log works but the JASPER_LOG (which I hope contains the Tomcat CLASSPATH) gives me the following error: server.xml: !-- Global logger unless overridden at lower levels -- Logger className=org.apache.catalina.logger.FileLogger prefix=catalina_log. suffix=.txt timestamp=true verbosityLevel = DEBUG/ Logger name=JASPER_LOG verbosityLevel=WARNING timestamp=yes/ error: ERROR reading d:\stellent\config\server.xml At Line 17 /Server/Service/Engine/Logger/ name=JASPER_LOG verbosityLevel=WARNING timestamp=yes java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) -- Any help on the why of the /WEB-INF/web.xml error or the JASPER_LOG error would be appreciated. Brian -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Can't find web.xml
I am trying to install Tomcat 4 with a content management system called Stellent. Stellent runs Tomcat as a service. But I am getting an error when I try to request a JSP page: Can't find WEB-INF/web.xml It gives this error message for Context[] and Context[/stellent/groups/jsp]. These are contexts defined in my server.xml file. I have tried to turn on some of the debug messages (using Logger) to give some path information but I can't get any info in the log directory. It is finding the Tomcat root ok because it finds the right .jsp file and writes at least some info to the log. But it has problems with the WEB-INF directory for some reason. Any help would be appreciated. Brian -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Re: servlet start-up
Silvestre Turija Jr. wrote: sorry for the intrusion, I am having the same problem Internal Servlet Error kindly inform me I you got a fixed on this bug. Based on another unrelated discussion on this list, I tried starting tomcat (embedded in jboss) first and then apache - and it fixed my problem (code 500 Internal Server Errors when requesting a serlvet right after startup). I have just tried it once so far but it would be interesting to see if this fixes the problem for other people as well. Brian -- +---+--+ | Brian Elliott | Unplugged Systems / ESWC.com / | | President CTO | ES Innovation Labs | | [EMAIL PROTECTED] | MLS Unplugged Wireless Systems | | | http://www.unpluggedsystems.com | +---+--+
Re: servlet start-up
Rui, I am having the same problem with tomcat for my servlets as you described in your posting where you get an Internal Server Error when first requesting a servlet. Did you ever get the problem fixed? I am under some intense time pressures and would GREATLY appreciate any help. Thanks, Brian -- +---+--+ | Brian Elliott | Unplugged Systems / ESWC.com / | | President CTO | ES Innovation Labs | | [EMAIL PROTECTED] | MLS Unplugged Wireless Systems | | | http://www.unpluggedsystems.com | +---+--+
Re: servlet start-up
Rui, I am having the same problem with tomcat for my servlets as you described in your posting where you get an Internal Server Error when first requesting a servlet. Did you ever get the problem fixed? I am under some intense time pressures and would GREATLY appreciate any help. Thanks, Brian Reporting-MTA: dns; mail-in.namezero.com Arrival-Date: Tue, 29 May 2001 16:24:12 -0700 (PDT) Final-Recipient: rfc822; [EMAIL PROTECTED] Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User unknown Rui, I am having the same problem with tomcat for my servlets as you described in your posting where you get an Internal Server Error when first requesting a servlet. Did you ever get the problem fixed? I am under some intense time pressures and would GREATLY appreciate any help. Thanks, Brian -- +---+--+ | Brian Elliott | Unplugged Systems / ESWC.com / | | President CTO | ES Innovation Labs | | [EMAIL PROTECTED] | MLS Unplugged Wireless Systems | | | http://www.unpluggedsystems.com | +---+--+
Re:
Silvestre Turija Jr. wrote: sorry for the intrusion, I am having the same problem Internal Servlet Error kindly inform me I you got a fixed on this bug. I sure will. I am wondering whether it is the ajp13 with mod_jk? I have seen posts like the following (http://www.perl.jann.com/tomcat/200012/msg00142.html): Is anyone actually using the ajp13 protocol with mod_jk? I tried it but had to switch back to ajp12. It seems faster but less reliable. I am getting the following error messages in mod_jk.log. All these messages occur multiple times. They only occur when I use the ajp13 protocol. This is just a guess on my part but I seen a number of people with the problem but no solutions. I am considering switching to Jetty if I don't get a solution very soon. Brian
Re: open source full-text-search-engines
Sebastian Schulz wrote: i am looking for an open source full text search engine like glimpse, but more platform-independent (it have to run under NT 4.0). I heard (but have not confirmed this) that the latest version of mySQL has this. Brian -- Brian Elliott President CTO Unplugged Systems [EMAIL PROTECTED] http://www.unpluggedsystems.com 719.339.1204 (cell) 719.487.1437 (office)
Re: apache vhost-mod_jk-servlet container ResourceBundle problem
Thanks to Jeff Kilbride for his post! I ended up using his suggestions posted earlier on virtual hosting and it works well. It seems like a better solution from a security standpoint. But I am just so glad to get something that works after struggling with it for a week. Also on the ResourceBundle / locale problem I posted earlier: I hadn't really looked at the code in HelloWorldExample.java to realize it was trying to do an I18L HelloWorld. So I just removed the ResourceBundle code for now to get me going - which is fine. Brian Elliott Brian Elliott wrote: Brendon, I am having problems establishing the same configuration that you are trying to do: /home/domain1.com/servlet /home/domain2.com/servlet And accessing the jsps for each domain from the document root or below. This way all the servlets and jsps are under the domain's doc root. Being pretty green in tomcat installation (and yet to get it working for an embedded configuration), I am not sure if this will work but hoping it will. Jeff Kilbride suggests a configuration: www.tld.com access to DocumentRoot in httpd.conf www.tld.com/mywebapp access to the docBase in server.xml ability to run JSP files in the docBase directory www.tld.com/servlet access to servlets/JSP in your WEB-INF/classes directory ability to run servlets/JSP from WEB-INF/classes But I would like the config I mentioned earlier if it can work. When I try to follow the same basic configuration you have, I get "Internal Server Error" via a browser request and the mod_jk.log says: [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_rec vfull failed [jk_ajp13_worker.c (619)]: Error reading request
Re: apache vhost-mod_jk-servlet container
Brendon, I am having problems establishing the same configuration that you are trying to do: /home/domain1.com/servlet /home/domain2.com/servlet And accessing the jsps for each domain from the document root or below. This way all the servlets and jsps are under the domain's doc root. Being pretty green in tomcat installation (and yet to get it working for an embedded configuration), I am not sure if this will work but hoping it will. Jeff Kilbride suggests a configuration: www.tld.com access to DocumentRoot in httpd.conf www.tld.com/mywebapp access to the docBase in server.xml ability to run JSP files in the docBase directory www.tld.com/servlet access to servlets/JSP in your WEB-INF/classes directory ability to run servlets/JSP from WEB-INF/classes But I would like the config I mentioned earlier if it can work. When I try to follow the same basic configuration you have, I get "Internal Server Error" via a browser request and the mod_jk.log says: [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_rec vfull failed [jk_ajp13_worker.c (619)]: Error reading request - The only difference I between our configuration is the name of your test servlet being servletexample (I assume) and mine being HelloWorldExample and our declarations in web.xml: You have: servlet servlet-name hello /servlet-name servlet-class HelloWorldExample /servlet-class /servlet servlet-mapping servlet-name hello /servlet-name url-mapping /hello /url-mapping /servlet-mapping I have: servlet servlet-nameHelloWorldExample/servlet-name servlet-classHelloWorldExample/servlet-class /servlet Do you have any insight after my comments or Jeff's suggestions? Thanks, Brian -- +---+--+ | Brian Elliott | Unplugged Systems / ESWC.com / | | President CTO | ES Innovation Labs | | [EMAIL PROTECTED] | MLS Unplugged Wireless Systems | | | http://www.unpluggedsystems.com | +---+--+
Can't find bundle for base name LocalStrings, locale en
I get the following error when trying to request a servlet: java.util.MissingResourceException: Can't find bundle for base name LocalStrings, locale en I checked the archives and the only answer seemed to be to set the JAVA_HOME TOMCAT_HOME variables before running the ./startup.sh script. I am running on Red Hat 6.2 with JDK 1.3, using bash: set JAVA_HOME=/var/jdk (/var/jdk is linked to /var/jdk1.3.0_02 set TOMCAT_HOME=var/tomcat(/var/jdk is linked to /var/jakarta-tomcat-3.2.1) I also copied my tools.jar from my /var/jdk/lib directory to my /var/jdk/jre/lib directory. Any help would be appreciated, Brian
Just trying to get HelloWorldExample working!
I am just trying to the HelloWorldExample working with mod_jk and jap13 in a virtual hosting non-standalone apache-tomcat environment (Red Hat 6.2) I keep getting a file not found in the apache log not the tomcat log. I have looked at tons of confusing docs but this is the one I am trying to follow (it seems the most up to date): http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html Here the URL I am invoking: http://www.dashpass.com/servlet/HelloWorldExample http://www.dashpass.com/examples/HelloWorldExample http://www.dashpass.com/examples/servlets/HelloWorldExample http://www.dashpass.com/examples/servlet/HelloWorldExample http://www.dashpass.com/HelloWorldExample Here are my additions into httpd.conf (after removing the ApJServMount directives) and one of the virtual hosting references: LoadModulejk_module libexec/mod_jk.so AddModule mod_jk.c JkWorkersFile /var/tomcat/conf/workers.properties JkLogFile /var/tomcat/logs/mod_jk.log JkLogLeveldebug VirtualHost 66.34.41.241:80 ServerName www.dashpass.com DocumentRoot /www/dashpass ServerAlias dashpass.com *.dashpass.com ErrorDocument 404 /err404.html ErrorLog logs/dashpass.com-error_log CustomLog logs/dashpass.com-access_log common JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 Alias /examples "/var/tomcat/webapps/examples" /VirtualHost And my additions to workers.properties: Lworker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13 In my server.xml I have tried both of these: Host name="www.dashpass.com" Context path="" docBase="webapps/examples" / Context path="/examples" docBase="webapps/ROOT" / /Host And: Host name="www.dashpass.com" Context path="" docBase="/www/dashpass" debug="0"/ /Host And examples.war does exist in: /var/tomcat/webapps and has the following permissions: -rw-r--r--1 is_appl users 120613 Dec 12 15:39 examples.war Any help would be greatly appreciated, Brian -- +---+--+ | Brian Elliott | Unplugged Systems / ESWC.com / | | President CTO | ES Innovation Labs | | [EMAIL PROTECTED] | MLS Unplugged Wireless Systems | | 719.487.1437 | http://www.unpluggedsystems.com | +---+--+