Re: How to log shutting down of tomcat

2002-03-04 Thread Lev Assinovsky

You can see tomcat's shutdown in /logs/catalina.out
Run tail -f $CATALINA_HOME/logs/catalina.out

Keith Ng wrote:

> is there anyway to log the shutting down of tomcat? My tomcat server tend to
> auto shutdown for unknown reasons. I have been trying to trace to no avail.
> Currently using 1.3.1 and tomcat 4.0.2. it shuts down like after 4-5 hours
> and i wasnt able to track why did it shutdown. I have changed my ODBC-JDBC
> bridge(type 1) to type 4 drivers. It could also be my tomcat crashing... i
> do not know.
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]




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




WebDAV as _part_ of Web-Application

2002-03-04 Thread Halfmann, Klaus


We use WebDav to show parts of the internal structures 
of our application as a file system. To do so we are
currently forced to move all our classes into 
tomcat/commnon/lib resp. /classes. So our WebDav Servlet
and the Applciation can share theire data. This ruins
the Classloadaer ideas of tomcat (4.0.1) so that we
eventually cannot deploy other applications

To allow normal deployment of our application again I
think about the following approach.

  * patch the tomcat DefaultServlet so that a "subdirectory"
of an application can be a WebDav Servlet. 
I.E. part of global web.xml:

   
default
PatchedDefaultServlet

  forwardWebDAV
  true


  * Our Application could than map its (interal) WebDAV Servlet
 to a path inside the Application.

  So accessing http://host/app/index.html works as usual
  but http://host/app/webdav can be used as WebDAV area.
  Application and WebDAV Servlet can share data but other
  applications are not involved at all.
   
  We are looking for a common standard to hook into _any_
  (Java based) WebDAV Server, but I think there is no such 
  thing.

Thanks for any help.

   | Business Operation Systems GmbH
   |  _
 / | / \ \   Klaus Halfmann,  Dipl. Inform.
|  |/  /  |  
|   \_/   |  Tel. +49(0)69-24779-0 Fax +49(0)69-24779-444
 \   /   [EMAIL PROTECTED]
 

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




RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"

2002-03-04 Thread James, Stuart

if your using jdk1.4 and tomcat 4.02 try using the thin client.

ie.,
jdbc:oracle:thin:@myserver:1521:mydb

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 9:04 AM
To: Tomcat Users List
Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
library path"



First, please make sure that Oracle client is installed
in your machine.

Abhishek> Thanks buddy!
Abhishek> but ..i already did that
Abhishek> but i have a a requirement which says i have to use oci client
only
Abhishek> any other solution ???

UnsatisfiedLinkError means JVM can't find shared library.
You need to add shared library path to environment variable.

If you use solaris or linux, then you should add following 
statement in your tomcat.sh.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

if you use HP-UX, then

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH

if you use Windows, then you should add following to tomcat.bat.

set PATH=%ORACLE_HOME%\lib;%PATH%


then it will be able to find shared library. 

regards,
Watanabe.

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


___
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___


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




RE: How to log shutting down of tomcat

2002-03-04 Thread Halfmann, Klaus


Keith Ng [mailto:[EMAIL PROTECTED]] wrote:

> is there anyway to log the shutting down of tomcat? My tomcat 
> server tend to
> auto shutdown for unknown reasons. I have been trying to 
> trace to no avail.
> Currently using 1.3.1 and tomcat 4.0.2. it shuts down like 
> after 4-5 hours
> and i wasnt able to track why did it shutdown. I have changed 
> my ODBC-JDBC
> bridge(type 1) to type 4 drivers. It could also be my tomcat 
> crashing... i
> do not know.

I could think about the following reasons:
a) a hard crash of the Java VM (may happen when using native
code)
b) Some code calls System.exit()
c) You get to many OutOfMemory Exceptions eventually killing the
VM

In case of a) there should be either a core dump or at least some System
log. Try starting Tomcat in a console of its own and look what happens.

b) Can be fighted by Starting Tomcat with a Security Manager prohibiting
   a call to System.exit(). Eventually you can trace the culprit then
   by looking for the SecurityException

c) Monitor the Resource Usage of the Application and the logs 

In General setting the Debug level in the server.xml may give you
some hints (For a proper shutdown the destroy() methods of Servlets)
should be called. Hope you have enough space on your devices to log
away 4-5 hours ...

   | Business Operation Systems GmbH
   |  _
 / | / \ \   Klaus Halfmann,  Dipl. Inform.
|  |/  /  |  
|   \_/   |  Tel. +49(0)69-24779-0 Fax +49(0)69-24779-444
 \   /   [EMAIL PROTECTED]
 

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




AW: mod_jk fails in chrooted environment

2002-03-04 Thread Ralph Einfeldt


errno 111 = connection refused

I don't know all reasons for this error message. But one
reason is, that there is no service listening on the given 
port.

I guess that the java part of the connector is not running.

