Tomcat related help required

2005-09-28 Thread Santosh Asbe
Hi Nix,
 Please check my reply below. Thanks.
  Santosh

From: Nikola Milutinovic <[EMAIL PROTECTED]>
Date: Sep 27, 2005 9:13 PM
Subject: Re: (WAS) Generic Types support in Tomcat?
To: Tomcat Users List 

Santosh Asbe wrote:

>Hi all,
>
>

Hi. First of all, it is very advisable to use a separate thread when
opening a new topic. I am not reprimanding you, I'm merely advising. I
do not consider it rude to "jump into" someone elses thread of
discussion - I do not consider this thread "mine", in the first place.
The problem is, this thread has been going on for some time and most
people are not going to bother reading it at all, so you will loose
valuable audience.

[TCS_TIN]
I by mistake replied to this message. i ahve started a new thread for the
same.

> A] I am using tomcat 4.1.30 ( 32 bit) with Apache 2.0.46 ( this is
standard
>apache which comes with RHEL 3.0). I am currently using RHEL 32 bit without
>RAID confiuration.
>
>

There is no 32-bit version of TC, it is Java application. JVM, of
course, is and should be 32/64-bit.

> Now i am planning to move to 64 bit RHEL 3.0 with RAID configuration but
he
>the new Apache of RHEL 3.0 and same tomcat 4.1.30 ( 32 bit).
> I am facing a problem with mod_jk.
>I feel it is 32 bit complied mod_jk.
>
>

It most likely is.

> Can anyone help me with the solution
>
>

Unless you can locate a 64-bit version of mod_jk, try compiling your own
version. You'll need apache-devel-* RPM for that. Some might say that
even 32-bit version of mod_jk will work, but I would fly away from it -
mod_jk is a sensitive pieve of software, connecting (multithreaded)
Apache with multithreaded TC and the version should be as close to the
target platform, as possible.

[TCS_TIN]
i have complied 64 bit mod2_ jk . what is the difference between mod_jk and
mod2_jk?
Now when i start the Apache it is not able to find the JkMount entry in the
ssl.conf file. It gives the following error
 ERROR: Starting httpd: Syntax error on line 121 of
/etc/httpd/conf.d/ssl.conf:
Invalid command 'JkMount', perhaps mis-spelled or defined by a module not
included in the server configuration
 my ssl.conf line 12 states:
  121 JkMount /TIN loadbalancer
