tomcat-user-unsubscribe@jakarta.apache.org
[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat-user-unsubscribe@jakarta.apache.org - sorry!
Sorry for that.. mistyped address. Rob :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NoClassDefFoundError: org/apache/tools/ant/types/RedirectorElement
Hi All! I have just installed Tomcat 5.5 on Windows XP Pro with apache-ant-1.6.1. I have placed the catalina-ant.jar in in apache-ant-1.6.1's lib dir and am attempting to install my first app. I am using the basic build.xml file from the local Application Developer's Guide and am seeing the following error when I attempt to install on the command line: F:\cml\websiteant -version Apache Ant version 1.6.1 compiled on February 12 2004 F:\cml\websiteant install Buildfile: build.xml prepare: compile: install: BUILD FAILED java.lang.NoClassDefFoundError: org/apache/tools/ant/types/RedirectorElement Total time: 6 seconds F:\cml\website I got exactly the same result when I moved the website dir to C:\temp\website as well. Any advice would be most appreciated! Rob :) -- Robert Mark Bram http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp B.Comp.(Systems Development/Business Systems) B.Net.Comp.(Hons) Doctor of Philosophy Student School of Network Computing Faculty of Information Technology Monash University Peninsula Campus McMahons Rd Frankston, VIC 3199 AUSTRALIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JSP being interpreted?
Hi All, Not sure if I am way off mark, but it almost seems as if my JSP is not being interpreted. Using the /manager web app, I get my app deployed (I still can't figure out why my command line install doesn't work) and I publish this page: == %@ taglib uri=/WEB-INF/tld/c.tld prefix=c % html body bgcolor=white c:set var=message value=Hi there!/ c:out value=6. ${message}/br/ c:out value=7. ${'message'}/br/ bParameter values passed to this page for each parameter: /b c:forEach var=current items=${param} bc:out value=${current.key} //b c:forEach var=aVal items=${paramValues[current.key]} c:out value=${aVal} / /c:forEach /c:forEach /body /html == But the result is this: == 6. ${message} 7. ${'message'} Parameter values passed to this page for each parameter: ${current.key} ${aVal} == Is it possible that my jsp code is not being interpreted? A bit lost... Rob :) -- Robert Mark Bram http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp B.Comp.(Systems Development/Business Systems) B.Net.Comp.(Hons) Doctor of Philosophy Student School of Network Computing Faculty of Information Technology Monash University Peninsula Campus McMahons Rd Frankston, VIC 3199 AUSTRALIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP being interpreted?
That was the answer mks! Is it possible that my jsp code is not being interpreted? Does the deployment descriptor of yout web-app declare conformance to the Servlet-API spec 2.4 - i. e. does it contain something like web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; version=2.4 ? Once I put this in my web.xml, undeployed the application and redeployed it through the manager, it worked! Shameful thing is that the basic web.xml file in the developer's guid did not have this - it only had web-app. One question left.. I had to undeploy/redeploy using the WebApp manager because command line install doesn't work for me atm (as per my java.lang.NoClassDefFoundError: org/apache/tools/ant/types/RedirectorElement post). How do you deploy your apps and update them after code changes? Thank you for your response! Rob :) -- Robert Mark Bram http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp B.Comp.(Systems Development/Business Systems) B.Net.Comp.(Hons) Doctor of Philosophy Student School of Network Computing Faculty of Information Technology Monash University Peninsula Campus McMahons Rd Frankston, VIC 3199 AUSTRALIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NoClassDefFoundError: org/apache/tools/ant/types/RedirectorElement
Found the answer to this one. I needed Ant 1.6.2.. Rob :) On Sat, 19 Mar 2005 22:01:58 +1100, Robert Mark Bram [EMAIL PROTECTED] wrote: Hi All! I have just installed Tomcat 5.5 on Windows XP Pro with apache-ant-1.6.1. I have placed the catalina-ant.jar in in apache-ant-1.6.1's lib dir and am attempting to install my first app. I am using the basic build.xml file from the local Application Developer's Guide and am seeing the following error when I attempt to install on the command line: F:\cml\websiteant -version Apache Ant version 1.6.1 compiled on February 12 2004 F:\cml\websiteant install Buildfile: build.xml prepare: compile: install: BUILD FAILED java.lang.NoClassDefFoundError: org/apache/tools/ant/types/RedirectorElement Total time: 6 seconds F:\cml\website I got exactly the same result when I moved the website dir to C:\temp\website as well. Any advice would be most appreciated! Rob :) -- Robert Mark Bram http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp B.Comp.(Systems Development/Business Systems) B.Net.Comp.(Hons) Doctor of Philosophy Student School of Network Computing Faculty of Information Technology Monash University Peninsula Campus McMahons Rd Frankston, VIC 3199 AUSTRALIA - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cannot connect to remote server
Hi All! I am using RH9 with Tomcat 5.5.3 I have installed Tomcat as a Daemon process according to these instructions: http://phd.netcomp.monash.edu.au/RobertMarkBram/protected/notes/installingTomcat5.txt I have $CATALINA_HOME/conf/server.xml set up so that Tomcat runs on port 8080. But when I access http://localhost:8080 I get Cannot connect to remote server. When I examine catalina.out log I find the following exception: 20/10/2004 00:32:51 org.apache.catalina.startup.Bootstrap initClassLoaders SEVERE: Class loader creation threw exception java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory ... Further debugging information is below. Any ideas about what is going wrong would be most appreciated! Rob :) /usr/local/jakarta-tomcat-5.5.3/logs #host localhost Host localhost not found: 3(NXDOMAIN) /usr/local/jakarta-tomcat-5.5.3/logs #cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost localhost 127.0.0.1 localhost dijong /usr/local/jakarta-tomcat-5.5.3/logs #cat /etc/resolv.conf ; generated by /sbin/dhclient-script search @home nameserver 192.168.0.1 /usr/local/jakarta-tomcat-5.5.3/logs #tail -13 catalina.out 20/10/2004 00:32:51 org.apache.catalina.startup.Bootstrap initClassLoaders SEVERE: Class loader creation threw exception java.lang.NoClassDefFoundError: javax/management/MBeanServerFactory at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:161) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:97) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:189) at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:257) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:201) jsvc.exec error: Service exit with a return value of 1 My /etc/rc.d/init.d/Tomcat5 is below. #!/bin/sh ## # # Copyright 2004 The Apache Software Foundation. # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. ## # # Small shell script to show how to start/stop Tomcat using jsvc # If you want to have Tomcat running on port 80 please modify the server.xml # file: # #!-- Define a non-SSL HTTP/1.1 Connector on port 80 -- #Connector className=org.apache.catalina.connector.http.HttpConnector # port=80 minProcessors=5 maxProcessors=75 # enableLookups=true redirectPort=8443 # acceptCount=10 debug=0 connectionTimeout=6/ # # That is for Tomcat-5.0.x (Apache Tomcat/5.0) # # Adapt the following lines to your configuration JAVA_HOME=/usr/java/j2sdk1.4.2_02 CATALINA_HOME=/usr/local/jakarta-tomcat-5.5.3 DAEMON_HOME=/usr/local/jakarta-tomcat-5.5.3 TOMCAT_USER=robertmarkbram TMP_DIR=/var/tmp CATALINA_OPTS= CLASSPATH=\ $JAVA_HOME/lib/tools.jar:\ $CATALINA_HOME/bin/commons-daemon.jar:\ $CATALINA_HOME/bin/bootstrap.jar case $1 in start) # # Start Tomcat # $DAEMON_HOME/bin/jsvc \ -user $TOMCAT_USER \ -home $JAVA_HOME \ -Dcatalina.home=$CATALINA_HOME \ -Djava.io.tmpdir=$TMP_DIR \ -outfile $CATALINA_HOME/logs/catalina.out \ -errfile '1' \ $CATALINA_OPTS \ -cp $CLASSPATH \ org.apache.catalina.startup.Bootstrap # # To get a verbose JVM #-verbose \ # To get a debug of jsvc. #-debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac -- Robert Mark Bram http://phd.netcomp.monash.edu.au/RobertMarkBram/default.asp B.Comp.(Systems Development/Business Systems) B.Net.Comp.(Hons) Doctor of Philosophy Student School of Network Computing Faculty of Information Technology Monash University Peninsula Campus McMahons Rd Frankston, VIC 3199 AUSTRALIA Phone: 61 3 9904 4394 Facsimile: 61 3 9904 4124 Email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL
Tomcat as a service
Howdy all! 1) I am running Tomcat 4.1 as a service on XP. At what point in the install process did I choose this option? 2) Is there *any* difference between running Tomcat as a service and a non-service? What do you call it when you are running it as a non-service? Do you just call it a process or program? 3) If I don't have Tomcat as a service, how can I get it running as a service? 4) Where is all of this documented? I did a google search limited to jakarta.apache.org and then I did a text search on my document Tomcat 4.1\webapps\tomcat-docs directory for Tomcat as a service and found nothing that answered these questions. Thanks for any advice! Rob :) :- :-} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat as a service
Hi Yoav Shapira, 3) If I don't have Tomcat as a service, how can I get it running as a service? 4) Where is all of this documented? I did a google search limited to jakarta.apache.org and then I did a text search on my document Tomcat 4.1\webapps\tomcat-docs directory for Tomcat as a service and found nothing that answered these questions. http://jakarta.apache.org/tomcat/faq/ OK .. I checked this already. Tomcat FAQ | Windows | Setting up TomCat 4.1.12 to run as an NT Service http://www.mattkelli.com/tech/tomcat/ntservice.htm -- page is gone Unless you are referring to the Tomcat Service Manager, but I was hoping to find something from Jakarta to do this.. Please forgive me but I fail to find anything else there that talks about Tomcat as a service.. :( Rob :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]