> -Ursprüngliche Nachricht-
> Von: Rohan Oberoi [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 5. März 2002 00:58
> An: [EMAIL PROTECTED]
> Betreff: mod_jk fails in chrooted environment
 
> [Mon Mar 04 20:02:44 2002]  [jk_connect.c (143)]: jk_open_socket,
> connect() failed errno = 111
> [Mon Mar 04 20:02:44 2002]  [jk_ajp12_worker.c (152)]: In
> jk_endpoint_t::service, Error sd = -1
 

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




RE: Tomcat 4.02 stalling?

2002-03-04 Thread Keith Ng

Using 1.3.1, 4.0.2 and It happens to me occassionally when i try to access
from Internet

-Original Message-
From: Jørgen Ramskov [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 9:12 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.02 stalling?


Reto Badertscher wrote:
> does it happen when a form is submitted? I have this kind of behaviour
> occasionally when submitting a form with many input fields -
> never tried with Tomcat 3.x.

Yes, it happens when I submit a form.

--
Joergen Ramskov

--
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: runaway process in java while using tomcat

2002-03-04 Thread Halfmann, Klaus


[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] wrote :

> I am hoping someone can help me with this problem I am having.
> I am using tomcat 4.0.1 to run a web site with jsps. This 
> site uses alot of database connecting with Informix.
> For some reason, usually within 2 hours of starting up 
> tomcat, a process will start to take up 100% of the CPU.
> The time it takes for this to happen varies.  

With Linux every JavaThread looks like a process of its own
(other as with e.g.  Solaris). So your runaway task should
normally be a Java Thread. To Monitor your application you 
could try to periodically dump the names and Status of all
Threads.  Threads created by your code should have reasonable 
names.

Another Problem might be the Informix driver. Eventually due
to some bad SQL you might receive an "infinite" amount of Data
or the Driver may produce an infinite loop. Try logging
all sql statements and have a look at them.

How is the memory consumption of you application when it "runs
away" ? It may be that the Server is trashing and wasting its
time with GCs. You might wish to reduce the number of Threads
in your server.xml in this case.

Try writing HTTPUnit Testcases to stress your pages.
( http://sourceforge.net/project/showfiles.php?group_id=6550)
You might want to create something like a "crawler" that
follows every link and "presses" every button.

As a last resort you could use a debugger (jdb should do) and
try to find out about your Application this way.

I Hope you have some more Ideas now.

   | Business Operation Systems GmbH
   |  _
 / | / \ \   Klaus Halfmann,  Dipl. Inform.
|  |/  /  |  
|   \_/   |  Tel. +49(0)69-24779-0 Fax +49(0)69-24779-444
 \   /   [EMAIL PROTECTED]
 

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




How to log shutting down of tomcat

2002-03-04 Thread Keith Ng

is there anyway to log the shutting down of tomcat? My tomcat server tend to
auto shutdown for unknown reasons. I have been trying to trace to no avail.
Currently using 1.3.1 and tomcat 4.0.2. it shuts down like after 4-5 hours
and i wasnt able to track why did it shutdown. I have changed my ODBC-JDBC
bridge(type 1) to type 4 drivers. It could also be my tomcat crashing... i
do not know.



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


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




AW: Session.getAttribute gives null when it shouldn't?

2002-03-04 Thread Ralph Einfeldt

The 'legal' ways to get this result:
- Lost session.
  If you loose a session all values assigned to the session will be
lost.
  One typical reason to loose a session: Forget to call encodeUrl() on a

  link and the user has cookies disabled. 
  Another reason: session timeout.
- removeAttribute()

> -Ursprüngliche Nachricht-
> Von: Scott Jones [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 4. März 2002 19:55
> An: Tomcat Users List
> Betreff: Session.getAttribute gives null when it shouldn't?

> Is there any reason that a session variable would occasionally return
> null?


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




RE: 2nd try: Custom tag fails to load class file

2002-03-04 Thread Halfmann, Klaus



> The class file (it extends TagSupport class)
> is located in WEB-INF/class/basic/Hello.class.
> 
> Why does it fail to load the class? I thouhg all classes
> under WEB-INF/class are automtically loaded by
> the container.
> 

Mhh, when I look at the examples folder I see 
"WEB-INF\classes". So I think you should rename
"class" to "classes" and everything should be fine.

   | Business Operation Systems GmbH
   |  _
 / | / \ \   Klaus Halfmann,  Dipl. Inform.
|  |/  /  |  
|   \_/   |  Tel. +49(0)69-24779-0 Fax +49(0)69-24779-444
 \   /   [EMAIL PROTECTED]
 

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




Monitor tomcat....

2002-03-04 Thread Gordon Luk

Hi all,

I would like to ask any GUI tools that can monitoring the tomcat server
stauts at runtime, for example : it could know how many session opened,
how many servlet instance activated etc...

Please point me where can i find it. Thanks.

Gordon


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


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




2nd try: Custom tag fails to load class file

2002-03-04 Thread K Br

Please help. A simple custom tag (bodyless) fails because
Tomcat 4.0.2 standlone can't load the class file (details below).
The class file is in WEB-INF/class and the tld file
is in WEB-INF/tld.

Is there a way to turn on class loading log
to figure out why a class is not loaded
by Tomcat.

Thank You.

From: "K Br" 
Subject:  Problem with custom tag: can't load class file
Date:  4 Mar 2002 06:20:27 -

With TC4.0.2 standalone I am unable to load a
simple (bodyless) custom tag. It fails to
load the class file.

This is the basic Hello World tag
of Jakarta. The attempt to load the
jsp file containing the tag 
throws the exception:

org.apache.jasper.compiler.CompileException: /U.jsp(14,2) Unable to
load class basic.Hello
at
org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:139)

The class file (it extends TagSupport class)
is located in WEB-INF/class/basic/Hello.class.

Why does it fail to load the class? I thouhg all classes
under WEB-INF/class are automtically loaded by
the container.

The tld file is:


http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd";>


1.0
1.1
test

  Hello
  basic.Hello
  empty
  
Print Hello World
  



/K






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




RE: Double-byte character support in TC 4.0.1

2002-03-04 Thread Jeremy Joslin

If you're encoding characters > 127 using the URLEncoder class it would
be worth your time to examine this bug report:


Jeremy Joslin
Software Engineer
Spotlife Inc.
http://www.spotlife.net

-Original Message-
From: Toru Watanabe [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 04, 2002 7:39 PM
To: Tomcat Users List
Subject: Re: Double-byte character support in TC 4.0.1


Hi Kapasi,

Kapasi> Can anyone tell me if Tomcat 4.0.1 supports double-byte 
Kapasi> characters?

Yes.

Regards,
Watanabe

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



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




Issue with Catalina Jar

2002-03-04 Thread todd tredeau

  I have a problem, as several others also have noticed this problem / 
issue. I am not submitting a bug, as I just may be stupid.

In tomcat 4.0.1, Jetspeed runs fine, no problem. In 4.0.2-> (i haven't 
found the cvs yet) it has errors.

If you replaced just the catalina.jar back to 4.0.1 it will work, no 
problem. I believe the problem is in
org.apache.turbine.util.TurbineException: Error rendering Velocity 
template: /controls/html/jetspeed.vm: Invocation of method 'getContent' 
in class 
org.apache.jetspeed.portal.security.portlets.CacheableStatefulPortletWrapper 
threw exception class java.lang.NoClassDefFoundError : 
javax/xml/transform/Source




This is consistent on multiple platforms, at least with jvm 1.3.1...

Does anyone know someone in cocoon project... I need to communicate with 
someone there who is active in programming.

thanks

todd
http://www.wiserlabz.com
collaborative project to promote Novell and Open Source solutions




RE: Apache 1.3.23 +Tomcat 4.0.2

2002-03-04 Thread Patrick Lee

See: http://www.ubeans.com/tomcat/index.html

Works for me.

At 12:19 PM 3/3/2002, Brian Adams wrote:
 >Hi David,
 >There is a two mods you can use.  mod_jk and mod_webapp.
 >webapp
 >http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/webapp/
 >
 >jk_mod
 >http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-connectors/jk/
 >
 >also,
 >http://www.jguru.com/faq/Servlets is a great site for FAQ on tomcat.  Alex
 >sends us a list of Q&A posts on jguru
 >
 >B
 >
 >-Original Message-
 >From: David Maixner [mailto:[EMAIL PROTECTED]]
 >Sent: Sunday, March 03, 2002 8:50 AM
 >To: Tomcat Users List
 >Subject: Apache 1.3.23 +Tomcat 4.0.2
 >
 >
 >I want to ask where can I find new ducument about "Apache+Tomcat-HOWTO",
 >because I only found this:
 >http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat/Attic/Tomcat%2bApache-HOWTO
 >?rev=1.4&content-type=text/vnd.viewcvs-markup
 >and it is too old (for Tomcat 3.1). I need Tomcat runnig under Apache for my
 >school-work. In that document is only written something about mod_jserv (I
 >can't find this module) and something about /path/to/tomcat/etc/tomcat.conf
 >(but this file doesn't exist). Please help me, I need it as soon as
 >possible.
 >Thank you very very much for your answers,
 >David Maixner
 >
 >
 >--
 >To unsubscribe:   
 >For additional commands: 
 >Troubles with the list: 

-- 
Patrick Lee <[EMAIL PROTECTED]>


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




[Ajp13] bad read: -103 error !

2002-03-04 Thread ravi

I am using tomcat 4.01 on win2k with ajp13 connector. All my applications
are running properly but in the stdout logs following message is logged
every 2 to 3 second!.

[Ajp13] bad read: -103

What could be the problem and How to fix this?

Thanks in advance,
With Best Regards,
Ravi Naidu


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




Re: Setting up jdbc connections

2002-03-04 Thread Joel Rees

Andrew Falanga wrote:

> However, for example, I downloaded and installed
> tomcat 3.3a via rpm for Red Hat Linux,
> ...
>  Such as, %TOMCAT_HOME/bin and many others.

This looks kinda weird to me.

Can you provide more specifics to our helpful friends on the list? OS?
Hardware? Did you ever get the examples to run? Where did you get the RPM?
(CD?Redhat?jakarta?) Did you let it unpack by the defaults? Etc.

Joel Rees




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




Re: Double-byte character support in TC 4.0.1

2002-03-04 Thread Toru Watanabe

Hi Kapasi,

Kapasi> Can anyone tell me if Tomcat 4.0.1 supports double-byte characters?

Yes.

Regards,
Watanabe

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




RE: Double-byte character support in TC 4.0.1

2002-03-04 Thread Chris Campbell


We use it for Japanese with no problems.

ChrisC

> -Original Message-
> From: Kapasi, Mehjabin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 7:52 AM
> To: 'Tomcat Users List'
> Subject: Double-byte character support in TC 4.0.1
> 
> 
> Hello,
> Can anyone tell me if Tomcat 4.0.1 supports double-byte characters?
> I have tried to look on the web for information but cannot find any. 
> Thank you in advance.
> -Mehjabin
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"

2002-03-04 Thread Toru Watanabe

Hi Abhishek,

try following jsp. this jsp displays java.library.path.
It suppose there is no "libocijdbc8.so" in above pathes.

you should find "libocijdbc8.so" and add to LD_LIBRARY_PATH.

-snip
<%
String libpath = (String)(System.getProperty("java.library.path"));
%>




library path test



The library path is <%=libpath%>



--snip--

regards,
Watanabe


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




Re: Pls Help!! Uploading an image

2002-03-04 Thread Uma Maheswar

Dear Brett,
Could you please send me the code?

Uma

- Original Message -
From: "Brett Porter" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 7:14 AM
Subject: RE: Pls Help!! Uploading an image


> You might try struts: http://jakarta.apache.org/struts
>
> It has an easy way to get multipart content from a form, including an easy
> example, but there is a learning curve to setting up struts itself.
> The code is not going to just appear before your eyes unfortunately :)
>
> - Brett
>
> -Original Message-
> From: Uma Maheswar [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 5 March 2002 12:33 PM
> To: Tomcat Users List
> Subject: Re: Pls Help!! Uploading an image
>
>
> Hi,
> I tried using O'Reilly, but it is confusing. I need a simple one than that
> one. Can you help me?
>
> Uma
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, March 05, 2002 2:34 AM
> Subject: Re: Pls Help!! Uploading an image
>
>
> > Uma,
> > The O'Reilly servlets book has a good example (including
> > code) where you can
> > upload files (including images as part of a form).
> > See
> > http://www.servlets.com/cos/javadoc/com/oreilly/servlet/m
> > ultipart/MultipartP
> > arser.html for more info.
> > Hope this helps.
> > Satyakant Evani
> > - Original Message -
> > From: "Uma Maheswar" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Monday, March 04, 2002 10:49 AM
> > Subject: Pls Help!! Uploading an image
> >
> >
> > HI,
> > I need help from any of you. I need a programme to
> > upload an image to the
> > database while submitting a form. If any one is having
> > the source code pls
> > help  me.
> >
> > Regards
> > Uma
> >
> > > nope i am using tomcat from my user area ..
> > > both tomcat and apache run from my user area
> > > there is some problem with a particular .so file which it is not able
to
> > > find
> > >
> > >
> > > -Original Message-
> > > From: brian ally [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, March 04, 2002 11:04 PM
> > > To: Tomcat Users List
> > > Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> > > library path"
> > >
> > >
> > > Are you starting tomcat as root? On my linux box, if i su to root, all
> > > manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
> > > dash). Could this be your problem?
> > >
> > > /b
> > >
> > > Abhishek Pamecha wrote:
> > >
> > > >it is there..
> > > >
> > > >-Original Message-
> > > >From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
> > > >Sent: Monday, March 04, 2002 2:34 PM
> > > >To: Tomcat Users List
> > > >Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> > > >library path"
> > > >
> > > >
> > > >
> > > >First, please make sure that Oracle client is installed
> > > >in your machine.
> > > >
> > > >Abhishek> Thanks buddy!
> > > >Abhishek> but ..i already did that
> > > >Abhishek> but i have a a requirement which says i have to use oci
> client
> > > only
> > > >Abhishek> any other solution ???
> > > >
> > > >UnsatisfiedLinkError means JVM can't find shared library.
> > > >You need to add shared library path to environment variable.
> > > >
> > > >If you use solaris or linux, then you should add following
> > > >statement in your tomcat.sh.
> > > >
> > > >LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> > > >export LD_LIBRARY_PATH
> > > >
> > > >if you use HP-UX, then
> > > >
> > > >SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
> > > >export SHLIB_PATH
> > > >
> > > >if you use Windows, then you should add following to tomcat.bat.
> > > >
> > > >set PATH=%ORACLE_HOME%\lib;%PATH%
> > > >
> > > >
> > > >then it will be able to find shared library.
> > > >
> > > >regards,
> > > >Watanabe.
> > > >
> > > >--
> > > >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: 
> > >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   

RE: Pls Help!! Uploading an image

2002-03-04 Thread Brett Porter

You might try struts: http://jakarta.apache.org/struts

It has an easy way to get multipart content from a form, including an easy
example, but there is a learning curve to setting up struts itself.
The code is not going to just appear before your eyes unfortunately :)

- Brett

-Original Message-
From: Uma Maheswar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 5 March 2002 12:33 PM
To: Tomcat Users List
Subject: Re: Pls Help!! Uploading an image


Hi,
I tried using O'Reilly, but it is confusing. I need a simple one than that
one. Can you help me?

Uma

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 2:34 AM
Subject: Re: Pls Help!! Uploading an image


> Uma,
> The O'Reilly servlets book has a good example (including
> code) where you can
> upload files (including images as part of a form).
> See
> http://www.servlets.com/cos/javadoc/com/oreilly/servlet/m
> ultipart/MultipartP
> arser.html for more info.
> Hope this helps.
> Satyakant Evani
> - Original Message -
> From: "Uma Maheswar" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, March 04, 2002 10:49 AM
> Subject: Pls Help!! Uploading an image
>
>
> HI,
> I need help from any of you. I need a programme to
> upload an image to the
> database while submitting a form. If any one is having
> the source code pls
> help  me.
>
> Regards
> Uma
>
> > nope i am using tomcat from my user area ..
> > both tomcat and apache run from my user area
> > there is some problem with a particular .so file which it is not able to
> > find
> >
> >
> > -Original Message-
> > From: brian ally [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, March 04, 2002 11:04 PM
> > To: Tomcat Users List
> > Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> > library path"
> >
> >
> > Are you starting tomcat as root? On my linux box, if i su to root, all
> > manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
> > dash). Could this be your problem?
> >
> > /b
> >
> > Abhishek Pamecha wrote:
> >
> > >it is there..
> > >
> > >-Original Message-
> > >From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
> > >Sent: Monday, March 04, 2002 2:34 PM
> > >To: Tomcat Users List
> > >Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> > >library path"
> > >
> > >
> > >
> > >First, please make sure that Oracle client is installed
> > >in your machine.
> > >
> > >Abhishek> Thanks buddy!
> > >Abhishek> but ..i already did that
> > >Abhishek> but i have a a requirement which says i have to use oci
client
> > only
> > >Abhishek> any other solution ???
> > >
> > >UnsatisfiedLinkError means JVM can't find shared library.
> > >You need to add shared library path to environment variable.
> > >
> > >If you use solaris or linux, then you should add following
> > >statement in your tomcat.sh.
> > >
> > >LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> > >export LD_LIBRARY_PATH
> > >
> > >if you use HP-UX, then
> > >
> > >SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
> > >export SHLIB_PATH
> > >
> > >if you use Windows, then you should add following to tomcat.bat.
> > >
> > >set PATH=%ORACLE_HOME%\lib;%PATH%
> > >
> > >
> > >then it will be able to find shared library.
> > >
> > >regards,
> > >Watanabe.
> > >
> > >--
> > >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: 
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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



Re: Pls Help!! Uploading an image

2002-03-04 Thread Uma Maheswar

Hi,
I tried using O'Reilly, but it is confusing. I need a simple one than that
one. Can you help me?

Uma

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 2:34 AM
Subject: Re: Pls Help!! Uploading an image


> Uma,
> The O'Reilly servlets book has a good example (including
> code) where you can
> upload files (including images as part of a form).
> See
> http://www.servlets.com/cos/javadoc/com/oreilly/servlet/m
> ultipart/MultipartP
> arser.html for more info.
> Hope this helps.
> Satyakant Evani
> - Original Message -
> From: "Uma Maheswar" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, March 04, 2002 10:49 AM
> Subject: Pls Help!! Uploading an image
>
>
> HI,
> I need help from any of you. I need a programme to
> upload an image to the
> database while submitting a form. If any one is having
> the source code pls
> help  me.
>
> Regards
> Uma
>
> > nope i am using tomcat from my user area ..
> > both tomcat and apache run from my user area
> > there is some problem with a particular .so file which it is not able to
> > find
> >
> >
> > -Original Message-
> > From: brian ally [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, March 04, 2002 11:04 PM
> > To: Tomcat Users List
> > Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> > library path"
> >
> >
> > Are you starting tomcat as root? On my linux box, if i su to root, all
> > manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
> > dash). Could this be your problem?
> >
> > /b
> >
> > Abhishek Pamecha wrote:
> >
> > >it is there..
> > >
> > >-Original Message-
> > >From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
> > >Sent: Monday, March 04, 2002 2:34 PM
> > >To: Tomcat Users List
> > >Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> > >library path"
> > >
> > >
> > >
> > >First, please make sure that Oracle client is installed
> > >in your machine.
> > >
> > >Abhishek> Thanks buddy!
> > >Abhishek> but ..i already did that
> > >Abhishek> but i have a a requirement which says i have to use oci
client
> > only
> > >Abhishek> any other solution ???
> > >
> > >UnsatisfiedLinkError means JVM can't find shared library.
> > >You need to add shared library path to environment variable.
> > >
> > >If you use solaris or linux, then you should add following
> > >statement in your tomcat.sh.
> > >
> > >LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> > >export LD_LIBRARY_PATH
> > >
> > >if you use HP-UX, then
> > >
> > >SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
> > >export SHLIB_PATH
> > >
> > >if you use Windows, then you should add following to tomcat.bat.
> > >
> > >set PATH=%ORACLE_HOME%\lib;%PATH%
> > >
> > >
> > >then it will be able to find shared library.
> > >
> > >regards,
> > >Watanabe.
> > >
> > >--
> > >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: 
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




Re: Newbie needs config help for tomcat4

2002-03-04 Thread Galbayar

create your context on the Tomcat and add to httpd.conf
WebAppDeploy youralais conn /yourcontext

this line

- Original Message -
From: "Bryan Zimmer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 03:04
Subject: Newbie needs config help for tomcat4


> Hello all,
>
> Here's the setup:
>
> I have been running Apache 1.3 and recently decided to switch to JSP from
> CGI. So I downloaded tomcat-4.0.1. I use Linux, so I found an RPM-format
> distribution of tomcat4.
>
> I need to learn how to deploy my own JSP's, which I haven't been able to
do
> yet.
>
> I can run the examples that come with Tomcat4. I managed to find the
> "webapp.so" module and enough other information about configuration that,
> after modifying my httpd.conf file and creating a "WarpConnection" through
> port 8008, I could run the test programs in the examples folder (mine is
at
> /var/tomcat4/webapps/examples, aliased to "/examples/") . I installed all
> this on my test server.
>
> I can now browse to http://(my.server.name)/examples/ and run the JSP
> examples.I do not have to specify the port as 8008.
>
> Now I want to install and test some of my own JSP's, but I can't find
> documentation on how to do this. I have a book, "JSP and Java, A Complete
> Guide to Website Development", by Art Taylor, but it focuses on Tomcat
> version 3. So I haven't even been able to deploy a simple JSP example.
>
> Can someone help me with this? I have plans to put Apache and Tomcat into
a
> production environment, and I wonder if I need to revert back to Tomcat
> version 3. I need either some configuration advice on how to deploy my own
> JSP or perhaps someone can recommend a good book or on-line tutorial on
the
> subject.
>
> I considered a newer Tomcat, but starting with 4.0.2 they seem to require
> the experimental Apache version 2. And I can't tell whether to use the
> webapp.so module or mod_jk.so.
>
> All help gratefully appreciated.
>
> Thanks,
>
>
> Bryan Zimmer
> [EMAIL PROTECTED]
>
>


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




mod_jk fails in chrooted environment

2002-03-04 Thread Rohan Oberoi

- I have a chrooted Apache 1.3.23 web server that has been running without
a problem on RedHat 7.2.

- Trying to get mod_jk to work on this server has been a nightmare.  It
works (using mod_jk.conf-auto) when I run Apache non-chrooted.  However,
when I run Apache chrooted, mod_jk fails with the errors:

[Mon Mar 04 20:02:44 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Mon Mar 04 20:02:44 2002]  [jk_ajp12_worker.c (152)]: In
jk_endpoint_t::service, Error sd = -1

I assume this means mod_jk needs something more in the chroot environment
than Apache does in order to be able to open a socket.  However, I am
rather at a loss to determine what that is.  I have copied all the shared
libraries I can think of into the chroot environment.  Are there entries
in the /dev directory that need to be created (this is on Linux)?

Thanks!
Rohan



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




RE: JSP documentation

2002-03-04 Thread Brett Porter

For Java, you use Javadoc (go to java.sun.com, don't ask those questions
here).

For JSP, you can use <%-- for comments not passed to the user --%> But you
don't get any Javadoc from that. I believe it is enough documentation for a
JSP and the rest should be external (view structure).

- Brett

-Original Message-
From: Ming [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 5 March 2002 10:53 AM
To: Tomcat Users List
Subject: JSP documentation


Hi,

I'm very new at Tomcat and JSP programming but have written some JSP
scripts.
Can someone tell me what's the best way to write in-program
documentation? I mean the documentation that can be embedded in the program.
I'm planning to write a separate documentation but heard that there might be
a
way that I can embed the documentation in the program and can be viewed
separately.

Any information will be really helpful.

Thanks.

Ming



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



JSP documentation

2002-03-04 Thread Ming

Hi,

I'm very new at Tomcat and JSP programming but have written some JSP scripts.
Can someone tell me what's the best way to write in-program
documentation? I mean the documentation that can be embedded in the program.
I'm planning to write a separate documentation but heard that there might be a
way that I can embed the documentation in the program and can be viewed
separately.

Any information will be really helpful.

Thanks.

Ming



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




RE: Tomcat/Struts Profiling results

2002-03-04 Thread Jeremy Joslin



> -Original Message-
> From: TKV Tyler VanGorder [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, March 04, 2002 3:32 PM
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat/Struts Profiling results
> 



> 
> Software
> 
> Database Server  == Oracle 8
> EJB Server   == Weblogic 6.1.0 Service Pack 2
> Servlet Engine 1 == Tomcat 4.0.1 
> Servlet Engine 2 == Weblogic 6.1.0 Service Pack 2
> 
> (We did not have a separate web server...tomcat and
> weblogic acted as our web server!)

How were the servers configured?  I didn't see anywhere in your post
where you stated that.  Specifically I'd be interested in the
configuration of your tomcat connector(s).

Jeremy Joslin
Software Engineer
SpotLife Inc.
http://www.spotlife.net


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




RE: runaway process in java while using tomcat

2002-03-04 Thread DNewman




Does the process go away or release back CPU eventually?

The process never goes away. I have two processeor for the system and once
both of them get this runaway process the website stops responding to any
http requests. and then i have to shut down and restart tomcat in turn
killing those runaway processes.

On what system?

I am running linux redhat 6.2

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 6:41 PM
To: '[EMAIL PROTECTED]'
Subject: runaway process in java while using tomcat


Hello,

I am hoping someone can help me with this problem I am having.
I am using tomcat 4.0.1 to run a web site with jsps. This site uses alot of
database connecting with Informix.
For some reason, usually within 2 hours of starting up tomcat, a process
will start to take up 100% of the CPU.
The time it takes for this to happen varies.  Ive tried to reproduce it on
a test site by myself but cannot seem to reproduce it.
It only happens when alot of users are using the site and some user seems
to be causing this to happen.
The site has alot of people hitting it because it is close to easter and
people are ordering from this site.

Well, I was wondering what could cause this runaway process in tomcat.  I
have check all my loops and logic it doesnt seem to be any infinite loops
in the code.  Has anyone else had this problem with tomcat? If anyone has a
suggestion to track this problem down or someone who has a similar problem
please respond as soon as possible.

Ive spent about 1 week on this and cant seem to find the problem.  I really
need to get this fixed immediately.

Thanks in advanced,

Dave


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




RE: runaway process in java while using tomcat

2002-03-04 Thread Dahnke, Eric

Does the process go away or release back CPU eventually?

On what system?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 6:41 PM
To: '[EMAIL PROTECTED]'
Subject: runaway process in java while using tomcat


Hello,

I am hoping someone can help me with this problem I am having.
I am using tomcat 4.0.1 to run a web site with jsps. This site uses alot of
database connecting with Informix.
For some reason, usually within 2 hours of starting up tomcat, a process
will start to take up 100% of the CPU.
The time it takes for this to happen varies.  Ive tried to reproduce it on
a test site by myself but cannot seem to reproduce it.
It only happens when alot of users are using the site and some user seems
to be causing this to happen.
The site has alot of people hitting it because it is close to easter and
people are ordering from this site.

Well, I was wondering what could cause this runaway process in tomcat.  I
have check all my loops and logic it doesnt seem to be any infinite loops
in the code.  Has anyone else had this problem with tomcat? If anyone has a
suggestion to track this problem down or someone who has a similar problem
please respond as soon as possible.

Ive spent about 1 week on this and cant seem to find the problem.  I really
need to get this fixed immediately.

Thanks in advanced,

Dave


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

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




runaway process in java while using tomcat

2002-03-04 Thread DNewman

Hello,

I am hoping someone can help me with this problem I am having.
I am using tomcat 4.0.1 to run a web site with jsps. This site uses alot of
database connecting with Informix.
For some reason, usually within 2 hours of starting up tomcat, a process
will start to take up 100% of the CPU.
The time it takes for this to happen varies.  Ive tried to reproduce it on
a test site by myself but cannot seem to reproduce it.
It only happens when alot of users are using the site and some user seems
to be causing this to happen.
The site has alot of people hitting it because it is close to easter and
people are ordering from this site.

Well, I was wondering what could cause this runaway process in tomcat.  I
have check all my loops and logic it doesnt seem to be any infinite loops
in the code.  Has anyone else had this problem with tomcat? If anyone has a
suggestion to track this problem down or someone who has a similar problem
please respond as soon as possible.

Ive spent about 1 week on this and cant seem to find the problem.  I really
need to get this fixed immediately.

Thanks in advanced,

Dave


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




Tomcat/Struts Profiling results

2002-03-04 Thread TKV Tyler VanGorder

Hi,

For the last week and a half, a colleague and myself have been doing load/
scalability testing for our struts/jsp-based application. I would like to
share our results in the hopes that it may help someone else faced with a
similar task. We had a tough time finding real-world examples that we could
learn from. 

This is a LONG post, so I will try to summarize first:
==
Yeah..the summary is pretty long as well. 8-)

For JSP, tag-heavy applications, we found tuning parameters that may help
others get better performance out of tomcat.

We simulated a load of 50 concurrent users using automation tools that
remove any human pauses. This is roughly equivalent to 250+ concurrent,
human users. Yes...that is an estimation.

Initially, using Tomcat 4.0.1, Stuts 1.0 Final:

The IBM JDK performed MUCH MUCH better than Sun's Server Hotspot
JVM (1.3.1)

After profiling, we discovered that a significant amount of our time
was being spent in the garbage collector with the hotspot JVM. Some
of our garbage collections took a 12+ seconds! Ouch.

We attempted tweaking the various hotspot JVM parameters to see if we
could get the hotspot VM in line with IBM's performance. We did get
better results but we still had some GCs that were taking 6 seconds.

We had a large number of throw-away objects that were confusing the
garbage collector in hotspot.

We deployed the SAME EXACT application under Weblogic 6.1's servlet
engine, using the hotspot JVM, and we saw much better performance and
this was without any hotspot tuning parameters!

So we switched back to tomcat and we ran the application, using OptimizeIt
to profile the application. A majority of our time was being spent in
the constructor of BodyContentImpl because of an initial 8K char buffer
being created for EACH tag, embedded in our page. This was more pronounced
in our application because we iterated over content that had tags nested
in the iteratorthat's 8K X Number of iterations X number of nested
tags! We found that in our application most of our tags were only outputting
a few characters.

We recompiled the BodyContentImpl and changed the initial buffer size to
512 bytes. The results were dramatic and hotspot began outperforming the IBM
JDK. Keep in mind that the hotspot server VM takes a while to tune its
runtime
so was necessary to run our scalability test on the hotspot VM several
times.
I submitted an enhancement to bugzilla, its ID is 6858.

The final results were impressive!

Our application has one workflow that is VERY database intensive. It takes
a human user approximately two minutes to complete the workflow once they
are familiar with it. The transaction does 20-40 database selects with
result
sets in the range of 10-40 rows each (on average). 20+ Inserts when the
transaction is finally saved. All database activity happens in real time,
while
the user walks through our workflow.

Tomcat 4.0.1 + (our hack), using Hotspot Server JVM 1.3.1:

   Hardware: EJB server - PII 300 (-Xms64m -Xmx64m)
 Servlet/web server - PIII Dual 550 (-Xms128m -Xmx128m)
  
   Simulated 50 automated users (No human pauses) - Average transaction
speed
   21 seconds, longest time 27 seconds!
   
Of course this is our application...and each application will have its own
load characteristics, but it is a good example of struts + tomcat.

So..if our 50 automated users average 21 seconds and a human user takes
roughly 2 minutes for the same workflow then the above platform *SHOULD*
be able to support 6X the number of human users (300 users)

Thanks and I hope this information might be useful to others trying to get
a feel for how well JSP/struts will scale.

Tyler Van Gorder [EMAIL PROTECTED]
Reed Roberts
Landacorp.

=
Detailsand the actual different tuning parameters we used:

The environments we used are as follows:


Hardware:

We used a low-end machine for the EJB server.

Database server:
  Compaq Proreliant ML370 Dual PIII 800 
  Windows 2000 Advanced Server Service Pack 2
  1Gig Ram

EJB Server:
 PII 300
 NT 4.0 Server
 128M Ram

Servlet Engine/Web Server
 PIII Dual 550.
 Windows 2000 Workstation
 256M Ram

5 client test machines...ranging in size
 Win 98 & Win NT machines.
 
All hardware was isolated on the same 100M Switch/hub



Software

Database Server  == Oracle 8
EJB Server   == Weblogic 6.1.0 Service Pack 2
Servlet Engine 1 == Tomcat 4.0.1 
Servlet Engine 2 == Weblogic 6.1.0 Service Pack 2

(We did not have a separate web server...tomcat and
weblogic acted as our web server!)



Load testing software:

We used our own, home grown, load testing software.
We first set up a proxy between a browser client and
the web server. The proxy 

Double-byte character support in TC 4.0.1

2002-03-04 Thread Kapasi, Mehjabin

Hello,
Can anyone tell me if Tomcat 4.0.1 supports double-byte characters?
I have tried to look on the web for information but cannot find any. 
Thank you in advance.
-Mehjabin

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




Re: Setting up jdbc connections

2002-03-04 Thread Emir Alikadic

On 03/04/2002 04:18 PM, Andrew Falanga wrote:

>Hello everyone,
>

Hi,

>
>Setting up Tomcat is NO easy project.  I've been struggling for 
>about a week and a half to get tomcat to read a special 
>servlet/application/I really don't know what to call it. 
> (Unfortunately, that's my biggest problem, I'm very unfamiliar with 
>things I'm playing around with right now.)
>

Setting up Tomcat is a breeze, but not for somebody who doesn't know the 
difference between a servlet and an application.

>
>Ok, in simplest terms possible here's the deal.  I'm trying to get a 
>working model of something my company calls a portal.  Basically, it's 
>nothing more than a product that will allow a person to use *.jsp 
>rendered web pages to access/control/manipulate data contained withing 
>Oracle databases.  This is the long term.  Right now, I need to get the 
>application working to allow someone to log in.  The database which 
>controls user access is NOT part of Oracle.  It is a PostgreSQL database.
>

Designing and implementing that "nothing more than a product" is what 
many of us have gone through 4 years of university and hundreds of books 
and white papers to learn to do.

>
>How, exactly, do I setup the JDBC stuff to interact with PostgreSQL? 
> I've been reading through the users guide, the paper on server.xml and 
>the FAQ.  The information is comprehensive, I do think lacking in some 
>parts, but none-the-less comprehensive.  (I do not mean to start flame 
>wars or anything else.  However, for example, I downloaded and installed 
>tomcat 3.3a via rpm for Red Hat Linux, the rpm was made by tomcat 
>developers not red hat.  After installing, I'm reading through the users 
>guide and there are several directories meantioned that DO NOT exist. 
> Such as, %TOMCAT_HOME/bin and many others.  This is what I mean by 
>lacking.)
>

If you don't understand that $TOMCAT_HOME (or %TOMCAT_HOME%, if you're 
on WIndows) refers to the environment variable TOMCAT_HOME you were 
supposed to create as part of installation, I suggest you go back and 
first learn a few basics of the operating system you're working on (mail 
headers indicate Linux).

>
>How exactly am I going to go about setting up the database 
>connectivity?  From what I've read, I've got to configure some kind of a 
>JDBC Realm in the server.xml, but how exactly.  I did try, following the 
>syntax example given in one of the user guide documents, but after 
>restarting tomcat, tomcat was broken.  Absolutely, nothing was being 
>served up.  I did make syntax substitutions to allow for my database vs. 
>the database given in the example, and yes I'm absolutely open to the 
>fact that my syntax was wrong.  Basically, what needs to be done?  I'm 
>really nearing the end of my rope on this one.
>

For basic database connectivity you don't need JDBC realm, all you need 
is a JDBC driver for the RDBMS you're working with (PostgreSQL or 
Oracle) and use the "regular" JDBC syntax in either JSPs or servlets. 
 You can also use JDBC taglib, but you still need the driver.  If this 
paragraph doesn't make sense, I suggest you stay away from Tomcat until 
you learn the basics of Java and J2EE programming.

>
>Andy
>

Emir.


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




Problem with mod_jk.conf file

2002-03-04 Thread Jeff Self

I tried installing a package called Servlet_JDBC_Validate.war into my
$TOMCAT_HOME/webapps directory. I restarted Tomcat and Apache as well as
run tomcat.sh start -jkconf (I'm running Tomcat with Apache). When I
tried to bring up http://localhost/Servlet_JDBC_Validate/ but I got a
file not found error message. I looked at the mod_jk.conf file and
noticed that it had JkMount /Servlet/JDBC/Validate ajp13 and
/Servlet/JDBC/Validate/* ajp13 even though the directory under
$TOMCAT_HOME/webapps/ is Servlet_JDBC_Validate. So my app only comes up
when I type the URL as http://localhost/Servlet/JDBC/Validate.; Anybody
know whats wrong? Is there a setting I need to change. I'm running
Tomcat 3.3a by the way.

-- 
Jeff Self
Information Technology Analyst
Department of Personnel
City of Newport News
2400 Washington Ave.
Newport News, VA 23607
757-926-6930


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




Re: mod_webapp with apache 2.0

2002-03-04 Thread Cavan Morris

Your right about the makefile.  I guess what I said before wasn't exactly so.  What I 
ment was that the output of the make command didn't link it shared.  What I actually 
did to "fix" it was copy the last libtool opperation from the output to the command 
line, edit it, and rerun it.  Here is exactly what I do to build mod_webapp.so.  If 
this doesn't work, contact me directly and I'll send you my binary.


>tar -xvzf ./webapp-module-1.0.2-tc402-src.tar.gz

>cd webapp-module-1.0.2-tc402/

>./support/buildconf.sh

>./configure --with-apxs=/usr/local/apache2/bin/apxs

>make
This produces some output that I examine for the line which I copy and past and edit 
to get the .so file.

>cd apache-2.0/

I copy the following from the output:
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_webapp.la -rpath 
/usr/local/apache2/modules -module -avoid-version -I../include  -L../lib -lwebapp  
mod_webapp.lo

And edit it like so to produce the last command.  The changes I made were after the 
gcc, I added -shared and changed the name of the output file after -o from 
mod_webapp.la to mod_webapp.so

>/usr/local/apache2/build/libtool --silent --mode=link gcc -shared -o mod_webapp.so 
>-rpath /usr/local/apache2/modules -module -avoid-version -I../include  -L../lib 
>-lwebapp  mod_webapp.lo

That is all I had to do... But it did not work with apache 2.0.28.  It only worked 
with apache 2.0.32

Cavan Morris

- Original Message - 
From: "John Chan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 10:41 AM
Subject: Re: mod_webapp with apache 2.0


> Hi...
> 
> Would you be so kind as to send the makefile you used. I don't really
> understand how the whole compile process here works. From what I can see,
> running make (the one generated by configure) only runs apxs... Thanks in
> advance.
> 
> Regards,
> 
> John
> 
> > I believe the makefile is wrong.  I had to look at the output of the make
> command and find a command near the end that was run in the
> /apache-2.0 dir that was linking mod_webapp.la.  I then copies that
> command, added the -shared flag and changed the output to mod_webapp.so.
> > This worked for me with apache 2.0.32 but not 2.0.28.
> >
> > - Original Message -
> > From: "John Chan" <[EMAIL PROTECTED]>
> > To: "Tomcat" <[EMAIL PROTECTED]>
> > Sent: Friday, March 01, 2002 4:27 PM
> > Subject: mod_webapp with apache 2.0
> >
> >
> > > Hi,
> > >
> > > I'm trying to build webapp on Red Hat 7.2 to use with Apache 2.0.
> All
> > > the documentation refers to the output being a .so file but I don't get
> one.
> > > I get a .o .la .slo and a .lo (which is pointing to the .o file). I took
> a
> > > look at the make file, and it doesn't make any mention of .so. I also
> tried
> > > a couple different versions of libtool (shot in the dark) but no go. Not
> > > being very knowledgeable in this matter, is there a problem or is this
> the
> > > expected output. 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: 




Setting up jdbc connections

2002-03-04 Thread Andrew Falanga

Hello everyone,

Setting up Tomcat is NO easy project.  I've been struggling for 
about a week and a half to get tomcat to read a special 
servlet/application/I really don't know what to call it. 
 (Unfortunately, that's my biggest problem, I'm very unfamiliar with 
things I'm playing around with right now.)

Ok, in simplest terms possible here's the deal.  I'm trying to get a 
working model of something my company calls a portal.  Basically, it's 
nothing more than a product that will allow a person to use *.jsp 
rendered web pages to access/control/manipulate data contained withing 
Oracle databases.  This is the long term.  Right now, I need to get the 
application working to allow someone to log in.  The database which 
controls user access is NOT part of Oracle.  It is a PostgreSQL database.

How, exactly, do I setup the JDBC stuff to interact with PostgreSQL? 
 I've been reading through the users guide, the paper on server.xml and 
the FAQ.  The information is comprehensive, I do think lacking in some 
parts, but none-the-less comprehensive.  (I do not mean to start flame 
wars or anything else.  However, for example, I downloaded and installed 
tomcat 3.3a via rpm for Red Hat Linux, the rpm was made by tomcat 
developers not red hat.  After installing, I'm reading through the users 
guide and there are several directories meantioned that DO NOT exist. 
 Such as, %TOMCAT_HOME/bin and many others.  This is what I mean by 
lacking.)


How exactly am I going to go about setting up the database 
connectivity?  From what I've read, I've got to configure some kind of a 
JDBC Realm in the server.xml, but how exactly.  I did try, following the 
syntax example given in one of the user guide documents, but after 
restarting tomcat, tomcat was broken.  Absolutely, nothing was being 
served up.  I did make syntax substitutions to allow for my database vs. 
the database given in the example, and yes I'm absolutely open to the 
fact that my syntax was wrong.  Basically, what needs to be done?  I'm 
really nearing the end of my rope on this one.

Andy


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




RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared librarypath"

2002-03-04 Thread Abhishek Pamecha

my requirement restricts me to use only oci driver .. :(

-Original Message-
From: Fabio Sato [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 2:35 AM
To: Tomcat Users List
Subject: RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
librarypath"


Why don´t you try the Oracle Thin JDBC Driver?

Fabio Sato - [EMAIL PROTECTED]

On Tue, 5 Mar 2002, Abhishek Pamecha wrote:

> nope i am using tomcat from my user area ..
> both tomcat and apache run from my user area
> there is some problem with a particular .so file which it is not able to find
> 
> 
> -Original Message-
> From: brian ally [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 11:04 PM
> To: Tomcat Users List
> Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> library path"
> 
> 
> Are you starting tomcat as root? On my linux box, if i su to root, all 
> manner of LD_LIBRARY_PATH problems begin. i need to su - (with the 
> dash). Could this be your problem?
> 
> /b
> 
> Abhishek Pamecha wrote:
> 
> >it is there..
> >
> >-Original Message-
> >From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, March 04, 2002 2:34 PM
> >To: Tomcat Users List
> >Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> >library path"
> >
> >
> >
> >First, please make sure that Oracle client is installed
> >in your machine.
> >
> >Abhishek> Thanks buddy!
> >Abhishek> but ..i already did that
> >Abhishek> but i have a a requirement which says i have to use oci client only
> >Abhishek> any other solution ???
> >
> >UnsatisfiedLinkError means JVM can't find shared library.
> >You need to add shared library path to environment variable.
> >
> >If you use solaris or linux, then you should add following 
> >statement in your tomcat.sh.
> >
> >LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> >export LD_LIBRARY_PATH
> >
> >if you use HP-UX, then
> >
> >SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
> >export SHLIB_PATH
> >
> >if you use Windows, then you should add following to tomcat.bat.
> >
> >set PATH=%ORACLE_HOME%\lib;%PATH%
> >
> >
> >then it will be able to find shared library. 
> >
> >regards,
> >Watanabe.
> >
> >--
> >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: 
> 
> 


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


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




RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared librarypath"

2002-03-04 Thread Fabio Sato

Why don´t you try the Oracle Thin JDBC Driver?

Fabio Sato - [EMAIL PROTECTED]

On Tue, 5 Mar 2002, Abhishek Pamecha wrote:

> nope i am using tomcat from my user area ..
> both tomcat and apache run from my user area
> there is some problem with a particular .so file which it is not able to find
> 
> 
> -Original Message-
> From: brian ally [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 11:04 PM
> To: Tomcat Users List
> Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> library path"
> 
> 
> Are you starting tomcat as root? On my linux box, if i su to root, all 
> manner of LD_LIBRARY_PATH problems begin. i need to su - (with the 
> dash). Could this be your problem?
> 
> /b
> 
> Abhishek Pamecha wrote:
> 
> >it is there..
> >
> >-Original Message-
> >From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, March 04, 2002 2:34 PM
> >To: Tomcat Users List
> >Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> >library path"
> >
> >
> >
> >First, please make sure that Oracle client is installed
> >in your machine.
> >
> >Abhishek> Thanks buddy!
> >Abhishek> but ..i already did that
> >Abhishek> but i have a a requirement which says i have to use oci client only
> >Abhishek> any other solution ???
> >
> >UnsatisfiedLinkError means JVM can't find shared library.
> >You need to add shared library path to environment variable.
> >
> >If you use solaris or linux, then you should add following 
> >statement in your tomcat.sh.
> >
> >LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> >export LD_LIBRARY_PATH
> >
> >if you use HP-UX, then
> >
> >SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
> >export SHLIB_PATH
> >
> >if you use Windows, then you should add following to tomcat.bat.
> >
> >set PATH=%ORACLE_HOME%\lib;%PATH%
> >
> >
> >then it will be able to find shared library. 
> >
> >regards,
> >Watanabe.
> >
> >--
> >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: 
> 
> 


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




Re: Pls Help!! Uploading an image

2002-03-04 Thread evanis6

Uma,
The O'Reilly servlets book has a good example (including 
code) where you can
upload files (including images as part of a form).
See
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/m
ultipart/MultipartP
arser.html for more info.
Hope this helps.
Satyakant Evani
- Original Message -
From: "Uma Maheswar" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 10:49 AM
Subject: Pls Help!! Uploading an image


HI,
I need help from any of you. I need a programme to 
upload an image to the
database while submitting a form. If any one is having 
the source code pls
help  me.

Regards
Uma

> nope i am using tomcat from my user area ..
> both tomcat and apache run from my user area
> there is some problem with a particular .so file which it is not able to 
> find
> 
> 
> -Original Message-
> From: brian ally [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 11:04 PM
> To: Tomcat Users List
> Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> library path"
> 
> 
> Are you starting tomcat as root? On my linux box, if i su to root, all 
> manner of LD_LIBRARY_PATH problems begin. i need to su - (with the 
> dash). Could this be your problem?
> 
> /b
> 
> Abhishek Pamecha wrote:
> 
> >it is there..
> >
> >-Original Message-
> >From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, March 04, 2002 2:34 PM
> >To: Tomcat Users List
> >Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> >library path"
> >
> >
> >
> >First, please make sure that Oracle client is installed
> >in your machine.
> >
> >Abhishek> Thanks buddy!
> >Abhishek> but ..i already did that
> >Abhishek> but i have a a requirement which says i have to use oci client 
> only
> >Abhishek> any other solution ???
> >
> >UnsatisfiedLinkError means JVM can't find shared library.
> >You need to add shared library path to environment variable.
> >
> >If you use solaris or linux, then you should add following 
> >statement in your tomcat.sh.
> >
> >LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> >export LD_LIBRARY_PATH
> >
> >if you use HP-UX, then
> >
> >SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
> >export SHLIB_PATH
> >
> >if you use Windows, then you should add following to tomcat.bat.
> >
> >set PATH=%ORACLE_HOME%\lib;%PATH%
> >
> >
> >then it will be able to find shared library. 
> >
> >regards,
> >Watanabe.
> >
> >--
> >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: 
> 

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




RE: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"

2002-03-04 Thread Abhishek Pamecha

nope i am using tomcat from my user area ..
both tomcat and apache run from my user area
there is some problem with a particular .so file which it is not able to find


-Original Message-
From: brian ally [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 11:04 PM
To: Tomcat Users List
Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
library path"


Are you starting tomcat as root? On my linux box, if i su to root, all 
manner of LD_LIBRARY_PATH problems begin. i need to su - (with the 
dash). Could this be your problem?

/b

Abhishek Pamecha wrote:

>it is there..
>
>-Original Message-
>From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
>Sent: Monday, March 04, 2002 2:34 PM
>To: Tomcat Users List
>Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
>library path"
>
>
>
>First, please make sure that Oracle client is installed
>in your machine.
>
>Abhishek> Thanks buddy!
>Abhishek> but ..i already did that
>Abhishek> but i have a a requirement which says i have to use oci client only
>Abhishek> any other solution ???
>
>UnsatisfiedLinkError means JVM can't find shared library.
>You need to add shared library path to environment variable.
>
>If you use solaris or linux, then you should add following 
>statement in your tomcat.sh.
>
>LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
>export LD_LIBRARY_PATH
>
>if you use HP-UX, then
>
>SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
>export SHLIB_PATH
>
>if you use Windows, then you should add following to tomcat.bat.
>
>set PATH=%ORACLE_HOME%\lib;%PATH%
>
>
>then it will be able to find shared library. 
>
>regards,
>Watanabe.
>
>--
>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: JDK1.4 + Tomcat 4.0.3 + Ajp13: Connector Socket Exception

2002-03-04 Thread Jarecsni János

Hi,

our TC402 hung the very same way. mod_jk+TC402+JDK1.4.0 doesn't seem to work
well together. Maybe someone should file a bugreport...

Cheers,
J

|-Original Message-
|From: Fábio Sato [mailto:[EMAIL PROTECTED]]
|Sent: Monday, March 04, 2002 7:50 PM
|To: [EMAIL PROTECTED]
|Subject: JDK1.4 + Tomcat 4.0.3 + Ajp13: Connector Socket Exception
|
|
|I upgrade my JDK and Tomcat to solve some instability problems that I
|was having using the following configuration:
|Linux RH 7.2 + Sun JDK 1.3.1 + Tomcat 4.0.1 + Apache 1.3.22
|
|Now I have the Sun JDK1.4 and Tomcat 4.0.3 integrated with the Apache
|Server via mod_jk (Ajp13). The problem is that the new Tomcat Server
|stalled after 2 days running our site and the only relevant information
|that I´ve found in the logs is this error:
|
|---
|2002-03-04 15:34:59 Ajp13Processor[8009][4] process: invoke
|java.net.SocketException: Socket closed
|at java.net.SocketOutputStream.socketWrite0(Native Method)
|at
|java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
|at java.net.SocketOutputStream.write(SocketOutputStream.java:126)
|at org.apache.ajp.Ajp13.send(Ajp13.java:525)
|at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496)
|at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
|at
|org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:192)
|at
|org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435)
|at
|org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
|at java.lang.Thread.run(Thread.java:536)
|---
|
|Besides the "SocketException" errors, the pages are being served without
|any problem. But I wander if this is not related to my tomcat "hangup"
|problem, because I was not having this error with my previous
|configuration (I´m using the same httpd.conf , server.xml and
|workers.properties files).
|
|---
|Fábio Sato - [EMAIL PROTECTED]
|
|
|
|--
|To unsubscribe:   
|For additional commands: 
|Troubles with the list: 
|
|


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




Tomcat 3.2.2 gets hung when loading shared object on Solaris 2.6

2002-03-04 Thread Wei Wang



 

> Hi,
> 
> I got a problem when using Tomcat 3.2.2 on Solaris.
> The Tomcat 3.2.2 gets hanging when loading the shared object
> libBTServicesDLL.so on Solaris 2.6. This problem is really strange.
> Tomcat does find the JNI library and all the related shared objects.
> If I removed any of the so files, it will complain 'cannot find the
> file'. But all the so files are put under the specific directory,
> which is included in LD_LIBRARY_PATH in the environment and
> $HOME/.tomcatrc file.
> Tomcat does not throw any exceptions.
> 
> If I run the library loading and call the native methods from command
> line, it works fine.
> 
> Does anybody have the similar problem?
> 
> Thanks advance for your help,
> 
> -Wei
> -
> Wei Wang
> bTrade, Inc
> 2324 GateWay Dr,
> Irving, TX 75063
> 972-580-2948
> [EMAIL PROTECTED]
> -
> 

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




Re: HttpExtensionProc error, could not get a worker for name ajp12

2002-03-04 Thread Marcel Stoer

> i followed andrew bruno's instructions
> (http://www.vacodi.com/howto/tomcat/iisnt/index.html) on how to integrate
> tomcat 4.0.1 with iis5.
> i've done that several times before on older systems - so i call myself an
> 'experienced integrator'. i've encountered all sort of problems and was
> always able to solve them the one way or the other. this time, however, i
> don't a clue. i would appreciate very much if you could have look into
this
> issue.
>
> in the iis_redirect.log it says:
> HttpExtensionProc error, could not get a worker for name ajp12
>
> ok, sounds easy. there must be a reference to ajp12 in workers.properties
or
> uriworkermap.properties i thought. i checked those files several times
word
> by word
> but ajp12 is cleanly commented or never stated. i also checked server.xml
> and netstat -a for the presence of an ajp13 connector on port 8009 - it's
> open and running. also, all the rest like ISAPI running, virt dir jakarta,
> registry entries etc seem to be ok.
>
> any clue?
>
> thank you so much for your help
> marcel
>
> the properties and the isapi log can be found at
> www.frightanic.com/tomcat_iis_problem.zip
>


hi all

i solved the problem myself. it was mean one...
i had to isapi_redirect.dll as ISAPI Filters in IIS running. one was left
from an unfinished installation of sun's webservice pack (ships with tomcat)
and was installed on website basis. the other was the one i wanted to use
and was defined on webserver level i removed to one on website level and
rebooted my system. everything running!

marcel




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




HttpExtensionProc error, could not get a worker for name ajp12

2002-03-04 Thread Marcel Stoer

hi all

i solved the problem myself. it was mean one...
i had to isapi_redirect.dll as ISAPI Filters in IIS running. one was left
from an unfinished installation of sun's webservice pack (ships with tomcat)
and was installed on website basis. the other was the one i wanted to use
and was defined on webserver level i removed to one on website level and
rebooted my system. everything running!

marcel



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




[ANNOUNCE] Fancy/DirServlet prerelease

2002-03-04 Thread Christopher K . St . John

DirServlet and FancyDirServlet are drop-in replacements
for o.a.c.s.DefaultServlet that provide enhanced directory
index generation.

The contexts of the gzip'ed tar file and the zip file are
identical. The tar file is smaller but some Windows users
may be happier with the zip:

  Unix users:
  http://www.distributopia.com/servlet_stuff/fdir-0.1.tgz

  Windows users:
  http://www.distributopia.com/servlet_stuff/fdir-0.1.zip

DirServlet is a very basic example. It extends
DefaultServlet and overrides just the directory listing
methods. To keep it simple, there is almost no formatting
code, so the listings it generates are fairly ugly.
However, it includes all the necessary skeleton code for
getting the directory entries, sorting them, including
headers, etc.

FancyDirServlet has more formatting code. The goal is to
reproduce much of the functionality of Apache httpd's
mod_autoindex. It's nowhere near finished.

The is a prerelease. It has only been tested against my
personal out-of-synch copy of Catalina HEAD. It may not
work for you. If it doesn't, I'd like to hear about it.
If it does, I'd like to hear about it.  

Thanks, and good luck.

-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com


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




Problems with session loss using Response.sendRedirect() (Tomcat 3.1) ?

2002-03-04 Thread Drew Cox

We are experiencing a vexing problem in our production system and a vaguely
related post in the jGuru FAQ (http://www.jguru.com/faq/view.jsp?EID=53251)
made me think others may have seen this.

We have two separate web applications running in the same Tomcat 3.1 server.
One of the business process is:

1. webapp #1 initiates a session and then supplies a few screens.
2. webapp #1 uses Response.sendRedirect() to send user to webapp #2.
3. webapp #2 initiates it's own session and supplies a bunch of screens.
4. webapp #2 invalidates it's session then uses Response.sendRedirect() to
send user back to webapp #1.
5. webapp #1 continues on, using it's session and supplies some more
screens.

The problem is, for a relatively small, but significant number of our users,
at step 5. we find their original session from webapp #1 is missing.  We
have now added parameters to the redirected URL to enable us to recover the
session from the database, but we would like to get to the bottom of this.

A few notes:

- From logging entries we can confirm that session #1 is not timing out.
- We *never* get this in internal testing at any of our sites, which makes
us suspicious of things like browser differences, firewall policies etc.
- We get about 10-20 of these per day, our of about 300 uses of this
process.

So...

Anyone else seen this behavior?  Are there known problems around the
redirect in 3.1?  Anyone have any crazy ideas about what might cause this
sort of thing?

Any help appreciated.
Drew


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




Newbie needs config help for tomcat4

2002-03-04 Thread Bryan Zimmer

Hello all,

Here's the setup:

I have been running Apache 1.3 and recently decided to switch to JSP from
CGI. So I downloaded tomcat-4.0.1. I use Linux, so I found an RPM-format
distribution of tomcat4.

I need to learn how to deploy my own JSP's, which I haven't been able to do
yet.

I can run the examples that come with Tomcat4. I managed to find the
"webapp.so" module and enough other information about configuration that,
after modifying my httpd.conf file and creating a "WarpConnection" through
port 8008, I could run the test programs in the examples folder (mine is at
/var/tomcat4/webapps/examples, aliased to "/examples/") . I installed all
this on my test server.

I can now browse to http://(my.server.name)/examples/ and run the JSP
examples.I do not have to specify the port as 8008.

Now I want to install and test some of my own JSP's, but I can't find
documentation on how to do this. I have a book, "JSP and Java, A Complete
Guide to Website Development", by Art Taylor, but it focuses on Tomcat
version 3. So I haven't even been able to deploy a simple JSP example.

Can someone help me with this? I have plans to put Apache and Tomcat into a
production environment, and I wonder if I need to revert back to Tomcat
version 3. I need either some configuration advice on how to deploy my own
JSP or perhaps someone can recommend a good book or on-line tutorial on the
subject.

I considered a newer Tomcat, but starting with 4.0.2 they seem to require
the experimental Apache version 2. And I can't tell whether to use the
webapp.so module or mod_jk.so.

All help gratefully appreciated.

Thanks,


Bryan Zimmer
[EMAIL PROTECTED]




smime.p7s
Description: application/pkcs7-signature


tc4-- multiple catalina bases, one binary

2002-03-04 Thread Rami Friedman


Hi.

I'm trying to create an environment in which many developers can develop
on a single instance of tomcat on a single host.  I've written a script
that sets each user's CATALINA_BASE appropriately and creates the webapps
and conf directories under the respective base dirs.  It also assigns a
unique port to each developer and puts that port in the developer's
server.xml (port attribute of the Connector element).

My problem is that the startup.sh and shutdown.sh scripts for any given
developer appear to be starting and stopping the entire tomcat instance--
not just the connector listening on the developer's assigned port.


What am I doing wrong?

Thanks.


(BTW, I did search the archives before posting this question.)


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




Session.getAttribute gives null when it shouldn't?

2002-03-04 Thread Scott Jones

Hello,

I've just upgraded to Tomcat 4.0.1 (I'm using Cocoon 2, and wasn't able
to get everything working with 4.0.2).  I've just received an error from
one user (my error page stores errors, and their stacktraces), where 
they had a session.getAttribute("something") that returned null where
earlier in the same JSP it actually returned the correct value (and it
also returned to correct value in my error page).

Is there any reason that a session variable would occasionally return
null?

-Scott



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




RE: indexing Adobe PDF documents using Tomcat

2002-03-04 Thread Cox, Charlie

you may want to look at lucene(another jakarta project). They focus on the
indexing/searching of documents, so you may want to see if someone has
contributed anything for PDFs.

I'd hate to see anyone be forced to use ASP's :)
Charlie

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 4:07 AM
> To: Tomcat Users List
> Subject: indexing Adobe PDF documents using Tomcat 
> 
> 
> Hello all,
> 
> i followed this list for a while and read through the manuals 
> but I found
> nothing about this topic.
> 
> We are running our application on a IIS Server using ASP 
> Technologie. We
> made the decision
> for a redesign using Tomcat and it  seems that we can rebuild 
> all features
> except for that.
> Hope you can help. Otherwise the bosses will force me to use 
> ASP again.
> 
> One part of our application is a search engine which looks through
> previously indexed pdf Documents.
> We use Adobe PDF Ifilter Library  and Microsoft Indexing for that.
> 
> So I have to find a method which lets me search through PDF Docs using
> Tomcat running on a linux box.
> 
> Thanks in advance for any hints which points me to right direction.
> 
> 
> Marcus Elwert
> 
> Fanuc Germany GmbH
> E-Business Consultant
> Phone +49 7158 187 322
> Fax  + 49 7158 187 422
> Mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




JDK1.4 + Tomcat 4.0.3 + Ajp13: Connector Socket Exception

2002-03-04 Thread Fábio Sato

I upgrade my JDK and Tomcat to solve some instability problems that I 
was having using the following configuration:
Linux RH 7.2 + Sun JDK 1.3.1 + Tomcat 4.0.1 + Apache 1.3.22

Now I have the Sun JDK1.4 and Tomcat 4.0.3 integrated with the Apache 
Server via mod_jk (Ajp13). The problem is that the new Tomcat Server 
stalled after 2 days running our site and the only relevant information 
that I´ve found in the logs is this error:

---
2002-03-04 15:34:59 Ajp13Processor[8009][4] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at 
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at 
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:192)
at 
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435)
at 
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
at java.lang.Thread.run(Thread.java:536)
---

Besides the "SocketException" errors, the pages are being served without 
any problem. But I wander if this is not related to my tomcat "hangup" 
problem, because I was not having this error with my previous 
configuration (I´m using the same httpd.conf , server.xml and 
workers.properties files).

---
Fábio Sato - [EMAIL PROTECTED]



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




Re: mod_webapp with apache 2.0

2002-03-04 Thread John Chan

Hi...

Would you be so kind as to send the makefile you used. I don't really
understand how the whole compile process here works. From what I can see,
running make (the one generated by configure) only runs apxs... Thanks in
advance.

Regards,

John

> I believe the makefile is wrong.  I had to look at the output of the make
command and find a command near the end that was run in the
/apache-2.0 dir that was linking mod_webapp.la.  I then copies that
command, added the -shared flag and changed the output to mod_webapp.so.
> This worked for me with apache 2.0.32 but not 2.0.28.
>
> - Original Message -
> From: "John Chan" <[EMAIL PROTECTED]>
> To: "Tomcat" <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 4:27 PM
> Subject: mod_webapp with apache 2.0
>
>
> > Hi,
> >
> > I'm trying to build webapp on Red Hat 7.2 to use with Apache 2.0.
All
> > the documentation refers to the output being a .so file but I don't get
one.
> > I get a .o .la .slo and a .lo (which is pointing to the .o file). I took
a
> > look at the make file, and it doesn't make any mention of .so. I also
tried
> > a couple different versions of libtool (shot in the dark) but no go. Not
> > being very knowledgeable in this matter, is there a problem or is this
the
> > expected output. 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: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"

2002-03-04 Thread brian ally

i don't run as root; i think i misundertood/mixed up the situation with 
an earlier post or from wherever

/b

David Cassidy wrote:

>Brian,
>
>For a very large number of reasons it's probably best not to run
>tomcat under the super user account...
>
>You might want to try setting the LD_LIBRARY_PATH
>env in your startup / shutdown scripts...
>
>Or you might want to look at ldconfig ...
>
>D
>
>
>brian ally wrote:
>
>>Are you starting tomcat as root? On my linux box, if i su to root, all
>>manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
>>dash). Could this be your problem?
>>
>>/b
>>
>>Abhishek Pamecha wrote:
>>
>>>it is there..
>>>
>>>-Original Message-
>>>From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
>>>Sent: Monday, March 04, 2002 2:34 PM
>>>To: Tomcat Users List
>>>Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
>>>library path"
>>>
>>>
>>>
>>>First, please make sure that Oracle client is installed
>>>in your machine.
>>>
>>>Abhishek> Thanks buddy!
>>>Abhishek> but ..i already did that
>>>Abhishek> but i have a a requirement which says i have to use oci client only
>>>Abhishek> any other solution ???
>>>
>>>UnsatisfiedLinkError means JVM can't find shared library.
>>>You need to add shared library path to environment variable.
>>>
>>>If you use solaris or linux, then you should add following
>>>statement in your tomcat.sh.
>>>
>>>LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
>>>export LD_LIBRARY_PATH
>>>
>>>if you use HP-UX, then
>>>
>>>SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
>>>export SHLIB_PATH
>>>
>>>if you use Windows, then you should add following to tomcat.bat.
>>>
>>>set PATH=%ORACLE_HOME%\lib;%PATH%
>>>
>>>
>>>then it will be able to find shared library.
>>>
>>>regards,
>>>Watanabe.
>>>
>>>--
>>>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: 
>
>



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




Loadbalancing question

2002-03-04 Thread Michael Molloy

Been working with the loadbalancing in 3.3a, and I've *almost* got it. The 
last hurdle seems to be splitting the requests between 2 different computers.

In my workers.properties file, I've got two workers set up, one of which is 
going to localhost (local) and the other (remote) to a remote machine. For 
localhost, I set 

worker.local.lbfactor=100

and the remote machine I set as 

worker.remote.lbfactor=1

And I set the load balancing worker as follows:

worker.loadbalancer.balanced_workers=remote, local

The problem is that when I bring up multiple browsers, every single one is 
sent to the remote machine (the default page on each machine is different). 
If I switch the order from 

remote, local 

to 

local, remote

every request is sent to the local machine, and none reach the remote. When I 
changed the order in the balanced_workers line, I also switched the lbfactors 
so that the remote machine should get the majority of requests, but it 
doesn't get any. 

I'm running Tomcat 3.3a on SuSE 7.2 as my localhost and Tomcat 3.3a on 
Windows 2000 as my remote. Running Apache 1.3.22 on my linux box to funnel 
the http requests to the tomcat load balancing worker. The mod_Jk module is 
mod_jk-3.3-ap13-noeapi.so.

Any suggestions?

Thanks
--Michael

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




Re: SSL_CLIENT_CERT in tomcat

2002-03-04 Thread Eric Gilbertson

Lauire:

You can get the client cert info from the the HttpServletRequest argument
that is passed into your doGet/Post method. See chapter 8 of "More Servlets
and Server Pages" for an example.

HTH,

Eric Gilbertson
[EMAIL PROTECTED]

At 05:19 PM 3/4/2002 +, Laurie Young wrote:
>Hi
>
>I am running Apache, and connecting to tomcat using mod_jk
>
>In the information abtou mod_jk, and apache+mod ssl, foudn at
>http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html#s4
>
>It says:
>
>If you use Apache with SSL (Apache-SSL or apache+mod_ssl) and the
>
>   JkExtractSSL directive in httpd.conf, the apache connector
>
>   mod_jk will be able to pass some SSL information to tomcat.
>
>
>However, what it doesn't say is how i access this information (in
>particular the SSL_CLIENT_CERT variabele) from inside Tomcat.
>
>If anyonce can help I would very much appreciate it
>
>Laurie
>
>--
>==
>   Laurie Robert Young
>[EMAIL PROTECTED]  |   [EMAIL PROTECTED]
>www.wildfalcon.com |  www.doc.ic.ac.uk/~laurie
>   ICQ UIN #20194782
>==
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



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




RE: More information about the SQL errors??????

2002-03-04 Thread Jim Urban

The simplest thing is to add "System.err.println" messages through out your
code then run it and see what happens.

Jim

> -Original Message-
> From: fusterjj [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 12:06 PM
> To: 'Tomcat Users List'
> Subject: More information about the SQL errors??
>
>
> Hello all,
>   I am implementing a program that interacts with an Access
> database, mainly are check boxes with some fill in forms. The
> form is an HTML file and then through the servlet I get to the
> database. When I compile the servlet it does not contain any
> error, but it is not inserting any values into the tables and it
> is very difficult for me to identify where is the error because
> it is not giving me any information. So my question is, is there
> any form to make tomcat to tell me some more information about
> the sql errors, or do I have to add some code to the servlet. My
> code it is full of try and chatch, but it is not doing anything.
> If you know something about this issue, I will really apreciatte
> if you help me.
>   Thank you all!!!
>
>


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




More information about the SQL errors??????

2002-03-04 Thread fusterjj

Hello all, 
  I am implementing a program that interacts with an Access database, mainly are check 
boxes with some fill in forms. The form is an HTML file and then through the servlet I 
get to the database. When I compile the servlet it does not contain any error, but it 
is not inserting any values into the tables and it is very difficult for me to 
identify where is the error because it is not giving me any information. So my 
question is, is there any form to make tomcat to tell me some more information about 
the sql errors, or do I have to add some code to the servlet. My code it is full of 
try and chatch, but it is not doing anything. If you know something about this issue, 
I will really apreciatte if you help me.
  Thank you all!!!




Newbie - Help me !!!

2002-03-04 Thread dark.wizzard

I can't deploy correct my files into TOMCAT structure ...

Where I create dir WEB-INF/classe 
Where I deploy the resource files (like JSP1.2) ???
Where I put my .JSP and .HTML files ???

Is all files put into JAKARTA-DIR 


Thank


__
Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br



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




Re: Warp Connector still broken in 4.0.3 on Win platforms...

2002-03-04 Thread Remy Maucherat

> According to the announcement, 4.0.3 is really just 4.0.2 with a security
> patch applied.

Yes, I can confirm that.

> So, I'm pretty sure any other post 4.0.2 fixes won't be in
> there.

4.0.4 b1 is coming out later today, BTW (the binaries are already online,
actually). It doesn't contain many Warp related fixes, though.

Remy


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




RE: Tomcat 4.02 stalling?

2002-03-04 Thread Jarecsni János

Hi,

I have something similar. I use TC4.0.2 with JBoss244, with Apache in the
front line.
Formerly I used TC323 which ran for weeks without restarting. Then came
TC4.0.2. It first made the JVM crash (both 1.3.0 and 1.3.1_02 on linux).
Then I upgraded to 1.4.0. Now there's no JVM crash it's true, but instead
Tomcat just hangs after 1-2 days of operation.

I use the word "hang" because it was Saturday evening when the server went
down last time, and has not come back till Sunday afternoon (it's obvious
from the logs).

Cheers,
János

|-Original Message-
|From: Reto Badertscher [mailto:[EMAIL PROTECTED]]
|Sent: Monday, March 04, 2002 6:31 PM
|To: Tomcat Users List
|Subject: AW: Tomcat 4.02 stalling?
|
|
|The question is: what can we do about this? What could cause the error?
|I never had this error when working from within the Intranet - it happened
|when connection from the Internet.
|
|Reto
|
|-Ursprüngliche Nachricht-
|Von: Jørgen Ramskov [mailto:[EMAIL PROTECTED]]
|Gesendet: Montag, 4. März 2002 14:12
|An: 'Tomcat Users List'
|Betreff: RE: Tomcat 4.02 stalling?
|
|
|Reto Badertscher wrote:
|> does it happen when a form is submitted? I have this kind of behaviour
|> occasionally when submitting a form with many input fields -
|> never tried with Tomcat 3.x.
|
|Yes, it happens when I submit a form.
|
|--
|Joergen Ramskov
|
|--
|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: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"

2002-03-04 Thread David Cassidy

Brian,

For a very large number of reasons it's probably best not to run
tomcat under the super user account...

You might want to try setting the LD_LIBRARY_PATH
env in your startup / shutdown scripts...

Or you might want to look at ldconfig ...

D


brian ally wrote:

> Are you starting tomcat as root? On my linux box, if i su to root, all
> manner of LD_LIBRARY_PATH problems begin. i need to su - (with the
> dash). Could this be your problem?
>
> /b
>
> Abhishek Pamecha wrote:
>
> >it is there..
> >
> >-Original Message-
> >From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
> >Sent: Monday, March 04, 2002 2:34 PM
> >To: Tomcat Users List
> >Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
> >library path"
> >
> >
> >
> >First, please make sure that Oracle client is installed
> >in your machine.
> >
> >Abhishek> Thanks buddy!
> >Abhishek> but ..i already did that
> >Abhishek> but i have a a requirement which says i have to use oci client only
> >Abhishek> any other solution ???
> >
> >UnsatisfiedLinkError means JVM can't find shared library.
> >You need to add shared library path to environment variable.
> >
> >If you use solaris or linux, then you should add following
> >statement in your tomcat.sh.
> >
> >LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
> >export LD_LIBRARY_PATH
> >
> >if you use HP-UX, then
> >
> >SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
> >export SHLIB_PATH
> >
> >if you use Windows, then you should add following to tomcat.bat.
> >
> >set PATH=%ORACLE_HOME%\lib;%PATH%
> >
> >
> >then it will be able to find shared library.
> >
> >regards,
> >Watanabe.
> >
> >--
> >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: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"

2002-03-04 Thread brian ally

Are you starting tomcat as root? On my linux box, if i su to root, all 
manner of LD_LIBRARY_PATH problems begin. i need to su - (with the 
dash). Could this be your problem?

/b

Abhishek Pamecha wrote:

>it is there..
>
>-Original Message-
>From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
>Sent: Monday, March 04, 2002 2:34 PM
>To: Tomcat Users List
>Subject: Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared
>library path"
>
>
>
>First, please make sure that Oracle client is installed
>in your machine.
>
>Abhishek> Thanks buddy!
>Abhishek> but ..i already did that
>Abhishek> but i have a a requirement which says i have to use oci client only
>Abhishek> any other solution ???
>
>UnsatisfiedLinkError means JVM can't find shared library.
>You need to add shared library path to environment variable.
>
>If you use solaris or linux, then you should add following 
>statement in your tomcat.sh.
>
>LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
>export LD_LIBRARY_PATH
>
>if you use HP-UX, then
>
>SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
>export SHLIB_PATH
>
>if you use Windows, then you should add following to tomcat.bat.
>
>set PATH=%ORACLE_HOME%\lib;%PATH%
>
>
>then it will be able to find shared library. 
>
>regards,
>Watanabe.
>
>--
>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: 




AW: Tomcat 4.02 stalling?

2002-03-04 Thread Reto Badertscher

The question is: what can we do about this? What could cause the error?
I never had this error when working from within the Intranet - it happened
when connection from the Internet.

Reto

-Ursprüngliche Nachricht-
Von: Jørgen Ramskov [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 4. März 2002 14:12
An: 'Tomcat Users List'
Betreff: RE: Tomcat 4.02 stalling?


Reto Badertscher wrote:
> does it happen when a form is submitted? I have this kind of behaviour
> occasionally when submitting a form with many input fields -
> never tried with Tomcat 3.x.

Yes, it happens when I submit a form.

--
Joergen Ramskov

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


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




SiteMinder/Tomcat/Apache Configuration

2002-03-04 Thread annie . frost

Hello - 

I am trying to configure Netegrity SiteMinder while running an Apache/Tomcat
web application.  Does anyone have any experience with this?

Netegrity does not seem to provide any Tomcat Support.

I am having an issue with Web Pages that should be served up from
Apache/Tomcat being cached somewhere.  The Tomcat Server is never being hit!
The Web Page that was initially viewed is always being served up.  

Does anyone have any experience with this?

Thanks,
Annie

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




Re: Compiling mod_webapp.so ...

2002-03-04 Thread brian ally

'lo,

this warning may be ignored. The group that wrote mod_SSL needed to add 
some hooks into the server engine, and created the EAPI. The warning was 
added by them. BUT, most, if not all, modules do not depend on EAPI. 
 AFAIK, these changes haven't _officially_ been accepted.

The warning is showing up because you've installed the apache rpm, which 
was compiled by redhat with the -DEAPI flag. With the older mod_webapp, 
you didn't see it because, once again, it was an rpm. If you were to 
uninstall apache and compile from source you wouldn't see it. i see it 
because i'm running mod_SSL. i suggest you ignore it for now, keep your 
server as it is, and, if you get any weird crashes, try the deapi 
mod_webapp. There's a mod compiled with -DEAPI floating around at the 
jakarta site (but i can't remember the name/version).

/b

Julien OIX wrote:

>Hi everyone,
>
>Because of an upload file's bug with mod_webapp-1.0-2.i386.rpm, I've
>done a snapshot from cvs to compile my own .so .
>It seems that the bug has diseappered, but when I restart Apache, it
>tells me :
>
>Starting httpd: [Mon Mar  4 09:18:05 2002] [warn] Loaded DSO
>modules/mod_webapp.so uses plain Apache 1.3 API, this module might crash
>under EAPI! (please recompile it with -DEAPI)
>
>
>Here are the steps to compile :
>
>cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
>cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
>jakarta-tomcat-connectors/webapp
>cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
>apr
>
>cd $SNAPSHOT/webapp
>
>./support/buildconf.sh
>./configure --with-apxs=/usr/bin/apxs --with-apr=./apr/
>make
>
>and I get my mod_webapp.so in $SNAPSHOT/webapp/apache-1.3/
>
>does anyone know where to include the -DEAPI compiling flag ?
>
>I'm using these RPM's on a Linux RedHat 7.1
>
>apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2
>mod_bandwidth-2.0.3-2)
>
>tomcat4-4.0.2-3
>
>thanks in advance.
>
>--
>Julien OIX
>Service Informatique de Gestion
>Tél: 02 40 99 83 65
>mail: [EMAIL PROTECTED]
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>



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




Re: Compiling mod_webapp.so ...

2002-03-04 Thread Charles Swarts

Yes, I had to do this too, to compile the mod_webapp module with EAPI 
support.  You are just missing one step.  After you get the fresh cvs 
snapshot (like you did ), go forth like this:


# cd jakarta-tomcat-connectors/webapp
# ./support/buildconf.sh
# CFLAGS=-DEAPI
# ./configure --with-apxs=/usr/bin/apxs  
#make

Then copy your compiled mod_webapp.so to where apache is going to look 
for it:


# cp apache-1.3/mod_webapp.so  /usr/local/apache/libexec

After doing so when you startup apache you will not see the EAPI warning.
Hope this helps,

- Charles

[EMAIL PROTECTED] wrote:

>Hi everyone,
>
>Because of an upload file's bug with mod_webapp-1.0-2.i386.rpm, I've
>done a snapshot from cvs to compile my own .so .
>It seems that the bug has diseappered, but when I restart Apache, it
>tells me :
>
>Starting httpd: [Mon Mar  4 09:18:05 2002] [warn] Loaded DSO
>modules/mod_webapp.so uses plain Apache 1.3 API, this module might crash
>under EAPI! (please recompile it with -DEAPI)
>
>
>Here are the steps to compile :
>
>cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
>cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
>jakarta-tomcat-connectors/webapp
>cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
>apr
>
>cd $SNAPSHOT/webapp
>
>./support/buildconf.sh
>./configure --with-apxs=/usr/bin/apxs --with-apr=./apr/
>make
>
>and I get my mod_webapp.so in $SNAPSHOT/webapp/apache-1.3/
>
>does anyone know where to include the -DEAPI compiling flag ?
>
>I'm using these RPM's on a Linux RedHat 7.1
>
>apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2
>mod_bandwidth-2.0.3-2)
>
>tomcat4-4.0.2-3
>
>thanks in advance.
>
>--
>Julien OIX
>Service Informatique de Gestion
>Tél: 02 40 99 83 65
>mail: [EMAIL PROTECTED]
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>



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




Re: Warp Connector still broken in 4.0.3 on Win platforms...

2002-03-04 Thread Jonathan Eric Miller

According to the announcement, 4.0.3 is really just 4.0.2 with a security
patch applied. So, I'm pretty sure any other post 4.0.2 fixes won't be in
there.

Jon

- Original Message -
From: "Andrzej Jan Taramina" <[EMAIL PROTECTED]>
To: "tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, March 03, 2002 4:56 PM
Subject: Warp Connector still broken in 4.0.3 on Win platforms...


> Just an FYI...I installed Tomcat 4.0.3 and the Warp Connector (mod_webapp)
> still dies when trying to transmit binary (eg. gif images) data between
Tomcat
> and Apache 1.3.23 on a Windows box.
>
> Rebuilt the connector from latest snapshot (Sunday)...same problem.
>
> Sure wish someone would look at this.
>
> This is a posted bug:
>
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6621
>
>
> Andrzej Jan Taramina
> Chaeron Corporation: Enterprise System Solutions
> http://www.chaeron.com
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


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




SSL_CLIENT_CERT in tomcat

2002-03-04 Thread Laurie Young

Hi

I am running Apache, and connecting to tomcat using mod_jk

In the information abtou mod_jk, and apache+mod ssl, foudn at
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-ssl-howto.html#s4

It says:

If you use Apache with SSL (Apache-SSL or apache+mod_ssl) and the

  JkExtractSSL directive in httpd.conf, the apache connector

  mod_jk will be able to pass some SSL information to tomcat.


However, what it doesn't say is how i access this information (in
particular the SSL_CLIENT_CERT variabele) from inside Tomcat.

If anyonce can help I would very much appreciate it

Laurie

-- 
==
  Laurie Robert Young
[EMAIL PROTECTED]  |   [EMAIL PROTECTED]
www.wildfalcon.com |  www.doc.ic.ac.uk/~laurie
  ICQ UIN #20194782
==



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




Re: Datasources context ?

2002-03-04 Thread tsmets



Mark,

Since then ... nothing new ?

Thomas,



--
Thomas SMETS
rue J. Wytsmanstraat 62
1050 Bruxelles
yahoo-id : smetsthomas
- Original Message -
From: "Mark" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: 17 February, 2002 11:48 PM
Subject: RE: Datasources context ?


> Actually, I (Mark) fixed my problem.  I was specifying the wrong class as
a
> parameter in server.xml due to utter ignorance and lack of
> documentation/examples.  I originally had it set up to use
OracleDataSource
> as the driverClassName (which seemed logical at the time), but after
> looking  at the Tomcat JDBC/JNDI How-To example for the umpteenth time, I
> noticed it uses a 'jdbcDriver' class.  As a desperate attempt I poked
> around in the Oracle classes12.jar and tried the OracleDriver class and
> voila, it worked.  I detest stabs in the dark but sometimes you get lucky.
Eg:
>
>
>   driverClassName
>   oracle.jdbc.OracleDriver
>
>
> Next hurdle...getting a pooled connection.
>
> Mark
>
>
> > In fact I just reading the JNDI Howto and try to set up the thing
for
> >the very first time for JDBC access   Someone (Mark) seems to have the
same
> >kind of problem with oracle ;(
> >  find a working test sample ?
>
> -Original Message-
> >From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
> >Sent: Friday, February 15, 2002 6:47 PM
> >To: Tomcat Users List
> >Subject: Re: Datasources context ?
> >  > I have got this error
> >> Name java:comp is not bound in this Context
> >>
> >> When I try the following code :
> >>  try {
> >> Context initCtx = new InitialContext();
> >>"");
> >>"");
> >> Connection conn = ds.getConnection();
> >>
> >> Statement st = conn.createStatement();
> >>"SELECT prenom,nom FROM
> >>");
> >> while (rs.next()) {
> >>"<>"""));
> >>"&"""));
> >> }
> >>
> >> conn.close();
> >> } catch (Exception e) {
> >> out.print(e.getMessage());
> >> }   Well, the big questions are:
> >- where is that code fragment located ?
> >- are you modifying the context classloader ?   To end up with the right
> >JNDI context, Catalina uses context classloader
> >associations. So if you get the error you're getting, it means that the
CL
> >association is not the one it should be. There were a few bugs caused
> >because in some places, it wasn't set properly (for example, you can look
at
> >bug 5330).   Remy
> >  --
> >  
> >
> >-- 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: 




[Newbie] How to do ???

2002-03-04 Thread dark.wizzard

Hi people:

 How I can configure JAKARTA-TOMCAT-4.0.1 ??? I read the
docs but I don't understand where I put the files ...

 If someone can help me ...

Thank


__
Quer ter seu próprio endereço na Internet?
Garanta já o seu e ainda ganhe cinco e-mails personalizados.
DomíniosBOL - http://dominios.bol.com.br



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




Re: Pls Help!! Uploading an image

2002-03-04 Thread Lev Assinovsky

I use special bean from:
http://www.javazoom.net/jzservlets/uploadbean/uploadbean.html

Usually web servers don't support uploading because it's still RFC.

Uma Maheswar wrote:

> HI,
> I need help from any of you. I need a programme to upload an image to the database 
>while submitting a form. If any one is having the source code pls help  me.
>
> Regards
> Uma

--
Lev AssinovskyPeterlink Web
ProgrammerSt. Petersburg, Russia
Tel/Fax: +7 812 3275343   197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]




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




URGENT: Is the xerces.jar with TC 4.0.1 jaxp 1.1 compliant?

2002-03-04 Thread Kapasi, Mehjabin

Hi,
Does anyone know if xerces.jar with TC 4.0.1 is jaxp1.1 compliant? If I want
to use crimson.jar, do i need to do a lot of changes to migrate from xerces
to crimson? 
I would appreciate any kind of help on this soon! 
thank you
-Mehjabin

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




Http10Interceptor: SocketException reading request, ignored

2002-03-04 Thread Chris Gokey

Hi...

Tomcat 3.3 has been behaving flawlessly for us recently until today,
suddenly we are getting:
Http10Interceptor: SocketException reading request, ignored

Any idea why one would get this error?

We recently had a publication go out regarding our system, so our load
is probably higher than normal.  Could this error be related to load?
Requests where taking < 1 second and now can take as many as 10 seconds,
although this behavior appears to be intermittent.

Thanks,
Chris



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




Tomcat 4.0.2 unpacking wars

2002-03-04 Thread JBrawner

I've upgraded from Tomcat 3 to Tomcat 4.0.2 and have lost the ability to
unpack wars. Here is a piece of my server.xml

  

  


I use the following command to create my war file from within the PSP
directory
jar cfv PSP.war .

This worked great with Tomcat 3(something) but I get the following error
when tomcat 4 starts:

2002-03-04 10:17:09 StandardContext[/PSP]: Error initializing resources:
Document base C:\Tomcat402\webapps\PSP does not exist or is not a readable
directory
2002-03-04 10:17:09 StandardContext[/PSP]: Context startup failed due to
previous errors
2002-03-04 10:17:09 StandardContext[/PSP]: Exception during cleanup after
start failed
LifecycleException:  Container StandardContext[/PSP] has not been started
 at
org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1147)
 at
org.apache.catalina.core.StandardContext.stop(StandardContext.java:3451)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3408)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:261)
 at
org.apache.catalina.startup.CatalinaService.execute(CatalinaService.java:172)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:428)

It is correct that the PSP directory doesn't exist but shouldn't tomcat
create that directory when unpacking the war (which it doesn't do). Any
ideas on how to solve this problem?

Thanks in advance,

Jason E. Brawner


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




RE: Unable to run examples

2002-03-04 Thread Randy Layman



> -Original Message-
> From: KC Berg [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 10:42 AM
> To: 'Tomcat Users List'
> Subject: RE: Unable to run examples
> 
> 
> Do you have your JAVA_HOME sys var pointed at your JDK or 
> your JRE? It needs
> to point at your JDK so that the jsp can get compiled when 
> you request the
> page. From the error it looks like your missing the JSP 
> compiler the above
> suggestion should work.

How did you come to that conclusion?
> 
> 
> -Original Message-
> From: RFelipe [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 8:41 AM
> To: [EMAIL PROTECTED]
> Subject: Unable to run examples
> 
> 
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardW
> rapper.java:93
> 5)
> at
> 
> root cause
> 
> java.lang.NoSuchMethodError
> at
> org.apache.jasper.compiler.TldLocationsCache.processJars(TldLo
> cationsCache.j
> ava:202)
> at 

This looks to me like either a botched upgrade (you didn't replace
all the JAR files) or a problem with the upgrade (the person who built the
binaries didn't get it quite right).  If you could try upgrading again
(deleting all Tomcat JARs, installing the new ones, and then testing) and
letting this forum know someone will take care of the builds if it is a
problem.

Randy

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




Pls Help!! Uploading an image

2002-03-04 Thread Uma Maheswar

HI,
I need help from any of you. I need a programme to upload an image to the database 
while submitting a form. If any one is having the source code pls help  me.

Regards
Uma



RE: Unable to run examples

2002-03-04 Thread KC Berg

Do you have your JAVA_HOME sys var pointed at your JDK or your JRE? It needs
to point at your JDK so that the jsp can get compiled when you request the
page. From the error it looks like your missing the JSP compiler the above
suggestion should work.

KC

-Original Message-
From: RFelipe [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 8:41 AM
To: [EMAIL PROTECTED]
Subject: Unable to run examples


I just installed Tomcat version 4.0.3.  The main page works fine
(http://localhost:8080) but when I run the JSP samples I get the error:

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
ava:202)
at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
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)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine

Unable to run examples

2002-03-04 Thread RFelipe

I just installed Tomcat version 4.0.3.  The main page works fine
(http://localhost:8080) but when I run the JSP samples I get the error:

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:653)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
ava:202)
at org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:345)
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)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:110

RE: Tomcat 4.02 stalling?

2002-03-04 Thread Jørgen Ramskov

Reto Badertscher wrote:
> does it happen when a form is submitted? I have this kind of behaviour
> occasionally when submitting a form with many input fields - 
> never tried with Tomcat 3.x.

Yes, it happens when I submit a form.

--
Joergen Ramskov

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




RE: Tomcat 4.0.02 and 1.3.1 JVM

2002-03-04 Thread Keith Ng

well actually my problems are Tomcat 4.0.2 can start up very well in my
win2k. its just that there are eccentric behaviour like shutting down
automatically


-Original Message-
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 10:01 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM


When I started tomcat> `service tomcat4 start`, the process would start up
for a minute and then disappear. It would not show any error messages. But
when I tried to stop the service (even though it failed)> `sevice tomcat4
stop` , I would get a "segmentation fault" error from the jvm.

This is a well documented error with tomcat and the jdk. I am pretty sure
there is a setting with windows.. you have to change the memory settings
within the dos window that you plan to run tomcat from.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt and search on
"out of environment space"

-Original Message-
From: Keith Ng [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 8:51 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM


How did it crash? can u elaborate? Like when you are just starting tomcat
4.0.2?
Or did it crash in the middle of the web application?

wats the equalivance of ulimit -s 2048 on ms win2k?

-Original Message-
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 8:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM


I am using that combo and it crashed on me. I run Redhat 7.1. To get around
it I just ran ulimit -s 2048 on the system before I tried to start tomcat
and it worked fine from then on.

-Original Message-
From: Keith Ng [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:57 AM
To: Tomcat Users List
Subject: Tomcat 4.0.02 and 1.3.1 JVM


Hi

Is tomcat 4.0.2 known to crash 1.3.1 JVM? I heard someone over here said it
will crash 1.3.1_02. Anyone using the same combination as me?




_

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: 




_

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: 



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


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




RE: Use manager with different hosts

2002-03-04 Thread Cox, Charlie

you can create a JDBCRealm for each virtual host that has its own table for
logins. You really shouldn't use the MemeoryRealm(a flat file) for
production.

Charlie

> -Original Message-
> From: Philipp Sumi [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 04, 2002 8:57 AM
> To: Tomcat Users List
> Subject: Re: Use manager with different hosts
> 
> 
> Hello Charlie
> 
> You are right, but the other virtual host looks up the 
> password in the same
> file. To get the manager context of virtual host B, I can enter my
> id/password I used on virtual host A to get access...
> 
> Philipp
> 
> 
> - Original Message -
> From: "Cox, Charlie" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Monday, March 04, 2002 2:33 PM
> Subject: RE: Use manager with different hosts
> 
> 
> > each virtual host is independent. Therefore tomcat only 
> keeps the login
> > information for the current virtual host and applies it to 
> any required
> > context(manager is a context). Noone should be able to manage other
> virtual
> > hosts.
> >
> > Charlie
> >
> > > -Original Message-
> > > From: Philipp Sumi [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, March 02, 2002 4:18 PM
> > > To: Tomcat Users List
> > > Subject: Fw: Use manager with different hosts
> > >
> > >
> > > Hello
> > >
> > > ...I recently sent my first post to this mailing list and did
> > > wonder why I
> > > didn't get a copy of it... First, I thought that the 
> server probably
> > > recognizes me as the sender and doesn't send me the question
> > > I already know,
> > > but I found it a bit strange (also because I'm also on the
> > > Velocity list
> > > which doesn't behave so). However, there was also no response
> > > to my mail and
> > > so I decided to send it again. If you got it twice, I 
> would be glad if
> > > somebody could tell me (before I start bugging the admin
> > > because I think
> > > something's wrong :-)
> > >
> > > Thank you
> > >
> > > Philipp
> > >
> > >
> > >
> > >
> > >
> > > > Hello
> > > >
> > > >
> > > > My first post on this list - hello :-)
> > > >
> > > > I can't figure out how I can use the manager app savely 
> with various
> > > virtual
> > > > hosts. Of course, I can set the manager for every host, but
> > > then every
> > > user
> > > > would be able to shut down contexts of his own as well as
> > > of other hosts,
> > > if
> > > > he knows any (www.myhost.com/manager and
> > www.myenemyshost.com/manager use
> > > both tomcat-user.xml). A workaround would be to name the 
> path that calls
> > the
> > > manager app differently for every host 
(www.myhost.com/manager234), but
I
> > guess there must be a (much) better solution
> >
> > Thanks for your advice
> >
> > Philipp
> >



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

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




RE: Tomcat 4.0.02 and 1.3.1 JVM

2002-03-04 Thread Edward Haynes

When I started tomcat> `service tomcat4 start`, the process would start up
for a minute and then disappear. It would not show any error messages. But
when I tried to stop the service (even though it failed)> `sevice tomcat4
stop` , I would get a "segmentation fault" error from the jvm.

This is a well documented error with tomcat and the jdk. I am pretty sure
there is a setting with windows.. you have to change the memory settings
within the dos window that you plan to run tomcat from.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt and search on
"out of environment space"

-Original Message-
From: Keith Ng [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 8:51 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM


How did it crash? can u elaborate? Like when you are just starting tomcat
4.0.2?
Or did it crash in the middle of the web application?

wats the equalivance of ulimit -s 2048 on ms win2k?

-Original Message-
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 8:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM


I am using that combo and it crashed on me. I run Redhat 7.1. To get around
it I just ran ulimit -s 2048 on the system before I tried to start tomcat
and it worked fine from then on.

-Original Message-
From: Keith Ng [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:57 AM
To: Tomcat Users List
Subject: Tomcat 4.0.02 and 1.3.1 JVM


Hi

Is tomcat 4.0.2 known to crash 1.3.1 JVM? I heard someone over here said it
will crash 1.3.1_02. Anyone using the same combination as me?




_

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: 




_

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: 




RE: Tomcat 4.02 stalling?

2002-03-04 Thread Jorgen Ramskov

> On Mon, Mar 04, 2002 at 01:49:54PM +0100, Jřrgen Ramskov 
>
>  I also noticed this. But I have a webmail system. The user 
> logs in, very fast.
> Next time he logs in again fast. Later, Catalina 4.0.2 just 
> stalls, and  the user can not log in. The browser cancel the connection 
> due to a timeout.
> Maybe some kind of internal (dead) lock? Btw, I have J2SDK 
> 1.4.0. What's your J2SDK version?

I have tried it with both the new Sun J2 1.4.0 and the older jdk 1.3.1
version and it has happened with both.

--
Joergen Ramskov

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




Re: Use manager with different hosts

2002-03-04 Thread Philipp Sumi

Hello Charlie

You are right, but the other virtual host looks up the password in the same
file. To get the manager context of virtual host B, I can enter my
id/password I used on virtual host A to get access...

Philipp


- Original Message -
From: "Cox, Charlie" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 2:33 PM
Subject: RE: Use manager with different hosts


> each virtual host is independent. Therefore tomcat only keeps the login
> information for the current virtual host and applies it to any required
> context(manager is a context). Noone should be able to manage other
virtual
> hosts.
>
> Charlie
>
> > -Original Message-
> > From: Philipp Sumi [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, March 02, 2002 4:18 PM
> > To: Tomcat Users List
> > Subject: Fw: Use manager with different hosts
> >
> >
> > Hello
> >
> > ...I recently sent my first post to this mailing list and did
> > wonder why I
> > didn't get a copy of it... First, I thought that the server probably
> > recognizes me as the sender and doesn't send me the question
> > I already know,
> > but I found it a bit strange (also because I'm also on the
> > Velocity list
> > which doesn't behave so). However, there was also no response
> > to my mail and
> > so I decided to send it again. If you got it twice, I would be glad if
> > somebody could tell me (before I start bugging the admin
> > because I think
> > something's wrong :-)
> >
> > Thank you
> >
> > Philipp
> >
> >
> >
> >
> >
> > > Hello
> > >
> > >
> > > My first post on this list - hello :-)
> > >
> > > I can't figure out how I can use the manager app savely with various
> > virtual
> > > hosts. Of course, I can set the manager for every host, but
> > then every
> > user
> > > would be able to shut down contexts of his own as well as
> > of other hosts,
> > if
> > > he knows any (www.myhost.com/manager and
> www.myenemyshost.com/manager use
> > both tomcat-user.xml). A workaround would be to name the path that calls
> the
> > manager app differently for every host (www.myhost.com/manager234), but
I
> > guess there must be a (much) better solution
> >
> > Thanks for your advice
> >
> > Philipp
> >



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




RE: Tomcat 4.0.02 and 1.3.1 JVM

2002-03-04 Thread Keith Ng

How did it crash? can u elaborate? Like when you are just starting tomcat
4.0.2?
Or did it crash in the middle of the web application?

wats the equalivance of ulimit -s 2048 on ms win2k?

-Original Message-
From: Edward Haynes [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 8:29 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.02 and 1.3.1 JVM


I am using that combo and it crashed on me. I run Redhat 7.1. To get around
it I just ran ulimit -s 2048 on the system before I tried to start tomcat
and it worked fine from then on.

-Original Message-
From: Keith Ng [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:57 AM
To: Tomcat Users List
Subject: Tomcat 4.0.02 and 1.3.1 JVM


Hi

Is tomcat 4.0.2 known to crash 1.3.1 JVM? I heard someone over here said it
will crash 1.3.1_02. Anyone using the same combination as me?




_

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: 



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


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




RE: SSI in TC3.3?

2002-03-04 Thread Larry Isaacs

No.  Tomcat 3.3 doesn't include support for SSI.  There is SSI
support in Tomcat 4.x in the form of an SSI servlet.  I believe
this servlet is disabled by default in the recent Tomcat 4.0.x
releases.  See the Tomcat 4.x conf/web.xml file for details.

Cheers,
Larry

> -Original Message-
> From: Garrett Smith [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 4:24 PM
> To: Tomcat Users List
> Subject: SSI in TC3.3?
> 
> 
> Does Tomcat 3.3 support server-side includes for static content?
> 
> I know that JSPs support including other JSPs or other static 
> html files,
> but I imagine that this is a relatively expensive process, 
> since JSPs are
> compiled and executed.
> 
> Thanks,
> Garrett
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




RE: Use manager with different hosts

2002-03-04 Thread Cox, Charlie

each virtual host is independent. Therefore tomcat only keeps the login
information for the current virtual host and applies it to any required
context(manager is a context). Noone should be able to manage other virtual
hosts. 

Charlie

> -Original Message-
> From: Philipp Sumi [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 4:18 PM
> To: Tomcat Users List
> Subject: Fw: Use manager with different hosts
> 
> 
> Hello
> 
> ...I recently sent my first post to this mailing list and did 
> wonder why I
> didn't get a copy of it... First, I thought that the server probably
> recognizes me as the sender and doesn't send me the question 
> I already know,
> but I found it a bit strange (also because I'm also on the 
> Velocity list
> which doesn't behave so). However, there was also no response 
> to my mail and
> so I decided to send it again. If you got it twice, I would be glad if
> somebody could tell me (before I start bugging the admin 
> because I think
> something's wrong :-)
> 
> Thank you
> 
> Philipp
> 
> 
> 
> 
> 
> > Hello
> >
> >
> > My first post on this list - hello :-)
> >
> > I can't figure out how I can use the manager app savely with various
> virtual
> > hosts. Of course, I can set the manager for every host, but 
> then every
> user
> > would be able to shut down contexts of his own as well as 
> of other hosts,
> if
> > he knows any (www.myhost.com/manager and 
www.myenemyshost.com/manager use
> both tomcat-user.xml). A workaround would be to name the path that calls
the
> manager app differently for every host (www.myhost.com/manager234), but I
> guess there must be a (much) better solution
>
> Thanks for your advice
>
> Philipp
>


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

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




Re: Tomcat 4.02 stalling?

2002-03-04 Thread GCS

Hello,

On Mon, Mar 04, 2002 at 02:06:00PM +0100, Reto Badertscher <[EMAIL PROTECTED]> wrote:
> does it happen when a form is submitted? I have this kind of behaviour
> occasionally when submitting a form with many input fields - never tried
> with Tomcat 3.x.
 Yes, it happens _only_ when I submit a form. I do not have many input fields,
only some. I do not know what can be the problem, but I may help the
developers with any information, if they need any.
 I do now know if it is browser related or not, but I do not think so.
Anyway, I use mozilla-0.9.8. I will test Catalina 4.0.1 and/or Tomcat 3.x.

Cheers,
GCS
-- 
BorsodChem Joint-Stock Company  Linux Support CenterUniversity of Miskolc
Software engineer   Programmer  System administrator
+36-48-511211/27-90 +36-20-4441745

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




AW: Tomcat 4.02 stalling?

2002-03-04 Thread Reto Badertscher

Hello,

does it happen when a form is submitted? I have this kind of behaviour
occasionally when submitting a form with many input fields - never tried
with Tomcat 3.x.

Regards

Reto

-Ursprüngliche Nachricht-
Von: Jørgen Ramskov [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 4. März 2002 13:50
An: 'Tomcat Users List'
Betreff: Tomcat 4.02 stalling?


I'm running a webapplication (a questionnaire, a lot of pages with forms
that gets saved in a MySQL database) on Tomcat 3.2.x (the latest version)
and it runs pretty okay.

I have however tried to run it on Tomcat 4.02 and sometimes when I go
through the questionnaire, it simply stalls - the browser waits for an
answer for several minutes. It doesn't crash, but it is almost the same. I
have never experienced that with Tomcat 3.2.x. What could be the reason to
that?


Greetings
Joergen Ramskov

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


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




Re: Tomcat 4.02 stalling?

2002-03-04 Thread GCS

On Mon, Mar 04, 2002 at 01:49:54PM +0100, Jřrgen Ramskov <[EMAIL PROTECTED]> wrote:
> I have however tried to run it on Tomcat 4.02 and sometimes when I go
> through the questionnaire, it simply stalls - the browser waits for an
> answer for several minutes. It doesn't crash, but it is almost the same. I
> have never experienced that with Tomcat 3.2.x. What could be the reason to
> that? 
 I also noticed this. But I have a webmail system. The user logs in, very fast.
Next time he logs in again fast. Later, Catalina 4.0.2 just stalls, and
the user can not log in. The browser cancel the connection due to a timeout.
Maybe some kind of internal (dead) lock? Btw, I have J2SDK 1.4.0. What's
your J2SDK version?
> 
Cheers, GCS
-- 
BorsodChem Joint-Stock Company  Linux Support CenterUniversity of Miskolc
Software engineer   Programmer  System administrator
+36-48-511211/27-90 +36-20-4441745

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




mod_webapp not transfer symbols of second half of code table

2002-03-04 Thread Valera Molyakov

The module mod_webapp by transfer GET request does not transfer parameters that 
containing symbols of second half of code table.  Why ???  May be comunication 
protocol have 7 bit range?




Tomcat 4.02 stalling?

2002-03-04 Thread Jørgen Ramskov

I'm running a webapplication (a questionnaire, a lot of pages with forms
that gets saved in a MySQL database) on Tomcat 3.2.x (the latest version)
and it runs pretty okay. 

I have however tried to run it on Tomcat 4.02 and sometimes when I go
through the questionnaire, it simply stalls - the browser waits for an
answer for several minutes. It doesn't crash, but it is almost the same. I
have never experienced that with Tomcat 3.2.x. What could be the reason to
that? 


Greetings
Joergen Ramskov

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




RE: mod_jk 3.3 on AIX 4.3

2002-03-04 Thread Arnaud Heritier

I don't know but my CFG_LDFLAGS_SHLIB is defined as this :

my $CFG_LDFLAGS_SHLIB = q( -G -bexpall -H512 -T512 -bhalt:4 -bM:SRE 
-bnoentry -bI:/aladin/stock/GUI/APACHE-1.3.22/libexec/httpd.exp -lc -ldl);

I found this configuration in an old old mail posted in the mailing list 
from a someone who had problems to compile mod_jserv on AIX.

#arno

> -Message d'origine-
> De:   Peacock, Alasdair [SMTP:[EMAIL PROTECTED]]
> Date: lundi 4 mars 2002 13:36
> A:'[EMAIL PROTECTED]'
> Objet:RE: mod_jk 3.3 on AIX 4.3
>
> That started fine. Have you got any idea what I did wrong to compile it?
> What was your CFG_LDFLAGS_SHLIB setting?
>
> Thanks
>
> -Original Message-
> From: Arnaud Heritier [mailto:[EMAIL PROTECTED]]
> Sent: 04 March 2002 12:05
> To: 'Peacock, Alasdair'
> Subject: RE: mod_jk 3.3 on AIX 4.3
>
>
> hello .
>
> I never saw this error.
>
> I send to you my copy of mod_jk.so
>
> Can you test it and tell me if it produces the same error ??
>
>
> arno
>
> > -Message d'origine-
> > De: Peacock, Alasdair [SMTP:[EMAIL PROTECTED]]
> > Date:   lundi 4 mars 2002 12:40
> > A:  '[EMAIL PROTECTED]'
> > Objet:  RE: mod_jk 3.3 on AIX 4.3
> >
> > Hi, I was wondering if you could help me.  I have managed to compile
> mod_jk
> > on my machine (AIX 4.3.3, Apache 1.3.22, Tomcat 3.3a), but when I 
attempt
> to
> > start up Apache I get the following error:
> >
> > ./apachectl[71]: 3322 Illegal instruction(coredump)
> > ./apachectl start: httpd could not be started
> >
> > What am I doing wrong?
> >
> > Thanks,
> > Alasdair Peacock<< Fichier: ATT00018.html>>



msg47242/bin0.bin
Description: application/ms-tnef

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


RE: TOMCAT 4.0.2 server crash

2002-03-04 Thread Randy Layman


Sun has a page on their website listing all the registered driver
vendor and they have JDBC mailing lists and forums where these questions
would be appropriate.

Randy

> -Original Message-
> From: Keith Ng [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, March 02, 2002 10:33 AM
> To: Tomcat Users List
> Subject: RE: TOMCAT 4.0.2 server crash
> 
> 
> Ok this is a little off topic but i reli need help on this..
> 
> the odbc-jdbc bridge has crashed my tomcat more den 1 time 
> and i need to ask
> if anyone here uses any type 3/4 drivers and finds it very 
> stable?(like not
> crashing tomcat) and has very good perfromance? And btw... i 
> noe for applets
> u definately have to use type 3 drivers, but for web 
> applications(tomcat and
> jsp/servlets) which one is recommended ? 3 or 4? Im currently using
> ThinAccess 2.3 right now, and its type 3 driver , i used it 
> for applets, but
> aint very sure if its good for jsp/servlets connections
> 
> -Original Message-
> From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 01, 2002 11:23 PM
> To: Tomcat Users List
> Subject: RE: TOMCAT 4.0.2 server crash
> 
> 
> Microsoft licensed the Merant msSQL JDBC driver, it´s downloadable for
> free from the Microsoft website.
> 
> Last time I checked it was quite good.
> 
> hope it helps
> [EMAIL PROTECTED]
> 
> 
> > -Original Message-
> > From: Keith Ng [mailto:[EMAIL PROTECTED]]
> > Sent: 1. mars 2002 15:12
> > To: Tomcat Users List
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: TOMCAT 4.0.2 server crash
> >
> >
> >
> > Oooh I didnt noe tat matters. So wat about other drivers?
> > which is thread
> > safe and which is not?
> > I also realise i do have many problems regarding database access.
> > Im using MSSQL 2000 btw. whcih driver do u recommend?
> >
> >
> > -Original Message-
> > From: Randy Layman [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 01, 2002 7:43 PM
> > To: 'Tomcat Users List'
> > Subject: RE: TOMCAT 4.0.2 server crash
> >
> >
> >
> > Stop using the JDBC-ODBC bridge.  Its not thread safe
> > and will crash
> > Tomcat (or any other JVM for that matter) that attempts
> > concurrent database
> > access.
> >
> > Randy
> >
> > > -Original Message-
> > > From: Keith Ng [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 01, 2002 4:19 AM
> > > To: Tomcat Users List
> > > Subject: TOMCAT 4.0.2 server crash
> > >
> > >
> > > Hi
> > >
> > > I set up my tomcat server from home and then went to school
> > > to try access.
> > > for a while it was ok, but after repeatly doing many database
> > > queries and
> > > processing, suddenly i wasnt able to access the server. It
> > returned a
> > > gateway timeout error. I den went home just now and realise
> > > the Tomcat does
> > > window is gone. I went to the log and track the following.
> > >
> > >
> > > ACCESS LOG
> > > ===
> > > 153.20.95.66 - - [01/Mar/2002:13:43:45 8000] "GET
> > > /ps/jscripts/validateRegister.js HTTP/1.1" 304 -
> > > 153.20.95.66 - - [01/Mar/2002:13:43:46 8000] "GET
> > > /ps/jscripts/validateAdvSearch.js HTTP/1.1" 304 -
> > > //153.20.95.66 is my school's pc ip. its the last GET request
> > > 127.0.0.1 - - [01/Mar/2002:16:11:07 8000] "GET
> > > /ps/css/PSCSS.css HTTP/1.1"
> > > 304 -
> > > ==
> > >
> > > LOG
> > > 2002-03-01 13:42:40 jsp: init
> > > 2002-03-01 13:42:40 jsp: init
> > > 2002-03-01 13:43:27 jsp: init
> > > 2002-03-01 13:43:29 jsp: init
> > > 2002-03-01 13:43:45 jsp: init
> > >
> > > after this supposedly there is no more request from school pc
> > > i went home and found tomcat server dos window gone
> > >
> > > as u can see, there is no clear wat has happened at all. Is
> > > there any other
> > > logs i have missed regarding the auto shutdown of tomcat? Can
> > > anyone tell me
> > > wat could have happened to cause tomcat to auto shutdown? 
> Thanks...
> > >
> > >
> > >
> > > _
> > > 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: 
> 
> 
> 
> _
> 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: 
> 
> 
> 
> _
> Do You Yahoo!?
> Get your free 

RE: Tomcat 4.0.02 and 1.3.1 JVM

2002-03-04 Thread Edward Haynes

I am using that combo and it crashed on me. I run Redhat 7.1. To get around
it I just ran ulimit -s 2048 on the system before I tried to start tomcat
and it worked fine from then on.

-Original Message-
From: Keith Ng [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 04, 2002 2:57 AM
To: Tomcat Users List
Subject: Tomcat 4.0.02 and 1.3.1 JVM


Hi

Is tomcat 4.0.2 known to crash 1.3.1 JVM? I heard someone over here said it
will crash 1.3.1_02. Anyone using the same combination as me?




_

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: 




Link problem?

2002-03-04 Thread GCS

Hi!

 I use Catalina 4.0.2 with J2SDK 1.4.0 on a Debian Woody system. I get a
problem with JWebmail (jwebmail.sourceforge.net):
exception

javax.servlet.ServletException: Servlet execution threw an exception
at
+org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
+Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
+Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
[...]
root cause

java.lang.LinkageError: loader constraints violated when linking
+javax/activation/DataSource class
at
+net.wastl.webmail.server.http.HTTPRequestHeader.setEncodedContent(HTTPRequestHe
+ader.java:88)
at
+net.wastl.webmail.server.WebMailServlet.service(WebMailServlet.java:257)
at
+org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
+Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
+Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
[...]

What can cause this? Can someone give me pointers solving this issue?
Thanks,
GCS
-- 
BorsodChem Joint-Stock Company  Linux Support CenterUniversity of Miskolc
Software engineer   Programmer  System administrator
+36-48-511211/27-90 +36-20-4441745

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




Apache 1.3.22 and Tomcat 3.3 on AIX 4.3.3

2002-03-04 Thread Peacock, Alasdair

I have managed to compile mod_jk.so on AIX, but whenever I now try to start
up Apache I get the following error message from apachectl:
 
./apachectl[71]: 3322 Illegal instruction(coredump)
./apachectl start: httpd could not be started
 
Can anybody tell me what I've done wrong and how to fix this?
 
Thanks,
Alasdair



Re: JSP XML style directives

2002-03-04 Thread Milan Stanojevic

>
> As described in the JSP 1.2 Specification
> , your *entire* page must
> be expressed in the XML syntax for any of these directives to be
> recognized.  Section 5.5 shows a simple page both ways.
>
Thank you.
I was reading some tutorial that is following JSP 1.1 specification and
there were examples that have xml and plain <% %> directives in same jsp
page. So I thought I can do the same in JSP 1.2 (i was not aware that
tutorial is followinf different specification). Also, I have Jetty with jsp
1.1 and of course, examples worked in Jetty.

Milan




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




Tomcat+Apache+mod_jk+ajp13 connection.

2002-03-04 Thread Edward Broustinov

Hello all,
I'm having a problem making work the following configuration:
Solaris 8, Apache 1.3.23(compiled with DSO), Tomcat 4.0.1, mod_jk
(unknown version, but taken from jakarta-tomcat-3.2.4-src and compiled
fresh) with ajp13 connector. I've checked the archives,the documentation
at jakarta site and other guides (including Gal hachor's minimalistic)
and although found the exact and similar examples of configuration,
haven't got this work. The problem right now is: pointing to 
http://192.168.20.18/examples/jsp/snp/snoop.jsp and/or
http://192.168.20.18/examples/ causes to the neverending download:)
No internal server errors, no "page not found", just the bar progressing
at the bottom of the browser and an empty page.
Here's the excerpts of conf files:
## httpd.conf 
...
LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /usr/local/jakarta-tomcat-4.0.1/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevelinfo
JkMount /* ajp13
JkMount /*.jsp ajp13
JkMount /examples/* ajp13 
JkMount /servlet/* ajp13 
#JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
NameVirtualHost 192.168.20.18

  DocumentRoot /usr/local/jakarta-tomcat-4.0.1/webapps
  ServerName 192.168.20.18
  Port 8009
  JkWorkersFile /usr/local/jakarta-tomcat-4.0.1/conf/workers.properties
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13 
  JkMount /examples/* ajp13
  JkMount /examples/jsp/* ajp13
  JkMount /* ajp13



### server.xml #
...

  

  

  

   

  

   

 
   



  


 workers.properties 

  DocumentRoot /usr/local/jakarta-tomcat-4.0.1/webapps
  ServerName 192.168.20.18
  JkMount /*.jsp 192.168.20.18
  JkMount /examples/* 192.168.20.18


workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.1
workers.java_home=/usr/java
ps=/
worker.list=ajp13

worker.ajp13.type=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
###

The only errors appearing at logs are those:
### catalina.out 
...
Starting service Tomcat-Apache
Apache Tomcat/4.0.1
java.lang.NoSuchMethodError: java.net.Socket: method setKeepAlive(Z)V
not found
at org.apache.ajp.tomcat4.Ajp13Connector.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
#
And I'm sure that 8009 is in LISTEN state (that's what netstat says).
I'd appreciate any help or point to a misconfiguration I have. 


Thanks,
Edward Broustinov
[EMAIL PROTECTED] 


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




  1   2   >