122 JkMount /TIN/* loadbalancer
( TIN is the application name)
 Can you tell me what wrong am i doing? or this error is due to me using
mod2_jk??

> B] Also my tomcat goes into hang state . So i have set an parameter
>LD_ASSUME_KERNEL=2.4.21. That is my Linux kernel version. Is this ok. where
>do i set this parameter. i have set it in the catalina.sh.
>
>

The location is OK, but you should not use it on the new kernel. Is it
2.6.x? Older releases of 2.6 branch had a problem with JVM and you had
to set that parameter. New releases should be bug free.
[TCS_TIN]
My Linux version is : Linux blade8 2.4.21-32.EL #1 SMP Fri Apr 15 21:02:58
EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
My version of Kernel is 2.4.21. So it older version right. So i should set
this parameter right? Setting parameter will solve my problem right or
should i set i to lower version of kernel??


> C] Sometime when the tomcat is started it spwans more than one processes.
>And then during shudown it creates problems. Also sometimes the list of
open
>files goes beyond 1024. that is he ulimit. due to which he tomcat doesnot
>respond.
>
>

Linux kernel 2.4 emulates threads through lightweight processes/tasks.
There is nothing fundamentally wrong about it (perhaps internal resource
ecconomics are misused), AFAIK, but the "ps" output is going to confuse
you, showing each thread as a separate process. Nothing problematic
about it.

The number of 1024 processes/threads is alarming, however. TC will
normally wpawn idle worker threads to prepare for future requests, but
the parameter is usually less than 100. I'd say your application is
launching threads for some reason. Either that or there is a serious bug
in your system.
[TCS_TIN] Will check about this .
> D] I am currently using 4.1.30 version of tomcat. Are there any fixes or
>upgrades for this tomcat. Can you inform me the link for the same.
>
>

4.1.30 is the last "normal" RPM, I know of. There are newer versions,
check out www.JPackage.org . Word of caution,
prepare for RPM dependancy
nightmare, unless you're using some RPM management tool.
[TCS_TIN] Will check the site out.

Nix.

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


***
This message is for the named addressees' use only. It may contain NSDL

confidential, proprietary or legally privileged information. If you receive

this message in error, please immediately delete it. You must not, directly

or indirectly, use, disclose, distribute, print, or copy any part of this
message

if you are not the intended recipient.Unless otherwise stated, any
commercial

information given in t

Tomcat related help required

2005-09-27 Thread Santosh Asbe
Hi all,

A] I am using tomcat 4.1.30 ( 32 bit) with Apache 2.0.46 ( this is standard
apache which comes with RHEL 3.0). I am currently using RHEL 32 bit without
RAID confiuration.

Now i am planning to move to 64 bit RHEL 3.0 with RAID configuration but he
the new Apache of RHEL 3.0 and same tomcat 4.1.30 ( 32 bit).

I am facing a problem with mod_jk.
I feel it is 32 bit complied mod_jk.

Can anyone help me with the solution

B] Also my tomcat goes into hang state . So i have set an parameter
LD_ASSUME_KERNEL=2.4.21. That is my Linux kernel version. Is this ok. where
do i set this parameter. i have set it in the catalina.sh.

C] Sometime when the tomcat is started it spwans more than one processes.
And then during shudown it creates problems. Also sometimes the list of open
files goes beyond 1024. that is he ulimit. due to which he tomcat doesnot
respond.

D] I am currently using 4.1.30 version of tomcat. Are there any fixes or
upgrades for this tomcat. Can you inform me the link for the same.


Thanks in advance.


regards,

Santosh


Help Required!!

2005-05-05 Thread Sidharth Kaushik
Hi,
I have installed TOMCAT 5.5.9 alog with JDK1.4.2_07. I also have the latest
version of xalan.jar, xerces.jar and xmlapi.jar. I installed my application
on TOMCAT. But, i have a navigation.xml file in my application which gets
dynamically populated. On running the application only the static links are
displayed and thus i am not able to proceed further. Xalan.jar is parsing
the navigation.xml and it's xsl file successfully when executed separately.
Please help!!!
Regards,
Sidharth Kaushik
Interra Information Technologies (India) Pvt. Ltd. 
SDF # E-14 NSEZ
(Noida Special Economic Zone)
Noida 201 305 UP India
Tel +91 120 2568037 Ext:268



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



Re: Help Required- tomcat doesn't shutdown properly

2005-02-04 Thread Antony Paul
What your application is doing ?. is there any threads watiing ?. You
can have a look at localhost_log in the logs directory for any
errors.

rgds
Antony Paul


On Fri, 4 Feb 2005 10:08:09 +0100, Narayan, Satya <[EMAIL PROTECTED]> wrote:
> Hi ,
> I am having a weird problem. I have deployed a webapp which
> basically runs a servlet in tomcat5. I can start and stop using the exe
> file provided. But when I use the command line version ie when I open a
> command shell and type "catalina.bat start" tomcat starts properly in a
> new shell.
> But when in the same command shell and I type "catalina.bat stop" It
> tries to stop tomcat but doesnot stop it properly and doesnot close the
> tomcat shell.
> The last message that appears on the tomcat shell while stopping is
> 
>  "Feb 4, 2005 2:35:29 PM org.apache.coyote.http11.Http11Protocol destroy
>   INFO: Stopping Coyote HTTP/1.1 on http-8080"
> 
> This problem doesn't occur when my webapp is not deployed.
> 
> Kindly advice as to wht could be wrong.Thanks in advance.
> 
> Best Regards,
> Satya
> 
>

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



Help Required- tomcat doesn't shutdown properly

2005-02-04 Thread Narayan, Satya
Hi ,
I am having a weird problem. I have deployed a webapp which
basically runs a servlet in tomcat5. I can start and stop using the exe
file provided. But when I use the command line version ie when I open a
command shell and type "catalina.bat start" tomcat starts properly in a
new shell.
But when in the same command shell and I type "catalina.bat stop" It
tries to stop tomcat but doesnot stop it properly and doesnot close the
tomcat shell. 
The last message that appears on the tomcat shell while stopping is 

 "Feb 4, 2005 2:35:29 PM org.apache.coyote.http11.Http11Protocol destroy
  INFO: Stopping Coyote HTTP/1.1 on http-8080"

This problem doesn't occur when my webapp is not deployed.

Kindly advice as to wht could be wrong.Thanks in advance.

Best Regards,
Satya


URGENT HELP REQUIRED --- running CGI in TOMCAT 4.1.27

2003-11-11 Thread Shamik Bandopadhyay

Hi,

   I'm posting my problem once again. I'm trying to run a CGI script thru
Tomcat 4.1.27. I've followed all the steps like renaming
servlets-cgi.jar,servlets-ssi.jar,uncommenting servlet mappings in web.xml
under config.I've also installed ActivePerl 5.6.1.635 where my CGI script is
pointing to.But,when I'm calling this script thru a static html I'm getting
this following error :

java.io.IOException:
org.apache.catalina.servlets.CGIServlet$CGIRunnerIllegal Character in CGI
command path ('.' or '..') detected.  Not running CGI
[D:\jakarta-tomcat-4.1.27\bin\..\webapps\examples\WEB-INF\cgi\exp.cgi]. at
org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1538)
at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:635)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

I've no clue why this is happening,but apparently it looks like the
CGIServlet while compiling the cgi code,is passing ".." after \bin\ as a
command line parameter which is causing the problem.I've checked all the
settings and it seemed to be ok.

I'll appreciate if anyone can help me out on this.

Thanx,
Shamik


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



Re: Help required

2003-07-25 Thread Zach Gatu
If the page gives an error after Tomcat is up for a long time, may be 
something may be timing out, like a database connection, for example. 
Or the session gets invalidated.

Open up price_jsp.java and have a look at line 414.

Zach.

Veena K.S wrote:

Hi all,
We have a website hosted on tomcat4.1.12 .We are facing the
following problem when the site is up for a long time and the pages does not
load end up with a blank page , but the log file has the entry as stack
trace given below
What could be the reason for this and what could be the possible solution to
rectify this problem?
Thanks in advance
regds,
Veena
2003-07-25 13:31:38 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:479)
- Root Cause -
javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
at org.apache.jsp.price_jsp._jspService(price_jsp.java:414)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apac

RE: Help required

2003-07-24 Thread Bill Lunnon
There is an exception thrown in "price_jsp.java:414"

I assume this is something that has been developed for the project.



-Original Message-
From: Veena K.S [mailto:[EMAIL PROTECTED]
Sent: Friday, 25 July 2003 4:37 PM
To: '[EMAIL PROTECTED]'
Subject: Help required


Hi all,
We have a website hosted on tomcat4.1.12 .We are facing the
following problem when the site is up for a long time and the pages does not
load end up with a blank page , but the log file has the entry as stack
trace given below
What could be the reason for this and what could be the possible solution to
rectify this problem?

Thanks in advance
regds,
Veena

2003-07-25 13:31:38 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:479)
- Root Cause -
javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
at org.apache.jsp.price_jsp._jspService(price_jsp.java:414)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Sta

Help required

2003-07-24 Thread Veena K.S
Hi all,
We have a website hosted on tomcat4.1.12 .We are facing the
following problem when the site is up for a long time and the pages does not
load end up with a blank page , but the log file has the entry as stack
trace given below
What could be the reason for this and what could be the possible solution to
rectify this problem?

Thanks in advance
regds,
Veena

2003-07-25 13:31:38 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(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.invok
eNext(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.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:256)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:361)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:563)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:535)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:638)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:479)
- Root Cause -
javax.servlet.ServletException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
at org.apache.jsp.price_jsp._jspService(price_jsp.java:414)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(Contai

Help required

2003-01-09 Thread Kulkarni, Charudatta (SUPP)
> Hi ,
> 
> My setup
> Sparc Solaris 2.6 
> Apache 1.3.27
> Tomcat 4.0.6
> akarta-tomcat-connectors-4.1.18-src
> 
> Ant ran ok & created jtc.jar.
> 
> When I try to compile jk with command "ant native"  I get following error 
> 
> $ ant native
> Buildfile: build.xml
> 
> jkant:
> 
> detect:
>  [echo]  jakarta-tomcat-connectors 
> 
> report:
>  [echo] Tomcat33: ${tomcat33.detect} ../../jakarta-tomcat/build/tomcat
>  [echo] Tomcat40:  true /export/home/charuk/tomcat18
>  [echo] Tomcat41: ${tomcat41.detect} ../../jakarta-tomcat-4.1/build
>  [echo] Tomcat5:  ${tomcat5.detect} ../../jakarta-tomcat-5/build
>  [echo] Apache13: true /export/home/charuk/apache27
>  [echo] Apache2: ${apache2.detect} /opt/apache2
>  [echo] iPlanet:  ${iplanet.detect} /opt/iplanet6
>  [echo] IIS:  ${iis.detect} ${iis.home}
> 
> native:
> 
> init:
>  [echo] /export/home/charuk
> 
> apache20:
> 
> apache13:
>[so] Compiling 0 out of 18
> Linking /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apa
> che13/mod_jk.so
>[so] Link failed 1
>[so] Command:libtool --mode=link cc -module -avoid-version -rpath /export
> /home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13 -o mod_jk
> .la /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache1
> 3/common/jk_msg_buff.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src
> /jk/build/jk/apache13/common/jk_ajp13_worker.lo /export/home/charuk/jakarta-tomc
> at-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_md5.lo /export/home/char
> uk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_pool.lo /
> export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/com
> mon/jk_worker.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/bui
> ld/jk/apache13/common/jk_ajp14.lo /export/home/charuk/jakarta-tomcat-connectors-
> 4.1.18-src/jk/build/jk/apache13/common/jk_ajp12_worker.lo /export/home/charuk/ja
> karta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_map.lo /export
> /home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk
> _sockbuf.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk
> /apache13/common/jk_uri_worker_map.lo /export/home/charuk/jakarta-tomcat-connect
> ors-4.1.18-src/jk/build/jk/apache13/common/jk_ajp_common.lo /export/home/charuk/
> jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_lb_worker.lo
>  /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/c
> ommon/jk_context.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/
> build/jk/apache13/common/jk_connect.lo /export/home/charuk/jakarta-tomcat-connec
> tors-4.1.18-src/jk/build/jk/apache13/common/jk_ajp13.lo /export/home/charuk/jaka
> rta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_util.lo /export/
> home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_
> ajp14_worker.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/buil
> d/jk/apache13/apache-1.3/mod_jk.lo
>[so] Output:
>[so] rm -fr .libs/mod_jk.la .libs/mod_jk.* .libs/mod_jk.*
>[so] /usr/local/bin/gcc -shared  /export/home/charuk/jakarta-tomcat-conne
> ctors-4.1.18-src/jk/build/jk/apache13/common/jk_msg_buff.lo /export/home/charuk/
> jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_ajp13_worker
> .lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache1
> 3/common/jk_md5.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/b
> uild/jk/apache13/common/jk_pool.lo /export/home/charuk/jakarta-tomcat-connectors
> -4.1.18-src/jk/build/jk/apache13/common/jk_worker.lo /export/home/charuk/jakarta
> -tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_ajp14.lo /export/ho
> me/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_aj> 
> p12_worker.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/
> jk/apache13/common/jk_map.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.1
> 8-src/jk/build/jk/apache13/common/jk_sockbuf.lo /export/home/charuk/jakarta-tomc
> at-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_uri_worker_map.lo /expor
> t/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/j
> k_ajp_common.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/buil
> d/jk/apache13/common/jk_lb_worker.lo /export/home/charuk/jakarta-tomcat-connecto
> rs-4.1.18-src/jk/build/jk/apache13/common/jk_context.lo /export/home/charuk/jaka
> rta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/jk_connect.lo /expo
> rt/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk/apache13/common/
> jk_ajp13.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18-src/jk/build/jk
> /apache13/common/jk_util.lo /export/home/charuk/jakarta-tomcat-connectors-4.1.18
> -src/jk/build/jk/ap

Help required on In memory session replication

2002-06-15 Thread Shiv Kumar MN

Hello Fillip,

I am trying to setup Tomcat clustering to achieve:
1. Load balancing
2. Fail over

I am referring to your article on this "www.theserverside.com"
and Pascal Forget's article on "www.ubeans.com". I having some
problem in getting it work. Could you please help me on this?

What I have done:

1. I followed what Pascal Forget article says, also I have verified
after these steps that Tomcat/Apache is really doing load balancing.
This part of it is working fine.
2. Now I followed the steps indicated in your article to integrate your
method and Pascal Forget's method so that I get load balancing
as well as fail over without loosing session.

After following the steps and restarting Tomcat-1, Tomcat-2 followed
by Apache, I see some error logs in both Tomcat's "logs" directory, log
file "localhost_log.2002-06-15.txt". The error is:

java.lang.NullPointerException
at
org.apache.catalina.session.InMemoryReplicationManager.createSession(InMemoryReplicationManager.java:212)

I have attached this complete for your reference. Please let me know
where I am going wrong.

Setup Environment:

Tomcat-1:
Linux v6.2, JDK 1.4 (J2SE)

Tomcat-2:
Solaris v2.7 SPARC Ent 450 server, JDK 1.4 (J2SE)

Apache:
Linux v6.2, mod_jk, Apache v1.3.24

Thank you for your help and time,

Best Regards,
 - Shiv.






2002-06-15 16:20:31 WebappLoader[/manager]: Deploying class repositories to work 
directory /apps/jakarta-tomcat-4.0.3/work/localhost/manager
2002-06-15 16:20:31 StandardManager[/manager]: Seeding random number generator class 
java.security.SecureRandom
2002-06-15 16:20:31 StandardManager[/manager]: Seeding of random number generator has 
been completed
2002-06-15 16:20:32 ContextConfig[/manager]: Added certificates -> request attribute 
Valve
2002-06-15 16:20:32 ContextConfig[/manager]: Configured an authenticator for method 
BASIC
2002-06-15 16:20:32 StandardWrapper[/manager:default]: Loading container servlet 
default
2002-06-15 16:20:32 default: init
2002-06-15 16:20:32 StandardWrapper[/manager:invoker]: Loading container servlet 
invoker
2002-06-15 16:20:32 invoker: init
2002-06-15 16:20:32 jsp: init
2002-06-15 16:20:32 WebappLoader[/inko]: Deploying class repositories to work 
directory /apps/jakarta-tomcat-4.0.3/work/localhost/inko
2002-06-15 16:20:32 WebappLoader[/inko]: Reloading checks are enabled for this Context
2002-06-15 16:20:33 ContextConfig[/inko]: Added certificates -> request attribute Valve
2002-06-15 16:20:33 StandardWrapper[/inko:default]: Loading container servlet default
2002-06-15 16:20:33 default: init
2002-06-15 16:20:33 StandardWrapper[/inko:invoker]: Loading container servlet invoker
2002-06-15 16:20:33 invoker: init
2002-06-15 16:20:33 jsp: init
2002-06-15 16:20:35 StandardHost[localhost]: Installing web application at context 
path /tomcat-docs from URL file:/apps/jakarta-tomcat-4.0.3/webapps/tomcat-docs
2002-06-15 16:20:35 WebappLoader[/tomcat-docs]: Deploying class repositories to work 
directory /apps/jakarta-tomcat-4.0.3/work/localhost/tomcat-docs
2002-06-15 16:20:35 StandardManager[/tomcat-docs]: Seeding random number generator 
class java.security.SecureRandom
2002-06-15 16:20:35 StandardManager[/tomcat-docs]: Seeding of random number generator 
has been completed
2002-06-15 16:20:35 ContextConfig[/tomcat-docs]: Added certificates -> request 
attribute Valve
2002-06-15 16:20:35 StandardWrapper[/tomcat-docs:default]: Loading container servlet 
default
2002-06-15 16:20:35 default: init
2002-06-15 16:20:35 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet 
invoker
2002-06-15 16:20:35 invoker: init
2002-06-15 16:20:35 jsp: init
2002-06-15 16:20:35 StandardHost[localhost]: Installing web application at context 
path /webdav from URL file:/apps/jakarta-tomcat-4.0.3/webapps/webdav
2002-06-15 16:20:35 WebappLoader[/webdav]: Deploying class repositories to work 
directory /apps/jakarta-tomcat-4.0.3/work/localhost/webdav
2002-06-15 16:20:35 StandardManager[/webdav]: Seeding random number generator class 
java.security.SecureRandom
2002-06-15 16:20:35 StandardManager[/webdav]: Seeding of random number generator has 
been completed
2002-06-15 16:20:35 ContextConfig[/webdav]: Added certificates -> request attribute 
Valve
2002-06-15 16:20:35 StandardWrapper[/webdav:default]: Loading container servlet default
2002-06-15 16:20:35 default: init
2002-06-15 16:20:35 StandardWrapper[/webdav:invoker]: Loading container servlet invoker
2002-06-15 16:20:35 invoker: init
2002-06-15 16:20:35 jsp: init
2002-06-15 16:20:35 StandardHost[localhost]: Installing web application at context 
path /RT from URL file:/apps/jakarta-tomcat-4.0.3/webapps/RT
2002-06-15 16:20:35 WebappLoader[/RT]: Deploying class repositories to work directory 
/apps/jakarta-tomcat-4.0.3/work/localhost/RT
2002-06-15 16:20:35 StandardManager[/RT]: Seeding random number generator class 
java.security.SecureRandom
2002-06-15 16:20:35 StandardManager[/RT]: Seeding of ran

Help Required for Session Problem

2002-05-23 Thread webteam

Hi,

We are developing a Web based JSP application which is running on Apache 1.3.20 + 
Tomcat 3.2.2 + Jdk1.3.1 + 
Windows NT 4.0. We are facing a session related problem in our application.

The problem is as follows:

The application creates a session for each user during the time of logging and set 
to a maximum inactive interval of 8 hours. 
Each option in our application validates the session object during the form loading 
and sends it to the login screen if the session 
is a new object. We found after an intensive test that without calling an 
'invalidate()' or 'removeAttribute()' randomly existing 
session objects expires and new object is automatically created.

We would like your help to know, 
1) what are the possible reasons for a session object to expire automatically?
2) Has tomcat any limitations on the number of threads or user request for a 
single context?
3) Can any internal exceptions cause the session object to be killed?

Thanks in advance

Regards

H.Rajesh
[EMAIL PROTECTED]
SoftSolutions Pvt Ltd,
Chennai
India


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Problem with Connectors - Urgent help required Please!!!

2002-05-01 Thread Raja Sekhar

Hi  Christian,

That was a great help of yours. It really solved my SSL problem & now I have 
successfully setup the SSL connection between Apache & Tomcat. But now I got another 
problem. I have set the Client Authentication to true so that in SSL Handshake server 
accepts the client certificate from browser. This is also done, but I am unable to 
receive the certificate in the servlet running on Tomcat.

I am using the following piece of code in my servlet

Object certReqObject = request.getAttribute("javax.servlet.request.X509Certificate");

The object returns null. This works fine when I configure SSL on Tomcat directly. But 
through Apache, do I have to do anything else? Presently my Tomcat server doesnt have 
any SSL configuration.

Any help would be highly appreciated.

Thanks & Regards,

..Raj
--

On Tue, 30 Apr 2002 11:02:26   Christian Bockerman wrote:
>Hi Raja !
>
>On Tue, Apr 30, 2002 at 01:06:40AM -0700, Raja  Sekhar wrote:
>> Hi,
>> 
>> I am very new to Apache & Tomcat. The configuration what I have is
>> 
>> Redhat Linux 7.1
>> Apache 1.3.23
>> Tomcat 4.0.3.
>> 
>> I have installed Apache & Tomcat successfully and they are running 
>> fine. Now the problem is how to route the request from Apache to 
>> Tomcat. Please suggest me the best connector to use. This should 
>> support SSL for me. I have configured Apache with mod-ssl for SSL.
>> I have a servlet on Tomcat which should be able to get these SSL 
>> Environment variables. So in such scenarios, what connector can I 
>> use & please give a URL or procedure how to install this connector.
>
>From my experience I would recommend building Apache with SSL-Support
>and leaving the whole SSL-thing to Apache. I'm running Apache+mod_ssl
>which uses mod_webapp to connect to tomcat-4.0.1 runnning on jdk1.3.0
>and it works great.
>
>In the beginning I was walking through the documentation trying to
>find how to set up mod_webapp and did not find anything. I think there
>are a few lines how to set up mod_webapp in the example server.xml.
>
>Basically it's just loading that mod_webapp into Apache like all the
>other modules
>  LoadModule webapp_module libexec/mod_webapp.so
>  AddModule mod_webapp.c
>
>and then deploying the web-applications running on your tomcat :
>
>  WebAppConnection  con_name  warp  localhost:8008
>  WebAppDeploy  webappcon_name  /
>
>The 2 lines above should deploy the web-application "webapp" (the
>"context" webapp) to the root-directory of your webserver. All this
>is done in your httpd.conf
>
>> p.s : I read through the tomcat documentation or archives where I
>> found your comments on connectors. I am confused which one to use
>> & as such I dont find any mod_jk packages or native directories in
>> my 4.0.3 binary installation. But all the documents which I get on
>> the internet site talk about how to configure mod_jk with Tomcat.
>> Please help me out because this is a urgent task for me.
>
>You can find mod_webapp.so and mod_jk-01.so here :
>
>  http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/linux/i386/
>
>
>-- 
>
>-Christian
>


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Problem with Connectors - Urgent help required Please!!!

2002-04-30 Thread adrianthiele

Raja Sekhar wrote:

>Hi,
>
>I am very new to Apache & Tomcat. The configuration what I have is
>
>Redhat Linux 7.1
>Apache 1.3.23
>Tomcat 4.0.3.
>
>I have installed Apache & Tomcat successfully and they are running fine. Now the 
>problem is how to route the request from Apache to Tomcat. Please suggest me the best 
>connector to use. This should support SSL for me. I have configured Apache with 
>mod-ssl for SSL. I have a servlet on Tomcat which should be able to get these SSL 
>Environment variables. So in such scenarios, what connector can I use & please give a 
>URL or procedure how to install this connector.
>
>p.s : I read through the tomcat documentation or archives where I found your comments 
>on connectors. I am confused which one to use & as such I dont find any mod_jk 
>packages or native directories in my 4.0.3 binary installation. But all the documents 
>which I get on the internet site talk about how to configure mod_jk with Tomcat. 
>Please help me out because this is a urgent task for me.
>
>Thanks & Regards,
>
>..Raj
>
>
>Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
>http://www.eudoramail.com
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>
>  
>
In Tomcat 4 the connectors have been moved to their own release 
(jakarta-connectors*-src)
it contains mod_jk , mod_webapp , etc.. There is also binaries of the 
mod_jk.so and webapp.so
available for linux.




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Problem with Connectors - Urgent help required Please!!!

2002-04-30 Thread Raja Sekhar

Hi,

I am very new to Apache & Tomcat. The configuration what I have is

Redhat Linux 7.1
Apache 1.3.23
Tomcat 4.0.3.

I have installed Apache & Tomcat successfully and they are running fine. Now the 
problem is how to route the request from Apache to Tomcat. Please suggest me the best 
connector to use. This should support SSL for me. I have configured Apache with 
mod-ssl for SSL. I have a servlet on Tomcat which should be able to get these SSL 
Environment variables. So in such scenarios, what connector can I use & please give a 
URL or procedure how to install this connector.

p.s : I read through the tomcat documentation or archives where I found your comments 
on connectors. I am confused which one to use & as such I dont find any mod_jk 
packages or native directories in my 4.0.3 binary installation. But all the documents 
which I get on the internet site talk about how to configure mod_jk with Tomcat. 
Please help me out because this is a urgent task for me.

Thanks & Regards,

..Raj


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at 
http://www.eudoramail.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Michael Wentzel

> Posting multiple times within the hour doesn't get your 
> question answered faster.

Yeah, most of the time it can do just the opposite and get you 
on the bad end of a mail filter;)  To state the obvious, it appears
you problem is around the Resource/Resource Param elements.  So I
would start doing some research around that area.  I not real
familiar with 4.0 since we work primary with 3.x so that's as much
help as I can provide.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Charles Baker


--- Ramkumar Menon <[EMAIL PROTECTED]> wrote:
> hi,
> 
> I am getting the following error when I try
> accessing the database via a
> datasource .
> 


Dude, this is a mostly volunteer mailing list. People
help out as they can, not on demand and not for pay.
Also, in the USA, email w/ ALL CAPITAL LETTERS is
considered to be SHOUTING and thus RUDE. This may or
may not be true in other countries/cultures. Just
thought I would let you know before you make to many
people angry with you.


=
[EMAIL PROTECTED]
Hacking is a "Good Thing!"
See http://www.tuxedo.org/~esr/faqs/hacker-howto.html

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Josh Knowles

Posting multiple times within the hour doesn't get your question answered faster.

-Original Message-
From: Ramkumar Menon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 11:52 AM
To: [EMAIL PROTECTED]
Subject: URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY
Importance: High


hi,

I am getting the following error when I try accessing the database via a
datasource .

javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context

I am using Tomcat 4.0. My Server.xml contains the following.

 
   
  

  
user
logger
  

  
password
logger
  


driverClassName
oracle.jdbc.driver.OracleDriver
  

  
driverName
jdbc:oracle:thin:@temp-sun.uk.company.com:1521:db1
  
  
 

The web.xml I am using contains the following


  logging schema access
  jdbc/TestDataSource
  com.evermind.sql.DriverManagerDataSource
  Container




Please guide me.


thanks,

Ram

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




URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Ramkumar Menon

hi,

I am getting the following error when I try accessing the database via a
datasource .

javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context

I am using Tomcat 4.0. My Server.xml contains the following.

 
   
  

  
user
logger
  

  
password
logger
  


driverClassName
oracle.jdbc.driver.OracleDriver
  

  
driverName
jdbc:oracle:thin:@temp-sun.uk.company.com:1521:db1
  
  
 

The web.xml I am using contains the following


  logging schema access
  jdbc/TestDataSource
  com.evermind.sql.DriverManagerDataSource
  Container




Please guide me.


thanks,

Ram



URGENT HELP REQUIRED. PLEASE RESPOND IMMEDIATELY

2002-01-16 Thread Ramkumar Menon

I am getting the following error when I try accessing the database via a
datasource .

javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context

I am using Tomcat 4.0. My Server.xml contains the following.

 
   
  

  
user
logger
  

  
password
logger
  


driverClassName
oracle.jdbc.driver.OracleDriver
  

  
driverName
jdbc:oracle:thin:@temp-sun.uk.company.com:1521:db1
  
  
 

The web.xml I am using contains the following


  logging schema access
  jdbc/TestDataSource
  com.evermind.sql.DriverManagerDataSource
  Container




Please guide me.


thanks,

Ram



RAJESH : HELP REQUIRED WITH TOMCAT

2002-01-14 Thread INDIANNIC -- HOSTING

Hello Friends

I need some help regarding the setting up of tomcat version 3.2.4 on a
Windows 2000 Server.

I was able to install the same and get the service running and also am able
to run the examples page.

now here is my problem area

my tomcat is installed in C:/ tomcat
i have put up the tomcat dll in the master properties of the iis

and all my websites are in E:/ Inetpub

so how do i get it running for a website say
e:/inetpub/mydomain/mydomain.com
here my mydomain directory is the ftp root
and the www directory is located as
e:/inetpub/mydomain/mydomain.com/www is the webserver root

if u could help me out i would be grateful

thanks in advance

warm regards
rajesh
ps : please explain in detail if possible since we are pretty new to
tomcat. though we have worked with jrun 3.1


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON

2002-01-13 Thread Matt Egyhazy

use the full package name when importing the class.  if you arent importing
the class, use the full name when instantiating an object.

matt
- Original Message -
From: "Chetna Bhatt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, January 13, 2002 1:46 PM
Subject: Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON


> H Amine AMAR ,
> have tried to keep in package com.mypackage
> gives the following error:
> javax.servlet.ServletException: class com.mypackage.Test :
java.lang.IllegalAccessException:
> com.mypackage.Test
>
> Could anyone throw some light on the error
>
> Thanks in advance
> regards
> chetna
>
>
> Amine AMAR wrote:
>
> > Hi,
> >
> > Are your classes in a package or not?
> > If they are not then you cannot access them because TC will look for
them in his default package
> >
> > Amine
> > - Original Message -
> > From: "Chetna Bhatt" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, January 13, 2002 4:42 PM
> > Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
> >
> > > Hi,
> > > I'm using tomcat4 on windows NT platform. The classpath is set as
> > > follows:
> > > JAVA_HOME: D:\jdk1.3
> > > CATILINA_HOME: E:\jakarta-tomcat-4.0.1
> > >
> > > I'm having trouble accessing class files stored in the web-inf/classes
> > > folder.
> > > In the server.xml file, i've configured a context path to a folder
which
> > >
> > > is under webapps.
> > > 
> > >
> > > And the directory structure is:
> > > webapps/chetna/web-inf/classes/
> > > and the file name is Test.java
> > >
> > > and the Jsp resides in :
> > > webapps/chetna/Login.jsp
> > >
> > > in the Login.jsp file i'm trying to instantiating the Test bean and
> > > calling its methods.
> > >
> > > It gives me the following error::
> > >
> > > Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
> > >
> >
> --
--
> > >
> > > type : Exception report
> > >
> > > message: Internal Server Error
> > >
> > > description: The server encountered an internal error (Internal Server
> > > Error) that prevented it from fulfilling this request.
> > >
> > > exception :
> > >
> > > org.apache.jasper.JasperException: Unable to compile class for JSP
> > >
> > > An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> > >
> > > Generated servlet error:
> > >
E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90:
> > >
> > > Class org.apache.jsp.Test not found.
> > > Test monitor1 = null;
> > > ^
> > >
> > >
> > > An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> > >
> > > Generated servlet error:
> > >
E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93:
> > >
> > > Class org.apache.jsp.Test not found.
> > > monitor1= (Test)
> > >^
> > >
> > >
> > > An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> > >
> > > Generated servlet error:
> > >
E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98:
> > >
> > > Class org.apache.jsp.Test not found.
> > > monitor1 = (Test)
> > > java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"Test");
> > > ^
> > > 3 errors
> > >
> > >  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
> > >  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
> > >  at
> > >
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
> > >
> > >  at
> > >
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
> > >
> > >  at
> > >
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> > >
> > >  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> > >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >  at
> > >
org.ap

Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON

2002-01-13 Thread Chetna Bhatt

H Amine AMAR ,
have tried to keep in package com.mypackage
gives the following error:
javax.servlet.ServletException: class com.mypackage.Test : 
java.lang.IllegalAccessException:
com.mypackage.Test

Could anyone throw some light on the error

Thanks in advance
regards
chetna


Amine AMAR wrote:

> Hi,
>
> Are your classes in a package or not?
> If they are not then you cannot access them because TC will look for them in his 
>default package
>
> Amine
> - Original Message -
> From: "Chetna Bhatt" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, January 13, 2002 4:42 PM
> Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
>
> > Hi,
> > I'm using tomcat4 on windows NT platform. The classpath is set as
> > follows:
> > JAVA_HOME: D:\jdk1.3
> > CATILINA_HOME: E:\jakarta-tomcat-4.0.1
> >
> > I'm having trouble accessing class files stored in the web-inf/classes
> > folder.
> > In the server.xml file, i've configured a context path to a folder which
> >
> > is under webapps.
> > 
> >
> > And the directory structure is:
> > webapps/chetna/web-inf/classes/
> > and the file name is Test.java
> >
> > and the Jsp resides in :
> > webapps/chetna/Login.jsp
> >
> > in the Login.jsp file i'm trying to instantiating the Test bean and
> > calling its methods.
> >
> > It gives me the following error::
> >
> > Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
> >
> > 
> >
> > type : Exception report
> >
> > message: Internal Server Error
> >
> > description: The server encountered an internal error (Internal Server
> > Error) that prevented it from fulfilling this request.
> >
> > exception :
> >
> > org.apache.jasper.JasperException: Unable to compile class for JSP
> >
> > An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> >
> > Generated servlet error:
> > E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90:
> >
> > Class org.apache.jsp.Test not found.
> > Test monitor1 = null;
> > ^
> >
> >
> > An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> >
> > Generated servlet error:
> > E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93:
> >
> > Class org.apache.jsp.Test not found.
> > monitor1= (Test)
> >^
> >
> >
> > An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> >
> > Generated servlet error:
> > E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98:
> >
> > Class org.apache.jsp.Test not found.
> > monitor1 = (Test)
> > java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Test");
> > ^
> > 3 errors
> >
> >  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
> >  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
> >  at
> > 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
> >
> >  at
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
> >
> >  at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> >
> >  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> >  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:243)
> >
> >  at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> >
> >  at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >
> >  at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >  at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
> >
> >  at
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> >
> >  at

Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON

2002-01-13 Thread Amine AMAR

Hi,

Are your classes in a package or not?
If they are not then you cannot access them because TC will look for them in his 
default package

Amine
- Original Message - 
From: "Chetna Bhatt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 13, 2002 4:42 PM
Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON


> Hi,
> I'm using tomcat4 on windows NT platform. The classpath is set as
> follows:
> JAVA_HOME: D:\jdk1.3
> CATILINA_HOME: E:\jakarta-tomcat-4.0.1
> 
> I'm having trouble accessing class files stored in the web-inf/classes
> folder.
> In the server.xml file, i've configured a context path to a folder which
> 
> is under webapps.
> 
> 
> And the directory structure is:
> webapps/chetna/web-inf/classes/
> and the file name is Test.java
> 
> and the Jsp resides in :
> webapps/chetna/Login.jsp
> 
> in the Login.jsp file i'm trying to instantiating the Test bean and
> calling its methods.
> 
> It gives me the following error::
> 
> Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
> 
> 
> 
> type : Exception report
> 
> message: Internal Server Error
> 
> description: The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
> 
> exception :
> 
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> 
> Generated servlet error:
> E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90:
> 
> Class org.apache.jsp.Test not found.
> Test monitor1 = null;
> ^
> 
> 
> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> 
> Generated servlet error:
> E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93:
> 
> Class org.apache.jsp.Test not found.
> monitor1= (Test)
>^
> 
> 
> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> 
> Generated servlet error:
> E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98:
> 
> Class org.apache.jsp.Test not found.
> monitor1 = (Test)
> java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Test");
> ^
> 3 errors
> 
>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
>  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
>  at
> 
>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)
> 
>  at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)
> 
>  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> 
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>  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:243)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> 
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
> 
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
> 
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
> 
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipe

Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON

2002-01-13 Thread Chetna Bhatt

Hi,
i've tried what u've suggested...but still if i tryto access thru examples
directory it gives me the following error:

Generated servlet error:
C:\jakarta-tomcat-4.0.1\work\localhost\examples\Test$jsp.java:90: Class
org.apache.jsp.Test not found.
Test monitor1 = null;
^
Thanks for the help in advance
regards
chetna




> [EMAIL PROTECTED] wrote:

> Hi,

> I don't know if it matters, but the web-inf directory is not all caps

>
> i.e. WEB-INF
>
> If that doesn't work, try putting your jsp and class in the examples
> directory provided with the distribution.
> You should be able to access it then.
>
> If not, you have other problems.
>
> --Peter
>
> On Sunday, January 13, 2002, at 09:15 AM, Chetna Bhatt wrote:
>
> > hi,
> > Yes i did try that ...it gave me the error that it could not find the
> > package
> >
> > Matt Egyhazy wrote:
> >
> >> did you try to import the class?
> >>
> >> matt
> >> - Original Message -
> >> From: "Chetna Bhatt" <[EMAIL PROTECTED]>
> >> To: <[EMAIL PROTECTED]>
> >> Sent: Sunday, January 13, 2002 11:42 AM
> >> Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
> >>
> >>> Hi,
> >>> I'm using tomcat4 on windows NT platform. The classpath is set as
> >>> follows:
> >>> JAVA_HOME: D:\jdk1.3
> >>> CATILINA_HOME: E:\jakarta-tomcat-4.0.1
> >>>
> >>> I'm having trouble accessing class files stored in the web-inf/classes
> >>> folder.
> >>> In the server.xml file, i've configured a context path to a folder
> >>> which
> >>>
> >>> is under webapps.
> >>>  >>> reloadable="true" />
> >>>
> >>> And the directory structure is:
> >>> webapps/chetna/web-inf/classes/
> >>> and the file name is Test.java
> >>>
> >>> and the Jsp resides in :
> >>> webapps/chetna/Login.jsp
> >>>
> >>> in the Login.jsp file i'm trying to instantiating the Test bean and
> >>> calling its methods.
> >>>
> >>> It gives me the following error::
> >>>
> >>> Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
> >>>
> >>> --
> >> --
> >>>
> >>> type : Exception report
> >>>
> >>> message: Internal Server Error
> >>>
> >>> description: The server encountered an internal error (Internal Server
> >>> Error) that prevented it from fulfilling this request.
> >>>
> >>> exception :
> >>>
> >>> org.apache.jasper.JasperException: Unable to compile class for JSP
> >>>
> >>> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> >>>
> >>> Generated servlet error:
> >>> E:\jakarta-
> >>> tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90:
> >>>
> >>> Class org.apache.jsp.Test not found.
> >>> Test monitor1 = null;
> >>> ^
> >>>
> >>>
> >>> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> >>>
> >>> Generated servlet error:
> >>> E:\jakarta-
> >>> tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93:
> >>>
> >>> Class org.apache.jsp.Test not found.
> >>> monitor1= (Test)
> >>>^
> >>>
> >>>
> >>> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> >>>
> >>> Generated servlet error:
> >>> E:\jakarta-
> >>> tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98:
> >>>
> >>> Class org.apache.jsp.Test not found.
> >>> monitor1 = (Test)
> >>> java.beans.Beans.instantiate(this.getClass().getClassLoader(),
> >>> "Test");
> >>> ^
> >>> 3 errors
> >>>
> >>>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
> >>>  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
> >>>  at
> >>>
> >> org.apache.jasper.servlet.JspServlet$JspServletWra

Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON

2002-01-13 Thread carlson

Hi,

I don't know if it matters, but the web-inf directory is not all caps

i.e. WEB-INF


If that doesn't work, try putting your jsp and class in the examples 
directory provided with the distribution.
You should be able to access it then.

If not, you have other problems.

--Peter

On Sunday, January 13, 2002, at 09:15 AM, Chetna Bhatt wrote:

> hi,
> Yes i did try that ...it gave me the error that it could not find the 
> package
>
> Matt Egyhazy wrote:
>
>> did you try to import the class?
>>
>> matt
>> - Original Message -
>> From: "Chetna Bhatt" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Sunday, January 13, 2002 11:42 AM
>> Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
>>
>>> Hi,
>>> I'm using tomcat4 on windows NT platform. The classpath is set as
>>> follows:
>>> JAVA_HOME: D:\jdk1.3
>>> CATILINA_HOME: E:\jakarta-tomcat-4.0.1
>>>
>>> I'm having trouble accessing class files stored in the web-inf/classes
>>> folder.
>>> In the server.xml file, i've configured a context path to a folder 
>>> which
>>>
>>> is under webapps.
>>> >> reloadable="true" />
>>>
>>> And the directory structure is:
>>> webapps/chetna/web-inf/classes/
>>> and the file name is Test.java
>>>
>>> and the Jsp resides in :
>>> webapps/chetna/Login.jsp
>>>
>>> in the Login.jsp file i'm trying to instantiating the Test bean and
>>> calling its methods.
>>>
>>> It gives me the following error::
>>>
>>> Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
>>>
>>> --
>> --
>>>
>>> type : Exception report
>>>
>>> message: Internal Server Error
>>>
>>> description: The server encountered an internal error (Internal Server
>>> Error) that prevented it from fulfilling this request.
>>>
>>> exception :
>>>
>>> org.apache.jasper.JasperException: Unable to compile class for JSP
>>>
>>> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
>>>
>>> Generated servlet error:
>>> E:\jakarta-
>>> tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90:
>>>
>>> Class org.apache.jsp.Test not found.
>>> Test monitor1 = null;
>>> ^
>>>
>>>
>>> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
>>>
>>> Generated servlet error:
>>> E:\jakarta-
>>> tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93:
>>>
>>> Class org.apache.jsp.Test not found.
>>> monitor1= (Test)
>>>^
>>>
>>>
>>> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
>>>
>>> Generated servlet error:
>>> E:\jakarta-
>>> tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98:
>>>
>>> Class org.apache.jsp.Test not found.
>>> monitor1 = (Test)
>>> java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
>>> "Test");
>>> ^
>>> 3 errors
>>>
>>>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
>>>  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
>>>  at
>>>
>> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary
>> (JspSe
>> rvlet.java:177)
>>>
>>>  at
>>>
>> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
>> (JspServlet.ja
>> va:189)
>>>
>>>  at
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>>>
>>>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>>  at
>>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>> (Application
>> FilterChain.java:247)
>>>
>>>  at
>>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>> (ApplicationFilterCh
>> ain.java:193)
>>>
>>>  at
>>>
>> org.apache.catalina.core.StandardWrapperValve.invoke
>> (StandardWrap

Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON

2002-01-13 Thread Chetna Bhatt

hi,
Yes i did try that ...it gave me the error that it could not find the package

Matt Egyhazy wrote:

> did you try to import the class?
>
> matt
> - Original Message -
> From: "Chetna Bhatt" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, January 13, 2002 11:42 AM
> Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON
>
> > Hi,
> > I'm using tomcat4 on windows NT platform. The classpath is set as
> > follows:
> > JAVA_HOME: D:\jdk1.3
> > CATILINA_HOME: E:\jakarta-tomcat-4.0.1
> >
> > I'm having trouble accessing class files stored in the web-inf/classes
> > folder.
> > In the server.xml file, i've configured a context path to a folder which
> >
> > is under webapps.
> > 
> >
> > And the directory structure is:
> > webapps/chetna/web-inf/classes/
> > and the file name is Test.java
> >
> > and the Jsp resides in :
> > webapps/chetna/Login.jsp
> >
> > in the Login.jsp file i'm trying to instantiating the Test bean and
> > calling its methods.
> >
> > It gives me the following error::
> >
> > Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
> >
> > --
> --
> >
> > type : Exception report
> >
> > message: Internal Server Error
> >
> > description: The server encountered an internal error (Internal Server
> > Error) that prevented it from fulfilling this request.
> >
> > exception :
> >
> > org.apache.jasper.JasperException: Unable to compile class for JSP
> >
> > An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> >
> > Generated servlet error:
> > E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90:
> >
> > Class org.apache.jsp.Test not found.
> > Test monitor1 = null;
> > ^
> >
> >
> > An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> >
> > Generated servlet error:
> > E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93:
> >
> > Class org.apache.jsp.Test not found.
> > monitor1= (Test)
> >^
> >
> >
> > An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
> >
> > Generated servlet error:
> > E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98:
> >
> > Class org.apache.jsp.Test not found.
> > monitor1 = (Test)
> > java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Test");
> > ^
> > 3 errors
> >
> >  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
> >  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
> >  at
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
> rvlet.java:177)
> >
> >  at
> >
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:189)
> >
> >  at
> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
> >
> >  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >  at
> >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:247)
> >
> >  at
> >
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> >
> >  at
> >
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> >
> >  at
> >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> >
> >  at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >
> >  at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >  at
> >
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:201)
> >
> >  at
> >
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> >
> >  at
> >
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> >
> >  at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> >  at
> > org.apache.catalina.core.StandardContext.invoke(Stan

Re: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON

2002-01-13 Thread Matt Egyhazy

did you try to import the class?

matt
- Original Message -
From: "Chetna Bhatt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 13, 2002 11:42 AM
Subject: URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON


> Hi,
> I'm using tomcat4 on windows NT platform. The classpath is set as
> follows:
> JAVA_HOME: D:\jdk1.3
> CATILINA_HOME: E:\jakarta-tomcat-4.0.1
>
> I'm having trouble accessing class files stored in the web-inf/classes
> folder.
> In the server.xml file, i've configured a context path to a folder which
>
> is under webapps.
> 
>
> And the directory structure is:
> webapps/chetna/web-inf/classes/
> and the file name is Test.java
>
> and the Jsp resides in :
> webapps/chetna/Login.jsp
>
> in the Login.jsp file i'm trying to instantiating the Test bean and
> calling its methods.
>
> It gives me the following error::
>
> Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error
>
> --
--
>
> type : Exception report
>
> message: Internal Server Error
>
> description: The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
>
> exception :
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
>
> Generated servlet error:
> E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90:
>
> Class org.apache.jsp.Test not found.
> Test monitor1 = null;
> ^
>
>
> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
>
> Generated servlet error:
> E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93:
>
> Class org.apache.jsp.Test not found.
> monitor1= (Test)
>^
>
>
> An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp
>
> Generated servlet error:
> E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98:
>
> Class org.apache.jsp.Test not found.
> monitor1 = (Test)
> java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Test");
> ^
> 3 errors
>
>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
>  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
>  at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
>
>  at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
>
>  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
>
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
>
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
>
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
>
>  at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
>
>  at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
>
>  at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
>
>  at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
>
>  at
>
org.apache.catalina.core.StandardPipeline.invokeNext(Sta

URGENT HELP REQUIRED WITH JSP AND BEAN FILES ON

2002-01-13 Thread Chetna Bhatt

Hi,
I'm using tomcat4 on windows NT platform. The classpath is set as
follows:
JAVA_HOME: D:\jdk1.3
CATILINA_HOME: E:\jakarta-tomcat-4.0.1

I'm having trouble accessing class files stored in the web-inf/classes
folder.
In the server.xml file, i've configured a context path to a folder which

is under webapps.


And the directory structure is:
webapps/chetna/web-inf/classes/
and the file name is Test.java

and the Jsp resides in :
webapps/chetna/Login.jsp

in the Login.jsp file i'm trying to instantiating the Test bean and
calling its methods.

It gives me the following error::

Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error



type : Exception report

message: Internal Server Error

description: The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception :

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp

Generated servlet error:
E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:90:

Class org.apache.jsp.Test not found.
Test monitor1 = null;
^


An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp

Generated servlet error:
E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:93:

Class org.apache.jsp.Test not found.
monitor1= (Test)
   ^


An error occurred at line: 4 in the jsp file: /checkLoginTest.jsp

Generated servlet error:
E:\jakarta-tomcat-4.0.1\work\localhost\chetna\checkLoginTest$jsp.java:98:

Class org.apache.jsp.Test not found.
monitor1 = (Test)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Test");
^
3 errors

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:546)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:177)

 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:189)

 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)

 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 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:243)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)

 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

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

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)

 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)

 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)

 at java.lang.Thread.run(Thread.java:484)








Is there any other configuration required for accessing the  file from
the classes folder. I had also tried to keep the file in
web-inf/classes/com/test folder a

Newbie, JSQLConnectionPool Error - Help Required

2001-12-27 Thread Rudi Doku

Hello,

I am evaluating the j-netdirect sql connection pool driver JSQLConnectionPool.


I installed the package and successfully run the ExampleConnectionPool program.  

I have  copied some to  Create a JNDI context and bind it in the naming service, 
however the following exception is thrown whenever the execution reaches the following 
line :   ctx = new InitialContext(env);

The exception thrown is :  
Error:init JNDI  javax.naming.NoInitialContextException:  
Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception 
is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]

I'm not quite sure why this is happening since the Classpath has the following entry - 
C:\jdk1.3\lib\fscontext.jar;.


Below is the exact implementation of the method :

private void initJNDI() {
/* Create the file store first time - the file store holds the JNDI entries */
File root = new File(sFileStore);
if (!root.exists())
  root.mkdir();
