FAQ RE: Tomcat with apache

2003-06-09 Thread James Lewis

http://www.johnturner.com/howto/apache-tomcat-howto.html#howto


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/connectors.html

http://sourceforge.net/projects/tomcatbook/


http://mywebpages.comcast.net/funkman/

Umm, there's loads more (google or archives)


 -Original Message-
 From: Kevin Passey [mailto:[EMAIL PROTECTED]
 Sent: 09 June 2003 11:01
 To: Tomcat (E-mail)
 Subject: Tomcat with apache
 
 
 Hi everyone,
 
 I have searched thru the archives and cannot find a pointer on this. Can
 anybody point me to some how-to's on getting the latest version 
 of Tomcat to
 run with Apache Http.
 
 Regards
 
 Kevin
 
 -
 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: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread James Lewis
- define the resource in server.xml (this is a little 'limitating' for me)
 - deploy the applications in unpacked format (i.e. not from a war file:
 this is quite limiting, however)

Yep, not good to stick them in server.xml.

Your application.xml file containing your resources should be in the
webapps/ directory along with your packed or unpacked application

You can then access your resources using:
snip jndiContext.lookup(java:comp/env/resource name);

Is this what you are doing? Are you using the correct Context
(java:comp/env)?

Cheers,

james


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



RE: [tomcat] RE: JNDI datasource non available in ServletContextListener.contextInitialized

2003-06-09 Thread James Lewis
 always perform such a lookup successfully, but when I try from a
 ContextListener contextInitialized method it fails: the same code WILL
 NOT FAIL contextDestroyed !!!

Hmmm, odd. This is *exactly* what I do pretty much. I have a
LifeCycleListener specified in the webapps/app/WEB-INF/web.xml like this:

  listener
listener-classmy.foo.bar.package.LifeCycleListener/listener-class
  /listener

and then in the contextInitialized method of the LifeCycleListener I do a
bunch of calls to jndiContext.lookup().

Hmm, hmmm, hmmm. You are correctly specifying the listener in web.xml?


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



RE: Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags

2003-06-05 Thread James Lewis
Umm, you'll have to post the whole exception, as the JasperException is
wrapping the underlying one. (especially the root cause bit).
Cheers,

james

 -Original Message-
 From: Graham Reeds [mailto:[EMAIL PROTECTED]
 Sent: 05 June 2003 11:49
 To: Tomcat Users List
 Subject: Re: Tomcat bug? WinXp, IE6, Tomcat 4.1.24, JSPTags


 Okay this the relevant section of my taglib.tld file:

 tag
 nameheader/name
 tagclasstagext.HeadTag/tagclass
 bodycontentJSP/bodycontent
 infoSimple Example/info
 attribute
 namepageTitle/name
 requiredtrue/required
 rtexprvaluetrue/rtexprvalue
 /attribute
 /tag

 the use of the tag in my jsp file:
 siteTags:header pageTitle=Server Administration /

 the getter and setter code:

 String pageTitle;
 // getter
 //public String getPageTitle()
 public String getpageTitle()
 {
 return pageTitle;
 }

 // setter
 //public void setPageTitle(String pageTitle)
 public void setpageTitle(String pageTitle)
 {
 this.pageTitle = pageTitle;
 return;
 }

 The error that it produces (cropped for berevity).  If you would like the
 code then I can email you it - I wouldn't want to post the entirety to the
 list:

 HTTP Status 500 -
 type Exception report
 message
 description The server encountered an internal error () that prevented it
 from fulfilling this request
 exception
 org.apache.jasper.JasperException
   at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrap
 per.java:2
 54)
   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(A
 pplication
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati
 onFilterCh
 ain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp
 erValve.ja
 va:256)
   at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveCon
 text.invok
 eNext(StandardPipeline.java:643)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.
 java:480)

 --

 Graham Reeds,
 [EMAIL PROTECTED] | http://omnieng.co.uk


 -
 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: Best Practice: choose between SessionCookie or just Session

2003-06-04 Thread James Lewis
 The question is: should i generate a
 session Cookie
 that will be recovered by my following servlet or just generate
 any session
 parameter ( which will be recovered later too ), since i guess i only need
 to control the whole internal process.

Umm, Slap me down if I'm wrong but I assume you mean: should you generate
your own cookie, or should you use the Session object to store the
information?

Tomcat has two mechanisms for retaining session information. Using cookies
or URL rewriting. I believe that it uses the first by default but that it
can be turned off.

