Changing the URL
Hi, I am using Tomcat -5.0.25 , i had made an application named PED and placed it in the webapps so when i type http://localhost:8080/PED . The application is working fine. Now what i want is to do something so that when i type www.PED.com , the application should run. For this i read the Tomcat Docs came to know about Alias Tag in HOST. And also of appBase attribute form where our applications are found. I put the Alias Tag and gave the hello. And also changed the appBase attrib. to webapps/PED . Now i thought that writing http://hello:8080 would start my application but that didn't happened.Even only placing the Alias tag and trying http://hello:8080/PED didn't work . Please let me know about this and also how the port is mapped . Also how can i introduce SSL in my appl. Tell me the steps or the relevant link. I am in immediate need. Please help me out. Thanks in advance. Bye Mohit. Yahoo! India Matrimony: Find your life partneronline.
Re: Changing the URL
Hi Mohit, For the root application means to access your application like http://localhost:8080/ do following, Option 1: - Rename webapps/ROOT folder to any other name - Rename your application folder in the webapps to ROOT Note: But this is not a proper approach!! Option 2: - In the conf/server.xml file add following entry for your application, Context path= docBase=PED debug=0/ - For information on Context refer Tomcat Configuration manual. Regarding alias for the host, you can set this only you have two names configured by your N/W admin in the DNS entries. Bcs, from the browser it will try to map IP for the given host name, which will use DNS entries. To avoid typing port, you can set default port to 80 for your tomcat HTTP connector in conf/server.xml file. For SSL, refer tomcat documentation for setup details. Hope, this will help you somewhat! Bye Hardik --- Passsionate [EMAIL PROTECTED] wrote: Hi, I am using Tomcat -5.0.25 , i had made an application named PED and placed it in the webapps so when i type http://localhost:8080/PED . The application is working fine. Now what i want is to do something so that when i type www.PED.com , the application should run. For this i read the Tomcat Docs came to know about Alias Tag in HOST. And also of appBase attribute form where our applications are found. I put the Alias Tag and gave the hello. And also changed the appBase attrib. to webapps/PED . Now i thought that writing http://hello:8080 would start my application but that didn't happened.Even only placing the Alias tag and trying http://hello:8080/PED didn't work . Please let me know about this and also how the port is mapped . Also how can i introduce SSL in my appl. Tell me the steps or the relevant link. I am in immediate need. Please help me out. Thanks in advance. Bye Mohit. Yahoo! India Matrimony: Find your life partneronline. __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Important m$6h?3p
See the ghg5%6gfz65!4Hf55d!46gfgf Server Error #203 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can't load server.xml message
Thanks for all the help. I tried the server-minimal.xml file a second time and it worked. I'm not sure what was happening. I also installed JavaWebServicesDeveloperPack and some other stuff that might have been causing an issue. It was very bizarre because at one point, I had the minimal server.xml in conf but got the same message. I agree that the NPE was because it couldn't open the file for some ereason. I don't think it was permissions because I'm using XP. Anyways, it seems to be working for now. Thanks for the suggestions! sean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
Very interesting... Switching to JDK 1.4.2 solved the problem. I didn't even do an uninstall/reinstall... I always install my SDK to c:\java, so all I did was rename it and copy the directory over from another PC, so any paths and registry settings should still be valid, there's just an older version in it's place. I made sure to delete the Tomcat work folder for the app, started up Tomcat and tried it, everything worked fine... JSP class was generared, servlet compiled, and page came up, no problem. So... Is there actually a problem using JDK 5.0 with Tomcat 5.0.29? If so, what version of Tomcat is OK with 5.0? (assuming any are, which I DO assume). Or is this just some sort of fluke situation? In any case, my problem is solved, and that was the resolution. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Ryan Stewart wrote: First, I apologize if I came of sounding rude before. As an infrequent visitor to this list, I wasn't aware that you are a frequent contributor. I also don't seem to have received the other reply you mention. My next thought is that you might have two versions of Java installed. If so, which version is Tomcat using? Are you sure you compiled the servlet with the same one? -Original Message- From: Frank W. Zammetti[EMAIL PROTECTED] To: Tomcat Users Listtomcat-user@jakarta.apache.org Date: Sat Jan 01 07:22:09 PST 2005 Subject: Re: JSP compilation problem I did not post twice Ryan. If two posts appeared, it is the same problem with the list processor that we've been seeing for weeks now. I did post a reply however... I tried your suggestion and manually compiled. I have NO classpath variable in the environment (I thought this might have been a classpath issue, and I guess it could still be, but I don't see how at this point). I manually put servlet-api.jar, jsp-api.jar and jasper-runtime.jar in /tomcat/common/lib on the classpath and compiled, and it compiles cleanly. So the problem would not appear to be a problem with the generated servlet. Any other ideas? Thank you! ___ Check-out GO.com GO get your free GO E-Mail account with expanded storage of 6 MB! http://mail.go.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]
can't run tomcat with jsvc
Hello, I wan't to use Tomcat 5.5.6 as our default Webserver on port 80. That's why I start it with jsvc, that should give the chance to run on prots 1024 for nonroot-user. I start Tomcat5.sh with root-user (change to tomcat-user): JAVA_HOME=/usr/lib/java CATALINA_HOME=/opt/tomcat DAEMON_HOME=${CATALINA_HOME}/bin/jsvc-src TOMCAT_USER=tomcat 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/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 \ -verbose \ -debug \ ;; stop) # # Stop Tomcat # PID=`cat /var/run/jsvc.pid` kill $PID ;; *) echo Usage tomcat.sh start/stop exit 1;; esac but get Error-Message in log file: jsvc.exec error: syscall failed in set_caps jsvc.exec error: Service exit with a return value of 4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Speed issues with SQL Server 2000 and JTDS
I bought the Core Servlets and Java Server Pages and read it over the weekend. Happy New Year to me. I did get out to a few parties though. ;) I am having trouble getting JTDS to return results quickly. Has anyone got any example code for how to properly query a SQL Server 2000 database? The code I write needs to work with both SQL Server 2000 and SQL Server 7. In creating the connection, I am specifying TYPE_SCROLL_INSENSITIVE and TYPE_CONCUR_READ_ONLY. I tried not specifying anything and got errors about not being able to scroll the results. Is the only solution to this, use FORWARD_ONLY and buffer the contents myself? I hoping there is a better way. Thank you Charles Killmer
Re: Making a webapp JMX-manageable?
Here's a link to sample code for integrating tomcat 5.5.4 http://lacson.name/archives/2004/12/how_to_embed_to.html --patrick ps. let me know when you figure out the JMX stuff! On Sun, 26 Dec 2004 23:50:47 +0100, Michael Schuerig [EMAIL PROTECTED] wrote: I would like to make a simple web application manageable. Right now I'm at a loss how to do this. My problem is not so much JMX itself, but rather how to integrate into Tomcat. Some sample code would be very helpful. Michael -- Michael Schuerig The more it stays the same, mailto:[EMAIL PROTECTED]The less it changes! http://www.schuerig.de/michael/ --Spinal Tap, The Majesty of Rock - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Making a webapp JMX-manageable?
On Monday 03 January 2005 00:31, Patrick Lacson wrote: Here's a link to sample code for integrating tomcat 5.5.4 http://lacson.name/archives/2004/12/how_to_embed_to.html Patrick, thanks for your link. I don't currently intend to embed Tomcat, just make an app running within Tomcat manageable. The latter I figured out, among other things, through an out-of-band discussion with Peter Rossbach. I can't offer a completely general solution, though. I'm using the Spring framework (http://www.springframework.org) and had a look at the JMX support classes that are currently in the CVS sandbox directory. I found that, amazingly, with their help I could expose attributes and operations of my app to JMX without writing any code. All that is required are some declarations in the application context file (applicationContext.xml). Create an MBeanServer registered as a bean bean id=mbeanserver class=org.springframework.jmx.factory.MBeanServerFactoryBean property name=defaultDomainvalueMyDomain/value/property /bean Wrap an MBean adapter around my repositorymanager bean (not shown), which is a completely ordinary java object. In this case, public methods are exposed as attributes/operations. Alternatively, metadata can be used. bean id=mbeanadapter class=org.springframework.jmx.JmxMBeanAdapter property name=serverref bean=mbeanserver//property property name=beans map entry key=MyDomain:id=Repository ref bean=repositorymanager/ /entry /map /property /bean Create a connector listening, by default, on service:jmx:jmxmp://localhost:9876 (this requires jmxremote_optional.jar) bean id=jmxconnector class=org.springframework.jmx.remote.ConnectorServiceBean property name=serverref bean=mbeanserver//property /bean Maybe this was of interest to anyone... Michael -- Michael SchuerigThis is not a false alarm mailto:[EMAIL PROTECTED] This is not a test http://www.schuerig.de/michael/ --Rush, Red Tide - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Suddenly Stopped!
Before anything else, I would like to greet everybody HAPPY NEW YEAR!!! Ok, serious now... Why is it Tomcat suddenly stopped... ? I'm trying to figure out what happen... Is it with the number of connections or users of my intranet web app? But we are just 50 in the organization... I'm using Tomcat 5.0.25 jk2 IIS Jsp/Servlets Or do i have to upgrade my Tomcat to higher version? Thanks! Aris mailto:[EMAIL PROTECTED]
Re: Tomcat Suddenly Stopped!
Check your log files. Report back what you find. Doug - Original Message - From: Aris Javier [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, January 02, 2005 8:16 PM Subject: Tomcat Suddenly Stopped! Before anything else, I would like to greet everybody HAPPY NEW YEAR!!! Ok, serious now... Why is it Tomcat suddenly stopped... ? I'm trying to figure out what happen... Is it with the number of connections or users of my intranet web app? But we are just 50 in the organization... I'm using Tomcat 5.0.25 jk2 IIS Jsp/Servlets Or do i have to upgrade my Tomcat to higher version? Thanks! Aris mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JSP compilation problem
On Sun, Jan 02, 2005 at 02:46:49PM -0500, Frank W. Zammetti wrote: : So... Is there actually a problem using JDK 5.0 with Tomcat 5.0.29? Perhaps... I have a vague recollection of seeing such posts a long time ago. : so, what version of Tomcat is OK with 5.0? (assuming any are, which I DO : assume). The 5.5 series is not only OK with JDK 1.5, it requires it. =) (OK, there's the JDK 1.4 compat package, but that didn't sound as cool) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat Suddenly Stopped!
Dear friend, some threads may be spinning. I find similar problem on user mode Linux. Amit Gupta Mobile: 91-9818052171 Yahoo IM: amitguptainn MSN IM : amitguptainn -Original Message- From: Parsons Technical Services [mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 6:54 AM To: Tomcat Users List Subject: Re: Tomcat Suddenly Stopped! Check your log files. Report back what you find. Doug - Original Message - From: Aris Javier [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Sunday, January 02, 2005 8:16 PM Subject: Tomcat Suddenly Stopped! Before anything else, I would like to greet everybody HAPPY NEW YEAR!!! Ok, serious now... Why is it Tomcat suddenly stopped... ? I'm trying to figure out what happen... Is it with the number of connections or users of my intranet web app? But we are just 50 in the organization... I'm using Tomcat 5.0.25 jk2 IIS Jsp/Servlets Or do i have to upgrade my Tomcat to higher version? Thanks! Aris mailto:[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: can't run tomcat with jsvc
On Sun, Jan 02, 2005 at 09:41:07PM +0100, Haluk Durmus wrote: : I wan't to use Tomcat 5.5.6 as our default Webserver on port 80. : That's why I start it with jsvc, that should give the chance : to run on prots 1024 for nonroot-user. : but get Error-Message in log file: : : jsvc.exec error: syscall failed in set_caps : jsvc.exec error: Service exit with a return value of 4 Are you sure you're calling the Tomcat start script as root? Send the output from strace and that will help us determine what's going on. I found my post from a long time ago, concerning this same error: http://www.junlu.com/msg/87123.html However, my hypothesis at the time was based on trying to call jsvc as a nonroot user. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
kaffe and tomcat 5.5.4
I'm running tomcat 5.54 on the free kaffe vm instead of Sun's JDK. When I start tomcat with the startup.sh script as root, everything runs perfectly. However I'm having trouble launching the process with JSVC. Does anybody know if JSVC can be made to work with java VMs other than SUN's? Jsvc debug output says it cannot find the file jvm.cfg, and also the actual vm file library names from the sun jdk appear to be hard-coded into the jsvc source because they cannot be found in the kaffe vm as well. If anyone has any helpful information, I would be most grateful. It is disappointing that Tomcat 5.5.4 runs perfectly on Kaffe only to be stopped by limitations in the commons-daemon... Perhaps there is another way to run tomcat 5.54 on port 80 as an unprivileged user in linux? thank you, Ryan Harris From: Ryan Harris [EMAIL PROTECTED] To: debian-java@lists.debian.org Subject: Tomcat 5.5.4 works with kaffe Date: Fri, 31 Dec 2004 11:59:02 -0600 I installed and am running apache tomcat 5.5.4 with Kaffe instead of Sun's Non-Free Java 1.5. My Google searching found a few tips on how to get 5.0.27 working with kaffe, and it worked on 5.5.4 also. The only additional libraries I had to install were available in the debian unstable packages: libjessie-java, libgnucrypto-java, and kjc I also installed the compatibility libraries which include the JMX.JAR from the apache tomcat binaries distribution (jakarta-tomcat-5.5.4-compat.tar.gz). Next I added the following environment variables to the file bin/catalina.sh: JAVA_HOME=/usr/lib/kaffe #Change the compiler for jsps and give kaffe lots of memory # i don't know how much is really needed, but I set it to 500 Megs, #the usual default for kaffe is 64M) JAVA_OPTS=-Dbuild.compiler=kjc -Xmx500M #the gnucrypto and libjessie reside in this directory JSSE_HOME=/usr/share/java export JAVA_HOME JAVA_OPTS JSSE_HOME And then I modified the following lines (near line 100-110) in bin/catalina.sh # Add on extra jar files to CLASSPATH if [ -n $JSSE_HOME ]; then #Added these lines to replace #the Sun Java Security stuff CLASSPATH=$CLASSPATH:$JSSE_HOME/gnu-crypto.jar:$JSSE_HOME/jsse.jar:$JSSE_HOME/javax-crypto.jar CLASSPATH=$CLASSPATH:$JSSE_HOME/javax-security.jar #I Commented out this line. Yuck. #CLASSPATH=$CLASSPATH:$JSSE_HOME/lib/jcert.jar:$JSSE_HOME/lib/jnet.jar:$JSSE_HOME/lib/jsse.jar fi #add this for the jmx dependencies from the compatibility package CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/jmx.jar CLASSPATH=$CLASSPATH:$CATALINA_HOME/bin/bootstrap.jar:$CATALINA_HOME/bin/commons-logging-api.jar Last I had to create the log folder and the temp folder in the tomcat directory because it wouldn't do it on its own... I did something like this mkdir /var/log/tomcat5.5.4 ln -s /var/log/tomcat5.5.4 /usr/local/share/tomcat5.5.4/logs mkdir /usr/local/share/tomcat5.5.4/temp Then all I had to do was execute the startup.sh script in the bin directory... and it worked -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem setting up JNDI
hi guys. I m getting some problems setting up JNDI for mysql db. i ve copied mysql driver in tomcat-dir\jakarta-tomcat-5.0.19\common\lib. i ve attached my hibernateApp.xml which is placed under my tomcat-dir\jakarta-tomcat-5.0.19\conf\Catalina\localhost. i m using jakarta-tomcat-5.0.19 which is embedded in Netbeans 3.6. upon excecuting index.jsp i m getting following exceptions. javax.servlet.ServletException: Name jdbc is not bound in this Context org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) please help me. ?xml version='1.0' encoding='utf-8'? Context path=/hibernateapp docBase=hibernateapp Resource name=jdbc/inventory scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/inventory parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- DBCP database connection settings -- parameter nameurl/name valuejdbc:mysql://localhost:3306/inventory/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameusername/name valuefaisal/value /parameter parameter namepassword/name valuefaisal/value /parameter !-- DBCP connection pooling options -- parameter namemaxWait/name value3000/value /parameter parameter namemaxIdle/name value100/value /parameter parameter namemaxActive/name value10/value /parameter /ResourceParams /Context/* * inventoryDB.java * * Created on January 1, 2005, 4:52 PM */ package com.inventory; /** * * @author faziz */ public class inventoryDB { private javax.naming.Context context=null; private javax.sql.DataSource dataSource=null; private java.sql.Connection connection=null; /** Creates a new instance of inventoryDB */ public inventoryDB() throws Exception { javax.naming.Context initContext=new javax.naming.InitialContext(); context=(javax.naming.Context)initContext.lookup(java:comp/env); if(context==null) throw new Exception(No Environment Context); dataSource=(javax.sql.DataSource)context.lookup(jdbc/inventory); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem setting up JNDI
Did you add the res ref to your web.xml? Also note you are using the older MySQL JDBC driver. --- faisal [EMAIL PROTECTED] wrote: hi guys. I m getting some problems setting up JNDI for mysql db. i ve copied mysql driver in tomcat-dir\jakarta-tomcat-5.0.19\common\lib. i ve attached my hibernateApp.xml which is placed under my tomcat-dir\jakarta-tomcat-5.0.19\conf\Catalina\localhost. i m using jakarta-tomcat-5.0.19 which is embedded in Netbeans 3.6. upon excecuting index.jsp i m getting following exceptions. javax.servlet.ServletException: Name jdbc is not bound in this Context org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800) org.apache.jsp.index_jsp._jspService(index_jsp.java:66) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:856) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305) please help me. ?xml version='1.0' encoding='utf-8'? Context path=/hibernateapp docBase=hibernateapp Resource name=jdbc/inventory scope=Shareable type=javax.sql.DataSource/ ResourceParams name=jdbc/inventory parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter !-- DBCP database connection settings -- parameter nameurl/name valuejdbc:mysql://localhost:3306/inventory/value /parameter parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter parameter nameusername/name valuefaisal/value /parameter parameter namepassword/name valuefaisal/value /parameter !-- DBCP connection pooling options -- parameter namemaxWait/name value3000/value /parameter parameter namemaxIdle/name value100/value /parameter parameter namemaxActive/name value10/value /parameter /ResourceParams /Context /* * inventoryDB.java * * Created on January 1, 2005, 4:52 PM */ package com.inventory; /** * * @author faziz */ public class inventoryDB { private javax.naming.Context context=null; private javax.sql.DataSource dataSource=null; private java.sql.Connection connection=null; /** Creates a new instance of inventoryDB */ public inventoryDB() throws Exception { javax.naming.Context initContext=new javax.naming.InitialContext(); context=(javax.naming.Context)initContext.lookup(java:comp/env); if(context==null) throw new Exception(No Environment Context); dataSource=(javax.sql.DataSource)context.lookup(jdbc/inventory); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Find local movie times and trailers on Yahoo! Movies. http://au.movies.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 3.2.4 problem under Mac OS X SERVER 10.2.6
When I try and run the originally installed Tomcat 3.2.4 that came with Mac OS X Server 10.2 nothing happens. If I try and use the startup script, which I think on this system is not enough, I get this message during upstart. Exception in thread main java.lang.NoClassDefFoundError: org/apache/ commons/discovery/tools/DiscoverSingleton Any ideas were to start an debug this installation or how to get back to the original installation wihtout reinstalling the complete OS? I have removed the Tomcat folder once for making room for Tomcat 4, but I moved it back and repaired permissions. This clearly was not enough. Any ideas for troubleshooting this are welcome. Here is the full startup result: [machine:/Library/Tomcat/bin] root# ./startup.sh Guessing TOMCAT_HOME from tomcat.sh to ./.. Setting TOMCAT_HOME to ./.. Using classpath: /Library/Tomcat/lib/xercesImpl.jar:/Library/Tomcat/lib/ xmlParserAPIs.jar:./../lib/ant.jar:./../lib/axis.jar:./../lib/commons- logging.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib/jaxrpc.jar:./ ../lib/log4j-core.jar:./../lib/parser.jar:./../lib/saaj.jar:./../lib/ servlet.jar:./../lib/test:./../lib/tt-bytecode.jar:./../lib/ webserver.jar:./../lib/xercesImpl.jar:./../lib/xmlParserAPIs.jar [tankekraft:/Library/Tomcat/bin] root# 2005-01-03 06:19:02 - ContextManager: Adding context Ctx( /examples ) 2005-01-03 06:19:02 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2005-01-03 06:19:02 - ContextManager: Adding context Ctx( /axis ) 2005-01-03 06:19:02 - ContextManager: Adding context Ctx( ) 2005-01-03 06:19:02 - ContextManager: Adding context Ctx( /test ) Exception in thread main java.lang.NoClassDefFoundError: org/apache/ commons/discovery/tools/DiscoverSingleton at org.apache.axis.components .logger.LogFactory$1.run(LogFactory.java:84) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.components .logger.LogFactory.getLogFactory(LogFactory.java:80) at org.apache.axis.components .logger.LogFactory.clinit(LogFactory.java:72) at org.apache.axis.transport. http.AxisServlet.clinit(AxisServlet.java:101) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.axis.transport. http.AxisServletBase.class$(AxisServletBase.java:87) at org.apache.axis.transport. http.AxisServletBase.clinit(AxisServletBase.java:94) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstruc torAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingCons tructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.apache.tomcat.core.Ser vletWrapper.loadServlet(ServletWrapper.java:268) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289) at org.apache.tomcat.context. LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130) at org.apache.tomcat.core.Con textManager.initContext(ContextManager.java:491) at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:195) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:240) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Jikes rvm and tomcat
Hi all, I am having problems trying to run tomcat with jikes rvm Here is the setup i am using. jakarta-tomcat-5.0.27 jikesrvm 2.3.3 gnu classpath 0.10 jikes 1.18 In tomcat, i have changed the _RUNJAVA variable in set_classpath.sh file _RUNJAVA variable. _RUNJAVA was originally set to java executable in the j2sdk, i have changed it to the jikesrvm executable i.e. rvmRoot/rvm/bin/rvm However, now i am experiencing problems with jmx. According to the error message, due to the licensing requirements, i need to download jmx 1.2 implementation and replace it in the $catalina_home/bin directory. I downloaded the sun implementation and replaced the jmx.jar file in the $catalina_home/bin directory with the jmxri.jar of the sun implementation and renamed it as well. But i still get the same error message. I would really appreciate any suggestions you may have. Wish you a happy new year Nalini - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: kaffe and tomcat 5.5.4
Hi, Perhaps there is another way to run tomcat 5.54 on port 80 as an unprivileged user in linux? thank you, Ryan Harris Try wrapper.sourceforge.net. Trond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]