/* Initialize JNDI - tell it to use the File Store provider */
Hashtable env = new Hashtable(100);
env.put(Context.INITIAL_CONTEXT_FACTORY,
  "com.sun.jndi.fscontext.RefFSContextFactory");
env.put(Context.PROVIDER_URL, "file:"+sFileStore+"/");
//env.put(Context.PROVIDER_URL, "file:about.txt/");
/* Create a JNDI context and bind it in the naming service */
try {
  ctx = new InitialContext(env);
}
catch (javax.naming.NamingException e) {
  error("init JNDI ", e);
}
  }



Any help would be very much appreciated.

Thanks,

RudiGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com



Re: Newbie, JNDI Error - Help Required

2001-12-24 Thread Mark

At 04:24 PM 12/24/2001 +1000, you wrote:
>Hello,
>
>Can anyone please help me resolve this error message?
>I have attached the class (ConnectionPool.java) which causes this exception 
>to be raised.
>
>Kind Regards,
>
>Rudi
>
>
>Error:init JNDI  javax.naming.NoInitialContextException: Cannot instantiate 
>class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
>java.lang.ClassNotFoundException: 

Since the basic problem is the RefFSContextFactory class can't be found, do
you have the fscontext.jar (it's contains the class that can't be found)?
If you look in jndi.jar you'll see it does not contain this class.  

