Re: Webapp suddenly not available

2005-08-15 Thread Sriram N


--- Vsevolod (Simon) Ilyushchenko [EMAIL PROTECTED] wrote:

[snip]
 
 I'll be grateful for any suggestions.
 

Why all the JSPC entries in this web.xml ? Remove them as the Tomcat defaults
should be just OK.

The controller entry and the .do mapping seem to be OK.
 
 Thanks,
 Simon
 -- 

-- Sriram





Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Webapp suddenly not available

2005-08-15 Thread Sriram N


--- Vsevolod (Simon) Ilyushchenko [EMAIL PROTECTED] wrote:

 Sriram,
 
 I've taken them out, as well as the controller entry (which was a sample 
 line that I don't need). No good.
 

Hmm... what _do_ you require in this file, if not the controller entry ?

Does the sample web application work ? 

Try installing Tomcat again, and then running this web app. Maybe you've messed
with some config files by mistake.

 Thanks,
 Simon
 
-- Sriram



__ 
Yahoo! Mail for Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Silent runtime replace of a class

2005-07-05 Thread Sriram N


--- Gal Robert [EMAIL PROTECTED] wrote:

 Hi,
 we have a new user requriement: to be able to modifiy the application 
 without affecting user work.
 Is there any way to achieve this under tomcat? Currently we're
 building war file. Is there any way to replace a class (maybe jsp class)
 runtime, without restarting the tomcat?
 any information is welcome
 
JSPs are recompiled and reloaded when ever the JSP source file is changed.

If you have other .class files such (including servlets), then you need to
create a context.xml as per the documentation provided at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html

You'll could place the context.xml in either the conf directory, or in the
war's WEB-INF folder. Just ensure that the reloadable attribute is set to
true.

Since you've not specified which Tomcat version you're using, I've pointed you
to the latest Tomcat 5.5 documentation.

 thanks.
 robert
 

-- Sriram



 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Silent runtime replace of a class

2005-07-05 Thread Sriram N


--- Peter Crowther [EMAIL PROTECTED] wrote:

  From: Sriram N [mailto:[EMAIL PROTECTED] 
  --- Gal Robert [EMAIL PROTECTED] wrote:
   we have a new user requriement: to be able to modifiy the 
   application without affecting user work.
snip/

  You'll could place the context.xml in either the conf 
  directory, or in the
  war's WEB-INF folder. Just ensure that the reloadable 
  attribute is set to true.
 
 Note that reloading a webapp when you have made changes may not allow
 the user to continue working - for example, if you've changed what's in
 the session then they may get errors.
 

Indeed. For e.g., if you've some objects in the session, and the web app is
being reloaded, then active sessions would be serialized (along with the
objects within them). Once the web app is reloaded completely and the sessions
are reactivated, you may face problems in case you've changed the classes of
those objects that were serialized within the session.

   - Peter
 
-- Sriram

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-11-02 Thread Sriram N
Hi:

HAve you looked at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/BUILDING.txt
? This file contains information on building against different versions of
Xerces.

I have a dim recollection that the Xerces was changed recently, though I dont'
remember if I read this for the 5.x series or the 4.x series.

As a last resort to get to the bottom of the matter, you could download the
binary release, and check the changelog.

-- SRiram

--- Luigi Bai [EMAIL PROTECTED] wrote:
 Sriram,
 
 It took me a while to figure out where you were going with your 
 question. No, I did not download a tar-gzip distribution; I built 4.1.29 
 from the (tagged) CVS source (which right there may be part of the 
 problem). I used the versions of commons-* etc from the 4.1.27 
 distribution that I had been using; it seems that making Tomcat build 
 with Maven (and its support for specific versions of third party jars) 
 would be really a big help here. And I confirmed that the DTDs in 
 servlet-api.jar are intact.
 
 What version of Xerces does 4.1.29 depend on? It may be that using the 
 Xerces parser from 4.1.27 is too old? I really can't think of any other 
 reason why Digester would barf on session-timeout with a parse error.
 
 Luigi
 
 Sriram N wrote:
 
  Hi,
  
  Have you downloaded a tgz by chance ?
  
  If you have, then use Winzip on windows, or the tar command from the
 command
  line, to uncompress Tomcat. Any other application may not uncompress the
 tgz
  correctly. e.g. I used the File Roller application that comes with Redhat
 9,
  and it does not extract all files correctly.
  
  The tar command you could use is
  
  tar -xzvf jakarta-tomcat4.1.29
  
  -- Sriram
  
  --- Luigi Bai [EMAIL PROTECTED] wrote:
  
 I'm using 4.1.29 as CATALINA_HOME, and am seeing a strange error. The 
 line in the default web.xml file points to the session-timeout 
 element; so does the referenced line in the application web.xml file. If 
 I comment out _both_ the context will start. I checked the DTD in 
 servlet-api.jar and it looks fine.
 
 In CATALINA_HOME/server/lib, the commons-logging.jar file has 
 impl.Log4jFactory.class and impl.Log4jLogger.class. These are loaded 
 because I have a copy of log4j-1.2.8 in the directory.
 
 Using 4.1.27 as CATALINA_HOME I have no problems either.
 
 Any ideas on where to look?
 
 Thanks;
 Luigi
 
 2003-10-31 21:02:32 ContextConfig[/blog] Parse error in default web.xml
 org.apache.commons.logging.LogConfigurationException: 
 java.lang.ClassNotFoundException: 
 org.apache.commons.logging.impl.Log4jFactory
 at 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2583)
 at 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2609)
 at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
 at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown 
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown 
 Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
 at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown
 
 Source)
 at 
 
  
 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
  
 Source)
 at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
 Source)
 at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
 at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
 at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at org.apache.commons.digester.Digester.parse(Digester.java:1546)
 at 
 
  
 

org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
  
 at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
 at 
 
  
 

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
  
 at 
 
  
 

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
  
 at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
 at 
 
  
 

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
  
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
 at 
 
  
 

org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)
  
 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

Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-11-02 Thread Sriram N
Luigi,

Creating a Maven script would be a great idea. Since I've never used Maven
before, this should give me something to start learning Maven with.

-- Sriram

--- Luigi Bai [EMAIL PROTECTED] wrote:
 Sriram,
 
 I have to admit I'm impressed by how politely you said RTFM. :-) You're 
 right; I had gotten out of the habit of reading the BUILDING file, and 
 I'd forgotten it was there. I'll make sure all my dependencies match up 
 by version and will try again. My guess is that I won't need to rebuild 
 (this isn't C++, after all) but will likely just need to drop the right 
 jars into place.
 
 Still points out how useful Maven would be, though. I have to be able to 
 build the dist from source; if I can't, then I can't audit the app 
 properly.
 
 Thanks;
 Luigi
 
 Sriram N wrote:
 
  Hi:
  
  HAve you looked at
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/BUILDING.txt
  ? This file contains information on building against different versions of
  Xerces.
  
  I have a dim recollection that the Xerces was changed recently, though I
 dont'
  remember if I read this for the 5.x series or the 4.x series.
  
  As a last resort to get to the bottom of the matter, you could download the
  binary release, and check the changelog.
  
  -- SRiram
  
 
 -- 
 A HREF=http://www.focalpoint.com/;Home Page/A
 education is what's left after what is learned is forgotten.
 -- b f skinner
 Luigi P. Bai   Focal Point Software, Inc.
 [EMAIL PROTECTED] 3701 Kirby Drive, Suite 512
 turning data into information  Houston, TX   77098
 (713) 215-1600 x 33#
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Does anyone use Maven to build Tomcat ?

2003-11-02 Thread Sriram N
Hello:

Does anyone in our group use Maven to build Tomcat with ?

I'm trying to learn Maven, and would appreciate any kickstart that I get.

Thanks,

-- Sriram

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Problem

2003-11-02 Thread Sriram N
Hello:

Please post queries related to Tomcat's usage to the Tomcat-user mailing list.
You will have a bigger audience there to help you get started with Tomcat.

1. Have you read the application developer's guide ?
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
It is also installed along with the tomcat that you are running as part of the
tomcat documentation, accessible via http://localhost:8080/

Read this doc, and you will learn exactly where to place classes (e.g. not in
the bin folder).

2. To get started quickly, I suggest you make a copy of the examples webapps,
and start adding jsps there.

3. Does your bean belong to some package ? e.g. foo.bar.MyBean

4. Upper/lower case matters. Are you typing the class name in the correct case
?

Post a snippet of how you are trying to include the Bean. 

-- Sriram

--- ganeshprabhup [EMAIL PROTECTED] wrote:
 I am a java professsional new to Tomcat and JSP. I downloaded and installed
 successfully Jakarta-Tomcat 4.1.27. While I tried to run a jsp accessing a
 javabean, it gave an error saying 'Unable to compile class for JSP'. It was
 not able to locate the bean class. I put the bean class in all the 'classes'
 directries. I also created the jar file of the bean and put it in all the
 available 'bin' directories. Still the problem persisted. Please suggest a
 solution. Do I need to add any path or classpath in my environment? If so
 please show me how to write it.
 
 
 Thanks
 
 
 Ganesh Prabhu
 Get Your Private, Free E-mail from Indiatimes at  http://email.indiatimes.com
 Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com
 Bid for Air Tickets on Air Sahara Flights. For Best Deals, log on to
 http://airsahara.indiatimes.com and Bid Now !
 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [ANN] Apache Tomcat 4.1.29 Stable and Apache Tomcat 5.0.14 Beta released

2003-10-31 Thread Sriram N
Hi,

Have you downloaded a tgz by chance ?

If you have, then use Winzip on windows, or the tar command from the command
line, to uncompress Tomcat. Any other application may not uncompress the tgz
correctly. e.g. I used the File Roller application that comes with Redhat 9,
and it does not extract all files correctly.

The tar command you could use is

tar -xzvf jakarta-tomcat4.1.29

-- Sriram

--- Luigi Bai [EMAIL PROTECTED] wrote:
 I'm using 4.1.29 as CATALINA_HOME, and am seeing a strange error. The 
 line in the default web.xml file points to the session-timeout 
 element; so does the referenced line in the application web.xml file. If 
 I comment out _both_ the context will start. I checked the DTD in 
 servlet-api.jar and it looks fine.
 
 In CATALINA_HOME/server/lib, the commons-logging.jar file has 
 impl.Log4jFactory.class and impl.Log4jLogger.class. These are loaded 
 because I have a copy of log4j-1.2.8 in the directory.
 
 Using 4.1.27 as CATALINA_HOME I have no problems either.
 
 Any ideas on where to look?
 
 Thanks;
 Luigi
 
 2003-10-31 21:02:32 ContextConfig[/blog] Parse error in default web.xml
 org.apache.commons.logging.LogConfigurationException: 
 java.lang.ClassNotFoundException: 
 org.apache.commons.logging.impl.Log4jFactory
   at 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2583)
   at 
 org.apache.commons.digester.Digester.createSAXException(Digester.java:2609)
   at org.apache.commons.digester.Digester.endElement(Digester.java:1061)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endNamespaceScope(Unknown 
 Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown 
 Source)
   at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
 Source)
   at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
 Source)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
 Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1546)
   at 