Essentially you are choosing between creating your own cookie, or having
tomcat do it for you I think. Of course, if you are going to store session
information in any cookie, make sure that your app tests whether browsers
are accepting them or not - cos then you'll ahve to switch to the other
method (rewriting).

I'm not sure what best practice in this case would be as I've used both
methods in the past (and a couple of others as well but we won't discuss
those...). I'd use cookies with url-rewriting as a backup tbh.

james


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



RE: Why am I recieiving this?

2003-06-03 Thread James Lewis
lol!

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: 02 June 2003 14:39
 To: Tomcat Users List
 Subject: RE: Why am I recieiving this?
 
 
 
 Howdy,
 
 Techniacally,my post should only and only goes to  tomcat-user mail
 server
 
 How did you arrive at that conclusion?  See RFC 3461, 3030.
 
 Yoav Shapira
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, and 
 may not be saved, copied, printed, disclosed or used by anyone 
 else.  If you are not the(an) intended recipient, please 
 immediately delete this e-mail from your computer system and 
 notify the sender.  Thank you.
 
 
 -
 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: connectors and port80

2003-06-03 Thread James Lewis
Yes.

But seriously how do you mean? Are *you* root when you run it?

 -Original Message-
 From: Fumo, Vince [mailto:[EMAIL PROTECTED]
 Sent: 02 June 2003 14:55
 To: 'Tomcat Users List'
 Subject: RE: connectors and port80
 
 
 Nope..installed as root. Is there a way I can verify the group/user
 ownership?
 
 vef
 
 -Original Message-
 From: Mirit Naim [mailto:[EMAIL PROTECTED] 
 Sent: Monday, June 02, 2003 8:50 AM
 To: [EMAIL PROTECTED]
 Subject: Re: connectors and port80
 
 Under which account you installed tomcat? If it is not root, you can't
 run it at port 80 just like that (maybe there is a forwarding option, I
 don't know).
 
  [EMAIL PROTECTED] 06/02/03 04:46PM 
 I'm trying to get tc to run on a linux 9 server. I've got it working
 fine on
 port 8080 but when I change my connector to port 80 I get an access
 denied
 exception (see info below). I'm guessing I got the connector
 definition
 correct and that its something in linux. Do any of you have any
 suggestions?
  
 Connector (from server.xml)
  
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 redirectPort=8443 bufferSize=2048 port=80
 connectionTimeout=2
 scheme=http enableLookups=true secure=false
 protocolHandlerClassName=org.apache.coyote.http11.Http11Protocol
 debug=0
 disableUploadTimeout=true maxKeepAliveRequests=100 proxyPort=0
 tcpNoDelay=true maxProcessors=75 minProcessors=5
 acceptCount=100
 useURIValidati onHack=false connectionLinger=-1 compression=off
 
 Factory
 className=org.apache.catalina.net.DefaultServerSocketFactory/
 /Connector
  
 Exception output (from catalina.out)
  
 [INFO] Registry - -Creating MBeanServer
 java.net.BindException: Permission denied:80
 at
 org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEnd
 point.java
 :280)
 at
 org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:150)
 at
 org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnect
 or.java:11
 17)
 at org.apache.catalina.core.StandardService.initialize(Unknown
 Source)
 at org.apache.catalina.core.StandardServer.initialize(Unknown
 Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown
 Source)
 at org.apache.catalina.startup.Catalina.process(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
 [ERROR] Http11Protocol - -Error initializing endpoint
 java.net.BindException: Permission denied:80
 Catalina.start: LifecycleException:  Protocol handler initialization
 failed:
 java.net.BindException: Permission denied:80
 LifecycleException:  Protocol handler initialization failed:
 java.net.BindException: Permission denied:80
 at
 org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnect
 or.java:11
 19)
 at org.apache.catalina.core.StandardService.initialize(Unknown
 Source)
 at org.apache.catalina.core.StandardServer.initialize(Unknown
 Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown
 Source)
 at org.apache.catalina.startup.Catalina.process(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
 Catalina.stop: LifecycleException:  This server has not yet been
 started
 LifecycleException:  This server has not yet been started
 at org.apache.catalina.core.StandardServer.stop(Unknown
 Source)
 at org.apache.catalina.startup.Catalina.start(Unknown Source)
 at org.apache.catalina.startup.Catalina.execute(Unknown
 Source)
 at org.apache.catalina.startup.Catalina.process(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
  
 
 Vincent Fumo
 Software Engineer
 ACS State and Local Solutions
 777 Saw Mill River Rd.
 Tarrytown, NY 10591
 914-789-6162
 AIM : neodem2001
  
  
  
  
 
 -
 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: Catalina api and Jars

2003-06-03 Thread James Lewis
 but I can use:

I assume you mean can't.


 org.apache.ant.*;

 is there a list of jar files somewhere that I have overlooked?
 I'm assuming that if I have then I need to add that dir to my classpath.

There is also the server directory: CATALINA_BASE/server/lib, however (and
I'm sure someone will correct me if I'm wrong) these jars, which include
catalina-ant.jar etc are not accessible from within your webapps for
security reasons (and as Master Shapira might say:), very good ones.

From the tomcat class loader docs for 4.1x
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html):

Catalina - This class loader is initialized to include all classes and
resources required to implement Tomcat 4 itself. These classes and resources
are TOTALLY invisible to web applications. All unpacked classes and
resources in:

$CATALINA_HOME/server/classes, as well as classes and resources in JAR files
under $CATALINA_HOME/server/lib, are made visible through this class loader.
By default, that includes the following: snip

Cheers,

james


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



RE: Tomcat STILL freezing - time to look at another app server?

2003-05-31 Thread James Lewis
Just to be clear.

when you say:

 I have beans that I set back to null, and session variables that I do the
 same with, at the end of this particular file and at the beginning of the
 app.

Does this include the Connection object (conn)? This has been a particular
problem for us in the past (as another post has mentioned). Things can
definately freeze if you can't get any free connections because they are
unclosed and waiting to time out.

Cheers,

James Lewis
Java Developer
www.goodtechnology.com


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



Getting Dynamic Container information

2003-05-29 Thread James Lewis
Hello,

I am trying to retrieve information about the container at the moment and am
running into some problems.

I am building a page that will hopefully be used to display information such
as number of active sessions, current number of HTTP processors in the
pool etc.

Does anyone know a method of getting this information that doesn't involve
using the Manager web app?

Any help much appreciated,

james

James Lewis
Java Developer
www.goodtechnology.com


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



RE: Weird occurrence - thoughts??

2003-04-02 Thread James Lewis
Hmm, looking at the exception it seems the explanation may lie here:

 - Root Cause -
 java.io.IOException: The system cannot find the path specified
   at java.io.WinNTFileSystem.createFileExclusively(Native Method)


Is it possible that permissions were changed somehow on the
/WEB-INF/lib/cos.jar file/directory?

Or do you have some interesting network mounted NT file system that was
unavailable?

Gut feeling it's an OS thing anyway.

Cheers,

james


James Lewis
Java Developer
www.goodtechnology.com


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



RE: Infuriating port problem 80 - 8443 and 8008 - 8443

2003-03-25 Thread James Lewis
is the User who is running the server root? Some ports are privileged and
you need root access on Linus to use them (someone can correct me on the
exact ones no doubt :p)

james


 -Original Message-
 From: Jamesey [mailto:[EMAIL PROTECTED]
 Sent: 25 March 2003 13:16
 To: [EMAIL PROTECTED]
 Subject: Infuriating port problem 80 - 8443 and 8008 - 8443


 My web app has been working fine for weeks switching from 8080 to 8443..

 however.. i've now reconfigured it to port 80 and it after
 submitting to my
 struts action servlet.. i get page not found..
 if i switch it back to 8080 its fine..

 anyone know if im doing sometihng wrong?

 DETAILS: - Server.xml
 !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector

 port=80 minProcessors=5 maxProcessors=75

 enableLookups=false redirectPort=8443

 acceptCount=100 debug=0 connectionTimeout=2

 useURIValidationHack=false disableUploadTimeout=true /

 !-- Note : To disable connection timeouts, set connectionTimeout value

 to -1 --





 !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --

 Connector className=org.apache.coyote.tomcat4.CoyoteConnector

 port=8443 minProcessors=5 maxProcessors=75

 enableLookups=false

 acceptCount=100 debug=0 scheme=https secure=true

 useURIValidationHack=false disableUploadTimeout=true

 Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory

 clientAuth=false protocol=TLS /

 /Connector

 -- snip

 Host name=james_laptop debug=0 appBase=webapps

 unpackWARs=true 

 Logger className=org.apache.catalina.logger.FileLogger

 directory=logs prefix=localhost_log. suffix=.txt

 timestamp=true/

 Context path= docBase=MyApp debug=0 reloadable=true


 Logger className=org.apache.catalina.logger.FileLogger

 prefix=james_laptop_log. suffix=.txt

 timestamp=true/

 Manager className=org.apache.catalina.session.PersistentManager

 debug=0

 saveOnRestart=true

 maxActiveSessions=-1

 minIdleSwap=-1

 maxIdleSwap=-1

 maxIdleBackup=-1

 Store className=org.apache.catalina.session.FileStore/

 /Manager

 /Context

 /Host




 -
 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: Infuriating port problem 80 - 8443 and 8008 - 8443

2003-03-25 Thread James Lewis
Obviously I meant Linux, although root access on Linus sounds interesting...

 -Original Message-
 From: James Lewis [mailto:[EMAIL PROTECTED]
 Sent: 25 March 2003 13:24
 To: Tomcat Users List
 Subject: RE: Infuriating port problem 80 - 8443 and 8008 - 8443


 is the User who is running the server root? Some ports are
 privileged and
 you need root access on Linus to use them (someone can correct me on the
 exact ones no doubt :p)

 james


  -Original Message-
  From: Jamesey [mailto:[EMAIL PROTECTED]
  Sent: 25 March 2003 13:16
  To: [EMAIL PROTECTED]
  Subject: Infuriating port problem 80 - 8443 and 8008 - 8443
 
 
  My web app has been working fine for weeks switching from 8080 to 8443..
 
  however.. i've now reconfigured it to port 80 and it after
  submitting to my
  struts action servlet.. i get page not found..
  if i switch it back to 8080 its fine..
 
  anyone know if im doing sometihng wrong?
 
  DETAILS: - Server.xml
  !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
 
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 
  port=80 minProcessors=5 maxProcessors=75
 
  enableLookups=false redirectPort=8443
 
  acceptCount=100 debug=0 connectionTimeout=2
 
  useURIValidationHack=false disableUploadTimeout=true /
 
  !-- Note : To disable connection timeouts, set connectionTimeout value
 
  to -1 --
 
 
 
 
 
  !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 
  port=8443 minProcessors=5 maxProcessors=75
 
  enableLookups=false
 
  acceptCount=100 debug=0 scheme=https secure=true
 
  useURIValidationHack=false disableUploadTimeout=true
 
  Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
 
  clientAuth=false protocol=TLS /
 
  /Connector
 
  -- snip
 
  Host name=james_laptop debug=0 appBase=webapps
 
  unpackWARs=true 
 
  Logger className=org.apache.catalina.logger.FileLogger
 
  directory=logs prefix=localhost_log. suffix=.txt
 
  timestamp=true/
 
  Context path= docBase=MyApp debug=0 reloadable=true
 
 
  Logger className=org.apache.catalina.logger.FileLogger
 
  prefix=james_laptop_log. suffix=.txt
 
  timestamp=true/
 
  Manager className=org.apache.catalina.session.PersistentManager
 
  debug=0
 
  saveOnRestart=true
 
  maxActiveSessions=-1
 
  minIdleSwap=-1
 
  maxIdleSwap=-1
 
  maxIdleBackup=-1
 
  Store className=org.apache.catalina.session.FileStore/
 
  /Manager
 
  /Context
 
  /Host
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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




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



Unsure how to set Context.URL_PKG_PREFIXES for the javaURLContextFactory, Catalina container

2003-03-20 Thread James Lewis
Hi Folks,

I'm currently writing some JUnit tests for an application that normally runs
under Tomcat 4.1.18. To this end I need to spoof the Context that the tomcat
container uses.

I am using the javaURLContextFactory type when creating an InitialContext
and am getting the following message after performing a lookup:

javax.naming.NameNotFoundException: Name java:comp is not bound in this
Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:811)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at uk.co.goodtech.cms.unittest.CMSTest.init(CMSTest.java:79)

I believe that this error is down to the Context.URL_PKG_PREFIXES not being
set correctly, but I am unable to locate much information about how to do
this (STFW, RTFM + source) and was wondering if anyone had any ideas?

Cheers (and apologies if this is OT)

James

James Lewis
Java Developer
www.goodtechnology.com


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



RE: IIS and Tomcat

2003-03-17 Thread James Lewis
Hi,

Umm, I think I'm correct in saying that saving .class files from one to the
other will have no effect whatsoever. JSP _are_ servlets once they are
compiled.

You have a different and unrelated problem. Namely passing session
information between entirely unrelated webapps. Traditionally you would look
at using cookies to do this sort of session persistence. You may be able to
use a low level firewall to do this. In any case I'm fairly sure that in
order to implement this sort of funtionality you are going to be either:
a) Writing custom code that can persist the information you need in a db
between calls.
b) Serializing the objects.
c) Using cookies.