Also, what version of Tomcat are you using?  That makes a difference on
whether classpath is an issue or whether it's the location of the jar.  

Mark


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Newbie, JNDI Error - Help Required

2001-12-24 Thread Amine AMAR

hi Rudi,

Your pb can have 2 sources:
- you are using JDK1.2, and this one does not ship JNDI with it. You need to download 
it from Sun and add it to your classpath.
- you have the JNDI jar but it is not in your classpath. you can put it in 
%tomcat_home%\common\lib

I hope this answers your question

Amine


- Original Message - 
From: "Rudi Doku" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 24, 2001 6:24 AM
Subject: Newbie, JNDI Error - Help Required


> Hello,
> 
> Can anyone please help me resolve this error message?
> I have attached the class (ConnectionPool.java) which causes this exception 
> to be raised.
> 
> Kind Regards,
> 
> Rudi
> 
> 
> Error:init JNDI  javax.naming.NoInitialContextException: Cannot instantiate 
> class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
> java.lang.ClassNotFoundException: 
> com.sun.jndi.fscontext.RefFSContextFactory]
> Error:Register Datasources  java.lang.NullPointerException
> JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: 
> com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
> java.lang.ClassNotFoundException: 
> com.sun.jndi.fscontext.RefFSContextFactory]
> java.lang.IllegalStateException: pooled datasource has not been initialized
> at 
> com.docutech.viewer.db.ConnectionPool.getConnection(ConnectionPool.java:129)
> at com.docutech.viewer.db.Test.main(Test.java:28)
> Exception in thread "main"
> 
> 
> 
> 
> 
> _
> Chat with friends online, try MSN Messenger: http://messenger.msn.com
> 





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


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




