AW: AW: AW: Limiting Memory usage with Tomcat 3.2.2

2002-02-26 Thread Ralph Einfeldt

Then verify if that are independend processes:

Have a look at
ps ax --forest
to see if you have more than one parent process that spans vm's.

Kill single pid's and see if other processes/thread die to.


> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 27. Februar 2002 08:53
> An: Tomcat Users List
> Betreff: Re: AW: AW: Limiting Memory usage with Tomcat 3.2.2
> 
> 
> Hello
> 
> 
> Again, sorry if i'm wrong, but if I do
> killall java I got instantly 200 MB of memory free.
> And yes, I'm running RH 7.2
> 
> -- 
> 

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




Re: AW: AW: Limiting Memory usage with Tomcat 3.2.2

2002-02-26 Thread tomcat

Hello


Again, sorry if i'm wrong, but if I do
killall java I got instantly 200 MB of memory free.
And yes, I'm running RH 7.2

-- 
Best regards,


RE> If you are using linux that's not right. What you see are threads 
RE> not processes. Threads share the same memory, so the memory is 
RE> just used once.

>> -Ursprüngliche Nachricht-
>> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Gesendet: Mittwoch, 27. Februar 2002 08:33
>> An: Tomcat Users List
>> Betreff: Re: AW: Limiting Memory usage with Tomcat 3.2.2
RE> 
>> I saw that the problem its that tomcat created more than 200 process
>> of 0.8 MB each, there is anyway to limit the quantity of threads?
>> Sorry, maybe its a dumb question :P, but I'll apreciate any help.
RE> 

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



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




RE: 2 instance of tomcat within 1 machine

2002-02-26 Thread Keith Ng

John would u pls send me yr copy of the bat file? Thank...

-Original Message-
From: John Niven [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 9:49 PM
To: 'Tomcat Users List'
Subject: RE: 2 instance of tomcat within 1 machine


Hi Keith (response inline)

This is supplementary info to Remy's: I think we've both got different
set-ups.

> -Original Message-
> From: Keith Ng [mailto:[EMAIL PROTECTED]]
> Sent: 2 March 2002 11:40
> To: Tomcat Users List
> Subject: RE: 2 instance of tomcat within 1 machine
>
>
> Which version of tomcat are u using?
> im using 4.0.2
>

I've recently got 5 instances running on one 'lil-ole workstation, used for
personal development work.  My goal was to have multiple instances that I
could mess around with, without destroying the "live" (documentation,
examples, etc) server.

> how did u configure? Must i have more then 1 copy of tomcat?

No. I've installed tomcat (4.0.2) on my D: drive (should have said: Windows
2000 Pro, 2 hard-drives with multiple partitions - D: is apps, I: is
development) and the various instances on my I: drive:

CATALINA_HOME:
D:\tomcat\
CATALINA_BASEs:
i:\tomcat-servers\server01\
i:\tomcat-servers\server02\
i:\tomcat-servers\server03\
etc