org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
   at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
   at 

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
   at 

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
   at 
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3582)
   at 

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
   at 

org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:700)
   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.beanutils.MethodUtils.invokeMethod(MethodUtils.java:258)
   at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)
   at org.apache.commons.digester.Rule.end(Rule.java:276)
   at org.apache.commons.digester.Digester.endElement(Digester.java:1058)
   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown 
 Source)
   at 

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 
 Source)
   at 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
 Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.commons.digester.Digester.parse(Digester.java:1565)
   at 

org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:385)
   at org.apache.catalina.core.StandardHost.install(StandardHost.java:819)
   at 
 

Re: Try this (Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.)

2003-10-30 Thread Sriram N
Hi:

I do not have Windows, I use Redhat Linux 9 at home.

I just read  the docs at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html

From what I read  in the third para titled Java location, I infer the setup
tries to detect the location of the JVM. 

Why don't try the following:
1. Uninstall Tomcat.
2. Set the JAVA_HOME environment variable.
3. From a freshly opened command window, issue the command 
echo %JAVA_HOME%
You should see the location of JAVA_HOME being displayed.
4. Now run the Tomcat installer, and check if JAVA_HOME was made use of.

The Tomcat installer is written with NSIS (excellent, I use it too). Without
the NSI script in front of me, the only problem/bug I would expect would be
that the installer reads the JVM path from the registry before checking the
JAVA_HOME, and that your JVM folder does not have tools.jar.

-- Sriram