RE: Newbie, JNDI Error - Help Required

2001-12-23 Thread Seethalakshmi Kalyanaraman

Hi
Is the Classpath set properly?
Regds
Seetha
-Original Message-
From: Rudi Doku [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 2001 11:54 AM
To: [EMAIL PROTECTED]
Subject: Newbie, JNDI Error - Help Required


Hello,

Can anyone please help me resolve this error message?
I have attached the class (ConnectionPool.java) which causes this
exception 
to be raised.

Kind Regards,

Rudi


Error:init JNDI  javax.naming.NoInitialContextException: Cannot
instantiate 
class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
java.lang.ClassNotFoundException: 
com.sun.jndi.fscontext.RefFSContextFactory]
Error:Register Datasources  java.lang.NullPointerException
JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate
class: 
com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
java.lang.ClassNotFoundException: 
com.sun.jndi.fscontext.RefFSContextFactory]
java.lang.IllegalStateException: pooled datasource has not been
initialized
at 
com.docutech.viewer.db.ConnectionPool.getConnection(ConnectionPool.java:
129)
at com.docutech.viewer.db.Test.main(Test.java:28)
Exception in thread "main"





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com

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




Newbie, JNDI Error - Help Required

2001-12-23 Thread Rudi Doku

Hello,

Can anyone please help me resolve this error message?
I have attached the class (ConnectionPool.java) which causes this exception 
to be raised.