I had a similar problem to this (communication between different webapps)
and found the easiest solution to be a database driven one (they often are
in my opinion :P)

Maybe someone else can suggest alternatives?

james


James Lewis
Java Developer
www.goodtechnology.com



 -Original Message-
 From: Dolo [mailto:[EMAIL PROTECTED]
 Sent: 17 March 2003 12:05
 To: [EMAIL PROTECTED]
 Subject: IIS and Tomcat


 Hi!
 I have Tomcat 3.3 installed. IIS passes all JSP calls on to Tomcat. The
 problem is that I have a servlet in Tomcat, and when it´s called from some
 JSP in IIS, the session is lost. I guess this happens because JSP .class
 files and servlet .class files don´t belong to the same webapp. Is there a
 way to make JSP from IIS and servlets from Tomcat share the same webapp?
 Something like making Tomcat save the .class generated as a result of the
 JSP files in the same folder as the .class from the servlets.
 I would be really grateful to receive any information about this issue. I
 have spent the last 2 days looking for information everywhere, a lot of
 people seem to have the same problem, but no solution is given. Thanks in
 advance.
 Dolores


 -
 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: WAR FILE NOT WORKING

2003-02-18 Thread James Lewis
Hi,

Could you post the catalina.out log please (or at least the relevant bits
from it).

Cheers,

James

 -Original Message-
 From: Nandish A [mailto:[EMAIL PROTECTED]]
 Sent: 18 February 2003 10:44
 To: 'Tomcat Users List'
 Subject: WAR FILE NOT WORKING


 hi all i am using tomcat 4.1.17 windows 95. i tested my
 application keeping it in a directory apps on desktop and
 configuring the server.xml file. No when i create the war file of
 the directory
 and place it in webapps when i restart my server the apps.war is
 not getting extracted and teh server crashes. i used
 Context path=\ docBase=/apps  appBase=webapps debug=0
 reloadable=true crossContext=true privileged=true

 any help any idea any opinion would be great
 Regards
 Nandish



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




RE: WAR FILE NOT WORKING

2003-02-18 Thread James Lewis

Sorry, I meant can you post the logfile for tomcat - normally catalina.out -
it will normally contain some clue as to the problem.

james


 -Original Message-
 From: Nandish A [mailto:[EMAIL PROTECTED]]
 Sent: 18 February 2003 11:10
 To: 'Tomcat Users List'
 Subject: RE: WAR FILE NOT WORKING





 The name of the war file is iCMeta.war
 -Original Message-
 From: James Lewis [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, February 18, 2003 4:17 PM
 To:   Tomcat Users List
 Subject:  RE: WAR FILE NOT WORKING

 Hi,

 Could you post the catalina.out log please (or at least the relevant bits
 from it).

 Cheers,

 James

  -Original Message-
  From: Nandish A [mailto:[EMAIL PROTECTED]]
  Sent: 18 February 2003 10:44
  To: 'Tomcat Users List'
  Subject: WAR FILE NOT WORKING
 
 
  hi all i am using tomcat 4.1.17 windows 95. i tested my
  application keeping it in a directory apps on desktop and
  configuring the server.xml file. No when i create the war file of
  the directory
  and place it in webapps when i restart my server the apps.war is
  not getting extracted and teh server crashes. i used
  Context path=\ docBase=/apps  appBase=webapps debug=0
  reloadable=true crossContext=true privileged=true
 
  any help any idea any opinion would be great
  Regards
  Nandish
 


 -
 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: How to get session in the servlet

2003-02-14 Thread James Lewis
Hi,

You can use the following method of the javax.servlet.jsp.PageContext
object:

(from the JSP 1.1 API)

public abstract javax.servlet.http.HttpSession getSession()Returns:
the HttpSession for this PageContext or null

Cheers,

James


 -Original Message-
 From: Desmond [mailto:[EMAIL PROTECTED]]
 Sent: 15 February 2003 02:46
 To: [EMAIL PROTECTED]
 Subject: How to get session in the servlet


 Hi, May I know how to get the session for the JSP page in servlet?

 -
 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]