--- Gerald Stampfel [EMAIL PROTECTED] wrote:
 Got it ! Thanks!
 
 When starting tomcat from the command line by executing startup.bat, it
 works. But when I am starting it as a windows service, it
 doesn't ! And problem was that I used to start it as a service.
 
 When I start tomcat as a service, the JVM is started with the following
 parameter :
 -Djava.class.path=C:\Programme\jakarta-tomcat\\bin\bootstrap.jar;C:\Programm
 e\jakarta-tomcat\\common\lib\servlet.jar
 I don't see something like %JAVA_HOME%\lib in here. Could that be the
 problem ?
 
 -
 Gerald .
 
 - Original Message - 
 From: Sriram N [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, October 30, 2003 3:50 AM
 Subject: Try this (Re: Error: Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.)
 
 
  Hello:
 
  I assume that you are using a standard Tomcat download and have not edited
 any
  startup scripts.
 
  1. Ensure that you have an environment variable called JAVA_HOME that
 points to
  your Java installation. If JDK installed in c:\Program Files\JDK1.3.1\,
 then
  the JAVA_HOME environment variable should be set as
 
  SET JAVA_HOME=c:\program Files\JDK1.3.1.
 
  2. Now, JAVA_HOME\lib should contain the file tools.jar. This is a
 requirement
  of the startup scripts.
 
  3. The startup scripts ensure that the CLASSPATH environment variable is
 NOT
  used by the JVM. All your CLASSPATH settings are therefore not used at
 all.
 
  4. Now try running Tomcat via the batch files from a command prompt. You
 should
  see the a few messages that state which environment variables are being
 used.
 
  -- Sriram
 
  --- Gerald Stampfel [EMAIL PROTECTED] wrote:
   I solved it by copying tools.jar to tomcat/common/lib.
  
   Dirty workaround, but didn't find any other.
  
   -
   Gerald S.
  
  
   - Original Message - 
   From: Gerald Stampfel [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Wednesday, October 29, 2003 6:18 AM
   Subject: Re: Error: Unable to find a javac compiler;
   com.sun.tools.javac.Main is not on the classpath.
  
  
I am working in a windows environment.
   
You mean setting my environment variable %classpath% by doing SET
   CLASSPATH
= ... ?
   
I have done that and it still doesn't work.
   
-
Gerald S.
   
- Original Message - 
From: Jay Garala [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 10:14 PM
Subject: RE: Error: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
   
   
 Make sure u have $JDK/lib/tools.jar in your classpath

 -Original Message-
 From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 28, 2003 4:11 PM
 To: [EMAIL PROTECTED]
 Subject: Error: Unable to find a javac compiler;
   com.sun.tools.javac.Main
is
 not on the classpath.


 Hi folks,

 i got the following error message:

   
  
  --
--
 --

 2003-10-28 21:58:08 Info: Compile:

   
  
 javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
 /index_jsp.java


   
  
 classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati

   
  
 on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.

   
  
 3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean

   
  
 utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co

   
  
 mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-
  

   
  
 INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap

   
  
 ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka

   
  
 rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j

   
  
 akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro

Re: Loading a class from a zip file , present outside Tomcat directories

2003-10-30 Thread Sriram N
Sure.

1. You need to configure your web application to be a privileged application.
Read the Tomcat docs for more information.

2. You need to load your classes via a JARClassLoader.

-- Sriram

--- Mohammed Javed P [EMAIL PROTECTED] wrote:
  
 Hi!
 
 Is it possible to load a class from a zip file , which is located 
 outside the Tomcat directories ?
 I mean, the zip file can be anywhere in the hard disk, and not under the 
 installed Tomcat directory structure.
 
 Please provide any pointers on how to go about it .
 
 Thnkx in advance!
 
 regards,
 ~Javed
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[5.0.14] Does it have the logs folder ?

2003-10-30 Thread Sriram N
Hello:

With the votes going on for 5.0.14, I have a question.

I'm using Redhat 9. When I installed the 5.0.14 tgz and ran the startup script,
I had faced a problem with the startup script not being able to create the
$CATALINA_HOME$/logs/catalina.out file using the touch command.

As it turned out, the tgz did not have the logs folder, and the man for the
touch page says that touch does not create a folder if it does not already
exist. An experiment verified this too.

I guess the fix involves merely bundling a logs folder.

I've posted a Bug in Bugzilla, but I have not seen any mention of a fix on the
changelist for 5.0.14. I have not downloaded 5.0.14 yet due to bandwidth
constraints.

Is my understanding of touch correct ? Or should the logs folder be created
automatically ?

-- Sriram

__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



My own mistake (Fwd: [5.0.14] Does it have the logs folder ?)

2003-10-30 Thread Sriram N
Hello:

Sorry. I just deleted my tomcat installation, and extracted 5.0.12 again using
tar -xvzf jakarta-tomcat.5.0.12.tar.gz, and found that the logs folder is very
much there.

I am able to run TC5 on my RH9 system without any changes.

My apologies for the wrong bug report.

-- Sriram

--- Sriram N [EMAIL PROTECTED] wrote:
 Date: Thu, 30 Oct 2003 04:27:53 -0800 (PST)
 From: Sriram N [EMAIL PROTECTED]
 Subject: [5.0.14] Does it have the logs folder ?
 To: [EMAIL PROTECTED]
 
 Hello:
 
 With the votes going on for 5.0.14, I have a question.
 
 I'm using Redhat 9. When I installed the 5.0.14 tgz and ran the startup
 script,
 I had faced a problem with the startup script not being able to create the
 $CATALINA_HOME$/logs/catalina.out file using the touch command.
 
 As it turned out, the tgz did not have the logs folder, and the man for the
 touch page says that touch does not create a folder if it does not already
 exist. An experiment verified this too.
 
 I guess the fix involves merely bundling a logs folder.
 
 I've posted a Bug in Bugzilla, but I have not seen any mention of a fix on
 the
 changelist for 5.0.14. I have not downloaded 5.0.14 yet due to bandwidth
 constraints.
 
 Is my understanding of touch correct ? Or should the logs folder be
 created
 automatically ?
 
 -- Sriram
 
 __
 Do you Yahoo!?
 Exclusive Video Premiere - Britney Spears
 http://launch.yahoo.com/promos/britneyspears/
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Try this (Re: Error: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.)

2003-10-29 Thread Sriram N
Hello:

I assume that you are using a standard Tomcat download and have not edited any
startup scripts.

1. Ensure that you have an environment variable called JAVA_HOME that points to
your Java installation. If JDK installed in c:\Program Files\JDK1.3.1\, then
the JAVA_HOME environment variable should be set as 

SET JAVA_HOME=c:\program Files\JDK1.3.1.

2. Now, JAVA_HOME\lib should contain the file tools.jar. This is a requirement
of the startup scripts.

3. The startup scripts ensure that the CLASSPATH environment variable is NOT
used by the JVM. All your CLASSPATH settings are therefore not used at all.

4. Now try running Tomcat via the batch files from a command prompt. You should
see the a few messages that state which environment variables are being used.

-- Sriram

--- Gerald Stampfel [EMAIL PROTECTED] wrote:
 I solved it by copying tools.jar to tomcat/common/lib.
 
 Dirty workaround, but didn't find any other.
 
 -
 Gerald S.
 
 
 - Original Message - 
 From: Gerald Stampfel [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Wednesday, October 29, 2003 6:18 AM
 Subject: Re: Error: Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 
 
  I am working in a windows environment.
 
  You mean setting my environment variable %classpath% by doing SET
 CLASSPATH
  = ... ?
 
  I have done that and it still doesn't work.
 
  -
  Gerald S.
 
  - Original Message - 
  From: Jay Garala [EMAIL PROTECTED]
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Sent: Tuesday, October 28, 2003 10:14 PM
  Subject: RE: Error: Unable to find a javac compiler;
  com.sun.tools.javac.Main is not on the classpath.
 
 
   Make sure u have $JDK/lib/tools.jar in your classpath
  
   -Original Message-
   From: Gerald Stampfel [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, October 28, 2003 4:11 PM
   To: [EMAIL PROTECTED]
   Subject: Error: Unable to find a javac compiler;
 com.sun.tools.javac.Main
  is
   not on the classpath.
  
  
   Hi folks,
  
   i got the following error message:
  
 
  --
  --
   --
  
   2003-10-28 21:58:08 Info: Compile:
  
 
 javaFileName=C:\Programme\jakarta-tomcat\work\Standalone\localhost\jetspeed\
   /index_jsp.java
  
  
 
 classpath=/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/activati
  
 
 on.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/castor-0.9.
  
 
 3.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-bean
  
 
 utils-1.4.1.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/co
  
 
 mmons-collections-2.0.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-
 
  
 
 INF/lib/commons-configuration-1.0-dev.jar;/C:/Programme/jakarta-tomcat/webap
  
 
 ps/jetspeed/WEB-INF/lib/commons-dbcp-1.0-dev-20020806.jar;/C:/Programme/jaka
  
 
 rta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-lang-1.0.jar;/C:/Programme/j
  
 
 akarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-logging-1.0.2.jar;/C:/Pro
  
 
 gramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/commons-pool-1.0.jar;/C:/
  
 
 Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/ecs-1.4.1.jar;/C:/Prog
  
 
 ramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/fulcrum-3.0-b2-dev.jar;/C:
  
 
 /Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/hsqldb.jar;/C:/Progra
  
 
 mme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-oro-2.0.6.jar;/C:/Pr
  
 
 ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jakarta-regexp-1.2.jar;/
  
 
 C:/Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jcs-1.0-dev.jar;/C:
  
 
 /Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jdbc-se2.0.jar;/C:/Pr
  
 
 ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/jetspeed-1.4-b4.jar;/C:/
  
 
 Programme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/log4j-1.2.6.jar;/C:/Pr
  
 
 ogramme/jakarta-tomcat/webapps/jetspeed/WEB-INF/lib/mail.jar;/C:/Programme/j
  
 
 akarta-tomcat/webapps/jetspeed/WEB-INF/lib/ojb-0.7.343.jar;/C:/Programme/jak
  
 
 arta-tomcat/webapps/jetspeed/WEB-INF/lib/soap.jar;/C:/Programme/jakarta-tomc
  
 
 at/webapps/jetspeed/WEB-INF/lib/stratum-1.0-b4-dev.jar;/C:/Programme/jakarta
 
  -tomcat/webapps/jetspeed/WEB-INF/lib/torque-3.0.jar;/C:/Programme/jakarta-
  to
  
 
 mcat/webapps/jetspeed/WEB-INF/lib/turbine-2.2.jar;/C:/Programme/jakarta-tomc
  
 
 at/webapps/jetspeed/WEB-INF/lib/uddi4j.jar;/C:/Programme/jakarta-tomcat/weba
  
 
 pps/jetspeed/WEB-INF/lib/velocity-1.3.jar;/C:/Programme/jakarta-tomcat/webap
  
 
 ps/jetspeed/WEB-INF/lib/village-1.5.3.jar;/C:/Programme/jakarta-tomcat/webap
  
 
 ps/jetspeed/WEB-INF/lib/xalan-2.3.1.jar;/C:/Programme/jakarta-tomcat/webapps
  
 
 /jetspeed/WEB-INF/lib/xerces-2.0.2.jar;/C:/Programme/jakarta-tomcat/webapps/
  
 
 jetspeed/WEB-INF/lib/xercesImpl.jar;/C:/Programme/jakarta-tomcat/webapps/jet
  
 
 speed/WEB-INF/lib/xml-apis.jar;/C:/Programme/jakarta-tomcat/webapps/jetspeed
  
 
 

Re: Embedding Tomcat Continued...

2003-10-25 Thread Sriram N

--- Robert Charbonneau [EMAIL PROTECTED] wrote:
 On October 24, 2003 11:56 pm, Sriram N wrote:
  Hi:
 
  I think you do not have tools.jar in your CLASSPATH.
 
 

  -- Sriram
 
 
 That did the trick, thanks my friend.
 
 I have another question on the same subject for the list at large.  Now that 
 my application can create it's own contexts for my webapps to run inside of, 
 is there a way that my JSPs and Servlets can modify and make use of objects 
 that are instantiated inside the application?
 

Sure they can. If you're not loading your Contexts via special classloaders,
then it's as simple as getting an instance of your application's objects and
making use of them.
See an example that I've mentioned below.

If you're using custom classloaders to load Contexts in separate classloaders,
you need to give information
on the Classloader hierarchies that you're using.


 For example, my application is multi-threaded and it starts Tomcat, retrieves
 
 some data from the database and performs a few other functions.  The reason 
 why I'm embedding Tomcat is to give my application a web front-end.  Could 
 anyone provide some insight as to how I can make this happen, and perhaps 
 provide some code samples?
 

a. Get hold of your application's objects via JNDI.
b. Create a class called the Environment, and register your application objects
into this class.
Such a class could be just a wrapper for a Hashtable. Make this Environment
class a Singleton.
Next, from within the contexts, access this Environment singleton, and go on to
access your application objects.

e.g. To share a data source between a Context and your application, you might
try:

// in your application
Environment env = Environment.getInstance();
Connection connection = createConnection(); // returns a connection to a
database.
env.registerObject(DataConnection,connection);

// In your web application
Environment env = Environment.getInstance();
Object anObject = env.getObject(DataConnection);
if(anObject==null)
throw new Exception(No Data Connection in environment !);
Connection connection = (Connection) anObject;
connection.execute(select * from sales);

 Thanks.
 
 --
 Robert Charbonneau
 [EMAIL PROTECTED]
 --
 

-- Sriram
Object Edge Software India Pvt. Ltd.

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using JMX to talk to TC5

2003-10-25 Thread Sriram N
All:

I had once developed a GUI that used the Tomcat code TC 4.0.1 to deliver a
Swing UI that is functionally similar to IBM's Websphere GUI Console in a
limited sort of way. I'd referred to Embedded's main(), to learn how to create
Contexts, Connectors, etc, and create these as required within my Swing
application (MVC style design). 

I'm now working on porting the code to make use of TC5.

Could someone please advice me on:
1. What is the paradigm in TC5/JMX ?
Do I need to register with some central object that notifies me about TC5
events such as Context creation, failures, etc?

2. Could I connect to the TC5 objects via JMX and make changes to them ?

I know I should read the source, but I will have access to high speed internet
only tomorrow, and would like to be better armed on exactly what I need to
download and read.

Thanks,

-- Sriram

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to find servlet class after reload

2003-10-25 Thread Sriram N
Hi:

Just a blind shot (I've not used Struts yet).

Do these load-on-startup servlets require anything to be initialized in struts
?
Does Struts require initialization by the web app developer ? If so, perhaps
you need to somehow ensure that such initialization takes place before you load
your servlets ?

Separately, what exactly do you mean by reloads cause the errors ? Does
everything work fine when Tomcat is started ? If this is the case, then perhaps
you need to try maintaining webapp specific copies of files that you're using
from common/lib - stuff like struts, for e.g. Perhaps this is a problem with
Classloader hierarchies.

-- Sriram
--- Christopher Schultz [EMAIL PROTECTED] wrote:
 All,
 I'm not sure exactly when this started happening, but now reloads cause 
 all my load-on-startup servlets classes to cause the following errors:
 
 2003-10-25 11:57:14 StandardContext[/diagnosis]: Servlet /diagnosis 
 threw load() exception
 javax.servlet.ServletException: Wrapper cannot find servlet class 
 org.apache.struts.action.ActionServlet or a class it depends on
  at 

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891)
 .
 .
 .
 - Root Cause -
 java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
  at 

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444)
 .
 .
 2003-10-25 11:57:14 StandardContext[/diagnosis]: Servlet /diagnosis 
 threw load() exception
 javax.servlet.ServletException: Wrapper cannot find servlet class 
 org.childhealthcare.diagnosis.servlet.InitServlet or a class it depends on
  at 

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:891)
 .
 .
 .
 - Root Cause -
 java.lang.ClassNotFoundException: 
 org.childhealthcare.diagnosis.servlet.InitServlet
  at 

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1444)
 .
 .
 
 
 Pretty much one for each of the servlets that I have listed as 
 load-on-startup. I checked, and there's no overlap between what I have 
 in my web application's local lib directory and what's in 
 TOMCAT_HOME/common/lib.
 
 Does anyone have any ideas?
 
 I only started noticing this behavior this morning; I have been 
 switching over to Struts with Velocity-Tools, so those are the last two 
 libraries that I have added to my application.
 
 Otherwise, I'm not doing anything crazy.
 
 Thanks in advance for any help,
 -chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Map all URL to one servlet

2003-10-25 Thread Sriram N
Hi:

You might also consider editing the $CATALINA_HOME/conf/web.xml to replace the
org.apache.catalina.servlets.DefaultServlet with your own Servlet. 

You could then respond to ALL requests.
-- Sriram

--- Christopher Schultz [EMAIL PROTECTED] wrote:
 Stefan,
 
  Is it possible to map all URI''s from tomcat to just one servlet?
  
  for example:
  http://localhost:8080/hello/you
  http://localhost:8080/startme/now
 
 Yes. Do this in your web.xml:
 
 servlet
   servlet-nameeverything-servlet/servlet-name
   servlet-classname.or.servlet.class/servlet-class
 /servlet
 
 servlet-mapping
   servlet-nameeverything-servlet/servlet-name
   uri-pattern*/uri-pattern
 /servlet-mapping
 
 That should do the trick. I believe if you map other servlets first, you 
 can have a few special URLs that will go to other servlets. You will 
 have to use this technique to allow JSP files to work as expected.
 
 -chris
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using JMX to talk to TC5

2003-10-25 Thread Sriram N
Thanks, I'll get started right away !

:-) 

-- Sriram

--- Jean-Francois Arcand [EMAIL PROTECTED] wrote:
 
 
 Sriram N wrote:
 
 All:
 
 I had once developed a GUI that used the Tomcat code TC 4.0.1 to deliver a
 Swing UI that is functionally similar to IBM's Websphere GUI Console in a
 limited sort of way. I'd referred to Embedded's main(), to learn how to
 create
 Contexts, Connectors, etc, and create these as required within my Swing
 application (MVC style design). 
 
 I'm now working on porting the code to make use of TC5.
 
 Could someone please advice me on:
 1. What is the paradigm in TC5/JMX ?
 Do I need to register with some central object that notifies me about TC5
 events such as Context creation, failures, etc?
 
 First download:
 

http://apache.crihan.fr/dist/jakarta/tomcat-5/v5.0.12-beta/bin/jakarta-tomcat-5.0.12-embed.tar.gz
 
 
 
 2. Could I connect to the TC5 objects via JMX and make changes to them ?
 
 Yes, you can. Take a look at the admin application, which use JMX to 
 creates Tomcat 5 objects.
 
 -- Jeanfrancois
 
 
 I know I should read the source, but I will have access to high speed
 internet
 only tomorrow, and would like to be better armed on exactly what I need to
 download and read.
 
 Thanks,
 
 -- Sriram
 
 __
 Do you Yahoo!?
 The New Yahoo! Shopping - with improved product search
 http://shopping.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]
 


__
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Embedding Tomcat Continued...

2003-10-24 Thread Sriram N
Hi:

I think you do not have tools.jar in your CLASSPATH.

JAVA_HOME is used by the startup scripts when you use regular Tomcat.
Since you've used Embedded to embed TC, the startup scripts do not come into
the picture, and the JAVA_HOME is pretty much useless actually.

Try placing the tools.jar file in the CLASSPATH and then run your application.

Important: If you're invoking your aplication via a JAR file, you need to
specify the tools.jar in the CLASSPATH attribute of the Jar's manifest. Read
the Java docs for more information.

-- Sriram

--- Robert Charbonneau [EMAIL PROTECTED] wrote:
 Ok, I think I have the application where it needs to be to *server* JSPs and 
 Servlets, except it can't seem to find the java compiler.  The following is a
 
 stacktrace left by the application when I tried to access 
 http://localhost:8080/
 
 I have the env. var JAVA_HOME set globally.  Would I need to 
 System.setProperty(java_home, pathToJDK); or something similar?
 
 Thanks in advance for the help folks.
 

lina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 

org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
   at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
   at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
   at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 

org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
   at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
   at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at 

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
   at 

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
   at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
   at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
   at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
   at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601)
   at 

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
   at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
   at 

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
   at java.lang.Thread.run(Thread.java:534)
 
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
   at 