Kind Regards,

Rudi


Error:init JNDI  javax.naming.NoInitialContextException: Cannot instantiate 
class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
java.lang.ClassNotFoundException: 
com.sun.jndi.fscontext.RefFSContextFactory]
Error:Register Datasources  java.lang.NullPointerException
JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: 
com.sun.jndi.fscontext.RefFSContextFactory [Root exception is 
java.lang.ClassNotFoundException: 
com.sun.jndi.fscontext.RefFSContextFactory]
java.lang.IllegalStateException: pooled datasource has not been initialized
at 
com.docutech.viewer.db.ConnectionPool.getConnection(ConnectionPool.java:129)
at com.docutech.viewer.db.Test.main(Test.java:28)
Exception in thread "main"





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com



ConnectionPool.java
Description: JavaScript source

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Help Required with Load balancing Tomcat through Apache

2001-11-22 Thread Alan Wardrope

Hi I hope somebody out there can help me

I have a configuration of 2 PC's
PC1 running
Apache 1.3.20
Tomcat 3.2.1
Both on the C Drive

PC2 running
Tomcat 3.2.1
On the F Drive

I want to be able to Loadshare the 2 Tomcats through Apache

I have been scouring the web for help and I am almost there
On PC1
I have downloaded mod_jk.dll and placed it into the Apache modules directory
I have included the line for mod_jk.conf-mycopy at the end of httpd.conf
I have configured the workers.properties files for the 2 PC's

I created a file test.jsp and put in into the examples directory under
tomcat/webapps/examples
on both machines
And yes it is was shared evenly across both servers

However when I went to test our web app which is in
tomcat/webapps/namen/index.jsp
I had problems wjen entering the URL
http://ip_address/namen/

So I entered the following lines into the Apache httpd.conf


DirectoryIndex index.html index.jsp


Alias /namen/ "C:/tomcat/webapps/namen/"

#
   Options Indexes +FollowSymLinks
   Allow from all


Now when I enter the URL 
It seems to work OK if it hits PC1 (as tomcat is on the C drive)
But If it hits PC2 it comes back with "Page not Found"
I guess its because its on the F drive

How do I get around this
Am i doing this correctly

alan




Re: Major (guru mode) help required

2001-11-15 Thread raj

Sorry, this was a major boo boo on my part.
I had JDBC realm turned on for the "standalone" service but not the 
"Tomcat-Apache" service.
It all hangs together now.

PS: Though I have described the web application Contexts within the 
"standalone" service, I can
still access them when going through the "Tomcat-Apache" service. Is 
this normal or should
I really be describing these again with the "Tomcat-Apache" service.

Cheers
-raj

>>Of course on the browser, I only get my Error.jsp displayed, (no HTTP
>>errors there).
>>
>
>Without the specific error happening, it's impossible to know what's going
>on. Sorry.
>
>Pier
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Major (guru mode) help required

2001-11-14 Thread Pier Fumagalli

On 14/11/2001 05:01 pm, "raj" <[EMAIL PROTECTED]> wrote:

> Of course on the browser, I only get my Error.jsp displayed, (no HTTP
> errors there).

Without the specific error happening, it's impossible to know what's going
on. Sorry.

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Major (guru mode) help required

2001-11-14 Thread raj

Hi Pier,

Thanks for replying.

I set debug=99 on WarpConnector, and my apache_log.2001-11-14.txt comes 
up with
the following:


2001-11-14 16:38:21 WarpEngine[Apache]: Mapping request
2001-11-14 16:38:21 WarpHost[domainname]: Mapping request for Host
2001-11-14 16:38:21 WarpEngine[Apache]: Mapping request
2001-11-14 16:38:21 WarpHost[domainname]: Mapping request for Host
2001-11-14 16:38:21 StandardContext[/weblogin]: Mapping 
contextPath='/weblogin' with requestURI='/weblogin/LoginForm.jsp
' and relativeURI='/LoginForm.jsp'
2001-11-14 16:38:21 StandardContext[/weblogin]: Decoded 
relativeURI='/LoginForm.jsp'
2001-11-14 16:38:21 StandardContext[/weblogin]:   Trying exact match
2001-11-14 16:38:21 StandardContext[/weblogin]:   Trying prefix match
2001-11-14 16:38:21 StandardContext[/weblogin]:   Trying extension match
2001-11-14 16:38:21 StandardContext[/weblogin]:  Mapped to servlet 'jsp' 
with servlet path '/LoginForm.jsp' and path inf
o 'null' and update=true

.
.

Of course on the browser, I only get my Error.jsp displayed, (no HTTP 
errors there).

Cheers
-raj

>>Will authentication (especially FORM) NOT work if Catalina and Apache
>>were to run on two different machines.
>>Has anyone had any experience on this?
>>
>>Any help would be much appreciated. Muchas gracias.
>>
>
>What error are you observing ??? (HTTP error code?)
>
>Pier
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Major (guru mode) help required

2001-11-14 Thread Pier Fumagalli

On 14/11/2001 03:46 pm, "raj" <[EMAIL PROTECTED]> wrote:

> Will authentication (especially FORM) NOT work if Catalina and Apache
> were to run on two different machines.
> Has anyone had any experience on this?
> 
> Any help would be much appreciated. Muchas gracias.

What error are you observing ??? (HTTP error code?)

Pier


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Major (guru mode) help required

2001-11-14 Thread raj

I finally got Apache and Catalina to speak to each other when running on 
separate machines
(I had not set ServerName in Apache initially and hence it was failing - 
earlier post: Catalina & Apache on different machines)

But now I have reached another major hurdle.

All request to non-secure servlets is being passed on by Apache to 
Catalina.

But for servlets that have FORM authentication defined, Catalina sends 
back the Login page (via Apache)
but seems to lose the original request.

In other words, when the user id and passwords are typed it always 
redirects to the "Error" page.

Hence "The Question":

Will authentication (especially FORM) NOT work if Catalina and Apache 
were to run on two different machines.
Has anyone had any experience on this?

Any help would be much appreciated. Muchas gracias.

Cheers
-raj





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JDBCRealm Security setup Help Required.

2001-08-23 Thread Jonathan Eric Miller

As far as I know, the users, roles, and user_roles tables are global and
will get used by whatever Web applications you have protected. Are you
saying that you want to have a separate set of these table, one for each Web
application? Why not just create different roles, one for each Web
application?

Personally, I'm hoping that the MemoryRealm class will be improved upon in
the future. Putting this information in a SQL database seems like a lot of
overhead to me (even though it does seem to work well, once you get it
setup). Basically, the functionality that I'm looking for in MemoryRealm is
the ability to tell Tomcat to reload the user database. Also, it would be
nice to have a "digest" property like you have with JDBCRealm, so that you
can store the passwords as hashes instead of in clear-text.

Jon

- Original Message -
From: "Nitin Goyal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 23, 2001 6:46 AM
Subject: JDBCRealm Security setup Help Required.


> Hi,
>
> We are setting up the JDBCRealm security with Tomcat.  We have seen the
> jdbcrealm.howto file and we are able to make a small test sample run
perfectly
> fine.  However, there are some clarifications in the implementation
scenario
> that require your inputs:
>
> We have more than one webapps running in the Tomcat Server.  I understand
that
> it is recommended to create a separate schema for jdbcrealm
authentication, but
> one can create the authentication schema in the application database too
rather
> then create a new schema.  Lets say we have 5 database schemas in a single
> database, which are for 5 different webapps, and we want to use JDBCrealm
> authentication.  One option is to create a separate schema (as mentioned
in the
> .howto document), but this will require extensive changes in our code for
each
> web app.  In case we are to bundle the security schema with the
application
> database schema, how do we create the corresponding multiple
RequestInterceptor
> entries in server.xml for all of these?  How will tomcat validate the
username
> with the correct username/password? Are there any other ways to implement
this
> authentication?  Are there any disadvantages in NOT creating a separate
database
> schema?
>
> Any suggestions are most welcome!
>
> Regards
> Nitin Goyal
> Webrizon eSolutions Pvt. Ltd., INDIA
> [EMAIL PROTECTED]
> There is no failure except in no longer trying.
>
>
>
>




JDBCRealm Security setup Help Required.

2001-08-23 Thread Nitin Goyal

Hi,

We are setting up the JDBCRealm security with Tomcat.  We have seen the
jdbcrealm.howto file and we are able to make a small test sample run perfectly
fine.  However, there are some clarifications in the implementation scenario
that require your inputs:

We have more than one webapps running in the Tomcat Server.  I understand that
it is recommended to create a separate schema for jdbcrealm authentication, but
one can create the authentication schema in the application database too rather
then create a new schema.  Lets say we have 5 database schemas in a single
database, which are for 5 different webapps, and we want to use JDBCrealm
authentication.  One option is to create a separate schema (as mentioned in the
.howto document), but this will require extensive changes in our code for each
web app.  In case we are to bundle the security schema with the application
database schema, how do we create the corresponding multiple RequestInterceptor
entries in server.xml for all of these?  How will tomcat validate the username
with the correct username/password? Are there any other ways to implement this
authentication?  Are there any disadvantages in NOT creating a separate database
schema?

Any suggestions are most welcome!

Regards
Nitin Goyal
Webrizon eSolutions Pvt. Ltd., INDIA
[EMAIL PROTECTED]
There is no failure except in no longer trying.






Help required for Cocoon 1.8.2 & Tomcat 3.2.3 combo.

2001-08-22 Thread Hariharasubramanian Ranganathan

Hi,