Follow the instructions in running.txt for which directories to copy - I'm
at work just now (JRun ;-( ) but off-hand I think it's bin, conf, lib &
webapps.  Within /conf, you need to edit server.xml so the various ports
don't conflict.  Eg. if the CATALINA_HOME/conf/server.xml uses port 8080,
/server01/conf/server.xml could be 8081 for example.  There are three
locations in the server.xml which I edited - I don't have the file to hand
at the moment, but if you'd like a copy I can post it tonight/tomorrow.

Once you've created the directory heirarchy, and edited the server.xml
files, you should be able to start your new instances from the command
line/shell.  I'm lazy, so I just edited the catalina.bat files in
/server0x/bin/ to set CATALINA_BASE and CATALINA_HOME - again, if you'd like
a copy I'll post it tomorrow.

> I really dunno... pls help
>
>

Basically, most of the info is in running.txt from your Tomcat install.  I
found the only real gotcha was that I needed to renumber the ports.  Once
I'd got that sorted out the rest was plain sailing ;)

Best of luck, and if you're still stuck let me know and I'll post files.

Cheers
John

--
John Niven
Reply via mailing-list.

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



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




AW: AW: Limiting Memory usage with Tomcat 3.2.2

2002-02-26 Thread Ralph Einfeldt


If you are using linux that's not right. What you see are threads 
not processes. Threads share the same memory, so the memory is 
just used once.

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 27. Februar 2002 08:33
> An: Tomcat Users List
> Betreff: Re: AW: Limiting Memory usage with Tomcat 3.2.2

> I saw that the problem its that tomcat created more than 200 process
> of 0.8 MB each, there is anyway to limit the quantity of threads?
> Sorry, maybe its a dumb question :P, but I'll apreciate any help.


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




Re: AW: Limiting Memory usage with Tomcat 3.2.2

2002-02-26 Thread tomcat

Hello


I saw that the problem its that tomcat created more than 200 process
of 0.8 MB each, there is anyway to limit the quantity of threads?
Sorry, maybe its a dumb question :P, but I'll apreciate any help.

-- 
Best regards,

RE> The default for the ibm and sun jdk is that the memory is limited
RE> to some extend.

RE> The limitation can be set through the option -Xms -Xmx for the jvm.

RE> This just limits the heap size. What you can't restrict is the memory 
RE> for the code and data segments. (To be honest I don't have a clear 
RE> idea how memory is managed in a VM. E.G. if a class is loaded at 
RE> runtime, will the code and static data be allocated on the heap of 
RE> the VM? If not, the memory usage can be quite unlimited if you have
RE> enough classes or static data in the classes)

RE> The sun vm has an additional option to set the thread stacksize: -ss

>> -Ursprüngliche Nachricht-
>> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Gesendet: Mittwoch, 27. Februar 2002 07:29
>> An: [EMAIL PROTECTED]
>> Betreff: Limiting Memory usage with Tomcat 3.2.2
>> 
>> 
>> 
>>   Hi, there is any way to limit the Memory usage in tomcat 3.2.2?
>>   I'm getting troubles with 2 GB RAM server, tomcat eat almost all the
>>   resources, and now the server its in swap.
>> 

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



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




AW: Limiting Memory usage with Tomcat 3.2.2

2002-02-26 Thread Ralph Einfeldt

The default for the ibm and sun jdk is that the memory is limited
to some extend.

The limitation can be set through the option -Xms -Xmx for the jvm.

This just limits the heap size. What you can't restrict is the memory 
for the code and data segments. (To be honest I don't have a clear 
idea how memory is managed in a VM. E.G. if a class is loaded at 
runtime, will the code and static data be allocated on the heap of 
the VM? If not, the memory usage can be quite unlimited if you have
enough classes or static data in the classes)

The sun vm has an additional option to set the thread stacksize: -ss

> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 27. Februar 2002 07:29
> An: [EMAIL PROTECTED]
> Betreff: Limiting Memory usage with Tomcat 3.2.2
> 
> 
> 
>   Hi, there is any way to limit the Memory usage in tomcat 3.2.2?
>   I'm getting troubles with 2 GB RAM server, tomcat eat almost all the
>   resources, and now the server its in swap.
> 

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




help in include file tag.

2002-02-26 Thread Kurt Kurniawan

hi everyone! Need help with tis one

I have this
<%@ include file="CheckLoggedIn.jsp, getPool.jsp"%>

which doesn't work in tomcat4 but works well in Resin, say couldn't find the file

anybody can tell me how to include multiple files in Tomcat?
It doesn't accept as well if I put like this...

<%@ include file="CheckLoggedIn.jsp%>
<%@ include file="getPool.jsp"%>

say we cannot put multiple directives

thanx

*
- NOTICE -
The information transmitted is intended only for the person or entity 
to which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, 
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited.  If you 
have received this email in error, please notify the sender and delete
the material from your computer.

Internet communications are not secure.  You should scan this message 
and any attachments for viruses.  Under no circumstances do we accept 
liability for any loss or damage which may result from your receipt of 
this message or any attachments.
*


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




RE: Tomcat4 standalone keystore - existing private key problem

2002-02-26 Thread Chris Campbell

To answer my own question and perhaps help someone searching archives on
similar problems, the page at
http://www.cs.indiana.edu/~chiuk/security/ssl/jsse/certificates/ tells me
"Though sufficient for some tasks, a major deficiency of the keytool utility
is its inability to import a private key." Great. Looks like we will be
going through apache then.

ChrisC


> -Original Message-
> From: Chris Campbell 
> Sent: Monday, February 25, 2002 12:38 PM
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat4 standalone keystore - existing private key problem
> 
> 
> 
> Hi
> 
> I am trying to setup Tomcat 4.0.1 standalone to serve ssl 
> pages certified by
> Verisign. I can use (self signed) certificates generated by 
> keytool with no
> problem, but I can't set up the keystore to work with Verisign's.
> To explain a little more, the private key I have was 
> generated by openssl
> (openssl genrsa -rand rand.dat -des 1024 > key.pem) and is of 
> the type:
> 
> -BEGIN RSA PRIVATE KEY-
> Proc-Type: 4,ENCRYPTED
> DEK-Info: DES-CBC,91B2224E3C5D1BA5
> 
> If I try to import this into my keystore like 
> 
> keytool -import -file /root/key.pem
> 
> I get the error 'Input not an X.509 certificate'. Importing 
> the certificate
> reply from Verisign in the same way works no problem, but I know from
> setting up Apache that the private key is also necessary 
> right? And for
> tomcat, it seems that it must be in the keystore (no other 
> configuration
> options as far as I know). I think everything would work if I 
> could just get
> that private key into a form that keytool understands, then into the
> keystore... is this possible?
> 
> Thanks, 
> 
> ChrisC
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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


Re: TC4.0.2 ignoring servlet.jar classpath. what the...

2002-02-26 Thread Craig R. McClanahan



On Wed, 27 Feb 2002, Kurt Kurniawan wrote:

> Date: Wed, 27 Feb 2002 17:04:01 +1100
> From: Kurt Kurniawan <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: Re: TC4.0.2 ignoring servlet.jar classpath. what the...
>
> try to put servlet.jar in the /jre/lib/ext/ it
> always work!!
>

This may solve your compile problems, but it will *not* solve runtime
problems.  In fact, it will cause mysterious runtime errors under 4.0 and
4.0.1 systems.

Your best bets:

* Use a development tool or IDE that understands how to build a
  compile-time class path for you.

* Use Ant to build your projects, as outlined in the Application
  Developer's Guide documentation that is included with Tomcat.

Craig McClanahan



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




Re: TC4.0.2 ignoring servlet.jar classpath. what the...

2002-02-26 Thread Craig R. McClanahan



On Wed, 27 Feb 2002, Kurt Kurniawan wrote:

> Date: Wed, 27 Feb 2002 17:04:01 +1100
> From: Kurt Kurniawan <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: Re: TC4.0.2 ignoring servlet.jar classpath. what the...
>
> try to put servlet.jar in the /jre/lib/ext/ it
> always work!!
>
> *
> - NOTICE -
> The information transmitted is intended only for the person or entity
> to which it is addressed and may contain confidential and/or privileged
> material.  Any review, retransmission, dissemination or other use of,
> or taking of any action in reliance upon, this information by persons
> or entities other than the intended recipient is prohibited.  If you
> have received this email in error, please notify the sender and delete
> the material from your computer.
>
> Internet communications are not secure.  You should scan this message
> and any attachments for viruses.  Under no circumstances do we accept
> liability for any loss or damage which may result from your receipt of
> this message or any attachments.
> *
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




Limiting Memory usage with Tomcat 3.2.2

2002-02-26 Thread tomcat


  Hi, there is any way to limit the Memory usage in tomcat 3.2.2?
  I'm getting troubles with 2 GB RAM server, tomcat eat almost all the
  resources, and now the server its in swap.

-- 
Best regards,
Jorge Catena



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




Re: TC4.0.2 ignoring servlet.jar classpath. what the...

2002-02-26 Thread Kurt Kurniawan

try to put servlet.jar in the /jre/lib/ext/ it always work!!

*
- NOTICE -
The information transmitted is intended only for the person or entity 
to which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, 
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited.  If you 
have received this email in error, please notify the sender and delete
the material from your computer.

Internet communications are not secure.  You should scan this message 
and any attachments for viruses.  Under no circumstances do we accept 
liability for any loss or damage which may result from your receipt of 
this message or any attachments.
*


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




TC4.0.2 ignoring servlet.jar classpath. what the...

2002-02-26 Thread Satoshi Okamoto
even if i set servlet.jar to classpath, i get compiling error saying
import.javax.http not found or any servlet.jar related classes.
now i compiled with "javac -classpath" option then it compiles fine.
why is tomcat ignoring my classpath environment?
where do you guys locate this jar? original place as common/lib?
im using solaris 8 with jdk 1.4.0 solaris specific patch. hope this is not
solaris related.




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


Trouble with IMG tag, servlets, and JSPs

2002-02-26 Thread Ken Ramirez

Hope someone can help:

I'm having a problem loading images from a JSP page when the page is
called from a servlet.  I'm performing a
forward from the servlet to the JSP, which then loads the images from a
subdirectory in the app's directory as follows:

/webapps/MyApp/*.jsp

/webapps/MyApp/images/*.img

The images are loaded from the JSP using the img tag as follows:



I've also tried src="/images/myimage.jpg" and this doesn't work.
However, if I call the jpg directly, everything shows up fine.
Of course in the real world, I need to get the forward to work so that I
can pass data from the servlet to the JSP.  I found
some information in the mailing list's archive regarding this problem
and someone suggested the following:



This does work, but it just seems odd that you would have to do this,
especially given the fact that there is a context entry for
the app in the server.xml.  Isn't the purpose of the Context entry to:

1.  Create and associate a Context object with the App and
2.  Establish the base path for the app.

Seems kind of redundent that you would have to again retrieve the
ContextPath yourself, when it seems that Tomcat should do 
this for us or the Browser should receive the problem path so that it
knows where to get the images and CSS files from.  Instead,
what is actually sent back to the browser is the following path for the
image:

"images/myimage.jpg"

Now what's interesting is that I looked in one of Tomcat's log files and
found the following exception for the images:

"StandardWrapper[/MasterMind:org.apache.catalina.INVOKER.theme]: Marking
servlet org.apache.catalina.INVOKER.theme as unavailable
2002-02-26 20:53:17 invoker: Cannot allocate servlet instance for path
/MasterMind/servlet/theme/Master.css
javax.servlet.ServletException: Wrapper cannot find servlet class theme
or a class it depends on ..."

And in one of the other log files, I found the following error:

127.0.0.1 - - [26/Feb/2002:20:53:17 -0500] "GET
/MyApp/servlet/images/myimage.jpg HTTP/1.1" 404 696


I'd like to get this to work without the hack I mentioned above.  Does
anyone have any suggestions?


Thanks,

Ken

Ken Ramirez - Principal/CTO
[EMAIL PROTECTED]
  
Master-Mind Consulting Services
http://www.mastermind.com  
Ph - 570-688-9600
Fx - 208-275-2301
 




ClassNotFoundException

2002-02-26 Thread Ken Ramirez

Hope someone can help:

I have a TOMCAT app containing a servlet as follows:

/webapps/MyApp/WEB-INF/classes/com/mycomp/MyServletClass.cl
ass

This class extends a base class that provides common functionality for
all of my apps, and is stored in:

/common/classes/com/mycomp/MyBaseServletClass.class  (which
extends HttpServlet)

Through some context information, the MyBaseServletClass receives the
classname of a class stored in my app's classes directory, 
which it is responsible for creating an instance of, using
Class.forName().  This is the path of the class to be created:

/webapps/MyApp/WEB-INF/classes/com/mycomp/MyOtherClass.clas
s

When the MyServletClass calls Class.forName, it fails with a
ClassNotFoundException, but if I move the MyServletClass 
to the MyApp/WEB-INF/classes path, everything works fine.

What gives?  I thought that Tomcat reads adds the classes directory for
all of the apps deployed in the server.xml 
(with Context info), which I defined as follows:

   


Thanks,

Ken Ramirez - Principal/CTO
[EMAIL PROTECTED]
  
Master-Mind Consulting Services
http://www.mastermind.com  
Ph - 570-688-9600
Fx - 208-275-2301
 




Re: Problem in starting up TOMCAT, please help.

2002-02-26 Thread Bill Barnhill

You can also cd to your tomcat bin directory and type
catalina start

That will start tomcat in the same window, so that if it bombs you will see
any messages.

- Original Message -
From: "Chuck Amadi" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 25, 2002 3:04 AM
Subject: Re: Problem in starting up TOMCAT, please help.


> jay n gaba wrote:
>
> >try checking the log.
> >
> >On Sun, 03 Feb 2002 Ashutosh Shah wrote :
> >
> >>Hi everybody,
> >>
> >>Here is my problem.
> >>
> >>I loaded Tomcat successfully on a Windows 2000 platform
> >>setting the
> >>environment variables
> >>CATALINA_HOME: c:\jakarta-tomcat-4.0
> >>JAVA_HOME: c:\jdk1.3
> >>CLASSPATH: C:\jakarta-tomcat-4.0\common\lib\servlet.jar
> >>
> >>Then I went on the DOS prompt and gave the command
> >>c:\jakarta-tomcat-4.0\bin\startup.bat.
> >>
> >>At this time, another DOS window pops up for a second
> >>and then goes
> >>away. However on the parent DOS window, I receive a
> >>message:
> >>
> >>c:\jakarta-tomcat-4.0\bin\startup.bat
> >>Using CATALINA_BASE:   c:\jakarta-tomcat-4.0
> >>Using CATALINA_HOME:   c:\jakarta-tomcat-4.0
> >>Using CATALINA_TMPDIR: c:\jakarta-tomcat-4.0\temp
> >>Using JAVA_HOME:   c:\jdk1.3
> >>
> >>When I try going to http://localhost:8080 I get a 'Page
> >>cannot be displayed
> >>error'.
> >>
> >>I dont know what I am doing wrong. Please help.
> >>
> >>Thank you,
> >>Ash.
> >>
> >>
> >>--
> >>To unsubscribe:    >>a.apache.org>
> >>For additional commands:  >>a.apache.org>
> >>Troubles with the list:  >>a.apache.org>
> >>
> >
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> Sorry to hear that as you should then get the following below after a
> successful installation of Tomcat .
> I am lead to believe it's your two connectors.
>
> Note that this takes a short period of time in my case about ten seconds
> but this can take a bit longer depending on your Environment .
>
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0
> Starting service Tomcat-Aoache
> Apache Tomcat/4.0
>
> Thus if you don't get this above you may have a problem with your two
> connector instances in you 
>
> Thus check your  tag's as below Please note that i mhave
> usesd different ports as my tomcat3.3a is defaulted to port 8080.
>
> 
> port="" minProcessors="5" maxProcessors="75"
>enableLookups="true" redirectPort=""
>acceptCount="10" debug="0" connectionTimeout="6"/>
>
> 
>
> 
>
> port="" minProcessors="5" maxProcessors="75"
>enableLookups="true"
>acceptCount="10" debug="0" scheme="https" secure="true">
>   clientAuth="false"
>keystoreFile="C:/WINDOWS/Profiles/chucka/.keystore"
>keystorePass="test123"
>protocol="TLS"/>
> 
>
>
> I hope this helps
> Cheers Chuck Amadi
> Systems Programmer
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




Simple web.xml causes URL not to work

2002-02-26 Thread K Br

I am using Tomcat 4.0.2 standalone on Win2k Prof.

I have just a JSP file in my context
in webapps\Book\MySend.jsp

Without any web.xml, the URL
 http://localhost/Book/MySend.jsp
yields the page correctly.

But when I insert a web.xml under
webapps\Book\WEB-INF with the following content,
Tomcat cannot find the same URL (http://localhost/Book/MySend.jsp).


  
 hostname
 
 felicity
 
  


I have gone thru 2.3 servlet spec and the
web.xml as shown above seems legal. what
am I doing wrong.

/K. Brian
Los Angeles



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




tomcat and iis integration!

2002-02-26 Thread ravi

>- Original Message -
>From: "Klosa Uwe" <[EMAIL PROTECTED]>
>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
>Sent: Tuesday, February 26, 2002 6:59 PM
>Subject: SV: tomcat and iis integration!


>Hi Ravi,

>it's better to create a context to the jsp directory. If you are using ""
as
>name so it will be the default context.
>Which connector are you using



I am using the AJP 1.3 connector. I have uncommented the code from
server.xml.

I have added the context also to the server.xml file as follows

 

  
   


I tried editing the uriworkermap.properties file to add the entry as follows

# Default worker to be used through our mappings

default.worker=ajp13
#
# Sites to be redirected to Tomcat
#
/examples=$(default.worker)
/examples/*=$(default.worker)
/jisc=$(default.worker)
/jisc/*=$(default.worker)
/vacodi=$(default.worker)
/vacodi/*=$(default.worker)
/chatservlet=$(default.worker)
/chatservlet/*=$(default.worker)


My tomcat files and the JSP files required to be run are on two different
drives on a same computer. Is there anything else to be done which I am
missing ?


-Ursprungligt meddelande-
Från: ravi [mailto:[EMAIL PROTECTED]]
Skickat: den 26 februari 2002 13:19
Till: [EMAIL PROTECTED]
Ämne: tomcat and iis integration!


Dear All,

I want to integrate IIS on win2k with tomcat 4.0.1

The redirector isapi_redirect.dll filter shows green with high priority. I
have set the docbase in the server.xml file  to the directory I have JSP
pages in. I was able to run these pages on port 8080 but are not working on
port 80.

What could be the problem?

Awaiting your replies,
With Best Regards,
Ravi Naidu


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

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




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




RE: 2 instance of tomcat within 1 machine

2002-02-26 Thread JBrawner


John,

Could you please post the contents of you server.xml?  I'm trying to do
exactly what you've done with only 2 tomcat instances and am having
difficulty.  Also, I'm confused at which tomcat subdirectories needed to be
present in each CATALINA_BASE directory. The running.txt file mentions the
conf, logs, webapps, and work directories but you mention having to edit
the catalina.bat file (in the bin sub-directory) for each instance. So the
bin directory is needed to be copied as well?

Thanks,

Jason Brawner



   

John Niven 

  
rcat.com>cc:   

 Subject: RE: 2 instance of tomcat within 
1 machine
02/26/2002 

08:48 AM   

Please respond 

to "Tomcat 

Users List"

   

   





Hi Keith (response inline)

This is supplementary info to Remy's: I think we've both got different
set-ups.

> -Original Message-
> From: Keith Ng [mailto:[EMAIL PROTECTED]]
> Sent: 2 March 2002 11:40
> To: Tomcat Users List
> Subject: RE: 2 instance of tomcat within 1 machine
>
>
> Which version of tomcat are u using?
> im using 4.0.2
>

I've recently got 5 instances running on one 'lil-ole workstation, used for
personal development work.  My goal was to have multiple instances that I
could mess around with, without destroying the "live" (documentation,
examples, etc) server.

> how did u configure? Must i have more then 1 copy of tomcat?

No. I've installed tomcat (4.0.2) on my D: drive (should have said: Windows
2000 Pro, 2 hard-drives with multiple partitions - D: is apps, I: is
development) and the various instances on my I: drive:

CATALINA_HOME:
D:\tomcat\
CATALINA_BASEs:
i:\tomcat-servers\server01\
i:\tomcat-servers\server02\
i:\tomcat-servers\server03\
etc

Follow the instructions in running.txt for which directories to copy - I'm
at work just now (JRun ;-( ) but off-hand I think it's bin, conf, lib &
webapps.  Within /conf, you need to edit server.xml so the various ports
don't conflict.  Eg. if the CATALINA_HOME/conf/server.xml uses port 8080,
/server01/conf/server.xml could be 8081 for example.  There are three
locations in the server.xml which I edited - I don't have the file to hand
at the moment, but if you'd like a copy I can post it tonight/tomorrow.

Once you've created the directory heirarchy, and edited the server.xml
files, you should be able to start your new instances from the command
line/shell.  I'm lazy, so I just edited the catalina.bat files in
/server0x/bin/ to set CATALINA_BASE and CATALINA_HOME - again, if you'd
like
a copy I'll post it tomorrow.

> I really dunno... pls help
>
>

Basically, most of the info is in running.txt from your Tomcat install.  I
found the only real gotcha was that I needed to renumber the ports.  Once
I'd got that sorted out the rest was plain sailing ;)

Best of luck, and if you're still stuck let me know and I'll post files.

Cheers
John

--
John Niven
Reply via mailing-list.

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






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




RE: mySQL/JDBC/Tomcat4 documentation

2002-02-26 Thread Steve Madonna

Thanks everyone. I think I've got the "no sutible driver" thing fixed. Now
there's an SQL exception being thrown. Could be a programmer thing... I'm
going to get with our developers tomorrow to see if we can't get to the
bottom of this. Thanks again.

I actually found a pretty good page put together for OSX:
http://developer.apple.com/internet/macosx/tomcat2.html

It's actually pretty useful for anyone running tomcat.

Also the mm.mysql README was pretty helpful to:
http://sourceforge.net/docman/display_doc.php?docid=8968&group_id=15923


Thx again!

-Steve


-Original Message-
From: DingHui [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 6:34 PM
To: Tomcat Users List
Subject: Re: mySQL/JDBC/Tomcat4 documentation


The following code demonstrate how to initilize MYSQL JDBC driver.

try {
   Class.forName("org.gjt.mm.mysql.Driver");
  } catch (ClassNotFoundException e) {
   System.out.println(e);
  }

  try {
   Connection con =
DriverManager.getConnection("jdbc:mysql://localhost/mydata", "username",
"password");
   Statement stmt = con.createStatement();
   ResultSet rs = stmt.executeQuery("SELECT NAME FROM TEST");
  // Display the SQL Results
 while(rs.next()) {
  System.out.println(rs.getString("NAME"));
  }

  // Make sure our database resources are released
  rs.close();
  stmt.close();
  con.close();
   }catch (SQLException se) {
  // Inform user of any SQL errors
   System.out.println("SQL Exception: " + se.getMessage());
   se.printStackTrace(System.out);
   }
- Original Message - 
From: "Steve Madonna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 8:38 AM
Subject: mySQL/JDBC/Tomcat4 documentation


> Anyone know were I can get some documentation on installing
> mm.mysql-2.0.4-bin.jar file? I keep getting that "not sutible driver"
error
> everyone keeps talking about.
> 
> Thx in advance.
> 
> -Steve
> 



Re: IlligalStateException -- getOutputStream() has already been c alled for this response.

2002-02-26 Thread Dmitry Nikelshpur

I created a little test servlet to test includes and forwards in a clean 
environment.
The following block was used to test include/response within a servlet:

(nothing is "written" to the output buffer before the forward | includes)



//response.getWriter().write("test");

 dispatcher.forward(request, response);

 
 //  dispatcher.include(request, response);
 //  dispatcher.include(request, response);
 

//response.getWriter().write("test");



1) Running with forward uncommented:
  I now get a different error, for the first time! -- 
 java.net.SocketException: Socket Closed
 The chart displays fine in the browser.

2) Running with one or two includes uncommented:
I get java.lang.IlligalStateExeption: getOutputStream() has already 
been called for this response.
I get garbage in the browser

3) Running with the top write, and forwards uncommented:
 The chart is displayed properly, AND I get a message box saying 
that the document contained no data!
 I get java.lang.IlligalStateException: getWriter() has already been 
called.

I am "beginning" to think that this is expected behavior according to 
servlet specs (which I d/loaded and promissed myself I'd read :)
Even if this is the case, there must be a way to include charts, or 
combination of charts,  and other stuff on the same page...it's not like 
it's never been done before...


Regards!

Dmitry


KC Berg wrote:

>How are you doing the includes? Also when you are using a forward in a
>servlet you can not print anything to the output buffer before you use the
>forward. Because once the output stream has been sent to the browser the
>server can no longer forward that stream to another servlet.
>
>KC  
>
>-Original Message-
>From: Dmitry Nikelshpur [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, February 26, 2002 12:40 PM
>To: [EMAIL PROTECTED]
>Subject: IlligalStateException -- getOutputStream() has already been
>called for this response.
>
>
>Hello everyone.
>
>I had posted a similar message before, but either did not get replies or 
>missed them.
>
>I am using a JavaBean in a JSP page. This bean draws charts and graphs 
>depending on supplied data...
>
>When I call the JSP page directly from the browser, the graph displays 
>properly, and no error messages are dumped to catalina.out.
>
>When I have a servlet forward to the JSP page, the graphs display 
>properly, but I get a message in catalina.out: 
>java.lang.IlligalStateException: getOutputStream() has already been 
>called for this response.
>
>When I have a servlet include the JSP page, I get garbage in the 
>browser, and the same message in catalina.out, 
>java.lang.IlligalStateException: getOutputStream() has already been 
>called for this response.
>
>I had seen posts regarding this error, and believe that I saw something 
>in the bug databasee, but still no solution.
>Is this behavior 'normal?' for JSPs / Servlets?
>
>The bean that I am using to create the charts is called jspChart, and is 
>at:  http://www.javaside.com/u_jspchart.html
>This URL contains a sample JSP page, so any servlet that includes / 
>forwards this page should produce above results.
>
>I would apprecieate it if you could BCC me in your replies, to make sure 
>I get the message.
>Also, if you have any other solutions for creating charts/graphs 
>dynamically, with the ability to include/forweard from servlets, I'll be 
>more than pleased...
>
>Thanks in advance!
>
>
>Dmitry
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>



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




Re: J2EE, JSP, SERVLETS

2002-02-26 Thread Cathy Ooi

Quite right. As I'm involved in both development, deployment and maintenance,
portability and security are key issues. Apache does support ASP, I think, but I
don't quite trust that if I can help it. What about Perl? I still like to use it
for small, quick jobs.

- Original Message -
From: "August Detlefsen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, 27 February, 2002 4:06 AM
Subject: Re: J2EE, JSP, SERVLETS


There are a couple of reasons to pick JSP. I usually tell bosses that
we use java because it is easy to replicate across multiple hardware as
the demand for the app grows (They love thinking about growing demand).


Security is an issue too, especially with M$ products (not sure about
PHP). How many viruses have we seen in the past few years effecting
IIS, Exchange and NT?

There are some good whitepapers comparing JSP to other technologies on
the JavaSoft site. here's one:

Comparing Methods For Server-Side Dynamic Content White Paper
http://java.sun.com/products/jsp/jspservlet.html

Decisions, Decisions: J2EETM vs. .NET
http://www.theserverside.com/resources/article.jsp?l=J2EE-vs-DOTNET


--- hanasaki <[EMAIL PROTECTED]> wrote:
> What are your boss' looking for?  What motivates them?
>
> Keith Ng wrote:
> > nono
> > dun get me wrong
> > im currently doing a J2EE project based on
> > servlets/jsp/javamail/jdbc/possibly EJB(low possibility)
> > there are 2 things i need to do.
> >
> > 1)i need to noe if i ve been missing out on some of the
> capabilities, which
> > i did not implement
> > 2) i need to write in my report the major advantages my web
> application has
> > over the others. I noe jsp/servlets are the best around but i cant
> quite
> > explain.
> >
> > However, some kind souls have emailed me and explained to me and
> help clear
> > some of my doubts.
> >
> > -Original Message-
> > From: Rick K [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 26, 2002 3:41 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: J2EE, JSP, SERVLETS
> >
> >
> > --- Keith Ng <[EMAIL PROTECTED]> wrote:
> >
> >>Hi guys
> >>
> >>There has been a question thats bugging me for qute
> >>some time. I noticed
> >>many bank sites, or big companies use JSP/SERVLETS
> >>for their websites. Is
> >>there a particular reason why jsp/servlets are
> >>preferred over
> >>asp/php/coldfusion? I even realise a site
> >>(dbs.com.sg)using applet textfield
> >>as their forms ... isit supposed to be more secure
> >>this way? Can someone
> >>clear my doubts? thanks
> >>
> >
> > Why does it bug you that big companies use servlets
> > and JSP? Why do you have doubts about Java?
> >
> >
> >
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> >
> > --
> > To unsubscribe:
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> >
> >
> >
> >
> > _
> >
> > Do You Yahoo!?
> >
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> >
> >
> > --
> > To unsubscribe:
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> >
> >
>
>
> --
> =
> = [EMAIL PROTECTED]  =
> = Spam : Unhealthy and High in Sodium and Cholesterol   =
> =
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: mySQL/JDBC/Tomcat4 documentation

2002-02-26 Thread DingHui

The following code demonstrate how to initilize MYSQL JDBC driver.

try {
   Class.forName("org.gjt.mm.mysql.Driver");
  } catch (ClassNotFoundException e) {
   System.out.println(e);
  }

  try {
   Connection con = DriverManager.getConnection("jdbc:mysql://localhost/mydata", 
"username", "password");
   Statement stmt = con.createStatement();
   ResultSet rs = stmt.executeQuery("SELECT NAME FROM TEST");
  // Display the SQL Results
 while(rs.next()) {
  System.out.println(rs.getString("NAME"));
  }

  // Make sure our database resources are released
  rs.close();
  stmt.close();
  con.close();
   }catch (SQLException se) {
  // Inform user of any SQL errors
   System.out.println("SQL Exception: " + se.getMessage());
   se.printStackTrace(System.out);
   }
- Original Message - 
From: "Steve Madonna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 8:38 AM
Subject: mySQL/JDBC/Tomcat4 documentation


> Anyone know were I can get some documentation on installing
> mm.mysql-2.0.4-bin.jar file? I keep getting that "not sutible driver" error
> everyone keeps talking about.
> 
> Thx in advance.
> 
> -Steve
> 



Re: mySQL/JDBC/Tomcat4 documentation

2002-02-26 Thread 丁辉

The installation process is very simple.you simply copy the mm.mysql-2.0.4-bin.jar to 
somewhere in your computer, and add that JAR file into system's CLASSPATH.
I think your problem is not caused by CLASSPATH, maybe it's  the problem of 
initilizing the MYSQL JDBC driver.

- Original Message - 
From: "Steve Madonna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 27, 2002 8:38 AM
Subject: mySQL/JDBC/Tomcat4 documentation


> Anyone know were I can get some documentation on installing
> mm.mysql-2.0.4-bin.jar file? I keep getting that "not sutible driver" error
> everyone keeps talking about.
> 
> Thx in advance.
> 
> -Steve
> 



RE: Servlet POST results in 404 error

2002-02-26 Thread John Wadkin

keith,

Yeah - Randy Layman solved it. The servlet mapping was setup to servletname/
instead of servletname/* The answer's obvious now! Whenever the servlet
created a URL like:

/servletname/stringofnumbers

It stopped working cos that particular URL pattern wasn't mapped. It just so
happens that this only occurs when the servlet uses doPost, hence me
thinking it was a POST problem!

Re showing you the post method - I'd have trouble finding it :) The servlet
is incredibly complex - loads of classes. I'm a pretty naff Java programmer,
which doesn't help! I've only seen parts of the code - frightening stuff!
The servlet is an electronic Personal Development Planning (PDP) tool called
LUSID. It allows the user to record experiences and achievements, perform
skills audits, and plan goals and activities. Pages are create in an XML
language (lusidml) which the servlet then parses. Everything's stored in an
Oracle database. It's a bit rough around the edges and the interface is
pretty poor from a HCI perspective but otherwise it's pretty good.

Thanks,

John

> -Original Message-
> From: Keith Ng [mailto:[EMAIL PROTECTED]]
> Sent: 02 March 2002 20:22
> To: Tomcat Users List
> Subject: RE: Servlet POST results in 404 error
> 
> 
> Hi John, have u solved it already?
> 
> someone here said that u might not have define yr post method
> 
> would u care to show us yr post mthod?(whole defination) pls do the
> following.
> add a System.out.println("post method invoked"); under your 
> post method
> implemention for us to see.
> Is tat post method even invoked?
> 
> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 12:11 AM
> To: Tomcat Users List (E-mail)
> Subject: Servlet POST results in 404 error
> 
> 
> All,
> 
> TomCat 4.0.1
> Apache 1.3
> mod_WebApp
> Solaris 8
> 
> I have a servlet that returns a 404 error whenever a POST is 
> sent. GET works
> fine. The servlet uses sessions - not sure if this has 
> anything to do with
> it. My server.xml just defines a context and a logger. The 
> web.xml has a
> servlet name and mapping, nothing more.
> The servlet was originally written for JServ - could this 
> have something to
> do with it?
> 
> There's nothing in the logs.
> 
> I'm not a servlet programmer so I have no ideas!
> 
> Any suggestions??
> 
> Thanks,
> 
> John
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




mySQL/JDBC/Tomcat4 documentation

2002-02-26 Thread Steve Madonna

Anyone know were I can get some documentation on installing
mm.mysql-2.0.4-bin.jar file? I keep getting that "not sutible driver" error
everyone keeps talking about.

Thx in advance.

-Steve



That old tomcat 4.0.2 - xerces.jar file problem one more time...please

2002-02-26 Thread Drew Cox

I'm sorry guys.  I've searched the archives, really.  I have seen a bunch of
seemingly relevant posts and tried some of their recommendations.  But I
can't get this to work.  Here's the deal.

Our webapp includes xerces.jar in the web.inf/lib directory.  This works
fine on Tomcat 3.1 (our prod version) and 3.3a (our new prod version if I
can't get this sorted).

On 4.0.2 I get the following error in the tomcat logs, apparently when
trying to compile a JSP:

- Root Cause -
java.lang.NoClassDefFoundError: org/w3c/dom/range/Range
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.xerces.parsers.DOMParser.setDocumentClassName(DOMParser.java:489)
at org.apache.xerces.parsers.DOMParser.(DOMParser.java:221)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.(DocumentBuilderImpl.java:9
8)
at
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Documen
tBuilderFactoryImpl.java:87)
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:197)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:1
38)
at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:34
5)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
6)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)

>From reading the previous posts and tomcat docs, it appears there are some
classloader/version conflicts with the xerces.jar in the
CATALINA_HOME/common/lib directory.  I have tried moving the catalina
xerces.jar around into all of the other libs in tomcat to no avail.

If I remove our webapp's xerces.jar, things work fine.  This is a reasonable
workaround, but what if I really needed different versions of the library
available to different apps?  I'm sure there is a simple way to make this
work, please help the terminally bewildered to get this working.

Thanks
Drew


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




configuring logger, given Tomcat's daily log filename changes

2002-02-26 Thread Charlie Toohey

Yes, but the name of the tomcat log file changes daily --- is there some way 
to set up the logger to automcatically deal with these name changes ?

I realize this thread has run outside of the realm of Struts, and should 
really be appearing in the Tomcat mailing list now, so I'm sending it there.

- Charlie


On Tuesday 26 February 2002 12:04 pm, you wrote:
> Can't you have a logger point to tomcat log file?
>
> Ben
> - Original Message -
> From: "Charlie Toohey" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 26, 2002 1:18 PM
> Subject: Re: Logging in beans
>
> > Thanks for all of the responses. They've gotten away from my original
> > question just a bit.
> >
> > Assuming that I am using the Commons Logging package/Log4j in my beans,
>
> and I
>
> > want to log something to the Tomcat log file, how can the bean obtain the
> > output stream for the Tomcat log file in a webapp framework independent
>
> way
>
> > --- i.e. I don't want to pass the ActionServlet object to the bean and
> > use its log method, as the bean would then be tied to a particular web
> > application framework (in this case, Struts), which would inhibit its
> > reusability. Instead, I would want to pass something more generic,
> > java.io.OuputStream-like, to the bean, so that it can use whatever
> > logging package I have chosen to log to this stream. The question is
> > really, how
>
> do I
>
> > obtain the java.io.OutputStream for the Tomcat log file in my Struts
>
> action
>
> > class so that I can pass it as a parameter to my bean methods.
> >
> > Charlie
> >
> > On Tuesday 26 February 2002 10:04 am, you wrote:
> > > I think it is nice to use Commons Logging just so you
> > > have the option of easily switching to another logging
> > > framework.  You may want to use some other logging
> > > framework other than Log4J (my choice) or Jdk1.4 at
> > > some point.  You won't have to change any of you code
> > > if you use Commons Logging.  Struts 1.1 is going to
> > > use Commons Logging.  The Struts shared source is
> > > using it as of last nights build.
> > >
> > > David
> > >
> > > --- keithBacon <[EMAIL PROTECTED]> wrote:
> > > > Does anybody know how the new Java 1.4 logging API
> > > > affects things?
> > > > My guess is it increases the desirability of using
> > > > the
> > > > jakarta Commons Logging Package. You can use log4j
> > > > for now & easily switch
> > > > later.
> > > > But for students or people that can gurantee they
> > > > will deploy on Java 1.4
> > > > shouldn't they just use the JDK logging API
> > > > directly?
> > > > But then surely the next release of struts will use
> > > > the Commons logging so we
> > > > should too? Oh boy.
> > > >
> > > >
> > > > --- David Winterfeldt <[EMAIL PROTECTED]>
> > > >
> > > > wrote:
> > > > > I would suggest using the Commons Logging Package
> > > > > (http://jakarta.apache.org/commons/logging.html).
> > > > > This is a generic interface to logging packages.
> > > >
> > > > If
> > > >
> > > > > Log4J is detected, it will use it.
> > > > >
> > > > > excerpt from the website:
> > > > > "The Logging package is an ultra-thin bridge
> > > >
> > > > between
> > > >
> > > > > different logging libraries. Commons components
> > > >
> > > > may
> > > >
> > > > > use the Logging API to remove compile-time and
> > > > > run-time dependencies on any particular logging
> > > > > package, and contributors may write Log
> > > > > implementations for the library of their choice."
> > > > >
> > > > >
> > > > > David
> > > > >
> > > > > --- Phase Web and Multimedia <[EMAIL PROTECTED]>
> > > >
> > > > wrote:
> > > > > > log4j would work well. Schedule away a day or so
> > > >
> > > > to
> > > >
> > > > > > become familiar with it
> > > > > > and download the 1.2b3 version. This will insure
> > > > > > that you are prepared for
> > > > > > the future changes in log4j and will keep you
> > > >
> > > > from
> > > >
> > > > > > programming with
> > > > > > deprecated code.
> > > > > >
> > > > > > http://jakarta.apache.org/log4j/
> > > > > >
> > > > > > Brandon Goodin
> > > > > > Phase Web and Multimedia
> > > > > > P (406) 862-2245
> > > > > > F (406) 862-0354
> > > > > > [EMAIL PROTECTED]
> > > > > > http://www.phase.ws
> > > > > >
> > > > > >
> > > > > > -Original Message-
> > > > > > From: Charlie Toohey
> > > >
> > > > [mailto:[EMAIL PROTECTED]]
> > > >
> > > > > > Sent: Monday, February 25, 2002 7:28 PM
> > > > > > To: [EMAIL PROTECTED]
> > > > > > Subject: Logging in beans
> > > > > >
> > > > > >
> > > > > > I would like to log some information in the
> > > >
> > > > Tomcat
> > > >
> > > > > > log file from my beans.
> > > > > > But I don't want to use the ActionServlet log
> > > > > > method, as passing an
> > > > > > ActionServlet object as a parameter to a bean
> > > >
> > > > would
> > > >
> > > > > > violate the bean
> > > > > > philosophy that beans should be completely
> > > > > > independent of a web applicatio

RE: Properties file declaration

2002-02-26 Thread George McKinney




> -Original Message-
> From: Ursula Pieper [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 26, 2002 2:06 PM
> To: Tomcat Users List
> Subject: Re: Properties file declaration
>
>
>
> Thanks Sriram for the suggestion of loading the properties file from
> within the servlet. Unfortunately, that would involve changing and
> recompiling about 20 or more scripts, since all of them use
> the properties
> file.
>
> I'd really like to do this using the parameter directive
> (Problem still
> described below), also to make it compatible to my collaborator.
>
> Anyone?
>
...
> |The call for is in the servlet looks like this:
> |
> |init(ServletConfig config)
> |throws ServletException
> |{
> |super.init(config);
> |try
> |{
> | configPrefs = new Properties();
> | servletContext = config.getServletContext();
> | if ( config.getInitParameter("CONFIG_FILE") == null )
> | throw new ServletException( "No CONFIG_FILE param" );
> | ...
> |
I think that if you use
if(servletContext.getInitParameter("CONFIG_FILE") == null);
etc.

you'll get what you want. That method is doc'd in jdk 1.3.1, but NOT in my
"Enterprise in a Nutshell"

George.


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




Re: Tomcat 4.0.2 and ejb-local-ref

2002-02-26 Thread Nicolas Moldavsky

It's Redhat 7.2 on Intel with the .tar.gz installation:

 4112877 Feb 23 08:43 jakarta-tomcat-4.0.2.tar.gz

When the server boots up there is no message saying it is linking the the
ejb-local-ref.  However, if I change it to a simple ejb-ref, I get the
following message:

[20:12:30,533,EmbeddedCatalinaServiceSX] linkResourceRefs
[20:12:30,533,EmbeddedCatalinaServiceSX] linkEjbRefs
[20:12:30,533,EmbeddedCatalinaServiceSX] Linking ejb-ref: ejb/X to
JNDI name: X
[20:12:30,567,EmbeddedCatalinaServiceSX] linkSecurityDomain

Nico

On Mon, 25 Feb 2002, Ross Fujii wrote:

> Hello Nicholas,
> 
> What OS are you running on?  Which Tomcat install
> did you use?  I ran into a similar JNDI NamingException
> using the Tomcat 4.0.2 RPM install on a RedHat 7.2
> system (though I am not running JBoss).  I used the
> Gzipped-TAR'd install and I could get the particular
> JNDI resource
> 
> Best regards,
> ---Ross
> 
> >From: Nicolas Moldavsky <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Tomcat 4.0.2 and ejb-local-ref
> >Date: Tue, 26 Feb 2002 00:24:27 -0300 (ART)
> >
> >I'm running Tomcat 4.0.2 + JBoss 2.4.4 and I can't manage to use local ejb
> >interfaces in the servlets running under Tomcat.  I add the
> > section in web.xml, with or without an ejb-link element,
> >and I always get a NamingException: ejb not bound (I'm looking for
> >java:comp/env/ejb/X)
> >
> >Has anyone got this working?  I can use local interfaces from other EJBs.
> >
> >Thanks,
> > Nicolas
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> 
> 
> _
> Join the world’s largest e-mail service with MSN Hotmail. 
> http://www.hotmail.com
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 



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




Tomcat 4 + Apache + Linux + multiple virtual name-based hosts + separate instanc

2002-02-26 Thread Neo Thinker

I have been working on this for a LONG time. There's got to be some
smart guy out there with the answer.

I would like to do this:
On one Red Hat Linux box,
run one instance of Apache,
with multiple name-based virtual hosts,
with a separate instance of Tomcat 4 for each virtual host.

I have gotten the virtual hosts to work without tomcat. I have gotten
multiple tomcat servers to work as standalone. I have gotten 1 virtual
host to work with an instance of tomcat, the other virtual hosts did
not have tomcat (because of a "Web-application not yet deployed" error
when I try to give a WebAppConnection for each virtual host).

If anyone has knowledge of how to do this, please let me know. I am
creating new website so I can even use different technology if
necessary. I am thinking that I can not do this (at least not with
mod_webapp).

Help, please.

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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




[newbie] mod_webapp.so - has EAPI support?

2002-02-26 Thread Charles Swarts

I am trying to setup the following:
Apache1.3.23+SSL+Tomcat4.02 on RedHat7.1

And I am confused on the following:
Does the mod_webapp.so module include EAPI support?
or will I have to recompile it from source (scares a newbie)

thanks,

- charles


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




Re: Properties file declaration

2002-02-26 Thread Ursula Pieper


Thanks Sriram for the suggestion of loading the properties file from 
within the servlet. Unfortunately, that would involve changing and 
recompiling about 20 or more scripts, since all of them use the properties 
file. 

I'd really like to do this using the parameter directive (Problem still 
described below), also to make it compatible to my collaborator. 

Anyone? 

Thanks, ursula


|Hi, 

|my servlets need to access a properties file 
|(/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties). 
|
|I tried to get the parameter to read properly by adding parameter entries 
|at different location. so now:
|
|My server.xml entry looks like this:
|
|
|
|CONFIG_FILE
|/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties
|
|
|
|and the web.xml:
|
|/application
|application
|
|
|CONFIG_FILE
|/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties
|
|
|
|This entry gets recognized at tomcat startup:
|in catalina.out: 
|XmlMapper: org.apache.catalina.core.StandardContext.addParameter( 
CONFIG_FILE, 
|/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties)
|
|The call for is in the servlet looks like this:
|
|init(ServletConfig config)
|throws ServletException
|{
|super.init(config);
|try
|{
| configPrefs = new Properties();
| servletContext = config.getServletContext();
| if ( config.getInitParameter("CONFIG_FILE") == null )
| throw new ServletException( "No CONFIG_FILE param" );
|   ...
|
|
|and I am getting the following error message:
|javax.servlet.ServletException: No CONFIG_FILE param
|
|Can anybody help me straighten this out?
|
|I am new to this and want to get this application to run. I am just now 
|learning java and tomcat, so please excuse my probably trivial question. 
|
|I am running 
|Tomcat 4.0.1
|jdk1.3.1
|on redhat 7.2






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




RE: IlligalStateException -- getOutputStream() has already been called for this response.

2002-02-26 Thread KC Berg

How are you doing the includes? Also when you are using a forward in a
servlet you can not print anything to the output buffer before you use the
forward. Because once the output stream has been sent to the browser the
server can no longer forward that stream to another servlet.

KC  

-Original Message-
From: Dmitry Nikelshpur [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 12:40 PM
To: [EMAIL PROTECTED]
Subject: IlligalStateException -- getOutputStream() has already been
called for this response.


Hello everyone.

I had posted a similar message before, but either did not get replies or 
missed them.

I am using a JavaBean in a JSP page. This bean draws charts and graphs 
depending on supplied data...

When I call the JSP page directly from the browser, the graph displays 
properly, and no error messages are dumped to catalina.out.

When I have a servlet forward to the JSP page, the graphs display 
properly, but I get a message in catalina.out: 
java.lang.IlligalStateException: getOutputStream() has already been 
called for this response.

When I have a servlet include the JSP page, I get garbage in the 
browser, and the same message in catalina.out, 
java.lang.IlligalStateException: getOutputStream() has already been 
called for this response.

I had seen posts regarding this error, and believe that I saw something 
in the bug databasee, but still no solution.
Is this behavior 'normal?' for JSPs / Servlets?

The bean that I am using to create the charts is called jspChart, and is 
at:  http://www.javaside.com/u_jspchart.html
This URL contains a sample JSP page, so any servlet that includes / 
forwards this page should produce above results.

I would apprecieate it if you could BCC me in your replies, to make sure 
I get the message.
Also, if you have any other solutions for creating charts/graphs 
dynamically, with the ability to include/forweard from servlets, I'll be 
more than pleased...

Thanks in advance!


Dmitry



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

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




RE: servlet-mapping problem

2002-02-26 Thread Mark B. Indictor

OK -- I'm having a related problem:

I can hit my servlet with the following httpd.conf and web.xml file setup
with these two URLs:

http://hostname:8080/s2/sb/

And

http://hostname/SiteBlocks/sb/


>From within the servlet, I am trying to reconstruct the URL. I am using the
following code:

...
private String buildURL( HttpServletRequest req ) {
// Build a new absolute URL
StringBuffer url = new StringBuffer();
url.append( req.getScheme() );  // http
url.append( "://" );// http://
url.append( req.getServerName() );  // http://hostname
url.append( ":" );  // http://hostname:
url.append( req.getServerPort() );  // http://hostname:80
url.append( req.getServletPath() ); //
http://hostname:80/SiteBlocks/sb
return url.toString();
}
...

Unfortunately, the URL this produces is either:

http://hostname:8080/sb or http://hostname/sb, 

and not

http://hostname:8080/s2/sb or http://hostname/SiteBlocks/sb

as expected.

Am I doing something wrong? If so, how can I get the desired result?


Thanks for any assistance!

Here's an excerpt from my httpd.conf file:

...

WebAppConnection warpconnection warp localhost:8008
WebAppDeploy examples warpConnection /examples/
WebAppDeploy SiteBlocks warpConnection /SiteBlocks/

...


Here's my entire web.xml file:



http://java.sun.com/dtd/web-app_2_3.dtd";>




SiteBlocks


S2Server


resource
 
/usr/local/jakarta-tomcat-4.0.2/webapps/SiteBlocks/WEB-INF/Site
BlocksServer.properties





SiteBlocks


/sb




- Mark
==
Mark Indictor -- V.P. Engineering
[EMAIL PROTECTED]

Phone:(310)451-3472 FAX:(240)220-6341
http://keyserver.pgp.com/pks/lookup?op=get&search=0x8959F966
== 


-Original Message-
From: Dave Ferguson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 26, 2002 12:11 PM
To: Tomcat Users List
Subject: Re: servlet-mapping problem


This is basic stuff.  It should work.  What URL are you using to invoke the
servlet?  With no mapping the URL would be http://server/servlet/warservlet.
If your mapping is

  /blah

then the URL would be http://server/blah.  Restart Tomcat to be sure your
changes take effect.

- df




Re: High startup and shutdown time of tomcat 4

2002-02-26 Thread Craig R. McClanahan



On Tue, 26 Feb 2002, Jürgen Weber wrote:

> Date: Tue, 26 Feb 2002 19:34:02 +0100
> From: Jürgen Weber <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: High startup and shutdown time of tomcat 4
>
> Hello,
>
> jakarta-tomcat-3.3a has a startup time of 4s (jdk 1.4, NT),
> wheras jakarta-tomcat-4.0.2-LE-jdk14 needs 10s.
>
> Shutdown is also much slower.
>
> The fast startup/shutdown made tomcat 3 so great for development.
> Why is it that catalina is so much slower in startup?
> Can anything be done to make it faster?

The way to avoid this startup time is to not restart Tomcat at all :-).

Tomcat includes a Manager webapp that includes the ability to dynamically
install, reload, and remove individual webapps, without ever having to
restart Tomcat itself.  The commands are simple HTTP requests with query
string parameters, so it is really easy to script.  More info:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

In the nightly builds of Tomcat 4, you will also find that we've included
some custom tasks for the Ant build tool so that you can install, reload,
and remove webapps directly from your build.xml file.  It takes a second
or two to execute these.

>
> Thanks,
> Juergen
>

Craig


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




Re: High startup and shutdown time of tomcat 4

2002-02-26 Thread Sten Karlson

You could manually define the minium heap size for the java VM at startup.
eg. java -Xms128m

- Sten


Jürgen Weber wrote:

> Hello,
>
> jakarta-tomcat-3.3a has a startup time of 4s (jdk 1.4, NT),
> wheras jakarta-tomcat-4.0.2-LE-jdk14 needs 10s.
>
> Shutdown is also much slower.
>
> The fast startup/shutdown made tomcat 3 so great for development.
> Why is it that catalina is so much slower in startup?
> Can anything be done to make it faster?
>
> Thanks,
> Juergen
>
> _
> Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: 
> http://messenger.msn.de
>
>
> -- 
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 





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




Re: webapps directory required for Warp?

2002-02-26 Thread j-y ciccoli

I think that it's possible to create virtual hosts wich point to an another
location; try to find the following string in your server.xml file :



... this is my default configuration.

- Original Message -
From: "Dave Ferguson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 9:34 PM
Subject: Re: webapps directory required for Warp?


> Warp.  I have mod_webapp.so and libapr.dll in my Apache "modules"
directory.  I have the following in my httpd.conf.
>
>   LoadModule webapp_module modules/mod_webapp.so
>   AddModule mod_webapp.c
>   WebAppConnection conn warp localhost:8008
>   WebAppDeploy examples conn /examples/
>
> If my docBase is not under webapps, I don't know what to use for the 2nd
parameter of WebAppDeploy line...
>
> j-y ciccoli wrote:
>
> > What have you installed as Tomcat-Apache plug-in?
> >
> > - Original Message -
> > From: "Dave Ferguson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 26, 2002 8:29 PM
> > Subject: webapps directory required for Warp?
> >
> > > Using the Warp connector, is it possible to have the docBase of a web
app
> > somewhere else besides the "webapps" directory?
> > > I am using Tomcat 4.0.2 and Apache 1.3.20 on Win2K.
> > >
> > > Thanks for any help!
> > >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




RE: many java processes

2002-02-26 Thread KC Berg

also tomcat will only open as many pid's/thread's as is specified in your
server.xml

maxProcessors="75" part of the connector params. 

the above is the default. Running "top" may make it look like a lot of stuff
is running but if you look at the memory and CPU utilization of the pid's
you'll notice they are very low. Also the number of pid's will change as the
number of concurrent users to your system increases or decreases.

-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 11:48 AM
To: [EMAIL PROTECTED]
Subject: many java processes


Hello everyone,

   I am running a red hat 6.2 tomcat 4.01 webapp server configured for
virtual host.

   I have noticed that if tomcat stays running it "builds" up a lot of java
processes.  Has this caused anyone any problems with anyones elses servers?

   I am afraid that if a put a few java domains on the server the java
processes will begin to go through the roof.

 Any information/insites would be greatly appreciated.

-chad  

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

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




Re: webapps directory required for Warp?

2002-02-26 Thread Dave Ferguson

Warp.  I have mod_webapp.so and libapr.dll in my Apache "modules" directory.  I have 
the following in my httpd.conf.

  LoadModule webapp_module modules/mod_webapp.so
  AddModule mod_webapp.c
  WebAppConnection conn warp localhost:8008
  WebAppDeploy examples conn /examples/

If my docBase is not under webapps, I don't know what to use for the 2nd parameter of 
WebAppDeploy line...

j-y ciccoli wrote:

> What have you installed as Tomcat-Apache plug-in?
>
> - Original Message -
> From: "Dave Ferguson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 26, 2002 8:29 PM
> Subject: webapps directory required for Warp?
>
> > Using the Warp connector, is it possible to have the docBase of a web app
> somewhere else besides the "webapps" directory?
> > I am using Tomcat 4.0.2 and Apache 1.3.20 on Win2K.
> >
> > Thanks for any help!
> >


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




RE: What does manager do anyway?

2002-02-26 Thread August Detlefsen

Yes. On login, a bean is put in the user's session with name, whether
the user is authenticated, and some other tracking data and it is
indeed Serializable.  


--- "Cox, Charlie" <[EMAIL PROTECTED]> wrote:
> 
> 
> > -Original Message-
> > From: August Detlefsen [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 25, 2002 7:24 PM
> > To: Tomcat Users List
> > Subject: Re: What does manager do anyway? 
> > 
> > 
> > Thanks Craig, Glad to know I can add a servlet without having to
> > restart the entire server! I'll try a redeploy for the next servlet
> I
> > add. 
> > 
> > As for the sessions, prior to installing this servlet, they were in
> > fact getting dropped each time I reloaded with the manager. I was
> > forced to login again with every start-stop. Could this be because
> the
> > webapp was strictly JSP, with no servlet component? 
> > 
> 
> that's odd because I don't have this problem. I put a String into the
> session during login and it stays after stop/start provided that my
> session
> didn't timeout. I use servlets, but it shouldn't matter because jsp's
> are
> also servlets.
> 
> are your objects Serializable as Craig mentioned?
> 
> Charlie
> 
> > 
> > 
> > 
> > --- "Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:
> > > 
> > > 
> > > On Mon, 25 Feb 2002, August Detlefsen wrote:
> > > 
> > > > Date: Mon, 25 Feb 2002 15:24:31 -0800 (PST)
> > > > From: August Detlefsen <[EMAIL PROTECTED]>
> > > > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
> > > >  [EMAIL PROTECTED]
> > > > To: Tomcat Users List <[EMAIL PROTECTED]>
> > > > Subject: What does manager do anyway?
> > > >
> > > > Can I use manager to pick up changes in my webapp's web.xml?
> > > >
> > > > I added a new servlet and tried stop-start via the manager and
> it
> > > was
> > > > not picked up. Likewise with manager/reload.
> > > >
> > > > Do I have to do a full remove-install for it to pick up the
> > > changes?
> > > >
> > > 
> > > Yes.  That's a current restriction of the way that an application
> > > reload
> > > is implemented (in org.apache.catalina.core.StandardContext), not
> of
> > > the
> > > manager webapp servlet itself.
> > > 
> > > > Also, isn't stopping and starting a context supposed to remove
> any
> > > > active sessions in the context?
> > > >
> > > 
> > > No (and this works across shutting down and restarting Tomcat as
> > > well).
> > > As a matter of fact, if your session attributes are Serializable,
> > > they will get saved and restored as well.  This is a tremendously
> > > helpful
> > > feature when you're debugging a webapp that takes multiple
> > > interactions to
> > > get to the page you're testing, you make a change, and don't want
> to
> > > take
> > > the time to navigate from the top of your application's tree
> again.
> > > 
> > > Note, however, that this is a *Tomcat* feature, not 
> > anything required
> > > by
> > > the specs, so you cannot count on it on any other server.
> > > 
> > > > -August
> > > 
> > > Craig
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




RE: Servlet POST results in 404 error

2002-02-26 Thread Keith Ng

Hi John, have u solved it already?

someone here said that u might not have define yr post method

would u care to show us yr post mthod?(whole defination) pls do the
following.
add a System.out.println("post method invoked"); under your post method
implemention for us to see.
Is tat post method even invoked?

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 12:11 AM
To: Tomcat Users List (E-mail)
Subject: Servlet POST results in 404 error


All,

TomCat 4.0.1
Apache 1.3
mod_WebApp
Solaris 8

I have a servlet that returns a 404 error whenever a POST is sent. GET works
fine. The servlet uses sessions - not sure if this has anything to do with
it. My server.xml just defines a context and a logger. The web.xml has a
servlet name and mapping, nothing more.
The servlet was originally written for JServ - could this have something to
do with it?

There's nothing in the logs.

I'm not a servlet programmer so I have no ideas!

Any suggestions??

Thanks,

John

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



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




StandardWrapperValve[jsp]: Servlet.service() - ArrayIndexOutOfBoundsException

2002-02-26 Thread Poppy Javid

Hi,

I am using Tomcat 4.0.2 on SunOS 5.6 with JDK 1.2.2_05.

I am having an application using JSP. The servlet container crashes very so
often.

After this error, I am unable to reach any page and I have to reboot the
container. Any help would be greatly appreciated,

Thank you very much
poppy

Here is the exact error from Tomcat log:

2002-02-26 07:28:48 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp
 threw exception
java.lang.ArrayIndexOutOfBoundsException: 19287040
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compil
ed Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Comp
iled Code)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Compiled
Cod
e)
at org.apache.catalina.core.StandardWrapperValve.invoke(Compiled
Code)
at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled
Code)
at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(Compiled Code)
at org.apache.catalina.core.StandardContextValve.invoke(Compiled
Code)
at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled
Code)
at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled
Code)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Compiled C
ode)
at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled
Code)
at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(Compiled Code)
at org.apache.catalina.core.StandardContext.invoke(Compiled Code)
at org.apache.catalina.core.StandardHostValve.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled
Code)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Compiled
Code)
at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled
Code)
at org.apache.catalina.valves.ErrorReportValve.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled
Code)
at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled
Code)
at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(Compiled Code)
at org.apache.catalina.core.StandardEngineValve.invoke(Compiled
Code)
at org.apache.catalina.core.StandardPipeline.invokeNext(Compiled
Code)
at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(Compiled Code)
at org.apache.catalina.core.StandardPipeline.invoke(Compiled Code)
at org.apache.catalina.core.ContainerBase.invoke(Compiled Code)
at org.apache.catalina.connector.http.HttpProcessor.process(Compiled
Cod
e)
at org.apache.catalina.connector.http.HttpProcessor.run(Compiled
Code)
at java.lang.Thread.run(Thread.java:479)


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




Re: servlet-mapping problem

2002-02-26 Thread Dave Ferguson

This is basic stuff.  It should work.  What URL are you using to invoke the servlet?  
With no mapping the URL would be http://server/servlet/warservlet.  If your mapping is

  /blah

then the URL would be http://server/blah.  Restart Tomcat to be sure your changes take 
effect.

- df

Takeshi L Toyohara wrote:

> howdy,
>
> i am trying to just play around with tomcat and try to get some servlets
> running.  I am having a problem getting the servlet-mapping to work in my
> web.xml and am wondering if i can get you guys to help out.
>
> here's my web.xml.  the servlet-mapping tag works only the way it is now (im
> guessing b/c its actually only using the invoker servlet).  i cant change it
> to anything else, such as /wars or /blah, etc. and get it to work.  any
> ideas?
>
> any info is much appreciated!
>
> cheers
> t
>
> 
>
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
> WAR TEST
> Testing WAR'ing files
>
> 
> warservlet
> the hello dude servlet
> wartest.HelloDudeServlet
> 
>  helloparam
>  Hello Dude
> 
> 
>
>   
> warservlet
> /servlet/warservlet
>   
>
> 
>


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




Re: J2EE, JSP, SERVLETS

2002-02-26 Thread August Detlefsen

There are a couple of reasons to pick JSP. I usually tell bosses that
we use java because it is easy to replicate across multiple hardware as
the demand for the app grows (They love thinking about growing demand).


Security is an issue too, especially with M$ products (not sure about
PHP). How many viruses have we seen in the past few years effecting
IIS, Exchange and NT? 

There are some good whitepapers comparing JSP to other technologies on
the JavaSoft site. here's one:

Comparing Methods For Server-Side Dynamic Content White Paper
http://java.sun.com/products/jsp/jspservlet.html

Decisions, Decisions: J2EETM vs. .NET 
http://www.theserverside.com/resources/article.jsp?l=J2EE-vs-DOTNET


--- hanasaki <[EMAIL PROTECTED]> wrote:
> What are your boss' looking for?  What motivates them?
> 
> Keith Ng wrote:
> > nono
> > dun get me wrong
> > im currently doing a J2EE project based on
> > servlets/jsp/javamail/jdbc/possibly EJB(low possibility)
> > there are 2 things i need to do.
> > 
> > 1)i need to noe if i ve been missing out on some of the
> capabilities, which
> > i did not implement
> > 2) i need to write in my report the major advantages my web
> application has
> > over the others. I noe jsp/servlets are the best around but i cant
> quite
> > explain.
> > 
> > However, some kind souls have emailed me and explained to me and
> help clear
> > some of my doubts.
> > 
> > -Original Message-
> > From: Rick K [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 26, 2002 3:41 PM
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: Re: J2EE, JSP, SERVLETS
> > 
> > 
> > --- Keith Ng <[EMAIL PROTECTED]> wrote:
> > 
> >>Hi guys
> >>
> >>There has been a question thats bugging me for qute
> >>some time. I noticed
> >>many bank sites, or big companies use JSP/SERVLETS
> >>for their websites. Is
> >>there a particular reason why jsp/servlets are
> >>preferred over
> >>asp/php/coldfusion? I even realise a site
> >>(dbs.com.sg)using applet textfield
> >>as their forms ... isit supposed to be more secure
> >>this way? Can someone
> >>clear my doubts? thanks
> >>
> > 
> > Why does it bug you that big companies use servlets
> > and JSP? Why do you have doubts about Java?
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> > 
> > --
> > To unsubscribe:  
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> > 
> > 
> > 
> > 
> > _
> > 
> > Do You Yahoo!?
> > 
> > Get your free @yahoo.com address at http://mail.yahoo.com
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe:  
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> > 
> > 
> 
> 
> -- 
> =
> = [EMAIL PROTECTED]  =
> = Spam : Unhealthy and High in Sodium and Cholesterol   =
> =
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




Re: URGENT! PLEASE.. STRANGE COMPILING ERROR

2002-02-26 Thread Dmitry Nikelshpur

Try adding the path to servlet.jar to your CLASSPATH.
I believe that should fix your problem.

Dmitry

Catalin wrote:

>Hello everyone!
>
>
>I have installed Apache_Tomcat_4.0 (on a win2k OS and jdk1.3.1 support). I have a web
>application with servlets. I can't compile any more servlets (I
>usually compile with an IDE). The main errors are:
>
>C:\Apache_Tomcat_4.0\webapps\ROOT\WEB-INF\classes\myServlet.java:4: package 
>javax.servlet does not exist
>import javax.servlet.*;
>^
>C:\Apache_Tomcat_4.0\webapps\ROOT\WEB-INF\classes\myServlet.java:5: package 
>javax.servlet.http does not exist
>import javax.servlet.http.*;
>^
>
>line 4 and 5 of my servlet are:
>
>import javax.servlet.*;
>import javax.servlet.http.*;
>
>The strange thing is that the "javax" package (and all the classes)
>are in the same directory with myServlet.java and I can compile
>other java applications that servlets.
>I don't see how this is happening.!!!
>I compiled in text mode (javac myServlet.java) the same errors. I
>uninstalled the jdk1.3.1 and I'have installed again, I verified the
>system variables and they are correct. The erors persists.
>A few days ago this error wasn't on compiling the very same servlet.
> I have another PC with exactly the same settings like my machine and
> all is OK on that PC
>What happened? Please can anyone help me?
>
>Thanks for any tip!
>
>Catalin
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>



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




RE: Servlet POST results in 404 error

2002-02-26 Thread John Wadkin

Marvellous - spot on Randy. I'd just used servletname/ as the mapping. No
idea why. Obvious now that it won't work. I guess I'll have to lay off the
aluminium pans :)

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: 26 February 2002 18:59
To: 'Tomcat Users List'
Subject: RE: Servlet POST results in 404 error



It sounds like the servlet is trying to use PathInfo (extra
characters beyond the real servlet's name for parameters).  In your web.xml
you probably want to make your URL mapping something like /servletname/* so
that every URL that starts with servletname is called for that servlet.

Randy

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 26, 2002 2:44 PM
> To: 'Tomcat Users List'
> Subject: RE: Servlet POST results in 404 error
> 
> 
> The servlet is an application that has numerous modes. If I 
> want to create a
> new user of the app, I type the URL:
> 
> servername/webapp/servletname?mode=19
> 
> I enter all the details of the new user, and the servlet 
> "posts" this info -
> a get would show password details in the URL. It then creates a page:
> 
> servername/webapp/servletname/stringofnumbers
> 
> Informing me of the outcome of the attempt to create a new user - i.e.
> success or failure. At this point it fails with a 404. The 
> logs give exactly
> the same info. I've checked everything I can think of and changed the
> DocumentRoot in Apache to the webapps/webappname directory. 
> No joy! As I see
> it there are two possibilities:
> 
> I've misconfigured TC and/or Apache - but how?
> The servlet implements or does something that is no longer 
> supported in
> TomCat and/or the latest servlet API.
> 
> I'm at a loss!
> 
> Thanks,
> 
> John
> 
> 
> -Original Message-
> From: Ken Martin [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2002 19:08
> To: Tomcat Users List
> Subject: Re: Servlet POST results in 404 error
> 
> 
> On Tuesday, February 26, 2002, at 12:25 PM, John Wadkin wrote:
> 
> > I'd give you the URL but I'd have to give passwords and 
> > stuff... It goes
> > like this:
> >
> > servername/webapp/servletname/stringofnumbers
> 
> I had some JSP pages that worked on Netscape but not Tomcat. It 
> turned out that Tomcat wanted to see a "=" separating the 
> name=value pairs. From your example above, it looks like you're 
> just trying to pass some numbers so you don't actually need 
> the "=" (informationally), but Tomcat does to pass it on through 
> the request.
> 
> Simply adding the "=" fixed it for me. Now, sometimes I'll add a 
> label as the value, like: thedata=a_label, which is a visual 
> convenience but ignored by the backend.
> 
> Just my experience.
> 
> Ken Martin

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




Re: webapps directory required for Warp?

2002-02-26 Thread j-y ciccoli

What have you installed as Tomcat-Apache plug-in?

- Original Message -
From: "Dave Ferguson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 8:29 PM
Subject: webapps directory required for Warp?


> Using the Warp connector, is it possible to have the docBase of a web app
somewhere else besides the "webapps" directory?
> I am using Tomcat 4.0.2 and Apache 1.3.20 on Win2K.
>
> Thanks for any help!
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




RE: Internal Server Error with METHOD:POST

2002-02-26 Thread Reynir Hübner

Hi, 
there are few possibilities ... 

1. that you need to restart tomcat to get the servlet loaded. 
2. case sensitivity, is the taskserv in correct case ? 
3. is, that you're servlet is not compiled. (you only have .java under
WEB-INF/classes)

sounds like one of those, but it could always be something else.

hope it helps
[EMAIL PROTECTED]
 

> -Original Message-
> From: fusterjj [mailto:[EMAIL PROTECTED]]
> Sent: 26. febrúar 2002 19:26
> To: 'Tomcat Users List'
> Subject: Internal Server Error with METHOD:POST
> 
> 
> Hello everyone, 
> I am trying to do a simple servlet with an html form using 
> the POST method. The html form is just a simple input form 
> where the user enters 4 fields of data. The HTML invokes the 
> taskserv, wich is the servlet with the post method and the 
> driver connection to mysql database in order to insert the 
> data in the database. The problem is that I am getting an 
> Internal Server Error which says:
> Cannot allocate servlet instance for path /servlet/taskserv; 
> however the servlet is inside the WEB-INF directory and 
> inside the CLASSES folder, so it should not have any problem 
> to find the class. I have changed the code a couple of times 
> but I am getting the same error. Does anyone know why is this 
> happening?? Is there has to be with  my Tomcat configuration 
> or the web.xml or the code??? 
> I would really appreciate if you help me. If you are willing 
> I can send you the code and the Exception report to make it easier.
> 
>  Thank you all!!!
> 
> 
> 

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




RE: Servlet POST results in 404 error

2002-02-26 Thread Randy Layman


It sounds like the servlet is trying to use PathInfo (extra
characters beyond the real servlet's name for parameters).  In your web.xml
you probably want to make your URL mapping something like /servletname/* so
that every URL that starts with servletname is called for that servlet.

Randy

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 26, 2002 2:44 PM
> To: 'Tomcat Users List'
> Subject: RE: Servlet POST results in 404 error
> 
> 
> The servlet is an application that has numerous modes. If I 
> want to create a
> new user of the app, I type the URL:
> 
> servername/webapp/servletname?mode=19
> 
> I enter all the details of the new user, and the servlet 
> "posts" this info -
> a get would show password details in the URL. It then creates a page:
> 
> servername/webapp/servletname/stringofnumbers
> 
> Informing me of the outcome of the attempt to create a new user - i.e.
> success or failure. At this point it fails with a 404. The 
> logs give exactly
> the same info. I've checked everything I can think of and changed the
> DocumentRoot in Apache to the webapps/webappname directory. 
> No joy! As I see
> it there are two possibilities:
> 
> I've misconfigured TC and/or Apache - but how?
> The servlet implements or does something that is no longer 
> supported in
> TomCat and/or the latest servlet API.
> 
> I'm at a loss!
> 
> Thanks,
> 
> John
> 
> 
> -Original Message-
> From: Ken Martin [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2002 19:08
> To: Tomcat Users List
> Subject: Re: Servlet POST results in 404 error
> 
> 
> On Tuesday, February 26, 2002, at 12:25 PM, John Wadkin wrote:
> 
> > I'd give you the URL but I'd have to give passwords and 
> > stuff... It goes
> > like this:
> >
> > servername/webapp/servletname/stringofnumbers
> 
> I had some JSP pages that worked on Netscape but not Tomcat. It 
> turned out that Tomcat wanted to see a "=" separating the 
> name=value pairs. From your example above, it looks like you're 
> just trying to pass some numbers so you don't actually need 
> the "=" (informationally), but Tomcat does to pass it on through 
> the request.
> 
> Simply adding the "=" fixed it for me. Now, sometimes I'll add a 
> label as the value, like: thedata=a_label, which is a visual 
> convenience but ignored by the backend.
> 
> Just my experience.
> 
> Ken Martin
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




Re: High startup and shutdown time of tomcat 4

2002-02-26 Thread Wolfgang Stein

Hi,

the startup time will even increase if you enable a SSL-connector.
But you don't have to restart the whole tomcat to restart
an application (compared with TC 3.2, don't know 3.3),
if you use the manager app instead.

You can also enable dynamic servlet reloading during development.

I suppose the startup time is a tribute to the better
catalina architecture, new features and servlet 2.3 spec conformity.

I also removed all unused applications (e.g. examples, doc ...)
to reduce the start up time. 

I didn't notice a slower shutdown.

Gruss,
Wolfgang
 

> -Ursprüngliche Nachricht-
> Von: Jürgen Weber [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 26. Februar 2002 19:34
> An: [EMAIL PROTECTED]
> Betreff: High startup and shutdown time of tomcat 4
> 
> 
> Hello,
> 
> jakarta-tomcat-3.3a has a startup time of 4s (jdk 1.4, NT),
> wheras jakarta-tomcat-4.0.2-LE-jdk14 needs 10s.
> 
> Shutdown is also much slower.
> 
> The fast startup/shutdown made tomcat 3 so great for development.
> Why is it that catalina is so much slower in startup?
> Can anything be done to make it faster?
> 
> Thanks,
> Juergen
> 
> _
> Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: 
> http://messenger.msn.de
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>

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




RE: Servlet POST results in 404 error

2002-02-26 Thread John Wadkin

The servlet is an application that has numerous modes. If I want to create a
new user of the app, I type the URL:

servername/webapp/servletname?mode=19

I enter all the details of the new user, and the servlet "posts" this info -
a get would show password details in the URL. It then creates a page:

servername/webapp/servletname/stringofnumbers

Informing me of the outcome of the attempt to create a new user - i.e.
success or failure. At this point it fails with a 404. The logs give exactly
the same info. I've checked everything I can think of and changed the
DocumentRoot in Apache to the webapps/webappname directory. No joy! As I see
it there are two possibilities:

I've misconfigured TC and/or Apache - but how?
The servlet implements or does something that is no longer supported in
TomCat and/or the latest servlet API.

I'm at a loss!

Thanks,

John


-Original Message-
From: Ken Martin [mailto:[EMAIL PROTECTED]]
Sent: 26 February 2002 19:08
To: Tomcat Users List
Subject: Re: Servlet POST results in 404 error


On Tuesday, February 26, 2002, at 12:25 PM, John Wadkin wrote:

> I'd give you the URL but I'd have to give passwords and 
> stuff... It goes
> like this:
>
> servername/webapp/servletname/stringofnumbers

I had some JSP pages that worked on Netscape but not Tomcat. It 
turned out that Tomcat wanted to see a "=" separating the 
name=value pairs. From your example above, it looks like you're 
just trying to pass some numbers so you don't actually need 
the "=" (informationally), but Tomcat does to pass it on through 
the request.

Simply adding the "=" fixed it for me. Now, sometimes I'll add a 
label as the value, like: thedata=a_label, which is a visual 
convenience but ignored by the backend.

Just my experience.

Ken Martin


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

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




IlligalStateException -- getOutputStream() has already been called for this response.

2002-02-26 Thread Dmitry Nikelshpur

Hello everyone.

I had posted a similar message before, but either did not get replies or 
missed them.

I am using a JavaBean in a JSP page. This bean draws charts and graphs 
depending on supplied data...

When I call the JSP page directly from the browser, the graph displays 
properly, and no error messages are dumped to catalina.out.

When I have a servlet forward to the JSP page, the graphs display 
properly, but I get a message in catalina.out: 
java.lang.IlligalStateException: getOutputStream() has already been 
called for this response.

When I have a servlet include the JSP page, I get garbage in the 
browser, and the same message in catalina.out, 
java.lang.IlligalStateException: getOutputStream() has already been 
called for this response.

I had seen posts regarding this error, and believe that I saw something 
in the bug databasee, but still no solution.
Is this behavior 'normal?' for JSPs / Servlets?

The bean that I am using to create the charts is called jspChart, and is 
at:  http://www.javaside.com/u_jspchart.html
This URL contains a sample JSP page, so any servlet that includes / 
forwards this page should produce above results.

I would apprecieate it if you could BCC me in your replies, to make sure 
I get the message.
Also, if you have any other solutions for creating charts/graphs 
dynamically, with the ability to include/forweard from servlets, I'll be 
more than pleased...

Thanks in advance!


Dmitry



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




webapps directory required for Warp?

2002-02-26 Thread Dave Ferguson

Using the Warp connector, is it possible to have the docBase of a web app somewhere 
else besides the "webapps" directory?
I am using Tomcat 4.0.2 and Apache 1.3.20 on Win2K.

Thanks for any help!




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




Internal Server Error with METHOD:POST

2002-02-26 Thread fusterjj

Hello everyone, 
I am trying to do a simple servlet with an html form using the POST method. The html 
form is just a simple input form where the user enters 4 fields of data. The HTML 
invokes the taskserv, wich is the servlet with the post method and the driver 
connection to mysql database in order to insert the data in the database. The problem 
is that I am getting an Internal Server Error which says:
Cannot allocate servlet instance for path /servlet/taskserv; however the servlet is 
inside the WEB-INF directory and inside the CLASSES folder, so it should not have any 
problem to find the class. I have changed the code a couple of times but I am getting 
the same error. Does anyone know why is this happening?? Is there has to be with  my 
Tomcat configuration or the web.xml or the code??? 
I would really appreciate if you help me. If you are willing I can send you the code 
and the Exception report to make it easier.

 Thank you all!!!





Re: Servlet POST results in 404 error

2002-02-26 Thread Ken Martin

On Tuesday, February 26, 2002, at 12:25 PM, John Wadkin wrote:

> I'd give you the URL but I'd have to give passwords and 
> stuff... It goes
> like this:
>
> servername/webapp/servletname/stringofnumbers

I had some JSP pages that worked on Netscape but not Tomcat. It 
turned out that Tomcat wanted to see a "=" separating the 
name=value pairs. From your example above, it looks like you're 
just trying to pass some numbers so you don't actually need 
the "=" (informationally), but Tomcat does to pass it on through 
the request.

Simply adding the "=" fixed it for me. Now, sometimes I'll add a 
label as the value, like: thedata=a_label, which is a visual 
convenience but ignored by the backend.

Just my experience.

Ken Martin


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




Tomcal with SSL?

2002-02-26 Thread Cevikce, Mehmet

Hello everyone,
I have one question regards to certificate based authentication on Tomcat.
Assume I configured tomcat for SSL and imported my client certificate to the
server .keystore file. When I connect to Tomcat 4.0 I get authenticated
succesfully but now I need to configure the Tomcat Realm or any other
possible ways for authorization. Since client never sent his/her userid and
password how can I setup JNDI Realm or basic Tomcat realm? 


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




RE: many java processes

2002-02-26 Thread KC Berg

all threads started in java will show up as pid's in Linux. Linux does not
do true threading. it's not a big deal. if you see to many check your code
for opening threads. also check your garbage collection settings.

-Original Message-
From: chad kellerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 11:48 AM
To: [EMAIL PROTECTED]
Subject: many java processes


Hello everyone,

   I am running a red hat 6.2 tomcat 4.01 webapp server configured for
virtual host.

   I have noticed that if tomcat stays running it "builds" up a lot of java
processes.  Has this caused anyone any problems with anyones elses servers?

   I am afraid that if a put a few java domains on the server the java
processes will begin to go through the roof.

 Any information/insites would be greatly appreciated.

-chad  

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

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




many java processes

2002-02-26 Thread chad kellerman

Hello everyone,

   I am running a red hat 6.2 tomcat 4.01 webapp server configured for virtual host.

   I have noticed that if tomcat stays running it "builds" up a lot of java processes. 
 Has this caused anyone any problems with anyones elses servers?

   I am afraid that if a put a few java domains on the server the java processes will 
begin to go through the roof.

 Any information/insites would be greatly appreciated.

-chad  

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




High startup and shutdown time of tomcat 4

2002-02-26 Thread Jürgen Weber

Hello,

jakarta-tomcat-3.3a has a startup time of 4s (jdk 1.4, NT),
wheras jakarta-tomcat-4.0.2-LE-jdk14 needs 10s.

Shutdown is also much slower.

The fast startup/shutdown made tomcat 3 so great for development.
Why is it that catalina is so much slower in startup?
Can anything be done to make it faster?

Thanks,
Juergen

_
Testen Sie MSN Messenger für Ihren Online-Chat mit Freunden: 
http://messenger.msn.de


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




RE: Servlet POST results in 404 error

2002-02-26 Thread John Wadkin

I'm reasonably confident that the doPost method is defined. The servlet is
currently working fine under JServ at another University.
Re. using Netscape - I can't think of a less pleasant form of torture :)
I'll try it though. I always make a point of turning off friendly HTTP error
messages in IE.
The Apache thing interests me - I'll look into. It didn't occur to me to
check Apache.
I'd give you the URL but I'd have to give passwords and stuff... It goes
like this:

servername/webapp/servletname/stringofnumbers

The log for TomCat shows a valid URL - i.e. I can't see anything wrong with
the URL. Worryingly, if (after I get the 404) I type a / after the string of
numbers and press "Enter", the contents of the post (inc. passwords) appear
in the browser as a 501 error!
The rest of the servlet works fine - it's just the post method for some
reason.

I think it might be relevant to say that the servlet was written and
installed in the mid-nineties. Nothing major has been done to it since... My
Uni has agreed to "test" if the servlet will work on a more modern platform,
amongst other things. I've only just started working with servlets so I'm
not aware of the historical context - e.g. major changes between JServ and
Apache, changes in the Java and/or Servlet spec's.

Thanks,

John

-Original Message-
From: Markus Spath [mailto:[EMAIL PROTECTED]]
Sent: 26 February 2002 18:05
To: Tomcat Users List
Subject: Re: Servlet POST results in 404 error


did you define the doPost method in your servlet?

if not add:

...
public void doPost(HttpServletRequest request, HttpServletResponse response)
{
   doGet(request, response);
}
..

hth,
markus


John Wadkin wrote:

> I'd appreciate a response on this! I've spent time searching the Net but
> haven't turned up anything useful. I don't think I've misconfigured
anything
> in my server.xml or web.xml...
> It's just the POST method that doesn't work - no idea why!
> 
> Suggestions please!!
> 
> Thanks,
> 
> John
> 
> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2002 16:11
> To: Tomcat Users List (E-mail)
> Subject: Servlet POST results in 404 error
> 
> 
> All,
> 
> TomCat 4.0.1
> Apache 1.3
> mod_WebApp
> Solaris 8
> 
> I have a servlet that returns a 404 error whenever a POST is sent. GET
works
> fine. The servlet uses sessions - not sure if this has anything to do with
> it. My server.xml just defines a context and a logger. The web.xml has a
> servlet name and mapping, nothing more.
> The servlet was originally written for JServ - could this have something
to
> do with it?
> 
> There's nothing in the logs.
> 
> I'm not a servlet programmer so I have no ideas!
> 
> Any suggestions??
> 
> Thanks,
> 
> John
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 



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

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




Re: SSL Client authentication with standalone Tomcat

2002-02-26 Thread Wolfgang Stein

> The client browser scans his (previously imported) client certs
> for a matching cert isssuer/signer and sends (?) this to the server.

This part should read:
The client browser scans his (previously imported) client certs
for a matching cert issuer/signer, fills / pops up a choice dialog
box to select a client cert from, 
and sends (?) the users selection back to the server.

This choice box was usually empty in MS IE. Read my previous
posting "Any success with Tomcat 4.0.2 and client
certificates in MS IE ?"


Wolfgang Stein wrote:
> 
> As far as i understand the client-auth handshake,
> the server sends a list of trusted CAs to the client.
> 
> This list is take from
> \lib\security\cacerts
> So you have to import your CA-cert into that file,
> instead of your .keystore .
> There is no need to import the client cert into cacerts or keystore.
> 
> The client browser scans his (previously imported) client certs
> for a matching cert isssuer/signer and sends (?) this to the server.
> 
> You will face a difference in comparism of the ca certs between
> nestcape / MS IE.
> 
> Gruß,
> Wolfgang
> 
> 
> > -Ursprüngliche Nachricht-
> > Von: Brian Palmer [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 26. Februar 2002 11:58
> > An: [EMAIL PROTECTED]
> > Betreff: SSL Client authentication with standalone Tomcat
> >
> >
> > I'm trying to set up for a simple project client-authentication and CA
> > abilities, using standalone tomcat and openssl. I'm not having
> > luck. The short version is, when I enable clientAuth, I am unable to
> > connect to the server, getting various messages (in Mozilla 0.9.8, I
> > get no error messages but the page will not load, using openssl
> > s_client I get a write error).
> >
> > Forgive me in advance for this long message, but my hope is that by
> > explicitly stating what I'm doing, it will be easy for someone more
> > experienced to see where I'm going wrong. I've spent much of the last
> > 2 days searching online for information and trying different
> > approaches; most of the problems/solutions don't give a lot of details
> >
> > I've done the following:
> >
> > Step 1: Generate the tomcat request for certificate
> > keytool -genkey -alias tomcat -keyalg RSA
> >
> > keytool -certreq -alias tomcat -file my.csr
> >
> > Step 2: Generate the ca certificate
> > openssl req -new -newkey rsa:512 -nodes -out ca.req \
> > -keyout ca.key
> >
> > openssl x509 -trustout -signkey ca.key -days 365  \
> >  -req -in ca.req -out ca.crt
> >
> > Step 3: Sign the tomcat request to generate tomcat certificate
> > openssl x509 -CA ca.crt -CAkey ca.key -in my.csr \
> >  -out my.crt -req -CAcreateserial
> >
> > Step 4: Import both into my keystore
> > keytool -import -file ca.crt -alias RootCert
> >
> > keytool -import -file my.crt -alias tomcat
> >
> > I can then stop and restart tomcat, and non-client-authenticated https
> > works. I then go on to
> >
> > Step 5: Generate a client certificate
> > openssl req -new -newkey rsa:512 -nodes \
> > -out client.req -keyout client.key
> >
> > openssl x509 -CA ca.crt -CAkey ca.key \
> >  -req -in client.req \
> >   -out client.crt
> >
> > I then enable clientAuth="true", and try to connect to tomcat using
> > the openssl s_client:
> > openssl s_client -cert client.crt -key client.key \
> >  -connect localhost:8443
> > and get the following output:
> > CONNECTED(0003)
> > depth=1 /C=US/ST=California/L=Stanford/O=Stanford
> > University/OU=CSD/CN=UStorit [EMAIL PROTECTED]
> > verify error:num=19:self signed certificate in certificate chain
> > verify return:0
> > write:errno=104
> >
> > Any ideas? Or ideas on how to debug this? (I'm coming up against a
> > deadline, so any hints much appreciated)
> >
> > --
> > Brian Palmer
> > "Whoever fights monsters should see to it that in the process he does
> > not become a monster. And when you look long into an abyss, the abyss
> > also looks into you"  - Nietzsche
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >

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




RE: Servlet POST results in 404 error

2002-02-26 Thread Randy Layman


Is it possible that your servlet is seeing the POST, processing it,
and then sending a redirect to a non-existent page?

You might want to check the Tomcat and IIS/Apache/iPlanet logs to
find out what URL is being used to get the 404, that way you will know how
Tomcat or the connector is trying to interpret your request.

Randy

> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 26, 2002 1:05 PM
> To: 'Tomcat Users List'
> Subject: RE: Servlet POST results in 404 error
> 
> 
> I'd appreciate a response on this! I've spent time searching 
> the Net but
> haven't turned up anything useful. I don't think I've 
> misconfigured anything
> in my server.xml or web.xml...
> It's just the POST method that doesn't work - no idea why!
> 
> Suggestions please!!
> 
> Thanks,
> 
> John
> 
> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2002 16:11
> To: Tomcat Users List (E-mail)
> Subject: Servlet POST results in 404 error
> 
> 
> All,
> 
> TomCat 4.0.1
> Apache 1.3
> mod_WebApp
> Solaris 8
> 
> I have a servlet that returns a 404 error whenever a POST is 
> sent. GET works
> fine. The servlet uses sessions - not sure if this has 
> anything to do with
> it. My server.xml just defines a context and a logger. The 
> web.xml has a
> servlet name and mapping, nothing more.
> The servlet was originally written for JServ - could this 
> have something to
> do with it?
> 
> There's nothing in the logs.
> 
> I'm not a servlet programmer so I have no ideas!
> 
> Any suggestions??
> 
> Thanks,
> 
> John
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




Re: catalina 4.0.2 and internal servlet cache ... pls help

2002-02-26 Thread ranjeet walunj

nope i seen this .. and also tried that ...
but unfortunately this also doesn't work for me .. :-(

i stop the context using manager and starts agains or reload also doesn't help
:(

cud someone pls help me

ranjeet

Markus Spath wrote:

> Hi,
>
> I don't know whether this might help you, but i found the manager app to be
> useful:
>
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html
>
> markus
>
> ranjeet walunj wrote:
>
> > Dear friends,
> >
> > i'm sending the same mail again ... pls help me ...
> >
> > i'm facing this internal cache of tomcat problem ..
> > i've reffered the old archives and they r saying ki putting
> > reloadable=true
> > in server.xml can solve this problem.
> >
> > Problem: If i change some java code in my servlet and recompile the
> > servlet
> > it doesn't affect the operation untill i restart the Tomcat ...
> > everytime restarting tomcat for small changes is very wierd stuff :-(
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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




RE: Servlet POST results in 404 error

2002-02-26 Thread PELOQUIN,JEFFREY (Non-HP-Boise,ex1)

John,

Things to look for:

1: Is the post service defined in your servlet
2: Does the post service contain any code
3: Is apache configured to allow use of the post method, if I recall out of
the box it does not
4: Use the Netscape Browser if you are not already.  It returns more error
information than IE

Jeff

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 11:05 AM
To: 'Tomcat Users List'
Subject: RE: Servlet POST results in 404 error


I'd appreciate a response on this! I've spent time searching the Net but
haven't turned up anything useful. I don't think I've misconfigured anything
in my server.xml or web.xml...
It's just the POST method that doesn't work - no idea why!

Suggestions please!!

Thanks,

John

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: 26 February 2002 16:11
To: Tomcat Users List (E-mail)
Subject: Servlet POST results in 404 error


All,

TomCat 4.0.1
Apache 1.3
mod_WebApp
Solaris 8

I have a servlet that returns a 404 error whenever a POST is sent. GET works
fine. The servlet uses sessions - not sure if this has anything to do with
it. My server.xml just defines a context and a logger. The web.xml has a
servlet name and mapping, nothing more.
The servlet was originally written for JServ - could this have something to
do with it?

There's nothing in the logs.

I'm not a servlet programmer so I have no ideas!

Any suggestions??

Thanks,

John

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

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

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




Re: Servlet POST results in 404 error

2002-02-26 Thread Markus Spath

did you define the doPost method in your servlet?

if not add:

...
public void doPost(HttpServletRequest request, HttpServletResponse response) {
   doGet(request, response);
}
..

hth,
markus


John Wadkin wrote:

> I'd appreciate a response on this! I've spent time searching the Net but
> haven't turned up anything useful. I don't think I've misconfigured anything
> in my server.xml or web.xml...
> It's just the POST method that doesn't work - no idea why!
> 
> Suggestions please!!
> 
> Thanks,
> 
> John
> 
> -Original Message-
> From: John Wadkin [mailto:[EMAIL PROTECTED]]
> Sent: 26 February 2002 16:11
> To: Tomcat Users List (E-mail)
> Subject: Servlet POST results in 404 error
> 
> 
> All,
> 
> TomCat 4.0.1
> Apache 1.3
> mod_WebApp
> Solaris 8
> 
> I have a servlet that returns a 404 error whenever a POST is sent. GET works
> fine. The servlet uses sessions - not sure if this has anything to do with
> it. My server.xml just defines a context and a logger. The web.xml has a
> servlet name and mapping, nothing more.
> The servlet was originally written for JServ - could this have something to
> do with it?
> 
> There's nothing in the logs.
> 
> I'm not a servlet programmer so I have no ideas!
> 
> Any suggestions??
> 
> Thanks,
> 
> John
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 



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




RE: Servlet POST results in 404 error

2002-02-26 Thread John Wadkin

I'd appreciate a response on this! I've spent time searching the Net but
haven't turned up anything useful. I don't think I've misconfigured anything
in my server.xml or web.xml...
It's just the POST method that doesn't work - no idea why!

Suggestions please!!

Thanks,

John

-Original Message-
From: John Wadkin [mailto:[EMAIL PROTECTED]]
Sent: 26 February 2002 16:11
To: Tomcat Users List (E-mail)
Subject: Servlet POST results in 404 error


All,

TomCat 4.0.1
Apache 1.3
mod_WebApp
Solaris 8

I have a servlet that returns a 404 error whenever a POST is sent. GET works
fine. The servlet uses sessions - not sure if this has anything to do with
it. My server.xml just defines a context and a logger. The web.xml has a
servlet name and mapping, nothing more.
The servlet was originally written for JServ - could this have something to
do with it?

There's nothing in the logs.

I'm not a servlet programmer so I have no ideas!

Any suggestions??

Thanks,

John

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

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




Standalone Tomcat SSL Cipher Suite Configuration

2002-02-26 Thread Boyd, Garth


Is it possible to configure a standalone Tomcat installation  to
negotiate from an administrator provided cipher suite list?

Other containers do allow you to configure what cipher suites
are available for negotiation (websphere for example). I have 
searched high and low and have not found anything to indicate 
that this is configurable for standalone Tomcat.

Can someone prove me wrong? Please?

Thanks in advance,

- Garth
[EMAIL PROTECTED]


This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.

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




Re: catalina 4.0.2 and internal servlet cache ... pls help

2002-02-26 Thread Markus Spath

Hi,

I don't know whether this might help you, but i found the manager app to be 
useful:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-howto.html

markus

ranjeet walunj wrote:

> Dear friends,
> 
> i'm sending the same mail again ... pls help me ...
> 
> i'm facing this internal cache of tomcat problem ..
> i've reffered the old archives and they r saying ki putting
> reloadable=true
> in server.xml can solve this problem.
> 
> Problem: If i change some java code in my servlet and recompile the
> servlet
> it doesn't affect the operation untill i restart the Tomcat ...
> everytime restarting tomcat for small changes is very wierd stuff :-(



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




Re: Tomcat ClassloaderLoaderFactory skips jar files

2002-02-26 Thread Remy Maucherat

> Hi,
>
> I found out today that not all jar files in a directory are added to a
> classloader by tomcat at startup.  When tomcat bootstrap creates
> Classloaders it ignores jar files that contain certain classes.  We are
> using Borland Enterprise Server and need to add the Borland jar files to
> access their EJB and orb components.
>
> However, putting asrt.jar in /lib is useless because it fails the
> validateJarFile() test in ClassLoaderFactory because it contains
>
>   2777 Fri Nov 09 12:14:26 EET 2001 javax/naming/Context.class
>520 Fri Nov 09 12:14:36 EET 2001 javax/sql/DataSource.class
>
> So, if tomcat is ignoring these classes, what are the implications for
> adding asrt.jar to the classpath in catalina.bat|sh.  It does not seem
> to cause problems (yet) but does tomcat have certain reliance on these
> and the other trigger classes?

The trigger code has been removed since then, so the problems should be
fixed in the next Tomcat release (you can check with a nightly build).

Remy


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




RE: problem in using

2002-02-26 Thread Nicolas Silberzahn

i can't believe my eiyes.

Finding a class is a very 'basic' task for TomCat!
I can't believe that any TomCat developper didn't make a test with a bean!!!
We should have missed something...

Nicolas Silbe*rzahn

Digital Airways
Everywhere Technologies
<100% Java, Mobile, Offline aware>Wapaka Browser
www.DigitalAirways.com



>-Message d'origine-
>De : James Lee [mailto:[EMAIL PROTECTED]]
>Envoye : mardi 26 fevrier 2002 18:05
>A : Tomcat Users List
>Objet : Re: problem in using 
>
>I had the same problems using tomcat 4.0.2, and apache
>1.3.22 on win2k.  In fact tomcat couldn't find any of
>my classes.  This only occurred using mod_jk, but
>eventually i got it to work.  It is strange, but
>here's how i got mine to work.  If you are using
>mod_jk, try commenting out the line regarding
>additional classpaths in your workers.properties file.
> Restart tomcat and apache.  It still won't work at
>this point.  Then uncomment the line and restart both
>tomcat and apache.  I think by commenting out the line
>and restarting apache and tomcat, it forces them to
>reload settings?  Not sure though.
>
>Also make sure you have the directive JKMount
>/servlet/* ajp13
>in httpd.conf file.
>
>james
>
>
>
>--- Harry Keller <[EMAIL PROTECTED]> wrote:
>> I had problems with using beans with Tomcat 4.0.
>> Sometimes they would
>> work -- sometimes not.  I never got tomcat to
>> recognize two properties in
>> the same bean.  Eventually, I abandoned the bean
>> approach as unworkable with
>> tomcat.  If anyone has a reliable solution, I'd
>> really like to know about
>> it.  For now, I just @include the java source in my
>> JSP files.
>>
>> Hopefully,
>> Harry
>>
>> - Original Message -
>> From: "arun yadav" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Tuesday, February 26, 2002 5:24 AM
>> Subject: problem in using >
>>
>> > Hello friends,
>> > Iam doing a project using jsp.Iam facing a problem
>> in calling a bean from
>> a
>> > jsp page.Tomcat is unable to find the bean
>> class.Can anybody guide me how
>> to
>> > do that.
>> > I have put my bean class in
>> /webapps/examples/jsp/Online/WEB-INF/classes
>> > & the jsp file in /Online folders.
>> >
>> > -regards
>> > ARUN
>> >
>> >
>> >
>> >
>> >
>>
>_
>> > Send and receive Hotmail on your mobile device:
>> http://mobile.msn.com
>> >
>> >
>> > --
>> > To unsubscribe:
>> 
>> > For additional commands:
>> 
>> > Troubles with the list:
>> 
>>
>>
>> --
>> To unsubscribe:
>> 
>> For additional commands:
>> 
>> Troubles with the list:
>> 
>>
>
>
>__
>Do You Yahoo!?
>Yahoo! Sports - Coverage of the 2002 Olympic Games
>http://sports.yahoo.com
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>


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




RE: problem in using

2002-02-26 Thread Nicolas Silberzahn

Sorry, this is not an answer, just a word to say i face the same problem.

With TomCat 3.3, all where ok.
Installed 4 this morning, And when referencing a bean from a jsp, i get:


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

An error occured between lines: 72 and 83 in the jsp file: /wapstate.jsp

Generated servlet error:
D:\TomCat4\work\localhost\offsyncwap\wapstate$jsp.java:152: Class
org.apache.jsp.WPKDoc not found.
 WPKDoc myDoc = (WPKDoc)session.getAttribute("myDoc");
 ^


It does not find WPKDoc class (which is in the WEB-INF/classes directory)
You may note I don't use the  syntax, but i tested it: it gives
the same problem since it produces a .java file in the work directory with
the same rpoblem...

Cordialement,

Nicolas Silber*zahn
Digital Airways
Everywhere Technologies
<100% Java, Mobile, Offline aware>Wapaka Browser
www.DigitalAirways.com

 Hey! Want to see the Header your WAP phone/Gateway sends to the server?
Give your email at this WAP URL and you will receive it...

http://www.DigitalAirways.com/waphead/default.asp





>-Message d'origine-
>De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Envoye : mardi 26 fevrier 2002 15:51
>A : Tomcat Users List
>Objet : Re: problem in using 
>
>
>
>
>
>
>
>"arun yadav" <[EMAIL PROTECTED]> on 02/26/2002 07:24:49 AM
>
>Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
>To:   [EMAIL PROTECTED]
>cc:
>
>Subject:  problem in using 
>Hello friends,
>Iam doing a project using jsp.Iam facing a problem in calling a bean from a
>
>jsp page.Tomcat is unable to find the bean class.Can anybody guide me how
>to
>do that.
>I have put my bean class in /webapps/examples/jsp/Online/WEB-INF/classes
>& the jsp file in /Online folders.
>
>First, is the directory structure set right? The WEB-INF directory should
>be under examples. You might need to move WEB-INF from the Online directory
>to under examples.
>You directory structure should be:
>
>webapps
>   |
>   examples
> |
> -WEB-INF
> |  |
> |  classes
> |
> -jsp
>|
>Online
>
>
>
>-regards
>ARUN
>
>
>
>
>_
>Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>
>
>
>
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>


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




System variables in server.xml?

2002-02-26 Thread KC Berg

Does anybody know if you can use system var's in your server.xml? If so can
someone please point me to an example. 

Thanx 
KC

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




Re: problem in using

2002-02-26 Thread James Lee

I had the same problems using tomcat 4.0.2, and apache
1.3.22 on win2k.  In fact tomcat couldn't find any of
my classes.  This only occurred using mod_jk, but
eventually i got it to work.  It is strange, but
here's how i got mine to work.  If you are using
mod_jk, try commenting out the line regarding
additional classpaths in your workers.properties file.
 Restart tomcat and apache.  It still won't work at
this point.  Then uncomment the line and restart both
tomcat and apache.  I think by commenting out the line
and restarting apache and tomcat, it forces them to
reload settings?  Not sure though.  

Also make sure you have the directive JKMount
/servlet/* ajp13
in httpd.conf file.

james



--- Harry Keller <[EMAIL PROTECTED]> wrote:
> I had problems with using beans with Tomcat 4.0. 
> Sometimes they would
> work -- sometimes not.  I never got tomcat to
> recognize two properties in
> the same bean.  Eventually, I abandoned the bean
> approach as unworkable with
> tomcat.  If anyone has a reliable solution, I'd
> really like to know about
> it.  For now, I just @include the java source in my
> JSP files.
> 
> Hopefully,
> Harry
> 
> - Original Message -
> From: "arun yadav" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 26, 2002 5:24 AM
> Subject: problem in using  
> 
> > Hello friends,
> > Iam doing a project using jsp.Iam facing a problem
> in calling a bean from
> a
> > jsp page.Tomcat is unable to find the bean
> class.Can anybody guide me how
> to
> > do that.
> > I have put my bean class in
> /webapps/examples/jsp/Online/WEB-INF/classes
> > & the jsp file in /Online folders.
> >
> > -regards
> > ARUN
> >
> >
> >
> >
> >
>
_
> > Send and receive Hotmail on your mobile device:
> http://mobile.msn.com
> >
> >
> > --
> > To unsubscribe:  
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




catalina 4.0.2 and internal servlet cache ... pls help

2002-02-26 Thread ranjeet walunj

Dear friends,

i'm sending the same mail again ... pls help me ...

i'm facing this internal cache of tomcat problem ..
i've reffered the old archives and they r saying ki putting
reloadable=true
in server.xml can solve this problem.

Problem: If i change some java code in my servlet and recompile the
servlet
it doesn't affect the operation untill i restart the Tomcat ...
everytime restarting tomcat for small changes is very wierd stuff :-(

I'm using tomcat 4.0.2 (the latest stable version released on 11 feb)

sample context from my server.xml is as follows
-

   
  
   

   
   
   


-


am i missing something???

my httpd.conf says following :
-
ServerName domain.com
ServerAlias www.domain.com domain.com
DocumentRoot /temp5/sites/mysite/

WebAppDeploy template_App1 warpConnection /template_App1
WebAppDeploy template_App2 warpConnection /template_App2



-

waiting for reply,

Ranjeet walunj




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




Tomcat tutorial searched

2002-02-26 Thread Thomas Stiller

I am searching a tutorial/introduction covering
the configuration of Tomcat (3.* or 4.*)
setup of servlets and JSPs in the server.xml.

I am NOT (!!) searching a tutorial for
developing servlets/JSP in general

Is there a good tutorial out in the internet 
with simple samples (helloWorld) ?

Thx
Thomas
-- 

___
Sign-up for your own FREE Personalized E-mail at Email.com
http://www.email.com/?sr=signup



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




RE: Catalina 4.0.2 - Tomcat 3.2.3 Incompatibility // character encoding

2002-02-26 Thread Jarecsni János

Hi again,

on windows I switched the JDK back to 1.3.1 and it works. So the problem is
somewhere around the JDK...
:)

J-.

--
Jarecsni, János
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392

|-Original Message-
|From: Jarecsni János [mailto:[EMAIL PROTECTED]]
|Sent: Tuesday, February 26, 2002 5:44 PM
|To: Tomcat Users List
|Subject: Catalina 4.0.2 - Tomcat 3.2.3 Incompatibility //
|character encoding
|
|
|Hi,
|
|I've just upgraded an application to TC4.0.2. We have problems with the
|strings that come in the server from web pages. We use ISO-8859-2.
|
|With 3.2.3 it was working all right, we only had to
|use -Dfile.encoding=ISO8859_2 with windows and "export LANG=hu_HU" with
|Linux. Now we have switched to JDK1.4.0 and Tomcat4.0.2 at the same time.
|
|Now if the user enters characters that are not ISO8859_1 they are
|transformed to "?" (so request.getParameter("name") returns a bad value.
|
|Obviously the system is not running with ISO8859_2 enabled...
|
|Any hints?
|
|Thanks
|Janos
|
|--
|Jarecsni, János
|MORGAN HILL CONSULTING, Internet Applications Unit
|mailto:[EMAIL PROTECTED]
|http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392
|
|
|--
|To unsubscribe:   
|For additional commands: 
|Troubles with the list: 
|
|


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




Re: Testing sercue Tomcat-4.0.2 with Mozilla0.99 and Netscape6.2 forget it i reading the help page in Mozilla

2002-02-26 Thread Chuck Amadi

Chuck Amadi wrote:

> Hi , there i am able to use IE5 to try out the secure server .As i 
> have created a self signrd cert. Thus i have used the keytool utility 
> to export my cert to IE5.
> This works  fine. Can anyone explain or point me the doc's to do the 
> same with Mozilla v0.99 and Netscape 6.2.
>
> I have tried the following in Preferences > Privacy & Security > 
> Certificates > Manage Certificates > Your Certificates > Restore > 
> File Name to Restore >
> jdk1.3 > bbnpa.cert ( file type prompt was PKCS12 file ) Thus 
> requested password > then confirm Password  entry Dialog Box > Thus 
> failed.
>
> Prefer to be hand fed like the IE5 Import Wizard.
>
> Cheers Chuck Amadi Systems Programmer I am reading the help page in 
> Mozilla.


>




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




Testing sercue Tomcat-4.0.2 with Mozilla0.99 and Netscape6.2

2002-02-26 Thread Chuck Amadi

Hi , there i am able to use IE5 to try out the secure server .As i have 
created a self signrd cert. Thus i have used the keytool utility to 
export my cert to IE5.
This works  fine. Can anyone explain or point me the doc's to do the 
same with Mozilla v0.99 and Netscape 6.2.

I have tried the following in Preferences > Privacy & Security > 
Certificates > Manage Certificates > Your Certificates > Restore > File 
Name to Restore >
jdk1.3 > bbnpa.cert ( file type prompt was PKCS12 file ) Thus requested 
password > then confirm Password  entry Dialog Box > Thus failed.

Prefer to be hand fed like the IE5 Import Wizard.

Cheers Chuck Amadi
Systems Programmer


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




Catalina 4.0.2 - Tomcat 3.2.3 Incompatibility // character encoding

2002-02-26 Thread Jarecsni János

Hi,

I've just upgraded an application to TC4.0.2. We have problems with the
strings that come in the server from web pages. We use ISO-8859-2.

With 3.2.3 it was working all right, we only had to
use -Dfile.encoding=ISO8859_2 with windows and "export LANG=hu_HU" with
Linux. Now we have switched to JDK1.4.0 and Tomcat4.0.2 at the same time.

Now if the user enters characters that are not ISO8859_1 they are
transformed to "?" (so request.getParameter("name") returns a bad value.

Obviously the system is not running with ISO8859_2 enabled...

Any hints?

Thanks
Janos

--
Jarecsni, János
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392


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




Tomcat 4.01, IIS, and isapi_redirector.dll

2002-02-26 Thread Thad Humphries

I have found several sites for integrating Tomcat 3.2.x with IIS using
isapi_redirect.dll.  I find some for integrating Tomcat 4.01 with IIS
using isapi_redirect.dll.  The latter require creating
workers.properties and uriworkermap.properties (and maybe other things)
that aren't part of Tomcat 4.01 on UNIX (but were in 3.2).  Also, the
Tomcat 4.0 tree has a binary isapi_redirector.dll (**not**
isapi_redirect.dll).  Is *this* the warp connector?  How do I setup
Tomcat 4.01 and IIS to use this connector?  Is it a simplier setup than
3.2 was?
-- 

Thad Humphries  "...no religious test shall ever be required
Web Development Manager  as a qualification to any office or public
Phone: 540/675-3015, x225trust under the United States." -Article VI


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




Servlet POST results in 404 error

2002-02-26 Thread John Wadkin

All,

TomCat 4.0.1
Apache 1.3
mod_WebApp
Solaris 8

I have a servlet that returns a 404 error whenever a POST is sent. GET works
fine. The servlet uses sessions - not sure if this has anything to do with
it. My server.xml just defines a context and a logger. The web.xml has a
servlet name and mapping, nothing more.
The servlet was originally written for JServ - could this have something to
do with it?

There's nothing in the logs.

I'm not a servlet programmer so I have no ideas!

Any suggestions??

Thanks,

John

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




Re: Access to shared classloader from common classes

2002-02-26 Thread Sriram Narayanan



2/26/02 5:06:13 PM, Antony Bowesman <[EMAIL PROTECTED]> wrote:

>Hi,
>
>We have a realm implementation that authenticates against a user
>repository in an EJB container.  To do this it uses some proxy classes
>to connect to the EJB container.  These proxies are also used by web
>applications.
>
>Thus, these proxy class are in the common/lib directory.  However, this
>means that a lot of the webapp client framework has to go in the
>common/lib directory and not in the shared webapp directory where it
>should be.
>
>I need to change but am not sure how the small authentication component
>(called by the realm implementation) which is in common/lib can find the
>webapp shared classloader to load the relevant proxy classes.
>
>Is there any (legal) way I can get the webapp shared classloader from
>the catalina startup classes.
>
>Rgds
>Antony
>
Try

Thread.currentThread().getContextClassLoader().loadClass("foo.bar.Baz");

Sriram


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Properties file declaration

2002-02-26 Thread Sriram Narayanan


2/26/02 8:39:01 PM, Ursula Pieper <[EMAIL PROTECTED]> wrote:

>
>Hi, 
>
>my servlets need to access a properties file 
>(/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties). 
>
>I tried to get the parameter to read properly by adding parameter entries 
>at different location. so now:
>
>My server.xml entry looks like this:
>
>reloadable="true">
>value="/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties"
>override="false"/>
>CONFIG_FILE
>/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties
>
>
>
>and the web.xml:
>
>/application
>application
>
>
>CONFIG_FILE
>/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties
>
>
>
>This entry gets recognized at tomcat startup:
>in catalina.out: 
>XmlMapper: org.apache.catalina.core.StandardContext.addParameter( CONFIG_FILE, 
>/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties)
>
>The call for is in the servlet looks like this:
>
>init(ServletConfig config)
>throws ServletException
>{
>super.init(config);
>try
>{
> configPrefs = new Properties();
> servletContext = config.getServletContext();
> if ( config.getInitParameter("CONFIG_FILE") == null )
> throw new ServletException( "No CONFIG_FILE param" );
>   ...
>
>
>and I am getting the following error message:
>javax.servlet.ServletException: No CONFIG_FILE param
>
>Can anybody help me straighten this out?
>
>I am new to this and want to get this application to run. I am just now 
>learning java and tomcat, so please excuse my probably trivial question. 
>
>I am running 
>Tomcat 4.0.1
>jdk1.3.1
>on redhat 7.2
>
>Thanks a lot!
>

Instead of accessing the fileSystem, try the following instead:

InputStream inputStream = 
getServletContext().getResourceAsStream("/WEB-INF/classes/pro.properties");
Properties properties = new Properties();
properties.load(inputStream);
inputStream.close();

This will let you later bundle the whole application as a war file (similar to zip or 
tar files, and created with the jar command).
Also, you won't have to change the CONFIG_FILE parameter when you move your web 
application to some other folder.


>Ursula
>

Sriram


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Problem with importing reply certificate from CA

2002-02-26 Thread Jason Barr

HI Marin,

Have a look at our FAQ's (even though it is Verisign, the reason should be the
same:)

http://www.thawte.com/support/developer/javasoft.html

Cheers,


Marin Odrljin wrote:

> Hello everybody!
>
> I have problem with importing cert reply from VeriSign.
> I'm using jdk1.3 and I made my keys with keytool. Than I sent CSR to
> VerySign and they gave me signed certificate in Internet RFC 1421
> Certificate Encoding Standard (Base 64 encoding) which begins like:
>
> -BEGIN CERTIFICATE-
> and ends like:
> -END CERTIFICATE-
>
> I have problem when I try to import it with same alias (tomcat) or even
> different. I know that keystore format (default) is jks and reply is in
> pkcs7 format.
> When I try to import certificate (with same alias I used for -genkey) I got
> a message:
> keytool error: java.security.cert.CertificateException: Unsupported
> encoding,
> and when I try import it with different alias I got message:
> keytool error: java.lang.Exception: Input not a X.509 certificate
>
> In keytool documentation is written that keytool -import command can
> actually import binary encoding format or printable format (Internet RFC
> 1421 Certificate Encoding Standard) but I can't import that printable! Why I
> didn't got .cer file and how I can import that printable?
>
> Thank you very much!!!
> Marin

--
Jason Barr
Vendor Manager
Thawte Tech Support
www.thawte.com/cgi/support/contents.exe




smime.p7s
Description: S/MIME Cryptographic Signature


RE: 2 instance of tomcat within 1 machine

2002-02-26 Thread Sriram Narayanan

2/26/02 7:18:32 PM, John Niven <[EMAIL PROTECTED]> wrote:
>
>Follow the instructions in running.txt for which directories to copy - I'm
>at work just now (JRun ;-( ) but off-hand I think it's bin, conf, lib &
>webapps.  Within /conf, you need to edit server.xml so the various ports
>don't conflict.  Eg. if the CATALINA_HOME/conf/server.xml uses port 8080,
>/server01/conf/server.xml could be 8081 for example.  There are three
>locations in the server.xml which I edited - I don't have the file to hand
>at the moment, but if you'd like a copy I can post it tonight/tomorrow.
>

I had to change 
1. 

  
...etc...
...etc...
  

>
>Cheers
>John
>
>--
>John Niven
>Reply via mailing-list.

Sriram


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: can't add a new context...

2002-02-26 Thread Sriram Narayanan



2/26/02 8:00:23 PM, "Eduardo Godoy" <[EMAIL PROTECTED]> wrote:

>Hi,
>I´m using tomcat 4.0.2 and I want to add a new context, without a war file ... so 
>I used
>http://localhost:8090/manager/install?path=/ucrm&war=file:/D:\\Unveil\\web\\ and 
>tomcat return
>OK - Installed application at context path /ucrm but ... If I reboot the server ... I 
>lost the context ...
>(I don´t have this problem with others context, where I use a war file to deploy)
>Any Idea? 

That's because this context has been added after Tomcat has been started. The 
information about this newly added Context is not stored anywhere.

If you wish to do this, then include a section in %CATALINA_BASE%/conf/server.xml

It could be something like the following:



Place it below the line that reads:


>Eduardo.

Sriram





_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Properties file declaration

2002-02-26 Thread Ursula Pieper


Hi, 

my servlets need to access a properties file 
(/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties). 

I tried to get the parameter to read properly by adding parameter entries 
at different location. so now:

My server.xml entry looks like this:



CONFIG_FILE
/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties



and the web.xml:

/application
application


CONFIG_FILE
/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties



This entry gets recognized at tomcat startup:
in catalina.out: 
XmlMapper: org.apache.catalina.core.StandardContext.addParameter( CONFIG_FILE, 
/var/tomcat4/webapps/application/WEB-INF/classes/pro.properties)

The call for is in the servlet looks like this:

init(ServletConfig config)
throws ServletException
{
super.init(config);
try
{
 configPrefs = new Properties();
 servletContext = config.getServletContext();
 if ( config.getInitParameter("CONFIG_FILE") == null )
 throw new ServletException( "No CONFIG_FILE param" );
...


and I am getting the following error message:
javax.servlet.ServletException: No CONFIG_FILE param

Can anybody help me straighten this out?

I am new to this and want to get this application to run. I am just now 
learning java and tomcat, so please excuse my probably trivial question. 

I am running 
Tomcat 4.0.1
jdk1.3.1
on redhat 7.2

Thanks a lot!

Ursula



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




Re: Tomcat: Servlets in another directory

2002-02-26 Thread Sriram Narayanan



2/26/02 3:45:17 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:

>Hi.
>
>I would like to serve my servlets in another directory
>(not in $TOMCAT_HOME/webapps/examples/WEB-INF/classes).
>
>+ I created a directory called '/myfoo'.
>+ I changed $TOMCAT_HOME/conf/server.xml:
>
>+ I compiled 'HelloWorld.java' into '/myfoo'
>+ I changed startup:
>set CLASSPATH=%CLASSPATH%;/myfoo
>
>But when trying to access: http://localhost:8080/HelloWorld ,
>I get a '404 Error'.
>
>What am I doing wrong?
>

You are asking Tomcat to deploy the web app located at /myfoo as the ROOT application. 
This is the application that's accesible at http://localhost/
Instead, replace the path="" with path="/foobar" and start Tomcat again.

Your app should now be accessible at http://localhost:8080/foobar/

If HelloWorld is a servlet, then it must be listed in the file at /foo/WEB-INF/web.xml


>Regards and thank you very much.
>

Sriram


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: Tomcat: Servlets in another directory

2002-02-26 Thread Jean-Luc BEAUDET

"[EMAIL PROTECTED]" a écrit :

> Hi.
>
> I would like to serve my servlets in another directory
> (not in $TOMCAT_HOME/webapps/examples/WEB-INF/classes).

Just keep in mind one important thing.
$TOMCAT_HOME/webapps represents the appBase="webapps" item of the
default Context attribute.

>
>
> + I created a directory called '/myfoo'.

Where did yu create it, under $TOMCAT_HOME/webapps ?

>
> + I changed $TOMCAT_HOME/conf/server.xml:
> 

Not sure of what yu did.. means appBase="/myfoo" ?

>
> + I compiled 'HelloWorld.java' into '/myfoo'
> + I changed startup:
> set CLASSPATH=%CLASSPATH%;/myfoo

Ooopps AFAIK modifyin' CLASSPATH doesn't intend any thing for Tomcat
since it builds with it's ClassLoader it' own environnement. The only
way to set a CLASSPATH for it is to modify th ecatalina.sh
UNIX script...

>
>
> But when trying to access: http://localhost:8080/HelloWorld ,
> I get a '404 Error'.

With the server/web.xml not modified, the call would be
http://localhost:8080/servlet/HelloWorld

>
>
> What am I doing wrong?
>
> Regards and thank you very much.
>
> -
> This mail was sent through TJGROUP Webmail: http://webmail.tjgroup.dk
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

Hope this helps.

Jean-Luc B :O)




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




Can Tomcat 3.3 be chroot'ed, Should it be ?

2002-02-26 Thread M Man

Hi All

I've got Apache 1.3.22 and Tomcat 3.3 working fine on Solaris 8.
I can even get Apache running chroot'ed, but I can't get Tomcat too.

I've looked all over the net and not found a HOW-TO.
I found one document that said Tomcat could NOT be chroot, (didn't 
understand the reason's why, I'm not a Java programmer).

So is can it be chroot'ed and if so how ?.

I found a few documents that said the security now in Apache/Tomcat means 
that running them chroot'ed is not really required, is this true ? (hope so, 
it would save a lot of effort :) )
Any document pointer's as to why this imaybe true now would be helpful ?

Thanks in advance

Max

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


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




Fwd: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4

2002-02-26 Thread Sriram Narayanan

Hello all,

I'd posted to this list a few days ago asking for help on this problem.

On the computer where I run tomcat and faced the RequestDispatcher problem, I've 
started to get JIT errors instead. I've also been getting a 
lot of "Illegal Operation" messages by Windows on the same computer for the past few 
days.

I got a chance to check this problem again today on another computer, and everything 
ran just fine.

So I guess I have to either reinstall Windows NT, and maybe even get the RAM on my 
computer checked.

Thanks everybody for helping me out.

By the way, I tried the following, and both worked:

getServletContext().getRequestDispatcher("/index.html").include(request,response);

and separately,

getServletContext().getRequestDispatcher("/index.html").forward(request,response);


Thanks again.

Sriram

--- Start of forwarded message ---
From: Sriram Narayanan <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: Unable to use RequestDispatcher.forward() for HTML pages when in Tomcat 4
Date: 2/21/02 8:06:31 PM

Hello all,

I am able to use the RequestDispatcher forward control from one JSP page to another. 
However I am unable to forward to HTML pages.
>From what I read in the Servlet API spec (there's an example for /garden/ etc) and 
>the docs for RequestDispatcher(), one should indeed be 
able to forward to HTML pages

Here's what I have in my JSP:

<%getServletContext().getRequestDispatcher("/html/authhome.html").forward(request,response);%>

And here's what I found in the generated JSP page:

--- beginepartial quote -
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();

// begin [file="/notauthorized.jsp";from=(0,2);to=(0,92)]

getServletContext().getRequestDispatcher("/html/authhome.html").forward(request,response);
// end
// HTML // begin [file="/notauthorized.jsp";from=(0,94);to=(1,0)]
out.write("\r\n");

// end

- end partial quote 

Could someone please point me to what it is that I'm doing wrong ?

I have only the Servlet API spec with me, and not the JSP spec, which I have not been 
able to download yet (Internet connection problems)

Thanks,

Sriram

 End of forwarded message 




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: problem in using

2002-02-26 Thread rsequeira







"arun yadav" <[EMAIL PROTECTED]> on 02/26/2002 07:24:49 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  problem in using http://mobile.msn.com


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









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




Re: some configuration problem..HELP!!

2002-02-26 Thread rsequeira


Place it under the webapplication's WEB-INF/lib folder. Or you could move
it to the /lib directory to make it visible to all
webapps.
Thanks.
RS




"Amrish Thakkar" <[EMAIL PROTECTED]> on 02/26/2002 04:53:07 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:

Subject:  some configuration problem..HELP!!

dear sir/madam

this is regarding a problem i am facing while using tomcat. We, a
group of people working on a particular web application which
requires to create a word document on runtime based on the user if
he clicks on a particular link.. so for the same purpose we are
using "jacob" for doing it. its working fine standalone... but if
have to keep it on the server side.. i.e. on the servlet engine
(tomcat) what extra configurations u need to do.. i mean where to
place the jacob.jar and other such configurations.. and ya where
to set the "java.library.path" environment variables thru tomcat.
please let me know as fast as possible

any sort of help or clue is welcome,

thanks in advance

Amrish

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









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




Re: Tomcat: Servlets in another directory

2002-02-26 Thread rsequeira


Editing the classpath isn't advisable. Leads to various problems. Also are
you using unix or windows? Check your docBase. Is "myfoo" under the webapps
directory? If it is, then you do not require the leading "/". Also check
the web.xml for mappings to HelloWorld.
Thanks.
RS





tomcat on 02/26/2002 04:15:17 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
cc:

Subject:  Tomcat: Servlets in another directory

Hi.

I would like to serve my servlets in another directory
(not in $TOMCAT_HOME/webapps/examples/WEB-INF/classes).

+ I created a directory called '/myfoo'.
+ I changed $TOMCAT_HOME/conf/server.xml:

+ I compiled 'HelloWorld.java' into '/myfoo'
+ I changed startup:
set CLASSPATH=%CLASSPATH%;/myfoo

But when trying to access: http://localhost:8080/HelloWorld ,
I get a '404 Error'.

What am I doing wrong?

Regards and thank you very much.

-
This mail was sent through TJGROUP Webmail: http://webmail.tjgroup.dk


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









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




Re: problem in using

2002-02-26 Thread Harry Keller

I had problems with using beans with Tomcat 4.0.  Sometimes they would
work -- sometimes not.  I never got tomcat to recognize two properties in
the same bean.  Eventually, I abandoned the bean approach as unworkable with
tomcat.  If anyone has a reliable solution, I'd really like to know about
it.  For now, I just @include the java source in my JSP files.

Hopefully,
Harry

- Original Message -
From: "arun yadav" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 5:24 AM
Subject: problem in using  Hello friends,
> Iam doing a project using jsp.Iam facing a problem in calling a bean from
a
> jsp page.Tomcat is unable to find the bean class.Can anybody guide me how
to
> do that.
> I have put my bean class in /webapps/examples/jsp/Online/WEB-INF/classes
> & the jsp file in /Online folders.
>
> -regards
> ARUN
>
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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




problem starting tomcat

2002-02-26 Thread Jian Song

Dear Sir:
I am having problem starting TOMCAT, every time i try it says "bad interpreter, 
permision denied."
i installed my j2sdk under: /home/coscuser/j2sdkee1.3.1 ; and 
tomcat /home/coscuser/jakarta-tomcat-3.2.4/; set JAVA_HOME and TOMCAT_HOME 
inside /coscuser/.bash_profile. 
Please help!

Jian 
EMU student

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




Tomcat: Servlets in another directory

2002-02-26 Thread [EMAIL PROTECTED]

Hi.

I would like to serve my servlets in another directory
(not in $TOMCAT_HOME/webapps/examples/WEB-INF/classes).

+ I created a directory called '/myfoo'.
+ I changed $TOMCAT_HOME/conf/server.xml:

+ I compiled 'HelloWorld.java' into '/myfoo'
+ I changed startup:
set CLASSPATH=%CLASSPATH%;/myfoo

But when trying to access: http://localhost:8080/HelloWorld ,
I get a '404 Error'.

What am I doing wrong?

Regards and thank you very much.

-
This mail was sent through TJGROUP Webmail: http://webmail.tjgroup.dk


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




can't add a new context...

2002-02-26 Thread Eduardo Godoy

Hi,
I´m using tomcat 4.0.2 and I want to add a new context, without a war file ... so 
I used
http://localhost:8090/manager/install?path=/ucrm&war=file:/D:\\Unveil\\web\\

and tomcat return 
OK - Installed application at context path /ucrm

but ... If I reboot the server ... I lost the context ... 
(I don´t have this problem with others context, where I use a war file to deploy)
Any Idea?

Eduardo.




some configuration problem..HELP!!

2002-02-26 Thread Amrish Thakkar

dear sir/madam

this is regarding a problem i am facing while using tomcat. We, a 
group of people working on a particular web application which 
requires to create a word document on runtime based on the user if 
he clicks on a particular link.. so for the same purpose we are 
using "jacob" for doing it. its working fine standalone... but if 
have to keep it on the server side.. i.e. on the servlet engine 
(tomcat) what extra configurations u need to do.. i mean where to 
place the jacob.jar and other such configurations.. and ya where 
to set the "java.library.path" environment variables thru tomcat. 
please let me know as fast as possible

any sort of help or clue is welcome,

thanks in advance

Amrish

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




  1   2   >