org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:139)
   at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:835)
   at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
   at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:320)
   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)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at 

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
   at 

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
   at 

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
   at 


Re: Urgent Doubt!!!

2003-06-26 Thread Sriram N

--- Ponniah Mari [EMAIL PROTECTED] wrote:
 hi,
  
 I have a serious problem. I have developed a site using jsp and servlets, the
 server is tomcat 4.0. i uploaded the files with a DNS name provider. 
 now i cannot access any of the JSP and Servelt files. But the inetresting
 part is that its woriking fine in my local machine. Let me explain my dir
 structure
  
 1. i put JSP' s under 'webapps/MyDir'. 

Place a simple JSP that just displays the Time/date/a simple string.
Try contacting this JSP. 

If this does not work, then there's something wrong at the service provider's
end. 
1. Do they provide servlet/JSP support at all ?
2. Are you required to pay extra for servlet/JSP support ?

If this sample JSP works as expected:
1. Have the files been uploaded without errors ? Were there any errors reported
during upload ? I knew a case where two new recruits ignored transmission error
reports.

2. Does your service provider require you to use a complete server.xml ? 
Tomcat let's use mention just as much as we need. I do not know if this a
feature with all servlet containers.

3. Do they support the serverlet API spec that your are working with ? i.e. if
you are using 2.2, do they support 2.2 ?

  
 2. Servlets and all the java classes under webapps/MyDir/WEB- 
 INF/classes/my-package
  
 3. In my web.xml file i have only servlet mapping. I'll use this mapped names
 in JSP's to call the servlets. I am mentioning a tld file there 
  
 i dont know what the DNS people have done there in their server.xml file. Any
 way we have a seperate dir under webapps just like MyDir
  
 I can access all the html pages and images. I mages are put under images dir
 in webapps/MyDir/images
  

This might be an indication that files have been uploaded without any errors.

 please help me out asap. Thanks in advance
  
  

 Regards,
 P.Mari
 SMS using the Yahoo! Messenger;Download latest version.

-- Sriram

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Embedding Tomcat with Java App and JRE only

2003-06-19 Thread Sriram N
This is indeed the ight place.

But please check the mail archives first. I'd had to Embed Tomcat way back in
Dec 2001 - Jan 2002, and had faced lots of problems then, with not a single
question of mine being answered. However, I'd posted some of my lessons learnt
at around that time.

I've replied to some other posts on Embedding Tomcat over the past months, you
should get these on the mail archives too.