I have been using Tomcat 3.2.3 on Windows 2000. 
Tomcat is working fine.
But when I install Cocoon 1.8.2 (by copying required
jar files to
\WEB-INF\lib and I tried to view the
default cocoon page.

http://host:port/mywebapp/Cocoon.xml

and I recv the following exception.  I renamed
parser.jar in \lib
folder to zparser.jar and copied xerces_1_2.jar to the
\lib folder.
Even then I did get the same exception.  Exception
trace is listed at the
bottom of this mail.

If anybody know solution to this, please help me!!

- hari

---
Hariharasubramanian.R
Developer, iEvents,
Kumaran Systems (Betawave Solutions)
www.kumaran.com
www.betawavesolutions.com
Reinforcing Your Business
Ph: 0091-44-620 2079, 4967 (Extn: 318)
E-Mail: [EMAIL PROTECTED]



=
Cocoon 1.8.2


Publishing Engine could not be initialized.
java.lang.RuntimeException: Error while initializing
XSP engine:
org.xml.sax.SAXNotRecognizedException:
http://apache.org/xml/features/validation/schema
 at
java.lang.Throwable.(Throwable.java:96)
 at
java.lang.Exception.(Exception.java:44)
 at
org.xml.sax.SAXException.(SAXException.java:45)
 at
org.xml.sax.SAXNotRecognizedException.(SAXNotRecognizedException
.java:38)
 at
org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java:1515)
 at
org.apache.xerces.parsers.DOMParser.setFeature(DOMParser.java:659)
 at
org.apache.cocoon.parser.XercesParser.parse(XercesParser.java:78)
 at
org.apache.cocoon.parser.AbstractParser.parse(AbstractParser.java:83)
 at
org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:186)
 at
org.apache.cocoon.framework.Manager.create(Manager.java:109)
 at
org.apache.cocoon.framework.Router.init(Router.java:80)
 at
org.apache.cocoon.framework.Manager.create(Manager.java:109)
 at
org.apache.cocoon.Engine.(Engine.java:179)
 at
org.apache.cocoon.Engine.getInstance(Engine.java:232)
 at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
 at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
 at
org.apache.tomcat.core.Handler.init(Handler.java:215)
 at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
 at
org.apache.tomcat.core.Handler.service(Handler.java:254)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:498)

 at java.lang.Throwable.(Throwable.java:96)
 at java.lang.Exception.(Exception.java:44)
 at
java.lang.RuntimeException.(RuntimeException.java:49)
 at
org.apache.cocoon.processor.xsp.XSPProcessor.init(XSPProcessor.java:198)
 at
org.apache.cocoon.framework.Manager.create(Manager.java:109)
 at
org.apache.cocoon.framework.Router.init(Router.java:80)
 at
org.apache.cocoon.framework.Manager.create(Manager.java:109)
 at org.apache.cocoon.Engine.(Engine.java:179)
 at
org.apache.cocoon.Engine.getInstance(Engine.java:232)
 at org.apache.cocoon.Cocoon.init(Cocoon.java:157)
 at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
 at
org.apache.tomcat.core.Handler.init(Handler.java:215)
 at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
 at
org.apache.tomcat.core.Handler.service(Handler.java:254)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
2)
 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:213)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
 at java.lang.Thread.run(Thread.java:498)


Warning: this page has been dynamically generated.


Copyright (c) 1999-2001 The Apache XML Project.
All rights reserved.

=





__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Urgent help required - Tomcat/Apache configuration problem

2001-06-30 Thread Pankaj Chhaparwal

Hi All,

Can I transfer requests for jsp's, servlets etc from one apache server to 
two different Tomcat servers. Basically this is what I am trying to do. 
Tomcat 3.1 is running on port 8080 while its Ajp12ConnectionHandler is 
running on port 8007.There is another Tomcat server which is running on 
port 8090 while its Ajp12ConnectionHandler is running on port 8777. Can I 
connect to these two different Tomcat servers from the same Apache server?

If I try to do this, it gives me the following error when I try to run apache

ApJServManual: cannot be specified more than once per host


I have the following in my httpd.conf file

include e:\Tomcat3.2.2\jakarta-tomcat-3.2.2\conf\tomcat.conf   / for the 
Tomcat 3.2.2 server
include e:\Tomcat\conf\tomcat.conf   / for the Tomcat3.1 
server 


Any help on this will be greatly appreciated.

Regards,
Pankaj




AW: Help Required on Apache-Tomcat Architecture

2001-06-19 Thread Ralph Einfeldt

The number of users doesn't mean much unless
you provide some numbers about their activity
and the type of application you are runing.

What numbers of users tomcat can serve depends
on several parameters:
  the number of requests per second
  the number of bytes sent per request 
  the number of concurrent users
  the hardware tomcat is running on
  the linespeed of the internet connection
  the type of your application
(1000 requests to hello.world are quite different to
 1000 requests to get all products that match *abc* from a 
 database)

> -Ursprüngliche Nachricht-
> Von: Bhootnath Singh [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 2. Juni 2000 14:16
> An: '[EMAIL PROTECTED]'
> Betreff: Help Required on Apache-Tomcat Architecture
> 
> 
> Hello EveryBody,
> 
> Well we are working on an Appache -Tomcat 
> architecture.Basically we wanted 
> to know how is the performance issue on these 
> servers.Actually we have to 
> support 2000 users.We want to know will this web server and 
> application 
> server combination can  support 2000 users.We will be highly 
> obliged to the 
> person who shares his experiences in Apache-Tomcat 
> architecture with us.
> 
> Thanks in advance
> 
> 



Help Required on Apache-Tomcat Architecture

2001-06-19 Thread Bhootnath Singh

Hello EveryBody,

Well we are working on an Appache -Tomcat architecture.Basically we wanted 
to know how is the performance issue on these servers.Actually we have to 
support 2000 users.We want to know will this web server and application 
server combination can  support 2000 users.We will be highly obliged to the 
person who shares his experiences in Apache-Tomcat architecture with us.

Thanks in advance




Help required

2001-04-19 Thread Vuppaladhadiam, Rajasekhar (CTS)

I have installed tomcat and apache on solaris 2.8.
The versions of Apache and tomcat installed are 1.3.17 and 3.2.1
respectively.
Both of them are running fine, independently. When i try to integrate them
and start Apache, I get an error as:

Syntax error on line 2 of
/usr/local/webadmin/tmp/jakarta-tomcat-3.2.1/conf/mod_jk.conf:

Can't locate API module structure `jk_module' in file
/usr/local/webadmin/tmp/newapache/libexec/mod_jk.so


Did anybody come across a similar problem, if not on Solaris, on any other
unix flavor?
If yes, please mail back with the solution mechanism. I can try the same on
solaris and see if it works.

Please reply ASAP.

Thanks and Regards,
V.Rajasekhar



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com




Re: ** mod_jk.so for Linux Redhat 6.2- help required **

2001-04-03 Thread Prashantha . Marathe


Hi,

I am trying to configure Tomcat+Apache on Linux after building my
mod_jk.so. I am having some problems
while configuring the same.

Please help resolving following problem.

Apache:error_log says
Tue Apr  3 12:42:41 2001] [emerg] (2)No such file or directory: Error while
opening the workers

Tomcat : mod_jk.log says
[jk_ajp12_worker.c (201)]: In jk_worker_t::validate, resolve failed
[jk_ajp12_worker.c (203)]: In jk_worker_t::validate, Error localhost 8007
[jk_worker.c (164)]: wc_create_worker validate failed for ajp12
[jk_worker.c (229)]: build_worker_map failed to create workerajp12

Waiting for a early response.

Regards,
Prashanth Marathe D


   

unplug 

  cc:   

 Subject: Re: ** mod_jk.so for Linux 
Redhat
04/03/01 6.2- required **  

03:23 PM   

Please 

respond to 

tomcat-user

   

   




I think it is more suitable to build your own one.
Follow the instruction of the tomcat document.
Just remind you that the source of mod_jserv is under
TOMCAT_SRC_DIR/src/native/apache/jserv

unplug

[EMAIL PROTECTED] wrote:
>
> Hi,
>
> OS: Linux Redhat ver 6.1
> Apache ver-1.3.14
> Tom Cat ver-3.2.1
> Required file: mod_jk.so
> If anyone has this file, could you please send us?
>
> Regards,
> Prashanth Marathe D
> Phone: 667-8355 Ext.: 262
> [EMAIL PROTECTED]







Re: ** Help required: Err in Apache httpd could not be started **

2001-04-02 Thread Alex Potter

Have you examined the paths in tomcat/conf/workers.properties? you need to
set workers.tomcat_home and workers.java_home, and also your path separator
'/' for NIX, '\' for Windows.

HTH

Alex
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Mon 02 April 2001 09:22
Subject: ** Help required: Err in Apache httpd could not be started **


: Hi,
:
: When I tried to start apache, which is configured to tomcat, it gives me
: following error.
:
: httpd could not be started
:
: the error log file of apache says
: [emerg] (2)No such file or directory: Error while opening the workers
:
: My OS: linux
:
: Regards,
: Prashanth
:




** Help required: Err in Apache httpd could not be started **

2001-04-02 Thread Prashantha . Marathe

Hi,

When I tried to start apache, which is configured to tomcat, it gives me
following error.

httpd could not be started

the error log file of apache says
[emerg] (2)No such file or directory: Error while opening the workers

My OS: linux

Regards,
Prashanth




RE: Help required

2001-03-20 Thread Darrell Porter



Open 
tomcat/bin/startup.bat with your favorite editor and do a search on :startServer 
and see if it is there.
 
If 
not, that is your problem.  
 
If it 
is there, you may be running command.com and not cmd.exe when executing 
startup.bat
 
Always 
use cmd.exe to execute the tomcat scripts.
 
Darrell
 

  -Original Message-From: Rajesh Jumde 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 20, 2001 1:56 
  AMTo: [EMAIL PROTECTED]Subject: Help 
  requiredHello everybody, 
     I am trying to configure Tomcat with IIS5.0 on Windows2000 
  prof.    I followed the document Tomcat IIS How To.. 
     But when i restart the IIS the jakarta filter does not show 
  the green up arrow.    As well as when i run Tomcat with 
  bin\startup it gives me the error as    The 
  system cannot find the batch label specified - startServer 
     What is the problem? 
  Thanx in advance Rajesh 


RE: Help required

2001-03-20 Thread Dianne Cree



IIS and 
Tomcat do work together.  Have you hooked up the isapi filter as 
isapi_redirect.dll?  Followed all the steps in the "Tomcat IIS 
HowTo.htm"?  I was having some problems and I just went back and carefully 
redid my steps and it was working last time I checked.  I still don't know 
how to add contexts because no one will answer my question on it, but hey, I'm 
just doing minor stuff for now so I'm just pointing to the Tomcat examples 
directory for stuff and winging it.  :)  good 
luck!

  -Original Message-From: Rajesh Jumde 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, March 19, 2001 9:16 
  PMTo: [EMAIL PROTECTED]Subject: Help 
  requiredHello there, 
     In the document Tomcat IIs How To has a statement called 
  The IIS redirector is not part of the "official" build 
  of Jakarta, You can obtain the code and binaries needed for it by 
  accessing http://jakarta.apache.org/builds/tomcat/release/v3.1_beta_1/bin/win32/i386/. The redirector related file is isapi_redirect.dll. 
  in the INSTALLATION para. but when i tried the given url it gives me 
  the error as HTTP 404 page not found. 
  I want to test whether IIS works on Tomcat or not, so can you pls suggest 
  me that what should be done to configure Tomcat to IIS. where from i will 
  get all the installation files for Tomcat and how to configure it.. 
  Thanx and Regards, Rajesh 