I'm not at all aware of changes in Tomcat 4.1.x, but here are some of the
problems that I'd faced:

1. Embedding Tomcat itself.
Browse the source, trace how Bootstrap and Embedded work, and you'll learn that
tomcat, is actually Catalina for Servlets, Jasper for JSPs, Connectors for
HTTP services, etc. I first figured how the Digestion works (where server.xml
is used to assemble together the Engine, the host, the contexts, etc), and then
wrote something myself on the lines of Embedded.

You need to understand just how Embedded works, and you'll have a working
ServletContainer running.

2. Accessing LifeCycle events
With 4.0.1, the LifeCycle Interface has just the starting and stopping
events. I think 4.1.x now has starting, started, stopping and stopped 
(or something along those lines). Since I did not dare to alter the LifeCycle
Interface myself (break compatibility with the Tomcat Developers, etc), I had
to resort to a check after the entire server came up.

3. Getting Jasper to work right.
I had to start my app via an executable Jar, and this changed the classpath.
(Remember, I was not using the startup scripts). I chose to alter the
java.class.path environment variable myself before starting to assemble the
Catalina components together. If you're loading via a Jar too, then you'll need
to use the JarFile API, access the manifest, used the Classpath attribute from
the manifest, and assemble together a classpath again. (NOTE: 4.0.1 uses the
javac compiler. 4.1.x uses Ant, so I have no idea on what to expect here.)

I used the Visual Age for Java IDE then, so that helped a lot (The scrap book
was the best aid I had). I think Eclipse gives you similar functionality, so
you could perhaps experiment with snippets of code yourself.

A lot has changed since 4.0.1. Browse the source, read the Javadocs, and you
should have a good understanding in about a week's time.

There was also a post recently of someone writing a book on How Tomcat works,
you might want to give those PDF chapters a try.

Like Yoav Shapira says, go ahead and ask questions, some one will surely
answer.

-- Sriram
Developer,
Object Edge Software India Pvt. Ltd.

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Howdy,
 This is the right place.  Ask specific questions, post relevant
 materials (source code, stack traces, etc.), and most times you will get
 a good answer or two.  Just like you did with your previous question.
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Lee Peik Feng [mailto:[EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 11:31 AM
 To: Tomcat Users List
 Subject: Re: Embedding Tomcat with Java App and JRE only
 
 Yes, it is very difficult to get help on Embedding Tomcat in Java App.
 Does someone know where can I get more help on EmbeddedTomcat?
 
 
 
 - Original Message -
 From: Shapira, Yoav [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, June 16, 2003 9:28 PM
 Subject: RE: Embedding Tomcat with Java App and JRE only
 
 
 
  Howdy,
  Yes with two big BUTs:
 
  1. You will no longer have the tomcat stated requirements, i.e. you
 will
  not have a standard usage of embedded tomcat, making it harder for
 you
  to receive accurate support for your questions.
 
  2. You will of course lose the ability to deploy new JSPs to your app
 ;)
  That may not matter for your specification application though.
 
  Yoav Shapira
  Millennium ChemInformatics
 
 
  -Original Message-
  From: Lee Peik Feng [mailto:[EMAIL PROTECTED]
  Sent: Sunday, June 15, 2003 10:17 PM
  To: Tomcat Users List
  Subject: Re: Embedding Tomcat with Java App and JRE only
  
  Yes
  
  
  - Original Message -
  From: Kwok Ng [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, June 16, 2003 8:16 AM
  Subject: Embedding Tomcat with Java App and JRE only
  
  
   Hi folks,
  
   I have read a article that explains how to embed the Tomcat with
 java
  app
  in O'Reily website.  I will try to do it for my java app.   But I
 want
  to
  do
  one step further which use JRE instead of JDK.  Does anybody know if
 I
  pre-compile all jsp files, is it possible to embed the Tomcat with
 JRE
  only?
  
   Thanks!
  
   Billy Ng
  
  
 -
   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: Classpath problem with Tomcat running in Embedded mode

2003-06-14 Thread Sriram N
Hi,

If you're calling Bootstrap.main(), please also have a look at the source code
within Bootstrap.

You'll find that Bootstrap just sets the ground for the Catalina classes...It
creates a classloader hierarchy, with classloaders for classes visible to just
Catalina, and for visibility between both Catalina and Webapps. Each webapp has
a classloader to itself.

What you should do instead is have a look at how Embedded works, and do
something like that yourself. This may not be the intended approach behind
supplying Embedded, but this is how I've bundled Tomcat 4.0.1 for a Swing based
app I had to once develop.

-- Sriram
--- sandeep arshanapally [EMAIL PROTECTED] wrote:
 
 Thanks for your reply.
 
 Iam calling the BootStrap.main directly from a thread in my jvm. Iam using 
 Tomcat 4.1.24. I have the catalina.home set to tomcat directory. It 
 recognizes the classes in tomcat directory but none of the classes in the 
 classpath I specify while starting the jvm.
 
 Sandeep
 
 
 From: Sriram N [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Classpath problem with Tomcat running in Embedded mode
 Date: Wed, 11 Jun 2003 20:55:42 -0700 (PDT)
 
 Hi,
 
 This is a ClassLoader visibility issue. Read the ClassLoader howto in the
 Tomcat Docs.
 
 How exactly are you running Embedded ? Are you invoking the main method on 
 it
 straight out ? Which Tomcat release are you using ?
 
 
 -- Sriram
 
 --- sandeep arshanapally [EMAIL PROTECTED] wrote:
  
   Hi,
  
 Iam running tomcat in an embedded mode i.e. launching it from with 
 in
   my jvm and using it with Axis for SOAP processing. I am having a problem
   with the classes and classpath. The SOAP implementation class files need 
 to
   be there /webapps/axis/WEB-INF/classes otherwise it doesn't work and if 
 Iam
   referencing any other classes from there, it throws a
   ClassNotFoundException.
   Is there anyway that I can specify the classpath so that the classes do 
 not
   have to be in that directory?
  
  
   Thanks in advance,
  
   Sandeep
  
   _
   MSN 8 with e-mail virus protection service: 2 months FREE*
   http://join.msn.com/?page=features/virus
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
 http://calendar.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
 http://join.msn.com/?page=features/featuredemail
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Classpath problem with Tomcat running in Embedded mode

2003-06-11 Thread Sriram N
Hi,

This is a ClassLoader visibility issue. Read the ClassLoader howto in the
Tomcat Docs.

How exactly are you running Embedded ? Are you invoking the main method on it
straight out ? Which Tomcat release are you using ?


-- Sriram

--- sandeep arshanapally [EMAIL PROTECTED] wrote:
 
 Hi,
 
   Iam running tomcat in an embedded mode i.e. launching it from with in 
 my jvm and using it with Axis for SOAP processing. I am having a problem 
 with the classes and classpath. The SOAP implementation class files need to 
 be there /webapps/axis/WEB-INF/classes otherwise it doesn't work and if Iam 
 referencing any other classes from there, it throws a 
 ClassNotFoundException.
 Is there anyway that I can specify the classpath so that the classes do not 
 have to be in that directory?
 
 
 Thanks in advance,
 
 Sandeep
 
 _
 MSN 8 with e-mail virus protection service: 2 months FREE*  
 http://join.msn.com/?page=features/virus
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: 2ND TRY: Developing ASP applications with tomcat

2002-11-20 Thread Sriram N
If you're loading classes, then try using 

Thread.currentThread().getContextClassLoader().loadClass(myClass);

Use this in the classes that you wish to place in the shared/lib.

--Sriram

--- Giovanni Cuccu [EMAIL PROTECTED] wrote:
 Hi all,
  I'm developing an application which will be release in 
 ASP(application service provider) mode, i.e. different customers will use 
 the same appserver and database to do their actions.
 On the DB I'm already ok, but on the appserver I'm in trouble. The first 
 model I'm trying to implement is one application server instance with 
 different contexts, one for each customer. What I'd like to do is deploy 
 the jsp under each customer context, but deploy the servlets and business 
 objects to the shared\lib directory since they are always the same. the 
 problem I'm facing is classloaders sequence, since in the shared\lib I have 
 a class which loads a configuration file using the classloader(it is a 3rdy 
 part library and I cannot modify it), but the configuration file is under 
 WEB-INF since is specific for each customer.
 If I try to put all the classes under WEB-INF I got a ClassCastException 
 when loading a class form a context and this class is already loaded from 
 another context. I read the classloader howto in order to understand how 
 classes are loaded and if I have well understood the document there is no 
 way to achieve what I want.
 Can anyone help me?
 I've already set up multiple tomcat instances using different 
 CATALINA_BASE, but that's not what I want in this phase of the project.
 thanks in advance
  Giovanni
 
 
 
 Giovanni Cuccu
 Sw [EMAIL PROTECTED]
 Dianoema S.p.A.
 Via de' Carracci 93 40131 Bologna
 Tel: 051-4193911
 e-mail:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How do I use the admin webapp in 4.1.12 ?

2002-11-09 Thread Sriram N
Hello,

I downloaded 4.1.12 today and decided to explore it.

How do I use the admin webapp ? I was able to use the manager app after
creating a user in tomcat-users.xml.

Thanks,

Sriram

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Got admin working.. (Re: How do I use the admin webapp in 4.1.12 ?)

2002-11-09 Thread Sriram N
Since I was able to add myself as manager using tomcat-users, I added admin
priveleges the same way.

Here's the line in my tomcat-users.xml file:
  user username=sriram password=foo roles=manager,admin/

However, this is not documented anywhere in the tomcat docs.

--Sriram

--- Sriram N [EMAIL PROTECTED] wrote:
 Hello,
 
 I downloaded 4.1.12 today and decided to explore it.
 
 How do I use the admin webapp ? I was able to use the manager app after
 creating a user in tomcat-users.xml.
 
 Thanks,
 
 Sriram
 


__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Contribution to the running.txt file for thje admin and manager web apps.

2002-11-09 Thread Sriram N
Hello,

Since the running.txt does not contain any kickstart information for the
manager and admin web applications, here's something that we could use as a
placeholder until something better is developed.

I was thinking of placing this paragraph before the (5) Troubleshooting section
in the file running.txt

*
The Manager and the Admin web applications.
---
These web applications can be used to maintain the Tomcat. They are priveleged
web applications.
If you are using the Memory Realm (which is the default), then the access can
be configured from the
$CATALINA_HOME$/conf/tomcat-users.xml.

This file contains a few predefined roles and users for such roles.
To access the manager application with the username mgr and the password
pwd , add the following line to tomcat-users.xml
  user username=mgr password=pwd roles=manager/
 The manager web application is documented in the Manger-Howto, a part of the
Tomcat documentation.

To access the admin application with the username adm and the password pwd,
add the following line to tomcat-users.xml
  user username=adm password=pwd roles=admin/   
The admin web application does not have a dedicated documentation page.
Contributions are welcome.
*

Sriram

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Contribution to the running.txt file for thje admin and manager web apps.

2002-11-09 Thread Sriram N
Hello,

Since the running.txt does not contain any kickstart information for the
manager and admin web applications, here's something that we could use as a
placeholder until something better is developed.

I was thinking of placing this paragraph before the (5) Troubleshooting section
in the file running.txt

*
The Manager and the Admin web applications.
---
These web applications can be used to maintain the Tomcat. They are priveleged
web applications.
If you are using the Memory Realm (which is the default), then the access can
be configured from the
$CATALINA_HOME$/conf/tomcat-users.xml.

This file contains a few predefined roles and users for such roles.
To access the manager application with the username mgr and the password
pwd , add the following line to tomcat-users.xml
  user username=mgr password=pwd roles=manager/
 The manager web application is documented in the Manger-Howto, a part of the
Tomcat documentation.

To access the admin application with the username adm and the password pwd,
add the following line to tomcat-users.xml
  user username=adm password=pwd roles=admin/   
The admin web application does not have a dedicated documentation page.
Contributions are welcome.
*

Sriram

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: Got admin working.. (Re: How do I use the admin webapp in 4.1.12 ?)

2002-11-09 Thread Sriram N

--- Remy Maucherat [EMAIL PROTECTED] wrote:
 Sriram N wrote:
 
  Since I was able to add myself as manager using tomcat-users, I added 
  admin
  priveleges the same way.
 
  Here's the line in my tomcat-users.xml file:
 
 
  However, this is not documented anywhere in the tomcat docs.
 
 
 This is written in the default home page (you need admin role for the 
 admin webapp).
 
 Rémy
 
Ack Remy, so it is. 

Perhaps we should change the sample role names and the user name to something
more self-explanatory ? For a person who's just installed Tomcat for the first
time in his life, we should perhaps have more descriptive role names. Currently
role1 and tomcat do not reveal much to a person who doesn't even know what
roles are all about.

Sriram

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: HELP for novice

2002-11-06 Thread Sriram N
Have you looked at the docs available with tomcat and also at
http://www.johnturner.com/howto/apache-tomcat-howto.html 

Never worked much on Un*x beyond a few shell commands and such, but I do think
that the mod_jk.so files might be missing. If you have taken these .so files,
are they in the appropriate location ? I'd guess that apache's httpd.conf must
have some way to indicate the parth to the .so file.
Perhaps something like modules/mod_jk.so -- (I remember reading something
like that about a year ago...)
If this line is present, then is the actual file present there too ?

Lastly, do you to the johnturner site, there are some binaries available there
for download, you might use them.

(Note: I recall mod_jk etc from the subject lines of the mails that I read
here; never used them myself. Just thought I'd help with what ever I can.)

-- Sriram

--- Sam Harris [EMAIL PROTECTED] wrote:
 I installed tomcat 4.1.12 on Solaris 8, the intent here is to integrate
 the functionality with apache, so far the first thing is that the conf
 file is not being generated.
 Then when I do an include httpd.conf complains about the missing .so
 file.
 
 Please help.
 
 thanks
 
 Sam Harris
 Internet Services
 614-744-8322
 [EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org
 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Tomcat w. JRE?

2002-10-02 Thread Sriram N

And according to a license policy change by Sun, it's possible to distribute
the tools.jar file to your customers too.

Sriram

 -Original Message-
 From: Mohammad Al-Bedaiwi [mailto:[EMAIL PROTECTED]]
 Sent: 03 October 2002 05:29
 To: 'Tomcat Users List'
 Subject: RE: Tomcat w. JRE?
 
 
 The reason you need the jdk is that b/c you need the tools.jar to be in
 the classpath.
 If u don't want to install the jdk, make sure u have a copy of tools.jar
 somewhere in the classpath.
 
 Mohammad
 
 
 -Original Message-
 From: Ola Tuvesson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 02, 2002 10:55 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat w. JRE?
 
 
 Hi everyone,
 
 I would like to know if it is possible to run Tomcat on Windows NT with
 just
 the Sun JRE 1.4 instead of the full JDK? I really don't want to have to
 install the full JDK as my server is not really a development machine
 and
 the difference in size is quite substantioal. If not, could someone
 please
 enlighten me as to why this is not possible?
 
 Many thanks,
   Ola Tuvesson
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




On Resin, Tomcat and Apache.

2002-09-07 Thread Sriram N

Hi all,

I saw the past few days' posts on resin vs tomcat, and tomcat vs apache.

I just went over to resin's site, and here's what they have to say:


Resin includes a full-featured HTTP/1.1 web server dedicated to serving fast
Java dynamic content. While Resin is tuned for dynamic content, its static file
performance matches or beats Apache's static performance. Many, if not most,
sites will use Resin's web server for all their web server requests.


But if you go over to http://www.caucho.com/articles/jsp_benchmarks.xtp;,
which is available as a link on the same page, you'll notice that they're
talking only about serving JSPs. And they use JDK 1.1.7, and they compare with
JServ, and not Tomcat. 

I can't comment on JServ, since I'd used it for just day before I discovered
Tomcat.

I remember coming across a post by Craig (in either of Tomcat-user or
Tomcat-dev) that with today's JDKs reflection etc is very fast, and Tomcat by
itself is very fast.

For a web-solution that we gave to a bank, I built a app that contained
Embedded Tomcat 4.0.1, and the customers are satisfied with the performance.
And with the new Jasper and the whole lot of improvements that have been, I'd
say that Tomcat today is much more improved than what it was a year ago.

Sriram

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Tomcat 3.3.x VisualAge 3.5.3

2002-05-12 Thread Sriram N

Hi,

You could do this by either importing the Tomcat source/binay into visual Age,
or by adding the Tomcat jars to the Visual Age classpath.

If you see the tomcat.bat batch file, you'll see that there's just the
StartTomcat and StopTomcat batch files being called. You could call these too,
and create a replacement for the Websphere Test environment.

I'm not in my office right now, but if you need more information, I could post
my settings and code when I get back.

Sriram
--- donggen zhang [EMAIL PROTECTED] wrote:
 
  Has anyone installed Tomcat3.3.x in VisualAge for Java 3.5.3? or anywhere I
 can get the instructions for installation ?
 
 thanks a lot
 
 donggen
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Is there a native JDBC driver for MS Access?

2002-04-06 Thread Sriram N


--- Craig R. McClanahan [EMAIL PROTECTED] wrote:
 
 
 On Mon, 8 Apr 2002, Adrian Beech wrote:
 
  Date: Mon, 8 Apr 2002 10:38:45 +1000
  From: Adrian Beech [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: Is there a native JDBC driver for MS Access?
 
  Um, okay then how stable is the JDBC/ODBC bridge?  As I previously
  mentioned in my initial posting some bits and peices that I've read suggest
  that this method of connecting to a DB back end is, or can be, a little
  dodgy.  The comments basically revolved around the premise that the bridge
  is not capable of being threaded and it is considered by Sun to still be
  experimental.  I got the impression that there is potential for data loss
 or
  corruption along with performance related issues.
 
 
 The JDBC/ODBC bridge is not appropriate for use in a multithreaded
 environment like a servlet container.  Also, lots of people have had
 problems trying to use MS Access (designed for personal desktop use) in
 environments like this, even with a for-pay JDBC driver.
 
 I'd start by choosing a different database.

How about MySQL (http://www.mysql.org) ? They have a type 4 JDBC driver.
Is this OK in a multithreaded environment ?

 
  I guess I really need to know if it is reasonable to use Tomcat to host an
  environment that relies on this sort of DB connectivity.
 
  Adrian
  [EMAIL PROTECTED]
 
 
 Craig
 
Sriram

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Look at this document (Was Re: can Tomcat call classes in JARs?)

2002-03-27 Thread Sriram N


--- Carlos Martins [EMAIL PROTECTED] wrote:
  Hello,
  
  Is it possible to have tomcat call servlets that are included in a jar file
 rather than simple class files located in the WEB-INF/classes folder?
  I'm trying this, by placing the jar file with the classes in that folder,
 but tomcat does not see to be able to find them...
  Is there any special configuration that i'm missing?
  
Have you placed these jars in the WEB-INF/lib folder ?

Visit http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/deployment.html
for more information.

  Thanks.
  Carlos
  --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Log4j initialization problem

2002-03-21 Thread Sriram N

Hello,

Here's an idea, thouh I'm not sure it's a clean one...
1. In the contextStarted, get hold of the real path from the servlet context.
Let's say you get /var/tomcat/webapps/myapp/.
2. Set this to a System property
e.g. String currentWebAppPath = /var/tomcat/webapps/myapp/;
System.setProperty(myapp.LogFolder,currentWebAppPath+logs;
3. In the log4j.properties file, specify the file path as
log4j.appender.A1.File=${myapp.LogFolder}/LogMessages.txt
4. You'll now find all your logs being stored to this folder. You have to have
created this folder first ;-) You could always use File.mkdirs() in the
contextInitialized...

Now when you change your webapp's foldername, you'll find the logs going to the
right location...

Note: I don't have access to my comp, so there might be some syntax errors,
etc...

By the way, have you considered that the servlet container need not expand your
app's war ? I run my webapps this way lots of times. If the .war is not going
to be expanded, then the logs wont go to the sub folder...

And yes, you should post log4J configuration queries to the log4J interest
list, after first searching the archives ;-) There's active development going
on right now, and you just might get ideas from the developers themselves.

Sriram


Sriram
--- James Adams [EMAIL PROTECTED] wrote:
 Hello,
 
 I have tried the ServletContextListener approach suggested below by
 Sriram (thanks !) and I am still having the same problem, i.e. I get the
 log file (specified in my log4j.properties file) created under whatever
 directory I am at when I issue the tomcat start command.  It appears
 that the log file is being created and placed in the current working
 directory if I specify only the file name in the log4j.properties
 File entry.  If I specify the full path, such as
 
 log4j.appender.A1.File=/var/tomcat/webapps/myapp/LogMessages.txt
 
 then it creates and places the file exactly where it the entry
 specifies.  But I want to just specify the filename and have it created
 under the webapp's context directory, that way I won't have to remember
 to change the log4j.properties entry whenever the webapp is moved to
 another context directory or installed on another machine which might
 have a different webapps directory path.
 
 So is there a way to get the log file to be created and placed under its
 webapp's context directory ?
 
 Also would it be more appropriate to post this topic/thread to the log4j
 user group ([EMAIL PROTECTED]) ?
 
 Thanks in advance for any suggestions or clues.
 
 
 -James


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Log4j initialization problem

2002-03-20 Thread Sriram N

Hello,

I don't have access to my computer right now, but here's roughly what I do to
use log4J within my Servlet 2.3 API compliant webapps.

1. Create a properties file called log4j.properties
2. Place this in WEB-INF folder.
3. Write a ContextListener and in the contectInitialized method, access the
servlet context. Make sure you place this Listener implementation along with
your other classes and that you add an entry for it in web.xml
4. Ask the servlet context to get the following resource as a stream
e.g. InputStream is =
servletContext.getResourceAsStream(/WEB-INF/log4j.properties);
5. Create a properties file that'll initialize with this property file.
Properties properties = new Properties();
properites.load(is);
is.close();
6. Now pass this newly initialized properties object to the
PropertyConfigurator...

That's it.



Sriram
--- James Adams [EMAIL PROTECTED] wrote:
 Hello,
 
 I am having the problem of Tomcat initializing/creating my Log4j log
 files in whatever directory that Tomcat is started from.  In other words
 if I am currently at directory /kung/foo when I issue the command
 /etc/init.d/tomcat start, then my log files will be created under
 /kung/foo instead of under the /path/to/webapp directory, which is where
 I thought that they should be created.
 
 I have the following WEB-INF/classes/log4j.properties file:
 
 
 # Set root category priority to DEBUG and its only appender to A1.
 log4j.rootCategory=DEBUG, A1
 
 # A1 is set to be a RollingFileAppender.
 log4j.appender.A1=org.apache.log4j.RollingFileAppender
 
 log4j.appender.A1.File=LogMessages-trajview.txt
 log4j.appender.A1.MaxFileSize=500KB
 
 # Keep one backup file
 log4j.appender.A1.MaxBackupIndex=2
 
 # A1 uses PatternLayout.
 log4j.appender.A1.layout=org.apache.log4j.PatternLayout
 log4j.appender.A1.layout.ConversionPattern=%5p %d (%F:%L) - %m%n
 -
 
 
 The log4j stuff is being initialized/configured by a servlet which has
 the following init() method:
 
 ---
 public void init()
 {
 // gets the base directory to use, from the web application's
 context
 String prefix = getServletContext().getRealPath(/);
 
 // this looks in the web.xml for the initialization file
 parameter
 // which points to log4j.properties
 String file = getInitParameter(log4j-init-file);
 
 // if the log4j-init-file is not set, then no point in trying
 if (file != null)
 {
 // apply the configuration specified in the initialization
 file
 PropertyConfigurator.configure(prefix + file);
 }
 }
 --
 
 
 The above mentioned Log4j initialization servlet is being called at
 loadup time by virtue of the following entry in my web.xml:
 
 -
 servlet
 servlet-namelog4j-init/servlet-name
 servlet-classmyapp.servlet.Log4jInit/servlet-class
 init-param
 param-namelog4j-init-file/param-name
 param-valueWEB-INF/classes/log4j.properties/param-value
 /init-param
 load-on-startup1/load-on-startup
 /servlet
 -
 
 
 Because I have three separate webapps which should all have their own
 log files I would like to have the log files created in the separate
 webapp directories, or perhaps better yet in a logs subdirectory under
 each webapp directory.  For example if a webapp is under
 /var/tomcat/webappps/myapp then I would like for the log file to be
 created as /var/tomcat/webapps/myapp/LogMessages.txt or as
 /var/tomcat/webapps/myapp/logs/LogMessages.txt.  How can I get this to
 happen ?  Should I make a change to a log4j.properties entry, or perhaps
 I'm making an error in my log4j initialization servlet's init() method
 by referencing the wrong path in the getRealPath() call ?
 
 Any suggestions will be appreciated.  Thanks in advance.
 
 
 -James
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Installing TomCat 4.0

2002-01-31 Thread Sriram N

Hello,

The logs are kept in %TOMCAT_HOME%/logs. Please check these logs for error
messages. If you find that you're stuck somewhere, then post relevant sections
from these logs.

Sriram
--- Jose Euclides da Silva Junior - DIGR.O
[EMAIL PROTECTED] wrote:
 Hi everybody,
 i have gotten a headache when i try to access an *.html file from my TomCat
 4.0. My server is a W2000 Server, but IIS 5.0 is running together, too.
 TomCat was started up as a W2000 service  - port 8080/8081(dos netstat -a),
 but unfortunately, all web pages are unavailable.
 Any help will be appreciated!
 Regards, Euclides.   
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Here's how you check the JAVA_HOME env variable. (Was :Re: Solution to sun/tools/javac/Main - Problem and some Critique about classpath)

2002-01-28 Thread Sriram N


--- Michael Kastner [EMAIL PROTECTED] wrote:
 Siram,
 
 thank you very much for your reply. I think I wasn't specific enough. To put
 my critique in a nutshell: if I set JAVA_HOME in the environment, there
 oughtn't be a need to copy tools.jar in a /lib directory of tomcat.
 
Of course. The tomcat startup scripts have been written to help us achieve this
:-)

 There should neither be a classpath (which you explained are ignored by
 tomcat) nor should there be any script settings necessary. The setting in
 JAVA_HOME should simply be sufficient to make the jdk's jars available to
 tomcat.
 
Umm.. there is indeed no need to worry about the CLASSPATH, actually..The
JAVA_HOME setting is indeed sufficient.

 But that is not the case. Without copying tools.jar to
 {tomcat_root}/common/lib and/or {tomcat_root}/server/lib it's not recognized
 by tomcat and an exception is thrown. Was I clear?
 

You really need to check that your JAVA_HOME environment variable is pointing
to the correct folder.

Try this on a command prompt (these work on Windows, you could try Unix
equivalents)

if exist %JAVA_HOME%\lib\tools.jar echo found tools.jar
This will display the string found tools.jar in on the screen, if your
environment variable is indeed set correctly.
On my NT 4 system, this works right regardless of whether the JAVA_HOME env
variable points to a directory with spaces in it or not. So, even if the JDK is
installed at, say e:\program files\Javasoft\jdk, the command and the
catalina.bat scripts will work OK.

if not exist %JAVA_HOME%\lib\tools.jar echo could not locate tools.jar
If you see the string could not locate tools.jar sicplayed on screen after
running this command, then your JAV_HOME env. var. is not set correctly.

Also, do mention the Tomcat release that you're testing with.
I have Tomcat 4.0.1 running on Sun's JDK 1.3.1 and my OS is WinNT 4.0 with
Service Pack 6, and once I set JAVA_HOME, tomcat works out of the box for me.

Which JDK release are you using ? Does it ship tools.jar in JAVA_HOME\lib ?
Because that's where the tomcat startup scripts look for this file.

 Sincerely
 
 Michael Kastner
 

Sriram


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Solution to sun/tools/javac/Main - Problem and some Critique about classpath

2002-01-27 Thread Sriram N

Hello,
for anybody who has been running into this exception when trying to
execute
JSPs:
javax.servlet.ServletException: sun/tools/javac/Main
Heres the solution:
tools.jar is not recognized when it's in classpath
thus it must be copied to
{tomcat_root}/common/lib
and/or
{tomcat_root}/server/lib

The Tomcat startup scripts start up Tomcat in such a way that the existing
CLASSPATH is ignored completely.
They do this by creating another environment variable called _CLASSPATH, which
contains the default CLASSPATH variable's values, if any. The startup scripts
then proceed to assemble together a CLASSPATH which is used to start and run
Tomcat. This CLASSPATH contains only those Jars that are present in the Tomcat
sub-directory.
Once this tomcat specific CLASSPATH is created, it is used to startup Tomcat.
Now, the ony other places from where jars/clases might be loaded is the
%JAVA_HOME%/jre/lib/ext folder. The extensions Classloader, which is one of the
three Classloaders that work when the JVM comes up, loads all classes and Jars
that are present in this folder.

If you next use the supplied shutdown scripts, then the default CLASSPATH is
restored, using the values fromthe _CLASSPATH environment variable.

My opinion:
I've been chasing down this problem for three days now, and all I could
find
in the respective mailing list databases was: put tools.jar in the
classpath. But that didn't work. Eventually I found the solution
mentioned
above - as I wrote - after three days.

If the JAVA_HOME environment variable is correctly defined, then the startup
scripts correctly construct a Tomcat specific CLASSPATH environment varialbe
that includes %JAVA_HOME%/lib/tools.jar. If you have such an environment
variable, and yet you have to copy tools.jar to a Tomcat subfolder, then please
check the value of this environment variable. For e.g. I have installed JDK
1.3.1 at e:\jdk1.3.1 on my WinNT 4.0 system, and the value of the JAVA_HOME
environment variable on my system is e:\jdk1.3.1\ (with the trailing
backslash). This constructs the correct CLASPATH for me, which includes the
tools.jar.


Ever since I started working with java and that was four years ago, the
classpath has been a problem in java. I would expect that in the
meantime
the directory structures would be sufficiently standardized and thus
make
_any_ classpath settings unnecassary. Once JAVA_HOME and/or JAVA_PATH
are
set the environment should be defined.
But that's not the case. To make things worse, sometimes like in this
case,
the classpath settings are ignored. Who would have expected that
tools.jar
needs to be _copied_ to some other location? I wouldn't.

While it might be frustrating to those who do not know that their carefully
constructed CLASSPATH is actually ignored by the startup scripts, this can be a
book actually. Quite a few Tomcat users have big unmanageable CLASSPATHs and
jars scattered all over the place, and supporting such setups via this
mailinglist can be a real nightmare.

Because I wouldn't
expect _any_ developer of java and escecially java server applications
to
propose a configuration, where system jars are located in more than one
location. Thus maintenance of the system becomes a nightmare when a
system
update is due.
I just hate when that happens.

The firm that I work for is soon going to deliver a some 6 web apps, all of
which will be running on Tomcat 4.0.1
Because of the way Tomcat's startup scripts work, we are not particularly
concerned with other jars etc that might be added to the system on a later
date. And then what if the customer were to change the CLASSPATH variable's
values ? The way the startup scripts work right now, we are at least sure that
if there are any new Jar files, we know where to place them. And if there are
any conflicts in the future, either there's some foreign jar files in our
Tomcat folder, or in %JAVA_HOME%/jre/lib/ext And no more worries about the
CLASSPATH being changed, etc.

If you'd indeed like the Tomcat startup scripts to refer to your system jars,
then you could customize the file catalina.bat (catalina.sh for unix users) The
place to do your customization is in the section titled
rem - Set Up The Runtime Classpath
 
You'll see here that the tools.jar is referred by the line
set CP=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar
If you'd like to support additional System libraries, say something product
called XYZ which is available at e:\XYZ\lib\xyz.jar,

then you could add a line like this,
set CP=%CP%;e:\XYZ\lib\xyz.jar

Sincerely
Michael Kastner

Sriram

__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: One Solution (JSP-Compilation error)

2002-01-27 Thread Sriram N


Does this happen with Tomcat 4.0.1 too ?

Acc. to the Tomcat docs at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html, the
following order is maintained when loading classes.

/WEB-INF/classes of your web application
/WEB-INF/lib/*.jar of your web application
Bootstrap classes of your JVM
System class loader classses (described above)
$CATALINA_HOME/common/classes
$CATALINA_HOME/common/lib/*.jar
$CATALINA_HOME/classes
$CATALINA_HOME/lib/*.jar

Sriram

--- Michael Kastner [EMAIL PROTECTED] wrote:
 Hello,
 
 as I saw in many mailing lists I am not the only one who had the following
 problem, so I post a solution here.
 
 Problem:
 After installing tomcat 4.01 all example JSPs in the provided applications
 work well. But when you try to run your own JSPs in your own applications
 you suddenly get this exception thrown:
 
 exception
 javax.servlet.ServletException: Servlet.init() for servlet jsp threw
 exception
 ...
 ...
 root cause
 java.lang.ClassCastException:
 org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
 
 
 Solution (at least in my case):
 
 I had an xml parser version in my /appname/WEB-INF/lib directory which was
 different from the xml parser located in {TOMCAT-ROOT}/common/lib. It seems
 that if there is an xml parser located in the app's WEB-INF/lib directory,
 then this parser is being used to compile the application's JSPs. And this
 leads eventually to the ClassCastException.
 
 The application, where this error occured was originally transferred from
 JRUN 3.1 where this behaviour does not occur. On a JRUN 3.1 server the xml
 parser in an application's WEB-INF/lib directory is NOT being used to
 compile the application's JSPs. However in tomcat 4.01 it is being USED. So
 watch out about multiple xml-parser versions!
 
 Maybe this helps some people.
 
 Sincerely
 
 Michael Kastner
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Quick guide to a virtual host in Tomcat (Was: server.xml and Catalina)

2002-01-27 Thread Sriram N


--- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote:
 I sure am having trouble getting an example of server.xml.  I bathed!  Is 
 the 4.0 server.xml structured about like the 3.2 was?  I have looked at the 
 documentation, but I am practically oriented.  If someone would show me one 
 copy of a working server.xml with virtual hosting, I would be off and 
 running.  But --- no!  ;-)  Come on, someone, help me out.
 

I just a simple thing.
1. Open server.xml
2. Copy the Host section and paste if again below the original Host
section.
3. Change the default values to something like
Host name=shrek debug=0 appBase=e:/shrek unpackWARs=true
Where my comp is also called shrek, and the web apps for this shrek server will
be kept in e:/shrek sub-directory.
4. Copy the ROOT folder from the actual Tomcat/webapps folder to this new
folder. So I now have e:/shrek/ROOT.
5. Change the text in index.html in e:/shrek/ROOT to say something else
e.g This is my shrek server
6. Update my hosts file to include an entry for this new name for my computer
e.g. 
192.168.1.219   shrek
7. Test this new entry by trying out ping shrek in the command line
8. Start Tomcat and point my browser to http://localhost:8080/ to see the
default Tomcat Welcome page.
9. Next, point my browser to http://shrek:8080/ to see another index page 
that says, This is my Shrek server.

I don't know if this is what you're looking for though. I do not have any DNS
and such stuff.

 -- micael
 
Sriram

__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]