Help required

2001-03-20 Thread Rajesh Jumde


Hello everybody,
   I am trying to configure Tomcat with IIS5.0 on Windows2000
prof.
   I followed the document Tomcat IIS How To..
   But when i restart the IIS the jakarta filter does not
show the green up arrow.
   As well as when i run Tomcat with bin\startup it gives
me the error as
   The system cannot find the batch
label specified - startServer
   What is the problem?
Thanx in advance
Rajesh


Help required

2001-03-19 Thread Rajesh Jumde


Hello there,
   In the document Tomcat IIs How To has a statement called
The IIS redirector is not part of the "official"
build of Jakarta, You can obtain the code and binaries needed for it by
accessing
http://jakarta.apache.org/builds/tomcat/release/v3.1_beta_1/bin/win32/i386/.
The redirector related file is isapi_redirect.dll.
in the INSTALLATION para.
but when i tried the given url it gives me the error as HTTP 404 page
not found.
I want to test whether IIS works on Tomcat or not, so can you pls suggest
me that what should be done to configure Tomcat to IIS.
where from i will get all the installation files for Tomcat and how
to configure it..
Thanx and Regards,
Rajesh


RE: beginner of TOMCAT..help required

2001-02-20 Thread Mike Braden

In case you haven't see it yet, here is a good doc on developing with
Tomcat:

http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html

--
Mike Braden
[EMAIL PROTECTED]


-Original Message-
From: Sami [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 12:44 AM
To: [EMAIL PROTECTED]
Subject: beginner of TOMCAT..help required


Hello All,
I have recently downloaded Tomcat3.1.2. I unzipped it and then started the
web server. Its up and running. Now i have written some sample servelts like
helloWorldServelt.java, firstServlet.java. I have compiled them, as
servlet.jar is in my CLASSPATH.
Now I want to I want to create a direcotry "/Sami" in  "webapp" directory"
and want to deploy my servlets over there, and want that I should be able to
execute those servlets by typing
http://localhost/Sami/..
so can anyone give me the sequence of steps  of how to manipulate all XML
files, how to add a new context and blah,blah,,,blah...
I have read the documentation on the site, but I guess that I am not ina
state of mind to pick up that kind of documentation.
I would be very much obliged to any person who helps me in doing this simple
task.
Thanx in advance
 Sami






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

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




Re: beginner of TOMCAT..help required

2001-02-19 Thread ola_pettersson


This is how I did it in Tomcat 3.2, not using .jar, just normal .class
files

Put a directory called "Sami" under webapps
Create a "WEB-INF" directory under Sami
Create a "classes" directory under WEB-INF and put the class files there

In the WEB-INF directory you should put a "web.xml" which in my case
roughly looks like this:


   
  Whatever
  yourpackage.yourclass
   

   
  Whatever
  /Whatever
   


Then you should be able to invoce the sevlet at:
http://localhost:8080/Sami/Whatever

Hope it helps and that I didn't make too many mistakes :)
/Ola





   

"Sami" 

  

r.com.au>cc:   

     Subject: beginner of TOMCAT..help 
required
20/02/2001 

03:44 PM   

Please 

respond to 

tomcat-user

   

   




Hello All,
I have recently downloaded Tomcat3.1.2. I unzipped it and then started the
web server. Its up and running. Now i have written some sample servelts
like
helloWorldServelt.java, firstServlet.java. I have compiled them, as
servlet.jar is in my CLASSPATH.
Now I want to I want to create a direcotry "/Sami" in  "webapp" directory"
and want to deploy my servlets over there, and want that I should be able
to
execute those servlets by typing
http://localhost/Sami/..
so can anyone give me the sequence of steps  of how to manipulate all XML
files, how to add a new context and blah,blah,,,blah...
I have read the documentation on the site, but I guess that I am not ina
state of mind to pick up that kind of documentation.
I would be very much obliged to any person who helps me in doing this
simple
task.
Thanx in advance
 Sami






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






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




beginner of TOMCAT..help required

2001-02-19 Thread Sami

Hello All,
I have recently downloaded Tomcat3.1.2. I unzipped it and then started the
web server. Its up and running. Now i have written some sample servelts like
helloWorldServelt.java, firstServlet.java. I have compiled them, as
servlet.jar is in my CLASSPATH.
Now I want to I want to create a direcotry "/Sami" in  "webapp" directory"
and want to deploy my servlets over there, and want that I should be able to
execute those servlets by typing
http://localhost/Sami/..
so can anyone give me the sequence of steps  of how to manipulate all XML
files, how to add a new context and blah,blah,,,blah...
I have read the documentation on the site, but I guess that I am not ina
state of mind to pick up that kind of documentation.
I would be very much obliged to any person who helps me in doing this simple
task.
Thanx in advance
 Sami






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




RE: New User help required

2001-01-12 Thread Samson, Lyndon [IT]

Just as a matter of interest, you don't actually need apache to serve out
http requests. tomcat can do that on
its own. Only if you req the features of apache ( performance/config etc )
should you use it.
If your primary interest is servlets/JSP/taglibs etc just use tomcat on its
own.

lcs


-Original Message-
From: Jason Norton [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 4:25 PM
To: [EMAIL PROTECTED]
Subject: New User help required


Hi,=20

I have just started to use Apache and would like to get Tomcat operational =
and I am having some minor problems. I have both tomcat and apache up and =
running and servicing pages as individuals  (http://localhost and =
http://localhost:8080), but am having some problem getting them to run =
together. My set up is

SuSE Linux 7.0

Apache 1.3.12
Tomcat 3.2.1
JDK1.3
mod_jk.so (my own compile)


Please could someone post for me (or email me) the contents or an example =
of there httpd.conf file and any other key .conf you feel I may be making =
errors in. This is so that I can see how the tomcat (mod_jk.so) intergrates=
 itself as this seems to be my big stumbling block and dont fully =
understand the available documentation.

many thanks in advance


Jason Norton


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

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




New User help required

2001-01-12 Thread Jason Norton

Hi,=20

I have just started to use Apache and would like to get Tomcat operational =
and I am having some minor problems. I have both tomcat and apache up and =
running and servicing pages as individuals  (http://localhost and =
http://localhost:8080), but am having some problem getting them to run =
together. My set up is

SuSE Linux 7.0

Apache 1.3.12
Tomcat 3.2.1
JDK1.3
mod_jk.so (my own compile)


Please could someone post for me (or email me) the contents or an example =
of there httpd.conf file and any other key .conf you feel I may be making =
errors in. This is so that I can see how the tomcat (mod_jk.so) intergrates=
 itself as this seems to be my big stumbling block and dont fully =
understand the available documentation.

many thanks in advance


Jason Norton


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




RE: Help Required Urgently

2000-11-06 Thread John Bateman

Did you try using the binary build first, or do you absolutely need/want the
source builds?


> -Original Message-
> From: Tony Jeyasekhar [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 03, 2000 11:56 PM
> To: [EMAIL PROTECTED]
> Subject: Help Required Urgently
>
>
> So I then tried to install TomCat. Since Tomcat required Jaxp(Java XML
> Parser), & Jakarta-Ant, I installed both of them successfully.
>





Re: Urgent Help Required on TomCat Installation

2000-11-05 Thread Aaron Knauf

I recommend that you use a binary package for tomcat.  You will not need to compile anything at all if you use a binary package.


Aaron Knauf
Systems Integrator
Genie Systems Ltd
Auckland, New Zealand
Ph. +64-9-573 3310 x812
email: [EMAIL PROTECTED]
http://www.geniesystems.com







Tony Jeyasekhar <[EMAIL PROTECTED]>
04/11/2000 17:52
Please respond to tomcat-user

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Urgent Help Required on TomCat Installation


Hello...

I am using Linux Redhat 7.0 & already intalled Jdk1.3. I somehow managed to
override the Jdk1.1.7 which comes along with Redhat 7.0.

I wanted Java Servlet Support & so tried to install Apache JServ 1.1, but it
was looking for Jdk1.1.7.

So I then tried to install TomCat. Since Tomcat required Jaxp(Java XML
Parser), & Jakarta-Ant, I installed both of them successfully.

After that I have been trying to execute the build.sh file of Tomcat, but it
is giving me a warning that I need to use the deprecate option to compile the
files.

On observing closely the build.sh file, I found that it is referring to the
build.xml file.
I know deprecate is used to compile java files when some of the old methods of
java are used.

Since the class files are not created on compiling, the jar files are also not
getting created. These jar files are probably used by Tomcat...

Please let me know how to handle this case...


Regards,

Tony


Get free email and a permanent address at http://www.netaddress.com/?N=1



Help Required Urgently

2000-11-03 Thread Tony Jeyasekhar

I am using Linux Redhat 7.0 & already intalled Jdk1.3. I somehow managed to
override the Jdk1.1.7 which comes along with Redhat 7.0.

I wanted Java Servlet Support & so tried to install Apache JServ 1.1, but it
was looking for Jdk1.1.7.

So I then tried to install TomCat. Since Tomcat required Jaxp(Java XML
Parser), & Jakarta-Ant, I installed both of them successfully.

After that I have been trying to execute the build.sh file of Tomcat, but it
is giving me a warning that I need to use the deprecate option to compile
the files.

On observing closely the build.sh file, I found that it is referring to the
build.xml file.
I know deprecate is used to compile java files when some of the old methods
of java are used.

Since the class files are not created on compiling, the jar files are also
not getting created. These jar files are probably used by Tomcat...

Please let me know how to handle this case...


Regards,

Tony




Urgent Help Required on TomCat Installation

2000-11-03 Thread Tony Jeyasekhar

Hello...

I am using Linux Redhat 7.0 & already intalled Jdk1.3. I somehow managed to
override the Jdk1.1.7 which comes along with Redhat 7.0.

I wanted Java Servlet Support & so tried to install Apache JServ 1.1, but it
was looking for Jdk1.1.7. 

So I then tried to install TomCat. Since Tomcat required Jaxp(Java XML
Parser), & Jakarta-Ant, I installed both of them successfully.

After that I have been trying to execute the build.sh file of Tomcat, but it
is giving me a warning that I need to use the deprecate option to compile the
files. 

On observing closely the build.sh file, I found that it is referring to the
build.xml file.
I know deprecate is used to compile java files when some of the old methods of
java are used.

Since the class files are not created on compiling, the jar files are also not
getting created. These jar files are probably used by Tomcat...

Please let me know how to handle this case...


Regards,

Tony


Get free email and a permanent address at http://www.netaddress.com/?N=1