AW: Designing for scalability ?

2002-04-10 Thread Ralph Einfeldt

There are several ways to achieve scalability:

- Use a session aware external load balancer

- Use the tomcat loadbancer
  mod_jk has a loadbalacer that implements sticky sessions
  (AFAIK the loadbalancer currently just works with 3.2/3.3)

- Use distributed sessions
  I don't know the state for tomcat. But there is something going on.

- Scale horicontal
  - deploy apache, tomcat, database on different machines.

- Scale vertically
  Depending on the kind of application you have, you can deploy
  differents part of your application on different machines.
  It depends on you application if you need to keep the session
  between these parts.

- Scale with hardware
  Buy or rent a bigger/faster machine or improve your existing
  one. (Find out the bottlenecks and improve)
  There are many solutions around from 1 to several hundred
  processors with different architectures.
  Depending on your needs this can be much cheaper in TCO than
  a second machnine. (With a second machine you double the
  administrative overhead, you need to think about distributed
  backup, the failure rate will increase)

- Scale with optimizing
  Make your application faster on the same hardware.


If you want to scale by deploying tomcat to several machines
this is not always transparent to your application. Some
examples:

- If you create unique id's, you must make shure that they are
  unique across instances.

- If you store information in the file system you have to enshure 
  - that it is acsessible to the current session
no matter on which machine the session currently is
  - that if you use sticky sessions, this information is not needed
by other sessions or it is available on all machines.



> -Ursprüngliche Nachricht-
> Von: Soefara Redzuan [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 11. April 2002 04:56
> An: [EMAIL PROTECTED]
> Betreff: Designing for scalability ?
> 

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




Re: war Deployement ?

2002-04-10 Thread RAYMOND Romain


I have seen it is possible with TC 4.1 (in JWDSP )to add a mywebapp.xml
file in the webapp directory.
This file is merged to the server configuration file ... so ti permits
to do required initializations.

But is there a way with TC 4.0.3 ?

> 
> Hello,
> 
> I package my web app as a war file. Probelm is that I'd like to do all
> initialization
> in my war file. But my server configuration file (server.xml) need to
> intialize the weapp
> RDBM driver : "
> 
>   type="javax.sql.DataSource"/>
> 
> 
>usersa
> 
>password
> driverClassName
> 
>org.hsqldb.jdbcDriver
> driverName
> 
> jdbc:hsqldb:D:/mywebapp/src/docroot/WEB-INF/databases/myDB
> 
> ".
> 
> So is there informations about how to package those servers
> configurations informations
> into a war to deploy my webapp without modifying server.xml ?
> 
> thanks.
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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




.do file with Apache problems

2002-04-10 Thread Robert Abbate

I've got problems with my mod_jk setup (as far as I understand). I've got a
customer using our server (shared webhosting environment) who is having
trouble using ".do" files. It comes back as "file not found" errors when
it's executed by a jsp page. Here's my setup and log files. Perhaps anyone
can give some suggestions on where to look or what to do?? Has anyone run
into this issue before?

I'm using Tomcat 4, JDK 4.1, Apache 1.3, and mod_jk



here's my mod_jk.log
.
[Tue Apr 09 11:19:20 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Tue Apr 09 11:19:20 2002]  [jk_ajp13_worker.c (845)]: In
jk_endpoint_t::service, get_reply failed in send loop 0
[Tue Apr 09 11:22:46 2002]  [jk_ajp13_worker.c (381)]: Error
ajp13_process_callback - write failed
[Tue Apr 09 11:51:40 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Tue Apr 09 11:51:40 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Tue Apr 09 11:51:40 2002]  [jk_ajp13_worker.c (845)]: In
jk_endpoint_t::service, get_reply failed in send loop 0
[Tue Apr 09 12:00:40 2002]  [jk_connect.c (143)]: jk_open_socket, connect()
failed errno = 111
[Tue Apr 09 12:00:40 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Tue Apr 09 12:00:40 2002]  [jk_ajp13_worker.c (635)]: Error connecting to
the Tomcat process.
[Tue Apr 09 12:00:40 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 0
[Tue Apr 09 12:00:40 2002]  [jk_connect.c (143)]: jk_open_socket, connect()
failed errno = 111
[Tue Apr 09 12:00:40 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Tue Apr 09 12:00:40 2002]  [jk_ajp13_worker.c (635)]: Error connecting to
the Tomcat process.
[Tue Apr 09 12:00:40 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 1
[Tue Apr 09 12:00:40 2002]  [jk_connect.c (143)]: jk_open_socket, connect()
failed errno = 111
[Tue Apr 09 12:00:40 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Tue Apr 09 12:00:40 2002]  [jk_ajp13_worker.c (635)]: Error connecting to
the Tomcat process.
[Tue Apr 09 12:00:40 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2
[Wed Apr 10 07:32:09 2002]  [jk_ajp13_worker.c (381)]: Error
ajp13_process_callback - write failed
[Wed Apr 10 10:48:54 2002]  [jk_ajp13_worker.c (381)]: Error
ajp13_process_callback - write failed
[Wed Apr 10 21:52:13 2002]  [jk_ajp13_worker.c (381)]: Error
ajp13_process_callback - write failed
[Wed Apr 10 23:46:11 2002]  [jk_ajp13_worker.c (381)]: Error
ajp13_process_callback - write failed
...
===
Here's catalina.log for this particular hosting customer (which seems fine
to me):
...
2002-04-11 01:55:47 WebappLoader[]: Deploying class repositories to work
directory /var/tomcat4/work/valuerequest.com/_
2002-04-11 01:55:47 WebappLoader[]: Deploy JAR /WEB-INF/lib/log4j.jar to
/home/valuerequest/html/WEB-INF/lib/log4j.jar
2002-04-11 01:55:47 WebappLoader[]: Deploy JAR /WEB-INF/lib/omcontrib.jar to
/home/valuerequest/html/WEB-INF/lib/omcontrib.jar
2002-04-11 01:55:47 WebappLoader[]: Deploy JAR /WEB-INF/lib/omcore.jar to
/home/valuerequest/html/WEB-INF/lib/omcore.jar
2002-04-11 01:55:47 WebappLoader[]: Deploy JAR /WEB-INF/lib/openmap.jar to
/home/valuerequest/html/WEB-INF/lib/openmap.jar
2002-04-11 01:55:47 WebappLoader[]: Deploy JAR
/WEB-INF/lib/servletMonitor.jar to
/home/valuerequest/html/WEB-INF/lib/servletMonitor.jar
2002-04-11 01:55:47 WebappLoader[]: Deploy JAR /WEB-INF/lib/struts.jar to
/home/valuerequest/html/WEB-INF/lib/struts.jar
2002-04-11 01:55:47 StandardManager[]: Seeding random number generator class
java.security.SecureRandom
2002-04-11 01:55:47 StandardManager[]: Seeding of random number generator
has been completed
2002-04-11 01:55:48 ContextConfig[]: Added certificates -> request attribute
Valve
2002-04-11 01:55:48 initialisation: init
2002-04-11 01:55:48 StandardWrapper[:default]: Loading container servlet
default
2002-04-11 01:55:48 default: init
2002-04-11 01:55:48 StandardWrapper[:invoker]: Loading container servlet
invoker
2002-04-11 01:55:48 invoker: init
2002-04-11 01:55:48 action: init
2002-04-11 01:55:48 action: Loading application resources from resource
com.dgarnier.awas.web.ApplicationResources
2002-04-11 01:55:48 action: Initializing configuration from resource path
/WEB-INF/struts-config.xml
2002-04-11 01:55:48 action: Process servletName=mapdisplay, urlPattern=*.map
2002-04-11 01:55:48 action: Process servletName=graphdisplay,
urlPattern=*.ghd
2002-04-11 01:55:48 action: Process servletName=initialisation,
urlPattern=/nothing
2002-04-11 01:55:48 action: Process servletName=action, urlPattern=*.do
2002-04-11 01:55:48 action: Mapping for servlet 'action' = '*.do'
2002-04-11 01:55:48 jsp: init
2002-04-11 01:55:4

Access local directory with Tomcat 4.0

2002-04-10 Thread Jordan C N Chong

Dear all,

Sorry to post this question again, cause I didn't receive any reply... so I
think I should rephrase my question.

I am using standalone Apache Tomcat 4.0, on my Windows 2000 machine.

I am making a servlet for file downloading using the Tomcat 4.0, but I am
not sure how to setup or configure the local directory, cause when I do
this:

FileInputStream filein = new FileInputStream("C:\\temp\\text.txt");

I got IOException for that, because Tomcat 4.0 complains the directory is
not accessible... Please help me. Thank you very much.


Best regards,
Jo


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




Bean Class Not Found

2002-04-10 Thread Stephen Hildebrand

Help! I've recently tried to create a JSP page that
uses a bean, but when I try to access the page I get
the following error:

-
An error occurred at line: 9 in the jsp file:
/moreinfo.jsp

Generated servlet error:
/usr/local/tomcat4/work/localhost/_/moreinfo$jsp.java:60:
Class myBean.EmailAddress not found.
myBean.EmailAddress emailAddr = null;

-
System is RH Linux 7.2/Tomcat 4.03
I am using the  construct, and have also
tried specifying the page import directive.

I have the bean in the myBean package and have the
class file installed in
webapps/examples/WEB-INF/classes/myBean, but I've not
had any luck getting the page to compile.

I suspect I'm making a fairly simple rookie mistake -
I'm hoping someone can spot it quickly.

Any help would be appreciated.

-Stephen

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

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




Re: RES: How can I automatically start a servlet in a specific time?

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

Kelly Prudente Pereira wrote:
> 
> Yes Ken, I mean I don't want to load it until a specific time.
> I need to load it to do a specific job at a certain time.
> Do you know how can I do this?
> 

 That's not really what servlets are for. If you do decide
to do it using a servlet, you should know the tradeoffs.
There's some discussion (and some good references) at:

 http://www.distributopia.com/servlet_stuff/background_threads.html


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

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




Re: global singleton across multiple engines?

2002-04-10 Thread Ray Tayek

At 08:32 PM 4/10/02 -0700, you wrote:
>At 09:58 PM 4/10/02 -0400, you wrote:
>>Try RMI.  ...
>that sounds like a good way to solve the problem with different nodes.
>
>>Sharing across different contexts within the same Tomcat engine is a 
>>different matter. ...
>it looks like a different class loader is used  ...

according to jason hunter, each web app (context) has its classes loaded by 
a different class loader. he claims that if i put the class to be shared in 
the server_root/classes, then it wll be found. this does not seem to work 
under tomcat 4.0.1 as he tries to load other contexts first and throws a " 
... - Root Cause - java.lang.NoClassDefFoundError: 
Singleton   at .(S.java:28) ".

now the server_root context is first in the the server.xml file, but it is 
commented out as follows:

 
 
so that's maybe why he can not find the class.

however, uncommenting this throws the same result (but it waits until you 
try to load on of the servlets that wants the singleton.

how is this supposed to work?

thanks


>>Ray Tayek wrote:
>>
>>>hi, i need to have a global singleton that is a singleton across all 
>>>instances of (tomcat) servlet engines.
>>>is there an engine context in tomcat that i can access?
>>>does this singleton work across virtual hosts?
>>>how does this work across multple jvm's on the same machine (or does 
>>>this not happen)?
>>>how about when you are load balancing across different physical nodes? - 
>>>do you need to have some system semaphore on one of the nodes to prevent 
>>>multiple instances?
>>>afaict so far, restarting a context, takes down all of the classes in 
>>>the context and putting copy of singleton into a different context, 
>>>seems to cause two instances to be created.
>>>any pointers would be appreciated. ...
>>...
>
>---
>ray tayek http://home.attbi.com/~rtayek/
>actively seeking telecommuting work
>vice chair orange county java users group http://www.ocjug.org/ 
>mailto:[EMAIL PROTECTED]
>hate spam? http://samspade.org/ssw/
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 

---
ray tayek http://home.attbi.com/~rtayek/
actively seeking telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread Nikola Milutinovic

> > Struts provides a basic Connection Pool, but user comments suggest that
> > this is not suitable for large-scale, high-traffic applications, and
> > also that it will soon be removed from Struts in favour of a
> > container-managed connection pool
> 
> So what will Tomcat Users do? Will Tomcat get a container manages connection
> pool?
> What is the reason for removing it form Struts?

Struts, as I see it, is just an application framework. Connection pooling is a job for 
the JEE container, be it Tomcat or JBoss (or any other commercial).

Nix.



Help using JDBC realm with MySQL

2002-04-10 Thread Shawn A. Wilson

Please help, I'm using Tomcat 4.0.2 and am trying to setup a JDBC realm 
with MySQL. Here is the snippet from server.xml:



And here is the exception stack trace:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.2
Catalina.start: LifecycleException:  Exception opening database 
connection:  java.sql.SQLException:
Cannot disable AUTO_COMMIT
LifecycleException:  Exception opening database connection: 
java.sql.SQLException: Cannot disable A
UTO_COMMIT
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
 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.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 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.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.sql.SQLException: Cannot disable AUTO_COMMIT
 at org.gjt.mm.mysql.Connection.setAutoCommit(Connection.java:396)
 at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:549)
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
 at 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
 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.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 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.Bootstrap.main(Bootstrap.java:243)


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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread Nikola Milutinovic

> Performance isn't so important as future-proofing - I don't want to have 
> to re-write the db interface when struts drops it's connection pool 
> provision, for example.
> 
> I believe that mm.mysql does support pooling, although I take your point 
> that others may not.  I can't see us moving away from MySQL at the 
> moment, so that's fine.
> 
> My use of the database is really quite simple, so I'm sure that commons 
> would be fine, but at the moment I don't know where to start integrating 
> it with my Struts project.  Does the container manage the pool (i.e. 
> some server.xml configuration needed)? Or do I instantiate and manage 
> the pool from within my application, and if so, how?

I believe the correct approach is to let container handle setting up the pool. Look at 
JNDI-Resources HOWTO in Tomcat's docs.

Nix.



RE: Designing for scalability ?

2002-04-10 Thread Dahnke, Eric


>A software solution is to use Windows 2000 Advanced Server.  In a
>clustered environment, there is a parameter called Affinity.  Affinity
>will maintain the client's session to one particular server in the
>cluster.  Advanced Server works by assigning the cluster 1 IP address
>and each individual server a secondary IP address.

Bewarned. I've seen this w2k solution fail miserably twice out of two
attempted deployments. Hardware loadbalancing is the way to go imo.

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




Re: global singleton across multiple engines?

2002-04-10 Thread Ray Tayek

At 09:58 PM 4/10/02 -0400, you wrote:
>Try RMI.  You cannot have an instance of a class shared across multiple 
>JVMs (= multiple instances of Tomcat running).  But you might be able to 
>set up an RMI server with a singleton instance of a Remote object.

that sounds like a good way to solve the problem with different nodes.

>Sharing across different contexts within the same Tomcat engine is a 
>different matter.  That ought to work as long as the class is loaded by 
>the same ClassLoader instance used by each context to load classes.  How 
>to control that is beyond me.

it looks like a different class loader is used (or different jvm's - i am 
on a linux box so i see many processes (but they are really threads of one 
parent process, so i am guessing one jvm and multiple class loaders)).

is there some way to make tomcat use the same class loader?

thanks

>Ray Tayek wrote:
>
>>hi, i need to have a global singleton that is a singleton across all 
>>instances of (tomcat) servlet engines.
>>is there an engine context in tomcat that i can access?
>>does this singleton work across virtual hosts?
>>how does this work across multple jvm's on the same machine (or does this 
>>not happen)?
>>how about when you are load balancing across different physical nodes? - 
>>do you need to have some system semaphore on one of the nodes to prevent 
>>multiple instances?
>>afaict so far, restarting a context, takes down all of the classes in the 
>>context and putting copy of singleton into a different context, seems to 
>>cause two instances to be created.
>>any pointers would be appreciated. ...
>...

---
ray tayek http://home.attbi.com/~rtayek/
actively seeking telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


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




Re: Designing for scalability ?

2002-04-10 Thread David Lu


you're talking about a clustered environment.  such capabilities
are already available in commercial app servers like weblogic.

here are some things you want to do now if you think you'll ever
go clustered:

- make sure everything you put into the session implements Serializable.
  this way the app server can share session data.
- don't put large data objects (like a Collection) into the session.
- don't rely on static data held in singleton objects, because you may
  end up with multiple singleton objects, one in every app server instance.
- code to standards and avoid app-server-specific "features" as much
  as you can, for you may have to change app servers for clustering.

 - david -


On 2002.04.10 19:56 Soefara Redzuan wrote:
> If one day you suspect that one Tomcat server will not be sufficient, and
> 
> you will have to employ 2 or more Tomcat servers running on separate 
> machines, how can we allow for scalability ?
> 
> [...]
> 
> What steps are people taking to allow for scalability in their
> applications 
> ? Are there any steps that can be implemented at initial development
> which 
> may save time further down the road ?
> 
> Thank you, Soefara.
> 


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




RE: Designing for scalability ?

2002-04-10 Thread Tomcat @ HostJSP.com

There are several options you can use for scalability.

A software solution is to use Windows 2000 Advanced Server.  In a
clustered environment, there is a parameter called Affinity.  Affinity
will maintain the client's session to one particular server in the
cluster.  Advanced Server works by assigning the cluster 1 IP address
and each individual server a secondary IP address.

A hardware solution is to use a load balancer. Coyote Point makes a good
load balancer (Equalizer 250) which will maintain the session to the
appropriate server.

Kurt Seidensticker
HostJSP.com, HostJ2EE.com
PROMINENT SOFTWARE GROUP, INC.
4TH FLOOR
10 N MARTINGALE RD
SCHAUMBURG, IL 60173
ph: 847-466-1010
fx: 847-466-1101


-Original Message-
From: Soefara Redzuan [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 10, 2002 9:56 PM
To: [EMAIL PROTECTED]
Subject: Designing for scalability ?


If one day you suspect that one Tomcat server will not be sufficient,
and 
you will have to employ 2 or more Tomcat servers running on separate 
machines, how can we allow for scalability ?

For example, using simple DNS round-robbin to offload requests between 
servers, a first request might arrive at one server and a Session object

created. But if the subsequent request (from the same client) arrives at
a 
different server, that Session will not be found, will it ?  (As far as
I 
know, there is no method to store Sessions in a common database used by 
several servers)

What steps are people taking to allow for scalability in their
applications 
? Are there any steps that can be implemented at initial development
which 
may save time further down the road ?

Thank you, Soefara.

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


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



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




MS Access

2002-04-10 Thread Lee Chin Khiong


Does anyone know what's the problem ?


type Exception report

message Internal Server Error

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

exception 

javax.servlet.ServletException: [Microsoft][ODBC Microsoft Access
Driver]Invalid descriptor index
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:463)
at
org.apache.jsp.index1_0005f1$jsp._jspService(index1_0005f1$jsp.java:155)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
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.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:536)


root cause 

java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Invalid
descriptor index
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
at sun.jdbc.odbc.JdbcOdbc.SQLColAttributes(JdbcOdbc.java:2041)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getColAttribute(JdbcOdbcResultSet.java:5241)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getColumnType(JdbcOdbcResultSet.java:5870)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getMaxCharLen(JdbcOdbcResultSet.java:5269)
at
sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:267)
at
org.apache.jsp.index1_0005f1$jsp._jspService(index1_0005f1$jsp.java:137)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.ja

Designing for scalability ?

2002-04-10 Thread Soefara Redzuan

If one day you suspect that one Tomcat server will not be sufficient, and 
you will have to employ 2 or more Tomcat servers running on separate 
machines, how can we allow for scalability ?

For example, using simple DNS round-robbin to offload requests between 
servers, a first request might arrive at one server and a Session object 
created. But if the subsequent request (from the same client) arrives at a 
different server, that Session will not be found, will it ?  (As far as I 
know, there is no method to store Sessions in a common database used by 
several servers)

What steps are people taking to allow for scalability in their applications 
? Are there any steps that can be implemented at initial development which 
may save time further down the road ?

Thank you, Soefara.

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


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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread Soefara Redzuan

>Tomcat:  As far as I'm concerned, JNDI support is a "now and forever more" 
>feature of Tomcat 4 and later.  It's the standard access mechanism for J2EE 
>app servers as well.

This is what I love to hear. With so many changes (servlets to JSP to 
Struts) over the last few years, future-proofing is so important.

>Recommendation:  If you can, you should use JNDI based access to data
>sources.  This is both portable across containers, and portable across
>Struts versus non-Struts applications.

>In addition, it can be used from
>directly from within a JavaBean implementing your business logic,
>without requiring a reference to ActionServlet or the servlet context (or 
>the web layer at all).

Really ? This is incredibly important news to me. I've been acquiring the 
JNDI resource within my servlet then passing it as a parameter to my 
Javabean which is a terrible mechanism because it makes my javabean 
dependent on the servlet :(

So, are we saying that once we've set up a pooled database connection JNDI 
resource in server.xml and web.xml, any Javabean that is called by a serlvet 
or JSP can make use of this JNDI resource directly like this


In the javabean.

import javax.naming.NamingException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingEnumeration;
import javax.naming.directory.InitialDirContext;

class mybean() {
java.sql.Connection conn

get getPooledDatabaseConnection() {
Context ctx = new  InitialContext();
Context envCtx = (Context) ctx.lookup("java:/comp/env/");
DataSource ds = (DataSource) envCtx.lookup("jdbc/dbpool");
conn = ds.getConnection();
}
...
}

If so, this is going to make development much easier. :-)

Soefara.




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


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




Re: Persistent Context names with auto-deploy

2002-04-10 Thread Craig R. McClanahan



On Thu, 11 Apr 2002, bryan collins wrote:

> Date: Thu, 11 Apr 2002 08:43:42 +1000 (EST)
> From: bryan collins <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Persistent Context names with auto-deploy
>
> I am using manager for the intial deployment of an app.
> I don't want to have to re-deploy the apps each time TC starts up.
>
> Is there a way for TC to remember what path you deployed an app on via
> the manager app?
> Keep in mind that unpackwars=true must be set for filesystem access.
>

This will ultimately be a feature of the HEAD branch (what will ultimately
become Tomcat 4.1).  Any apps deployed via Manager, or changes made using
the admin app, will cause server.xml to be updated so that the same state
will be reproduced when Tomcat is restarted.

Right now, though, you have to redeploy the next time you start Tomcat.
Fortunately, you need to do that less and less nowdays ...

>
> Thanks
> Bry
>

Craig


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




Re: global singleton across multiple engines?

2002-04-10 Thread Jeffrey Bonevich

Try RMI.  You cannot have an instance of a class shared across multiple 
JVMs (= multiple instances of Tomcat running).  But you might be able to 
set up an RMI server with a singleton instance of a Remote object.

Sharing across different contexts within the same Tomcat engine is a 
different matter.  That ought to work as long as the class is loaded by 
the same ClassLoader instance used by each context to load classes.  How 
to control that is beyond me.

jeff

Ray Tayek wrote:

> hi, i need to have a global singleton that is a singleton across all 
> instances of (tomcat) servlet engines.
> 
> is there an engine context in tomcat that i can access?
> 
> does this singleton work across virtual hosts?
> 
> how does this work across multple jvm's on the same machine (or does 
> this not happen)?
> 
> how about when you are load balancing across different physical nodes? - 
> do you need to have some system semaphore on one of the nodes to prevent 
> multiple instances?
> 
> afaict so far, restarting a context, takes down all of the classes in 
> the context and putting copy of singleton into a different context, 
> seems to cause two instances to be created.
> 
> any pointers would be appreciated.
> 
> thanks
> 
> ---
> ray tayek http://home.attbi.com/~rtayek/
> actively seeking telecommuting work
> vice chair orange county java users group http://www.ocjug.org/ 
> mailto:[EMAIL PROTECTED]
> hate spam? http://samspade.org/ssw/
> 
> 
> -- 
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 


-- 
Jeffrey Bonevich
Ann Arbor, Michigan
[EMAIL PROTECTED]
http://www.bonevich.com

Hwæt! Wë Gär-Dena   in geär-dagum,
peod-cyninga,   prym gefrünon,
hü ða aepelingas   ellen fremedon!


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




Slide + TC4 + Apache with virtual hosts

2002-04-10 Thread August Detlefsen

Can anyone give me an example of a config to do this? 

My setup is: 

Apache 1.3 using mod_webapp to connect to Tomcat 4.0.2

I have multiple virtual hosts defined (in server.xml and
httpd.conf) that I want to access via Slide's WebDAV component. 

Looking at the server.xml that came with Slide's default server I see
 entries like this: 

  
  

I tried adding the className param to the virtual hosts defined in my
existing server.xml, but then Tomcat fails to start with this
exception. Why would it no longer be able to find
org/apache/catalina/core/StandardHost? -it is still in
$CATALINA_HOME/server/lib/catalina.jar : 

Exception during startup processing
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError: org/apache/catalina/core/StandardHost
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClassLoader.java:671)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1090)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:989)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1073)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:989)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
at
org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
at
org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at
org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at
org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
at
org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
at
org.apache.catalina.startup.Catalina.start(Catalina.java:725)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)



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

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




How to route requests by URL

2002-04-10 Thread Rick Snide

I know how to setup an application such as www.mywebsite.com/myapp so that Tomcat 
knows what to do with URLs that have the "/myapp" appended - to setup security, etc. 
 
Are we also able to have something like myapp.mywebsite.com such that Tomcat knows 
what to do with it?  I would like to do this and route it to webapps/myapp
 
Thanks in advance.



Re: RES: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Ken Anderson

This sounds like it could be a simple java app?
Are you sure this needs to be a servlet? If so, I suppose the easiest is 
just to write a controller servlet for it that only executes the method 
when the time is right, and sleeps the rest of the time..
Someone else suggested some code for this.
Ken



Kelly Prudente Pereira wrote:
> Yes Ken, I mean I don't want to load it until a specific time.
> I need to load it to do a specific job at a certain time.
> Do you know how can I do this?
> 
> -Mensagem original-
> De: Ken Anderson [mailto:[EMAIL PROTECTED]] 
> Enviada em: quarta-feira, 10 de abril de 2002 19:19
> Para: Tomcat Users List
> Assunto: Re: How can I automatically start a servlet in a specific time?
> 
> You mean you don't want to load it until a specific time, or you don't 
> want it to respond to requests until a certain time?
> Ken
> 
> 
> Carlos Martins wrote:
> 
>>Kelly,
>>
>>Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um
> 
> servlet tipo "scheduler" que arranca automáticamente com o tomcat e que a
> determinadas horas arranca outros servlets.
> 
>>Carlos
>>
>>-Original Message-
>>From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
>>Sent: quarta-feira, 10 de Abril de 2002 23:04
>>To: '[EMAIL PROTECTED]'
>>Subject: How can I automatically start a servlet in a specific time?
>>
>>
>>Can anyone answer my question?
>>How can I automatically start a servlet in a specific time? For example:
> 
> at
> 
>>midnight. 
>>I don't want to start it when I start my webserver.
>> 
>>Thanks in advanced,
>> 
>>Kelly Prudente Pereira
>>Analista de Sistemas - NDS
>>[EMAIL PROTECTED]   
>>Fóton® Informática e Serviços
>>Fone: (61) 328 5060 R.: 221
>> 
>>
>>--
>>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: 




global singleton across multiple engines?

2002-04-10 Thread Ray Tayek

hi, i need to have a global singleton that is a singleton across all 
instances of (tomcat) servlet engines.

is there an engine context in tomcat that i can access?

does this singleton work across virtual hosts?

how does this work across multple jvm's on the same machine (or does this 
not happen)?

how about when you are load balancing across different physical nodes? - do 
you need to have some system semaphore on one of the nodes to prevent 
multiple instances?

afaict so far, restarting a context, takes down all of the classes in the 
context and putting copy of singleton into a different context, seems to 
cause two instances to be created.

any pointers would be appreciated.

thanks

---
ray tayek http://home.attbi.com/~rtayek/
actively seeking telecommuting work
vice chair orange county java users group http://www.ocjug.org/ 
mailto:[EMAIL PROTECTED]
hate spam? http://samspade.org/ssw/


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




RE: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Tom Parker

> Can anyone answer my question?
> How can I automatically start a servlet in a specific time? For
> example: at
> midnight.
> I don't want to start it when I start my webserver.

Create an intialisation servlet who's init() method is called when the web
application comes into scope. In the init() method spawn a new thread and
sleep until the apropriate time and then call whatever method you need to
execute at that time. You should be able to set up multiple actions on one
sleeping thread if required. Use a timer object or some other helper to
manage your sleeping.

Be sure also to have a destroy method that shuts down the sleeping thread,
otherwise you thread will keep running when you remove your web application
and the only way to get rid of it will be to restart the whole server.

this code runs periodically, you'll have to do something slightly different
to do something at a particular time of day

   /**
* Called by the container when the application comes into scope (ie on
application load)
*
* Starts the memory logger
*/
   public void init() {
  if (timer != null) {
 WebLogger.log("timer not null aborting MemoryDaemon start");
 return;
  }
  timer = new Timer(true);
  timer.schedule(new DaemonTask(), 0, DELAY_MINS * SECS_MIN *
MILLIS_MIN);
  WebLogger.log("initialised MemoryDaemon");
   }


   /**
* Called by the container when the servlet goes out of scope (ie on
application reload)
*/
   public void destroy() {
  WebLogger.log("Shutting down MemoryDaemon");
  timer.cancel();
   }


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




Re: Persistent Context names with auto-deploy

2002-04-10 Thread bryan collins

I am using manager for the intial deployment of an app.
I don't want to have to re-deploy the apps each time TC starts up.

Is there a way for TC to remember what path you deployed an app on via
the manager app?
Keep in mind that unpackwars=true must be set for filesystem access.


Thanks
Bry

Jeff Larsen said:
[ Charset ISO-8859-1 unsupported, converting... ]
> Since you are using the manager app to deploy your war files, there is no 
> need to keep the war files in the webapps directory. Make a separate
> directory outside of /www/webapps, perhaps /www/war. Then Tomcat
> won't find them when it starts up.
> 
> Jeff
> 
> 
> - Original Message - 
> From: "bryan collins" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 10, 2002 12:15 AM
> Subject: Persistent Context names with auto-deploy
> 
> 
> > Hi,
> > 
> > I have an environment that serves requests via apache, on Solaris.
> > I have configured Tomcat 4.0.3 with mod_jk, most things appear to be working
> > just fine.
> > 
> > Apache is configured to pass /apps/* to tomcat via ajp13 protocol.
> > Tomcat is configured with an appbase of /www/webapps
> > 
> > I automatically deploy my .war files on paths of /apps/servletname
> > so I can have completely independant contexts for each servlet.
> > 
> > This works, and I can access the app via apache.
> > However, when tomcat restarts, it finds the servlet in the appbase, since
> > unpackWARS=true, and automatically deploys it under /
> > 
> > My question is, How can I force persistance of Context paths across a Tomcat
> > restart, when using automatic deploy (via the manager app)
> > 
> > i.e
> > auto-deploy foo.war on /apps/foo (via manager)
> > TC extracts the war to /www/webapps/foo, everything works perfectly.
> > After TC restart, TC deploys the servlet as /foo, not /apps/foo.
> > 
> > Any ideas?
> > 
> > Many Thanks
> > Bry
> > 
> > --
> > 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: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Jeff Larsen

How about using some kind of command line driven web URL grabber
(e.g. webgrab for UNIX, or write your own java version) launched
at the appropriate time (via cron or Task Scheduler) which asks
for a URL which will cause the servlet to load and do it's thing.
Of course, you need to be reasonably sure that someone won't
unexpectedly request that URL at some other time.

Jeff

- Original Message -
From: "Kelly Prudente Pereira" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 5:20 PM
Subject: RES: How can I automatically start a servlet in a specific time?


> Yes Ken, I mean I don't want to load it until a specific time.
> I need to load it to do a specific job at a certain time.
> Do you know how can I do this?
>
> -Mensagem original-
> De: Ken Anderson [mailto:[EMAIL PROTECTED]]
> Enviada em: quarta-feira, 10 de abril de 2002 19:19
> Para: Tomcat Users List
> Assunto: Re: How can I automatically start a servlet in a specific time?
>
> You mean you don't want to load it until a specific time, or you don't
> want it to respond to requests until a certain time?
> Ken
>
>
> Carlos Martins wrote:
> > Kelly,
> >
> > Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um
> servlet tipo "scheduler" que arranca automáticamente com o tomcat e que a
> determinadas horas arranca outros servlets.
> >
> > Carlos
> >
> > -Original Message-
> > From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
> > Sent: quarta-feira, 10 de Abril de 2002 23:04
> > To: '[EMAIL PROTECTED]'
> > Subject: How can I automatically start a servlet in a specific time?
> >
> >
> > Can anyone answer my question?
> > How can I automatically start a servlet in a specific time? For example:
> at
> > midnight.
> > I don't want to start it when I start my webserver.
> >
> > Thanks in advanced,
> >
> > Kelly Prudente Pereira
> > Analista de Sistemas - NDS
> > [EMAIL PROTECTED] 
> > Fóton® Informática e Serviços
> > Fone: (61) 328 5060 R.: 221
> >
> >
> > --
> > 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: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Carlos Martins

nope, nunca fiz...
tens a certeza que é um servlet que queres correr a determinada hora?
É que um servlet é uma classe específica para respoder a pedidos remotos (por http).
Se o "programa" que queres correr a determinadas horas não tem nada a ver com pedidos 
de http, então podes fazer uma classe normal de java e corre-la a determinadas horas 
usando o scheduler do windows ou o cron to linux.

-Original Message-
From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 10 de Abril de 2002 23:16
To: 'Tomcat Users List'
Subject: RES: How can I automatically start a servlet in a specific
time?


Não sei bem se entendi. Eu uso o load-on-startup para carregar uma servlet e
esta fica responsável por chamar outra num determinado horário?
Já fez isso?
Obrigada por responder.

-Mensagem original-
De: Carlos Martins [mailto:[EMAIL PROTECTED]] 
Enviada em: quarta-feira, 10 de abril de 2002 19:04
Para: Tomcat Users List
Assunto: RE: How can I automatically start a servlet in a specific time?

Kelly,

Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um
servlet tipo "scheduler" que arranca automáticamente com o tomcat e que a
determinadas horas arranca outros servlets.

Carlos

-Original Message-
From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 10 de Abril de 2002 23:04
To: '[EMAIL PROTECTED]'
Subject: How can I automatically start a servlet in a specific time?


Can anyone answer my question?
How can I automatically start a servlet in a specific time? For example: at
midnight. 
I don't want to start it when I start my webserver.
 
Thanks in advanced,
 
Kelly Prudente Pereira
Analista de Sistemas - NDS
[EMAIL PROTECTED]   
Fóton® Informática e Serviços
Fone: (61) 328 5060 R.: 221
 

--
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: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Mike Jackson

I'd imagine that you'll need to create a start on load servlet that
has it's on internal scheduler for starting other tasks.  Even if
tomcat had something to do what you're looking for I don't think it'd
work in any other jsp container.  Then again if you're on a unix
box you could just use cron...

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 3:20 PM
> To: 'Tomcat Users List'
> Subject: RES: How can I automatically start a servlet in a specific
> time?
>
>
> Yes Ken, I mean I don't want to load it until a specific time.
> I need to load it to do a specific job at a certain time.
> Do you know how can I do this?
>
> -Mensagem original-
> De: Ken Anderson [mailto:[EMAIL PROTECTED]]
> Enviada em: quarta-feira, 10 de abril de 2002 19:19
> Para: Tomcat Users List
> Assunto: Re: How can I automatically start a servlet in a specific time?
>
> You mean you don't want to load it until a specific time, or you don't
> want it to respond to requests until a certain time?
> Ken
>
>
> Carlos Martins wrote:
> > Kelly,
> >
> > Boa pergunta... não sei nenhuma maneira directa, mas podes
> sempre criar um
> servlet tipo "scheduler" que arranca automáticamente com o tomcat e que a
> determinadas horas arranca outros servlets.
> >
> > Carlos
> >
> > -Original Message-
> > From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
> > Sent: quarta-feira, 10 de Abril de 2002 23:04
> > To: '[EMAIL PROTECTED]'
> > Subject: How can I automatically start a servlet in a specific time?
> >
> >
> > Can anyone answer my question?
> > How can I automatically start a servlet in a specific time? For example:
> at
> > midnight.
> > I don't want to start it when I start my webserver.
> >
> > Thanks in advanced,
> >
> > Kelly Prudente Pereira
> > Analista de Sistemas - NDS
> > [EMAIL PROTECTED] 
> > Fóton® Informática e Serviços
> > Fone: (61) 328 5060 R.: 221
> >
> >
> > --
> > 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: 




RES: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Kelly Prudente Pereira

Yes Ken, I mean I don't want to load it until a specific time.
I need to load it to do a specific job at a certain time.
Do you know how can I do this?

-Mensagem original-
De: Ken Anderson [mailto:[EMAIL PROTECTED]] 
Enviada em: quarta-feira, 10 de abril de 2002 19:19
Para: Tomcat Users List
Assunto: Re: How can I automatically start a servlet in a specific time?

You mean you don't want to load it until a specific time, or you don't 
want it to respond to requests until a certain time?
Ken


Carlos Martins wrote:
> Kelly,
> 
> Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um
servlet tipo "scheduler" que arranca automáticamente com o tomcat e que a
determinadas horas arranca outros servlets.
> 
> Carlos
> 
> -Original Message-
> From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
> Sent: quarta-feira, 10 de Abril de 2002 23:04
> To: '[EMAIL PROTECTED]'
> Subject: How can I automatically start a servlet in a specific time?
> 
> 
> Can anyone answer my question?
> How can I automatically start a servlet in a specific time? For example:
at
> midnight. 
> I don't want to start it when I start my webserver.
>  
> Thanks in advanced,
>  
> Kelly Prudente Pereira
> Analista de Sistemas - NDS
> [EMAIL PROTECTED]   
> Fóton® Informática e Serviços
> Fone: (61) 328 5060 R.: 221
>  
> 
> --
> 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: 




RES: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Kelly Prudente Pereira

Não sei bem se entendi. Eu uso o load-on-startup para carregar uma servlet e
esta fica responsável por chamar outra num determinado horário?
Já fez isso?
Obrigada por responder.

-Mensagem original-
De: Carlos Martins [mailto:[EMAIL PROTECTED]] 
Enviada em: quarta-feira, 10 de abril de 2002 19:04
Para: Tomcat Users List
Assunto: RE: How can I automatically start a servlet in a specific time?

Kelly,

Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um
servlet tipo "scheduler" que arranca automáticamente com o tomcat e que a
determinadas horas arranca outros servlets.

Carlos

-Original Message-
From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 10 de Abril de 2002 23:04
To: '[EMAIL PROTECTED]'
Subject: How can I automatically start a servlet in a specific time?


Can anyone answer my question?
How can I automatically start a servlet in a specific time? For example: at
midnight. 
I don't want to start it when I start my webserver.
 
Thanks in advanced,
 
Kelly Prudente Pereira
Analista de Sistemas - NDS
[EMAIL PROTECTED]   
Fóton® Informática e Serviços
Fone: (61) 328 5060 R.: 221
 

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

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




Re: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Ken Anderson

You mean you don't want to load it until a specific time, or you don't 
want it to respond to requests until a certain time?
Ken


Carlos Martins wrote:
> Kelly,
> 
> Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um servlet 
>tipo "scheduler" que arranca automáticamente com o tomcat e que a determinadas horas 
>arranca outros servlets.
> 
> Carlos
> 
> -Original Message-
> From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
> Sent: quarta-feira, 10 de Abril de 2002 23:04
> To: '[EMAIL PROTECTED]'
> Subject: How can I automatically start a servlet in a specific time?
> 
> 
> Can anyone answer my question?
> How can I automatically start a servlet in a specific time? For example: at
> midnight. 
> I don't want to start it when I start my webserver.
>  
> Thanks in advanced,
>  
> Kelly Prudente Pereira
> Analista de Sistemas - NDS
> [EMAIL PROTECTED]   
> Fóton® Informática e Serviços
> Fone: (61) 328 5060 R.: 221
>  
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 



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




RE: How can I automatically start a servlet in a specific time?

2002-04-10 Thread Carlos Martins

Kelly,

Boa pergunta... não sei nenhuma maneira directa, mas podes sempre criar um servlet 
tipo "scheduler" que arranca automáticamente com o tomcat e que a determinadas horas 
arranca outros servlets.

Carlos

-Original Message-
From: Kelly Prudente Pereira [mailto:[EMAIL PROTECTED]]
Sent: quarta-feira, 10 de Abril de 2002 23:04
To: '[EMAIL PROTECTED]'
Subject: How can I automatically start a servlet in a specific time?


Can anyone answer my question?
How can I automatically start a servlet in a specific time? For example: at
midnight. 
I don't want to start it when I start my webserver.
 
Thanks in advanced,
 
Kelly Prudente Pereira
Analista de Sistemas - NDS
[EMAIL PROTECTED]   
Fóton® Informática e Serviços
Fone: (61) 328 5060 R.: 221
 

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




How can I automatically start a servlet in a specific time?

2002-04-10 Thread Kelly Prudente Pereira

Can anyone answer my question?
How can I automatically start a servlet in a specific time? For example: at
midnight. 
I don't want to start it when I start my webserver.
 
Thanks in advanced,
 
Kelly Prudente Pereira
Analista de Sistemas - NDS
[EMAIL PROTECTED]   
Fóton® Informática e Serviços
Fone: (61) 328 5060 R.: 221
 



RE: Jspc & i18n

2002-04-10 Thread Ricky Leung

did you set your browser's encoding to use French?  Try it with and without.

-Original Message-
From: Christian Bourque [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 5:57 PM
To: Tomcat Users List
Subject: Re: Jspc & i18n


Hi Jeff !

I can't use the attribute "encoding", I think my app server doesn't
implements the last JSP specs !

But I have an update to my problem, I did a diff on two different .java file
based on the same jsp file :

1) the one generated by using jspc command line (the one that doesn't works)
2) the one generated by tomcat/jspc when accessed the first time by a
browser (the one that works)

Its really weird because there are almost identical (only the class name is
different but this is normal), the french text is scrambled in both versions
!

Even more weird, if I access the command line generated version page (#1) in
IE I see this :

Joyeux noël et bonne année !!!

But if I do a view source of the page look at this :

Joyeux noël et bonne année !!!

Everything is fine !!

Christian

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 4:55 PM
Subject: Re: Jspc & i18n



Hi, Christian.

 I haven't run into this problem before, so I'm not sure, but it looks
like the compiler is encoding the accented characters.  Perhaps if you
specify
the JSP page's encoding, it won't do that anymore...?  Try using a directive
at the top of your JSP to do this, something like <%@ page encoding
="ISO-8859-1" %> or whatever specific encoding/character set you are using.

HTH,
-Jeff




"Christian
Bourque"  To: "Tomcat Users List"
<[EMAIL PROTECTED]>
Subject: Re: Jspc & i18n

04/10/02 02:16
PM
Please respond
to "Tomcat
Users List"






Hi Jay !

No, the bad characters are in the .java files that jspc creates !

The text is clean in the .jsp file but as soon as I convert it to .java with
jspc all french accent are scrambled !

Christian

- Original Message -
From: "Jay Gardner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 2:42 PM
Subject: RE: Jspc & i18n


> Are all the correct characters in the .java files that jspc creates?
>
> --Jay Gardner
>
> -Original Message-
> From: Christian Bourque [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 12:49 PM
> To: Tomcat Users List
> Subject: Jspc & i18n
>
> Hi !
>
> I'm having a weird problem with JSPC. We have a bilingual web application
> (english/french), so when I pre-compile all my jsp pages the ones which
> contains french accent are all screwed up  :
>
> Vous avez oublié votre mot de passe ? = Vous avez oubliÃ(c) votre mot de
> passe
> ?
> chaîne = chaÃ(r)ne
>
> ???
>
> Christian
>
>
>
> --
> 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: Jspc & i18n

2002-04-10 Thread Christian Bourque

Hi Jeff !

I can't use the attribute "encoding", I think my app server doesn't
implements the last JSP specs !

But I have an update to my problem, I did a diff on two different .java file
based on the same jsp file :

1) the one generated by using jspc command line (the one that doesn't works)
2) the one generated by tomcat/jspc when accessed the first time by a
browser (the one that works)

Its really weird because there are almost identical (only the class name is
different but this is normal), the french text is scrambled in both versions
!

Even more weird, if I access the command line generated version page (#1) in
IE I see this :

Joyeux noël et bonne année !!!

But if I do a view source of the page look at this :

Joyeux noël et bonne année !!!

Everything is fine !!

Christian

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 4:55 PM
Subject: Re: Jspc & i18n



Hi, Christian.

 I haven't run into this problem before, so I'm not sure, but it looks
like the compiler is encoding the accented characters.  Perhaps if you
specify
the JSP page's encoding, it won't do that anymore...?  Try using a directive
at the top of your JSP to do this, something like <%@ page encoding
="ISO-8859-1" %> or whatever specific encoding/character set you are using.

HTH,
-Jeff




"Christian
Bourque"  To: "Tomcat Users List"
<[EMAIL PROTECTED]>
Subject: Re: Jspc & i18n

04/10/02 02:16
PM
Please respond
to "Tomcat
Users List"






Hi Jay !

No, the bad characters are in the .java files that jspc creates !

The text is clean in the .jsp file but as soon as I convert it to .java with
jspc all french accent are scrambled !

Christian

- Original Message -
From: "Jay Gardner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 2:42 PM
Subject: RE: Jspc & i18n


> Are all the correct characters in the .java files that jspc creates?
>
> --Jay Gardner
>
> -Original Message-
> From: Christian Bourque [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 12:49 PM
> To: Tomcat Users List
> Subject: Jspc & i18n
>
> Hi !
>
> I'm having a weird problem with JSPC. We have a bilingual web application
> (english/french), so when I pre-compile all my jsp pages the ones which
> contains french accent are all screwed up  :
>
> Vous avez oublié votre mot de passe ? = Vous avez oubliÃ(c) votre mot de
> passe
> ?
> chaîne = chaÃ(r)ne
>
> ???
>
> Christian
>
>
>
> --
> 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: Cookie problem with nsapi_redirector.so and netscape server 3.6

2002-04-10 Thread DLewis


I found the problem with this configuration. The URL hostname was changing
in certain cases, so the cookies were not available. Making sure the URL
format is managed properly solves the problem.
---
David Lewis
Pershing Technology Group, 51 Monroe St. Suite 1500, Rockville, MD 20850
301-517-4909 (voice), 301-762-8604 (fax), 703-517-8004 (cell)
[EMAIL PROTECTED]



|-+>
| |   David Lewis  |
| ||
| |   04/10/2002 02:53 |
| |   PM   |
| ||
|-+>
  
>-|
  |
 |
  |   To:   [EMAIL PROTECTED] 
 |
  |   cc:  
 |
  |   Subject:  Cookie problem with nsapi_redirector.so and netscape server 3.6
 |
  
>-|



Last year, there was a posting regarding problems with using Tomcat and
Netscape Enterprise Server 3.6 using nsapi_redirector.so:

http://w6.metronet.com/~wjm/tomcat/2000/Jun/msg00095.html

I didn't see any answers in archive on this issue or for this thread
relative to my problem. I am having a similar problem: One netscape
webserver 3.6 SP3 instance, one Tomcat 4.0.1 instance, multiple users
accessing URLs via the webserver/nsapi_connector/AJP13 get mixed-up
cookies, same users accessing same Tomcat instance via HTTP connector works
fine.

Has anyone else seen strange cookie behavior using this configuration, and
do you have a workaround?

I'm using the latest nsapi_redirector.so binary available at apache.org at:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/solaris6/sparc/

---
David Lewis
Pershing Technology Group, 51 Monroe St. Suite 1500, Rockville, MD 20850
301-517-4909 (voice), 301-762-8604 (fax), 703-517-8004 (cell)
[EMAIL PROTECTED]





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




RE: How to pre-compile JSP's ?

2002-04-10 Thread Sean LeBlanc

What is in your init section?
I'm trying to figure out how to do this, too. I'm using Tomcat 4.0.3
on FreeBSD. Is this org.apache.jasper.JspC in Tomcat (Catalina), or is it renamed?
What jar is it in?

Thanks,
Sean

> -Original Message-
> From: John W. Warner [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 12:30 PM
> To: 'Tomcat Users List'
> Subject: RE: How to pre-compile JSP's ?
> 
> 
> There are three methods. I like #1, I used #3 up until a while ago.
> Anyway, here they are.
> My major criticism of method #3 is that all the machine/port/etc..
> settings should either be passed in on the command line, put in static
> final Strings, or loaded using a properties file. 
> - John
> 
> 1) If you use ANT or can use ant... Put the following in the build
> script.
> 
> 
>   
> 
>   
> 
> (from Jay Gardner's Message 04/08/2002 help with JspC)
> 
> 2) Touch each url for each jsp page and include ?jsp_precompile in the
> url.
> 
> 3) Write a small program to do method 2 for you.
> From Professional JSP Second Edition (wrox) (pretty decent book too,
> simple examples and such)
> 
> package com.wrox.projsp.ch03.util;
> 
> import java.io.File;
> import java.io.IOException;
> import java.net.URL;
> 
> public class Precompile {
> 
>   public static void main(String[] args) {
> 
> String pathname = args[0];
> String queryString = "?jsp_precompile";
> String urlBase = "/chapter04/jsp/";
> 
> try {
>   File dir = new File(pathname);
>   if (!dir.exists()) {
> throw new IOException("pathname " + pathname + " not found");
>   } 
>   File[] files = dir.listFiles();
>   for (int i = 0; i < files.length; i++) {
> String jspFile = files[i].getName();
> if (jspFile.endsWith(".jsp")) {
>   System.out.println("working on " + files[i].getName());
>   try {
> URL url = new URL("http", "127.0.0.1", 8080, 
>   urlBase + jspFile + queryString);
> System.out.println("compiling " + jspFile + " using " +
> urlBase 
>+ jspFile + queryString);
> url.getContent();
>   } catch (Exception e) {
> 
> // add error handling
>   } 
> } 
>   } 
> } catch (Exception e) {
>   System.out.println("exception raised:" + e);
> } 
>   } 
> }
> 
> -Original Message-
> From: Christophe Reynaud [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, April 10, 2002 01:35 PM
> To: Tomcat Users List
> Subject: How to pre-compile JSP's ?
> 
> 
> Do you know if there is a simple solution to pre-compile the JSP's ? 
> (And
> to tell tomcat not to re-compile the JSP's ?)
> 
> Thanks
> 
> Jay Gardner wrote:
> 
> > There are definitely memory leaks in javac. This is a problem when
> jspc
> > compiles your jsp code in the same JVM as the TC server.
> >
> > --Jay Gardner
> >
> > -Original Message-
> > From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 09, 2002 12:52 PM
> > To: Tomcat Users List
> > Subject: Tomcat process takes 246M whereas total java heap is 127M
> >
> > Hello,
> >
> > We use tomcat 3.3.1 on Linux RH 7.2.  JVM : IBM 1.3
> >
> > "top -c" tells that the tomcat threads take 246M but if we use the
> Java
> > function "totalMemory()", it tells that the JVM uses 127M for the
> heap.
> > Where is the rest of memory ?  I expected that the JVM used 
> more than
> > only the total of the heap, but in this case it is almost 
> the double !
> > Any ideas about the reasons of this problem ?  Are there some momory
> > leaks in the JVM ?
> >
> > Thanks.
> >
> > Christophe
> >
> > --
> > 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: REPOST: XXX Assert failed, buff too small -- Help!!

2002-04-10 Thread John Roth

Another day of troubleshooting, more information:

- We wrote a JSP that takes form data and displays it (simple text field,
POSTing to a JSP).  I can upload huge amounts without the same problem.  The
upload even exceeds the 1365 AJP packets that the file upload has been
limited to.

Questions:
1. The file upload uses "multipart/form-data" for the encoding type, the
text form does not.  Multipart/form-data is used by the O'Reilly servlet to
handle uploading binary.  Anyone have any specific knowlege on this
encoding?
2. Has anyone else run into problems uploading large binary files?
3. Is anyone out there getting these messages ;) ?  Frustration is running
rampant here.
4. Is there anymore information I can provide that would help troubleshoot
this?  Can anyone think of a different series of actions to identify the
root cause of this problem?


Thanks,
john


-Original Message-
From: John Roth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 10:31 AM
To: 'Tomcat Users List'
Subject: REPOST: XXX Assert failed, buff too small -- Help!!


I am *still* troubleshooting this issue, and am in dire need of help.  Is
anyone out there uploading large files via SSL/HTTPS?

New discoveries:
1. Added some debugging code to Ajp13.class to output buff, length, etc.,
results are as follows:
   JR: Array: buff(from)=[B@7f92f5, pos(fromIndex)=6, dest(to)=[B@9505f,
0(toIndex), length(count)=8186
   JR: Buff: length=8186, Buff: 8192

   ... repeats for all 1364 correct AJP packets, then ...

   JR: Array: buff(from)=[B@7f92f5, pos(fromIndex)=6, dest(to)=[B@9505f,
0(toIndex), length(count)=8186
   JR: Buff: length=65311, Buff: 8192
   XXX Assert failed, buff too small: length=65311, Buff: 8192
   JR: Array: buff(from)=[B@7f92f5, pos(fromIndex)=6, dest(to)=[B@9505f,
0(toIndex), length(count)=65311
   ... then the AIOOB exception in the application log.
2. Have upgraded Tomcat from 4.0.1 to 4.0.3
3. Have upgraded to yet the latest ISAPI_REDIRECT(or).dll
4. Have explored all IIS registry settings without being able to change the
results at all.
5. Tried other servlets besides O'Reilly with the same result (not
surprising, the error occurs in AJP or isapi_redirect - still can't narrow
down chain of events).
6. ASP pages used for upload do not have this problem (albeit they are
considerably slower).

Desparately looking for help or advice!!

Thanks,
John Roth, Director net.Media
Provider Solutions Corp.

-Original Message-
From: John Roth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 3:40 PM
To: Tomcat User Group (E-mail)
Subject: RE: XXX Assert failed, buff too small


After two weeks, I am still troubleshooting the same problem uploading files
via https where the filesize is greater than 10.7MB.  I am not having much
luck determining the order in which to problem flows, but the following
things are happening:

1. stdout.log records "XXX Assert failed, buff too small" after which
ajp13Packet.class exceptions with AIOOBE.
2. isapi_redirect gets a ReadClient failed, followed shortly by
ServerSupportFunction failed.
3. IIS sends a reset flag to the client.
4. Socket timeout as client acks the reset flag.

I am not able to determine the chain of events, ie: IIS reset/Client
reset->ReadClient fails->AIOOBE or AIOOBE->ReadClient fails->IIS
reset/Client reset.
We are using the O'Reilly multipart upload servlet, and it has been upgraded
to the latest version.  The same thing happens when testing with other JSP
based solutions (such as JSPSmartUpload) but not with ASP-based uploads.

The next series of questions is this:
1. I noticed that 4.0.3 includes a significantly changed ajp connector.  Had
anyone been using is successfully or know if the changes address this issue?
2. Any ideas on how to more closely determine to order of the described
order of events? Some of the logs reports milliseconds, most don't, so I
can't seem to absolutely determine the order of events.
3. I have adjusted several TCP parameters in the Windows registry, but
nothing seems to change the fact that the error always occurs on the 1365th
AJP packet.  None of the buffers within isapi_redirect.dll appear to
correlate to this number.  Anyone familiar with the inner workings of
isapi_redirect (dated feb 14, 2002)?

Any desperately needed help would be appreciated.

Thanks,
john


-Original Message-
From: John Roth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 20, 2002 4:39 PM
To: Tomcat User Group (E-mail)
Subject: XXX Assert failed, buff too small


We are having a problem with Tomcat using an upload servlet to upload
potentially large files (up to 100MB).  The servlet works fine for all file
sizes in the following instances:
http://servername/app/UploadFiles.jsp
http://servername:8080/app/UploadFiles.jsp
but when using https (ie: https://servername/app/UploadFiles.jsp, we get
'Page Cannot Be Displayed'.  A summary of the error logs is below:

IIS_Redirect.Log

 [Wed Mar 20 15:49:20 2002]  [jk_ajp13

Re: Jspc & i18n

2002-04-10 Thread jeff . guttadauro


Hi, Christian.

 I haven't run into this problem before, so I'm not sure, but it looks
like the compiler is encoding the accented characters.  Perhaps if you specify
the JSP page's encoding, it won't do that anymore...?  Try using a directive
at the top of your JSP to do this, something like <%@ page encoding
="ISO-8859-1" %> or whatever specific encoding/character set you are using.

HTH,
-Jeff



   
 
"Christian 
 
Bourque"  To: "Tomcat Users List" 
<[EMAIL PROTECTED]>  
Subject: Re: Jspc & i18n 
 
   
 
04/10/02 02:16 
 
PM 
 
Please respond 
 
to "Tomcat 
 
Users List"
 
   
 
   
 




Hi Jay !

No, the bad characters are in the .java files that jspc creates !

The text is clean in the .jsp file but as soon as I convert it to .java with
jspc all french accent are scrambled !

Christian

- Original Message -
From: "Jay Gardner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 2:42 PM
Subject: RE: Jspc & i18n


> Are all the correct characters in the .java files that jspc creates?
>
> --Jay Gardner
>
> -Original Message-
> From: Christian Bourque [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 12:49 PM
> To: Tomcat Users List
> Subject: Jspc & i18n
>
> Hi !
>
> I'm having a weird problem with JSPC. We have a bilingual web application
> (english/french), so when I pre-compile all my jsp pages the ones which
> contains french accent are all screwed up  :
>
> Vous avez oublié votre mot de passe ? = Vous avez oubliÃ(c) votre mot de
> passe
> ?
> chaîne = chaÃ(r)ne
>
> ???
>
> Christian
>
>
>
> --
> 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: 




RES: Session Tracking / User Authentication

2002-04-10 Thread Edson Carlos Ericksson Richter

Hi!

If you have a welcome-file-list pointing to index.jsp, and your web-app
structure is like:

/MyWebApp
./index.jsp
./publicResources/
   ./index.jsp
   ./anything.jsp
./secureResources/
   ./index.jsp
   ./myMenu.jsp


Then, in /MyWebApp/index.jsp you can have a link to publicResources/ but you
cannot have this for secureResources/.
Your link shoud be for secureResources/index.jsp and recurity area in
web.xml should be cofigured for secureResources/index.jsp. I had several
problems with this some time ago, and reported a bug in Bug Database. The
jakarta team answered saying that it's a "feature by design" and will not be
fixed. This all works fine in other JSP/Servlet engines (like HP-AS).

Atenciosamente,

Edson Carlos Ericksson Richter
Gerente de Tecnologia
ECONET Soluções Web
+55 61 326 5115

-Mensagem original-
De: Rick Roberts [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 10 de abril de 2002 16:28
Para: Tomcat Users List
Assunto: Session Tracking / User Authentication


Can anyone point me to a good reference for handling session tracking
and user authentication?

All I'm trying to do is authenticate a user (form based) and redirect
them to the login page if their session times out.

It should be pretty simple, but I'm having trouble with it and I can't
find any good reference material on the subject.

I have "JSP Professional" (1st Ed.) but the example does not work with
Tomcat.

Any help appreciated.

Thanks,

Rick


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02


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




Re: /lib and /common/lib What's the difference?

2002-04-10 Thread Jacob Kjome

Hello August,

$CATALINA_HOME/lib is for libraries that you want to share with all
youru webapps, but don't want the container to see (to avoid conflicts
with the container)

$CATALINA_HOME/common/lib is for libraries that you want to share with
all your webapps, like above, but the container also sees these
(potential for conflicts).  Notice that the servlet.jar is in this
folder because both the container and the webapps need to be able to
see that library.

Also note that $CATALINA_HOME/server/lib is for libraries that you
want only the the container to see.  Your webapps have no direct
access to this (if any).  You will likely not have to mess with this
one, just know its purpose.

Jake

Wednesday, April 10, 2002, 3:33:52 PM, you wrote:

AD> Is there a difference between $CATALINA_HOME/lib and
AD> $CATALINA_HOME/common/lib ? 

AD> Does it matter whether something is deployed in one or the other? 

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

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



-- 
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


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




/lib and /common/lib What's the difference?

2002-04-10 Thread August Detlefsen

Is there a difference between $CATALINA_HOME/lib and
$CATALINA_HOME/common/lib ? 

Does it matter whether something is deployed in one or the other? 

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

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




Session Tracking / User Authentication

2002-04-10 Thread Rick Roberts

Can anyone point me to a good reference for handling session tracking 
and user authentication?

All I'm trying to do is authenticate a user (form based) and redirect 
them to the login page if their session times out.

It should be pretty simple, but I'm having trouble with it and I can't 
find any good reference material on the subject.

I have "JSP Professional" (1st Ed.) but the example does not work with 
Tomcat.

Any help appreciated.

Thanks,

Rick


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




RE: change a webapp's context

2002-04-10 Thread Ricky Leung

Just rename you war file to ROOT.war and drop it the the same way under
webapps.

-Original Message-
From: Brian K. Buckley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 3:49 PM
To: [EMAIL PROTECTED]
Subject: change a webapp's context


Hi all,

What must one do to change a webapp's context?

I initially deployed my webapp by dropping "test.war" into Tomcat's webapp
directory and it deployed properly.

After testing it out to my satisfaction, I wanted my users to access the
webapp by entering , http://www.example.com"; instead of
"http://www.example.com/test";, so I added this line to Tomcat's server.xml



and removed the existing Context with path="" and restarted Tomcat.  At
first it appeared to work but I quickly noticed a lot of flaky problems,
which went away when I undid the line and reverted back to the "test"
context.

What's the best way to change a webapp context?  Are there directories or
files to delete or move or any other suggestions?

Regards,
-Brian   (using Tomcat 4.0.4-b2-01)


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



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




change a webapp's context

2002-04-10 Thread Brian K. Buckley

Hi all,

What must one do to change a webapp's context?

I initially deployed my webapp by dropping "test.war" into Tomcat's webapp
directory and it deployed properly.

After testing it out to my satisfaction, I wanted my users to access the
webapp by entering , http://www.example.com"; instead of
"http://www.example.com/test";, so I added this line to Tomcat's server.xml



and removed the existing Context with path="" and restarted Tomcat.  At
first it appeared to work but I quickly noticed a lot of flaky problems,
which went away when I undid the line and reverted back to the "test"
context.

What's the best way to change a webapp context?  Are there directories or
files to delete or move or any other suggestions?

Regards,
-Brian   (using Tomcat 4.0.4-b2-01)


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




mod webapp and SSL

2002-04-10 Thread Rich

I'm trying to secure my webapp with Apache's SSL (mod_ssl). I've given up
trying to get it to work using mod_proxy and have turned to the mod webapp
and the warp connector. I have successfully installed mod webapp and can
access my web application the apache via the Warp connector. I believe
apache's SSL is set up correctly, too, as I can access my web application
securely by changing the protocol in the url to https.

However, as soon as I add the confidential user constraint:

  
  CONFIDENTIAL
  

to any of my servlets, tomcat bails with a null pointer exception. Has
anyone seen this before? Any insight/ideas would be greatly appreciated.

Rich

2002-04-10 15:32:43 WarpEngine[develop.streetmail.com]: Mapping request
2002-04-10 15:32:43 WarpHost[develop.streetmail.com]: Mapping request for
Host
2002-04-10 15:32:43 [org.apache.catalina.connector.warp.WarpRequestHandler]
java.lang.NullPointerException
at
org.apache.catalina.authenticator.AuthenticatorBase.checkUserData(Authentica
torBase.java:694)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:481)
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.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java: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.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)


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




RE: deploying war file

2002-04-10 Thread John W. Warner

I have found definite but subtle differences in the war file and web.xml
structure when using iPlanet, websphere, silverstream servers. iPlanet
seems to be the most forgiving and doesn't require an web.xml file at
all which I really find strange since it's supposed to be J2EE
compliant. It disgusts me  because I thought J2EE compliant meant you're
following the J2EE specification which, includes the web.xml file and
it's associated DTD as well as identifying war file structure, etc... I
will say this, Tomcat seems to be more specifically compliant than all
of them (at least in talking about the web.xml file and war file
structure.) If you are having trouble with websphere, I'd go to the
websphere documentation and address it that way. 
Good luck.
- John


-Original Message-
From: Brown Bay [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 10, 2002 02:41 PM
To: Tomcat Users List
Subject: deploying war file

I have a .war file that has been generated using the java create a war
utility. this war file contains html, xsl, images and the associated jar
and
class files. this war file has worked fine with tomcat and websphere
application studio developer, in short, it works by just dropping the
file
in tomcat/webapps folder or importing the war file using application
developer.

can a war file generated this way be used with websphere application
server
by just dropping it into an equivalent webapps folder(if one exists) OR
can
i use some import war utility. have any of you had any experience with
this
scenario.

please let me know.

Thanks.


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



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




RE: Form-Based-Authentication with Tomcat 4.0.1

2002-04-10 Thread John Gregg

Hello all.

I'm a little surprised how uncommon this problem seems to be on the list.
Anyway, I'll tell you what I know and what to do about it.

Until now we've been using a protected index.html page as the entrypoint for
our app.  However, we've had the same problem Frank had.  Upon starting the
browser, the first login will show the page just fine (the server returned
status 200.)  Subsequent logins using a different broswer instance/session
would produce only a blank page where index.html should have been, even
though the login was successful.  In this case the server returned 304.

The problem is the the browser (both Netscape 6.2 and IE 6) caches
index.html the first time it sees it.  However, the second attempt to access
the protected index.html page causes the server to send a 302 (redirect) to
the browser indicating that the browser should load the login form.  For
some reason that I don't understand, both Netscape and IE delete the cached
index.html in response to the 302.  Upon login, then the server responds
with a redirect to index.html and finally a 304.  Netscape then creates an
empty cache file for index.html.  IE doesn't even do that.  Both display a
page with no content.  Choosing refresh in both browsers loads the page
correctly.

Our workaround was to make index.html a jsp by simply changing the
extension.  This seems to have solved our problem.  The browser behavior
here seems to be the problem but since both Netscape and IE do the same
thing, maybe they're just following something in the HTTP spec.

john


-Original Message-
From: Eichfelder, Frank [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 4:43 AM
To: [EMAIL PROTECTED]
Subject: Form-Based-Authentication with Tomcat 4.0.1


Hi,

I have a problem with the form-based-authentication with Tomcat 4.0.1.

The problem is:
If I access a protected page for the first time, I am redirected to the
login-page and asked for username and password. If my input is correct, I am
redirected to the desired page.

Now I close the browser (IE 5.5 - cookies are accepted) and restart it.
Now I try the same procedure, reenter my username and password, and get as
result an empty page. In the browser I can see that the correct URL was
demanded, and if I press the Reload-Button, then I see the desired page.
But this behaviour is not what I want, it should work automatically.

Can I do this via server.xml or web.xml settings? Or do I have to rewrite my
html-pages?
I have already added

to the html-pages, without any effect.

To see the difference between first login and second login, I add an extract
of the access-logfile:

First login:
27.0.0.1 - - [31/Oct/2001:11:07:30 1000] "GET /logintest/ HTTP/1.1" 302 654
127.0.0.1 - - [31/Oct/2001:11:07:30 1000] "GET /logintest/index.html
HTTP/1.1" 304 -
127.0.0.1 - - [31/Oct/2001:11:07:32 1000] "GET
/logintest/secure/securepage.html HTTP/1.1" 302 654
127.0.0.1 - - [31/Oct/2001:11:07:33 1000] "GET /logintest/LoginForm.html
HTTP/1.1" 200 679
127.0.0.1 - - [31/Oct/2001:11:07:38 1000] "POST /logintest/j_security_check
HTTP/1.1" 302 654
127.0.0.1 - tomcat [31/Oct/2001:11:07:38 1000] "GET
/logintest/secure/securepage.html HTTP/1.1" 200 402

Second login:
127.0.0.1 - - [31/Oct/2001:11:07:50 1000] "GET /logintest/ HTTP/1.1" 302 654
127.0.0.1 - - [31/Oct/2001:11:07:50 1000] "GET /logintest/index.html
HTTP/1.1" 304 -
127.0.0.1 - - [31/Oct/2001:11:07:51 1000] "GET
/logintest/secure/securepage.html HTTP/1.1" 302 654
127.0.0.1 - - [31/Oct/2001:11:07:53 1000] "GET /logintest/LoginForm.html
HTTP/1.1" 200 679
127.0.0.1 - - [31/Oct/2001:11:07:58 1000] "POST /logintest/j_security_check
HTTP/1.1" 302 654
127.0.0.1 - tomcat [31/Oct/2001:11:07:58 1000] "GET
/logintest/secure/securepage.html HTTP/1.1" 304 -

As you can see, the difference is in the last line of each section:
In the first time, tomcat returns HTTP-Code 200 (OK), the second time it
returns 304 (Not Modified).

It would be great if anybody would have any suggestions how I can change
this behaviour.

Thanks,

Frank

--
Frank Eichfelder, Dipl.-Inf.
T-Systems Nova GmbH
Entwicklungszentrum Darmstadt
Bereich EP 1 - Bamberg
Memmelsdorfer Straße 209a, 96052 Bamberg
Germany
MailTo:[EMAIL PROTECTED]
--



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




RE: How to pre-compile JSP's ?

2002-04-10 Thread John W. Warner

As a stepping stone, I'd suggest you remove one or two of your jsps from
the package and try them in stand alone fashion (no package). Then try
adding them back using package jsp; that should help. I've tried your
method with no package for my JSPs and it worked fine. 
- John


-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 10, 2002 02:06 PM
To: Tomcat Users List
Subject: RE: How to pre-compile JSP's ?

There is a tool jspc that come with the TC 4.X server that can be used
to
create servlet source for you JSPs. These sources can in turn be
compiled
into .class files. At the same time the jspc tool can create a web.inc
file
that contains all the new servlet mappings. This can be joined with the
web.xml file in the WEB-INF directory so that the servlets will be
mapped to
the jsp urls. My understanding is that these mappings take precedence
and
redirect using the web.xml entries so the jsp source is never used.

I am currently trying to get this to work. I will re-post my problem
below
and maybe someone will give us some feedback. Once I get this
working, I
will gladly write up the process and submit it back to the project as
documentation.


REPOST:

I am trying to pre-compile my jsp using jspc.bat on win2K. The reason I
want
to do this is so that JSP code can't be changed on the fly in
production. I
am using TC4.0.3.

Here is how I try to do this from an ANT build script:


 
  




*NOTE** This has the same net result as doing this:

cd %CATALINA_HOME%\bin

jspc.bat -uri d:/jboss/tomcat/webapps/smartjobs -d
d:/jboss/tomcat/webapps/smartjob/WEB-INF/classes -p jsp -webinc
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/web.inc -webapp
d:/jboss/tomcat/webapps/smartjobs


***

This does build all of the .java files in
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/classes/jsp, but the package
name
in them is actually as follows:

package jsp.;

It is the dot that is being appended to the end of the package name.
This
same dot has found its way into the web.inc file as well.


jsp..index
jsp..index



jsp..index
/index.jsp


I went and looked at the CommandLineContext class and saw that
getFullClassName() seems to append a . for some reason.

Anyway, has anyone else run into this?? I there something obvious that I
am
doing wrong? Is more info needed before someone can help me?

Thanks in advance!

--Jay Gardner

-Original Message-
From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 11:35 AM
To: Tomcat Users List
Subject: How to pre-compile JSP's ?


Do you know if there is a simple solution to pre-compile the JSP's ?
(And
to tell tomcat not to re-compile the JSP's ?)

Thanks

Jay Gardner wrote:

> There are definitely memory leaks in javac. This is a problem when
jspc
> compiles your jsp code in the same JVM as the TC server.
>
> --Jay Gardner
>
> -Original Message-
> From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 12:52 PM
> To: Tomcat Users List
> Subject: Tomcat process takes 246M whereas total java heap is 127M
>
> Hello,
>
> We use tomcat 3.3.1 on Linux RH 7.2.  JVM : IBM 1.3
>
> "top -c" tells that the tomcat threads take 246M but if we use the
Java
> function "totalMemory()", it tells that the JVM uses 127M for the
heap.
> Where is the rest of memory ?  I expected that the JVM used more than
> only the total of the heap, but in this case it is almost the double !
> Any ideas about the reasons of this problem ?  Are there some momory
> leaks in the JVM ?
>
> Thanks.
>
> Christophe
>
> --
> 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: Jspc & i18n

2002-04-10 Thread Christian Bourque

Hi Jay !

No, the bad characters are in the .java files that jspc creates !

The text is clean in the .jsp file but as soon as I convert it to .java with
jspc all french accent are scrambled !

Christian

- Original Message -
From: "Jay Gardner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 2:42 PM
Subject: RE: Jspc & i18n


> Are all the correct characters in the .java files that jspc creates?
>
> --Jay Gardner
>
> -Original Message-
> From: Christian Bourque [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 12:49 PM
> To: Tomcat Users List
> Subject: Jspc & i18n
>
> Hi !
>
> I'm having a weird problem with JSPC. We have a bilingual web application
> (english/french), so when I pre-compile all my jsp pages the ones which
> contains french accent are all screwed up  :
>
> Vous avez oublié votre mot de passe ? = Vous avez oubliÃ(c) votre mot de
> passe
> ?
> chaîne = chaÃ(r)ne
>
> ???
>
> Christian
>
>
>
> --
> 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: realm jdbc oracle problem

2002-04-10 Thread David Lu


a colleague of mine ran into this problem just yesterday, though
it was with an oracle 8i instance.

be sure you have the oracle driver in the $JAKARTA_HOME/common/lib
directory.

if it's already there, i bet you're running windows.  :)

apparently installing tomcat on windows creates a shortcut to
launch tomcat.  if you use that shortcut, you'll get this problem.
apparently the $JAKARTA_HOME/common/lib directory is not set in
the classpath when you use this shortcut.

browse to your $JAKARTA_HOME/bin directory and manually run the
startup script.  see if that helps.

   - david -


On 2002.04.10 02:03 Mehmet Ugur Kuzu (LinkPlus) wrote:
> I am getting error like at the bottom when i want to use jdbc realm
> against
> oracle 9i db,
> is this a bug ?
> how can i resolve this ,
> 
> 
> 
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.2
> Catalina.start: LifecycleException:  Exception opening database
> connection:
> jav
> a.sql.SQLException: oracle.jdbc.driver.OracleDriver
> LifecycleException:  Exception opening database connection:
> java.sql.SQLExcepti
> on: oracle.jdbc.driver.OracleDriver
> at 
> org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:615)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
> 
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
> )
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:3
> 88)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506
> )
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:781)
> at 
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at 
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at 
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> - Root Cause -
> java.sql.SQLException: oracle.jdbc.driver.OracleDriver
> at 
> org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:538)
> at 
> org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:613)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1108)
> 
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343
> )
> at
> org.apache.catalina.core.StandardService.start(StandardService.java:3
> 88)
> at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:506
> )
> at 
> org.apache.catalina.startup.Catalina.start(Catalina.java:781)
> at 
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at 
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at 
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> 
> 
> 
> 


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




Suns Java Web Services Pack

2002-04-10 Thread John W. Warner

Tomcat-user's.
There have been a lot of messages dealing with difficulty in set up and
such. It has always taken be 20 minutes or less to get Tomcat working,
most of it works right from distribution, (BTW I'm on W2K). As of March
20th, SUN has made an early release of the Java Web Services Pack which
marries Ant and Tomcat together and provides an deployment tool to make
deployment easier. I've used it pretty extensively and for a early
release version, it's fantastic. It makes web.xml mostly mindless to
build. It does deployment very well. 
http://java.sun.com/webservices/downloads/webservicespack.html
 
I think it uses tomcat 4.1 and Ant 1.4.1 and is currently available for
the following platforms;
*   SolarisTM 2.8
*   Windows 2000, Professional Edition
*   Windows XP, Professional Edition
*   RedHat Linux 7.2
It works really well, install is just a click away and it installs ANT
and Tomcat. 
Oh.. Well, maybe not a click, you have to set 3 environment variables;
CATALINA_HOME (if you don't know what this is see the tomcat docs.)
JAVA_HOME (should already be set)
JWSDP_HOME (should be same as CATALINA_HOME)
 
It's really easy to use and works great using Tomcat. Give it a shot.
- John



Suns Java Web Services Pack

2002-04-10 Thread John W. Warner

Tomcat-user's.
There have been a lot of messages dealing with difficulty in set up and
such. It has always taken be 20 minutes or less to get Tomcat working,
most of it works right from distribution, (BTW I'm on W2K). As of March
20th, SUN has made an early release of the Java Web Services Pack which
marries Ant and Tomcat together and provides an deployment tool to make
deployment easier. I've used it pretty extensively and for a early
release version, it's fantastic. It makes web.xml mostly mindless to
build. It does deployment very well. 
http://java.sun.com/webservices/downloads/webservicespack.html
 
I think it uses tomcat 4.1 and Ant 1.4.1 and is currently available for
the following platforms;
*   SolarisTM 2.8
*   Windows 2000, Professional Edition
*   Windows XP, Professional Edition
*   RedHat Linux 7.2
It works really well, install is just a click away and it installs ANT
and Tomcat. 
Oh.. Well, maybe not a click, you have to set 3 environment variables;
CATALINA_HOME (if you don't know what this is see the tomcat docs.)
JAVA_HOME (should already be set)
JWSDP_HOME (should be same as CATALINA_HOME)
 
It's really easy to use and works great using Tomcat. Give it a shot.
- John



RE: tomcat 4.0 url authentication

2002-04-10 Thread Reynir Hübner

yes I use it all the time with the memoryrealm thing.
-reynir




-Original Message-
From: Jay Gardner [mailto:[EMAIL PROTECTED]]
Sent: 10. apríl 2002 18:41
To: Tomcat-User
Subject: tomcat 4.0 url authentication


Does TC4.X support http://username:[EMAIL PROTECTED]:8080/manager/list
? I
want to authenticate to the realm this way, but it does not seem to
work.

--Jay Gardner

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




RE: Jspc & i18n

2002-04-10 Thread Jay Gardner

Are all the correct characters in the .java files that jspc creates?

--Jay Gardner

-Original Message-
From: Christian Bourque [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 12:49 PM
To: Tomcat Users List
Subject: Jspc & i18n

Hi !

I'm having a weird problem with JSPC. We have a bilingual web application
(english/french), so when I pre-compile all my jsp pages the ones which
contains french accent are all screwed up  :

Vous avez oublié votre mot de passe ? = Vous avez oubliÃ(c) votre mot de
passe
?
chaîne = chaÃ(r)ne

???

Christian



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


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




tomcat 4.0 url authentication

2002-04-10 Thread Jay Gardner

Does TC4.X support http://username:[EMAIL PROTECTED]:8080/manager/list ? I
want to authenticate to the realm this way, but it does not seem to work.

--Jay Gardner



Cookie problem with nsapi_redirector.so and netscape server 3.6

2002-04-10 Thread DLewis

Last year, there was a posting regarding problems with using Tomcat and
Netscape Enterprise Server 3.6 using nsapi_redirector.so:

http://w6.metronet.com/~wjm/tomcat/2000/Jun/msg00095.html

I didn't see any answers in archive on this issue or for this thread
relative to my problem. I am having a similar problem: One netscape
webserver 3.6 SP3 instance, one Tomcat 4.0.1 instance, multiple users
accessing URLs via the webserver/nsapi_connector/AJP13 get mixed-up
cookies, same users accessing same Tomcat instance via HTTP connector works
fine.

Has anyone else seen strange cookie behavior using this configuration, and
do you have a workaround?

I'm using the latest nsapi_redirector.so binary available at apache.org at:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/solaris6/sparc/

---
David Lewis
Pershing Technology Group, 51 Monroe St. Suite 1500, Rockville, MD 20850
301-517-4909 (voice), 301-762-8604 (fax), 703-517-8004 (cell)
[EMAIL PROTECTED]



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




deploying war file

2002-04-10 Thread Brown Bay

I have a .war file that has been generated using the java create a war
utility. this war file contains html, xsl, images and the associated jar and
class files. this war file has worked fine with tomcat and websphere
application studio developer, in short, it works by just dropping the file
in tomcat/webapps folder or importing the war file using application
developer.

can a war file generated this way be used with websphere application server
by just dropping it into an equivalent webapps folder(if one exists) OR can
i use some import war utility. have any of you had any experience with this
scenario.

please let me know.

Thanks.


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




Jspc & i18n

2002-04-10 Thread Christian Bourque

Hi !

I'm having a weird problem with JSPC. We have a bilingual web application
(english/french), so when I pre-compile all my jsp pages the ones which
contains french accent are all screwed up  :

Vous avez oublié votre mot de passe ? = Vous avez oublié votre mot de passe
?
chaîne = chaîne

???

Christian



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




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

2002-04-10 Thread August Detlefsen

There are JDBC drivers for Access out there, but you have to pay for
them: 

http://www.idssoftware.com/jdbcdrv.html

http://www.atinav.com/products/aveconnect/MSAccess.htm

(I have no idea how either of these performs though)



--- chuck amadi <[EMAIL PROTECTED]> wrote:
> Adrian Beech wrote:
> 
> >Um, okay then how stable is the JDBC/ODBC bridge?  As I
> previously
> >mentioned in my initial posting some bits and peices that I've read
> suggest
> >that this method of connecting to a DB back end is, or can be, a
> little
> >dodgy.  The comments basically revolved around the premise that the
> bridge
> >is not capable of being threaded and it is considered by Sun to
> still be
> >experimental.  I got the impression that there is potential for data
> loss or
> >corruption along with performance related issues.
> >
> >I guess I really need to know if it is reasonable to use Tomcat to
> host an
> >environment that relies on this sort of DB connectivity.
> >
> >Adrian
> >[EMAIL PROTECTED]
> >
> >
> >- Original Message -
> >From: "Matt Gregory" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Sent: Saturday, April 06, 2002 11:06 PM
> >Subject: Re: Is there a native JDBC driver for MS Access?
> >
> >
> >>No, you are forced to use the JDBC/ODBC bridge or purchase one of
> the
> >>proprietary drivers available.  I know there are Paradox, FoxPro
> and dBase
> >>IV drivers but I have not seen any for Access.
> >>
> >>- Original Message -
> >>From: "Adrian Beech" <[EMAIL PROTECTED]>
> >>To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> >>Sent: Sunday, April 07, 2002 6:47 AM
> >>Subject: Is there a native JDBC driver for MS Access?
> >>
> >>
> >>G'day all,
> >>
> >>Is there a native JDBC driver for MS Access?  A few postings I've
> seen in
> >>the list archive make mentioned that the JDBC/ODBC bridge is a bit
> dodgy.
> >>
> >>I have Tomcat 4.03 running as a standalone on a Win 2k pro box with
> JDK
> >>1.3.1 installed.
> >>
> >>I'm rather new to Tomcat, JSP, JDBC, etc...
> >>
> >>Any help would be appreciated.
> >>
> >>Adrian Beech
> >>[EMAIL PROTECTED]
> >>
> >>
> >>
> >>
> >>--
> >>To unsubscribe:  
> 
> >>For additional commands:
> 
> >>Troubles with the list:
> 
> >>
> >
> >
> >--
> >To unsubscribe:  
> 
> >For additional commands:
> 
> >Troubles with the list:
> 
> >
> I was under the impression that it was recommended that you obtain a 
> commercial JDBC driver from a vendor such as your RDBMS /middleware 
> vendor as the JDBC-ODBC driver is usaually used for experimental use
> or 
> if no other is available.
> Anyway there is mysql odbc which works fine with Mysql back-end and 
> front-end M$ Aceess 2000.
> 
> Cheers Chuck Amadi
> Systems Programmer
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


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

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




RE: How to pre-compile JSP's ?

2002-04-10 Thread John W. Warner

There are three methods. I like #1, I used #3 up until a while ago.
Anyway, here they are.
My major criticism of method #3 is that all the machine/port/etc..
settings should either be passed in on the command line, put in static
final Strings, or loaded using a properties file. 
- John

1) If you use ANT or can use ant... Put the following in the build
script.


  

  

(from Jay Gardner's Message 04/08/2002 help with JspC)

2) Touch each url for each jsp page and include ?jsp_precompile in the
url.

3) Write a small program to do method 2 for you.
>From Professional JSP Second Edition (wrox) (pretty decent book too,
simple examples and such)

package com.wrox.projsp.ch03.util;

import java.io.File;
import java.io.IOException;
import java.net.URL;

public class Precompile {

  public static void main(String[] args) {

String pathname = args[0];
String queryString = "?jsp_precompile";
String urlBase = "/chapter04/jsp/";

try {
  File dir = new File(pathname);
  if (!dir.exists()) {
throw new IOException("pathname " + pathname + " not found");
  } 
  File[] files = dir.listFiles();
  for (int i = 0; i < files.length; i++) {
String jspFile = files[i].getName();
if (jspFile.endsWith(".jsp")) {
  System.out.println("working on " + files[i].getName());
  try {
URL url = new URL("http", "127.0.0.1", 8080, 
  urlBase + jspFile + queryString);
System.out.println("compiling " + jspFile + " using " +
urlBase 
   + jspFile + queryString);
url.getContent();
  } catch (Exception e) {

// add error handling
  } 
} 
  } 
} catch (Exception e) {
  System.out.println("exception raised:" + e);
} 
  } 
}

-Original Message-
From: Christophe Reynaud [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, April 10, 2002 01:35 PM
To: Tomcat Users List
Subject: How to pre-compile JSP's ?


Do you know if there is a simple solution to pre-compile the JSP's ? 
(And
to tell tomcat not to re-compile the JSP's ?)

Thanks

Jay Gardner wrote:

> There are definitely memory leaks in javac. This is a problem when
jspc
> compiles your jsp code in the same JVM as the TC server.
>
> --Jay Gardner
>
> -Original Message-
> From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 12:52 PM
> To: Tomcat Users List
> Subject: Tomcat process takes 246M whereas total java heap is 127M
>
> Hello,
>
> We use tomcat 3.3.1 on Linux RH 7.2.  JVM : IBM 1.3
>
> "top -c" tells that the tomcat threads take 246M but if we use the
Java
> function "totalMemory()", it tells that the JVM uses 127M for the
heap.
> Where is the rest of memory ?  I expected that the JVM used more than
> only the total of the heap, but in this case it is almost the double !
> Any ideas about the reasons of this problem ?  Are there some momory
> leaks in the JVM ?
>
> Thanks.
>
> Christophe
>
> --
> 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: 




Local directory access with Apache Tomcat 4.0

2002-04-10 Thread Jordan C N Chong

Dear all,

I am not sure how to configure the standalone Tomcat, so that it allows
me to access the directory on my machine... mmm... let me give you an
example... I wish to read in the certificate directly as a file, but the
Tomcat complains that the directory, where the file is located is not
accessible. And it happens the same when I wish to send a file back to the
local machine... So, is there any settings I need to do? And I wish you
understand my broken English... sorry

Please help. Thank you very much.


Best regards,

Jordan Cheun Ngen, Chong
INF-4067 Universiteit Twente
Postbus 217
7500 AE Enschede
The Netherlands

Distributed and Embedded Systems (DIES)

Office Phone: +31 53 4894655
Web site: http://www.cs.utwente.nl/~chong
Email Add.: [EMAIL PROTECTED]



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




RE: How to pre-compile JSP's ?

2002-04-10 Thread Jay Gardner

There is a tool jspc that come with the TC 4.X server that can be used to
create servlet source for you JSPs. These sources can in turn be compiled
into .class files. At the same time the jspc tool can create a web.inc file
that contains all the new servlet mappings. This can be joined with the
web.xml file in the WEB-INF directory so that the servlets will be mapped to
the jsp urls. My understanding is that these mappings take precedence and
redirect using the web.xml entries so the jsp source is never used.

I am currently trying to get this to work. I will re-post my problem below
and maybe someone will give us some feedback. Once I get this working, I
will gladly write up the process and submit it back to the project as
documentation.


REPOST:

I am trying to pre-compile my jsp using jspc.bat on win2K. The reason I want
to do this is so that JSP code can't be changed on the fly in production. I
am using TC4.0.3.

Here is how I try to do this from an ANT build script:


 
  




*NOTE** This has the same net result as doing this:

cd %CATALINA_HOME%\bin

jspc.bat -uri d:/jboss/tomcat/webapps/smartjobs -d
d:/jboss/tomcat/webapps/smartjob/WEB-INF/classes -p jsp -webinc
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/web.inc -webapp
d:/jboss/tomcat/webapps/smartjobs


***

This does build all of the .java files in
d:/jboss/tomcat/webapps/smartjobs/WEB-INF/classes/jsp, but the package name
in them is actually as follows:

package jsp.;

It is the dot that is being appended to the end of the package name. This
same dot has found its way into the web.inc file as well.


jsp..index
jsp..index



jsp..index
/index.jsp


I went and looked at the CommandLineContext class and saw that
getFullClassName() seems to append a . for some reason.

Anyway, has anyone else run into this?? I there something obvious that I am
doing wrong? Is more info needed before someone can help me?

Thanks in advance!

--Jay Gardner

-Original Message-
From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 11:35 AM
To: Tomcat Users List
Subject: How to pre-compile JSP's ?


Do you know if there is a simple solution to pre-compile the JSP's ?
(And
to tell tomcat not to re-compile the JSP's ?)

Thanks

Jay Gardner wrote:

> There are definitely memory leaks in javac. This is a problem when jspc
> compiles your jsp code in the same JVM as the TC server.
>
> --Jay Gardner
>
> -Original Message-
> From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 12:52 PM
> To: Tomcat Users List
> Subject: Tomcat process takes 246M whereas total java heap is 127M
>
> Hello,
>
> We use tomcat 3.3.1 on Linux RH 7.2.  JVM : IBM 1.3
>
> "top -c" tells that the tomcat threads take 246M but if we use the Java
> function "totalMemory()", it tells that the JVM uses 127M for the heap.
> Where is the rest of memory ?  I expected that the JVM used more than
> only the total of the heap, but in this case it is almost the double !
> Any ideas about the reasons of this problem ?  Are there some momory
> leaks in the JVM ?
>
> Thanks.
>
> Christophe
>
> --
> 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: Please help me on a question about TOMCAT OR APACHE + TOMCAT

2002-04-10 Thread Ken Anderson

Tomcat Standalone is not an enterprise webserver, and will not stand up 
to the pounding that Apache can take. I think you would find that your 
response time drops off rather quickly if you are hosting 200 active 
virtual domains. If you don't serve many concurrent requests, and don't 
need the power and flexibility of apache, tomcat standalone is fine.
Ken


Lalit Nagpal wrote:

>hello,
>i am using tomcat as a standalone. i have jsps and servlets working
>quiet normally, i see no reason why apache should be connected to tomcat
>if servlets and jsp serve your purpose. although some people argue that for
>static pages apache will respond to requests much faster than tomcat.
>however i feel the response time difference is negligible.
>bye
>Lalit Nagpal 
> 
>
>
>
>-
>Do You Yahoo!?
>Yahoo! Tax Center - online filing with TurboTax
>




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




RES: Mod_WebApp trouble

2002-04-10 Thread Edson Carlos Ericksson Richter

I've discovered what I'm doing wrong: I need to name virtual host with same
name that Apache expects to see...

Thanks to all.

Atenciosamente,

Edson Carlos Ericksson Richter
Gerente de Tecnologia
ECONET Soluções Web
+55 61 326 5115

-Mensagem original-
De: Edson Carlos Ericksson Richter
[mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 10 de abril de 2002 14:28
Para: Tomcat Users List
Assunto: Mod_WebApp trouble


Hi!

I'm working for a long time using Tomcat (3.1, 3.2, 3.3, 4.0 and now 4.0.3).
I have several apps that uses JNDI DataSources to access database. All
working fine (congratulations by great work to Jakarta people).

Now, I'm trying to use Apache Httpd as main server, and use Catalina only to
processes JSP. The problem is: how do I configure Resource for the context
in server.xml (please, note: I need to configure this for mod_webapp, not
for catalina stand-alone. I've this config working fine for catalina
standalone).

For JDBC realm auth, I just copied respective section from my standalone
area. But when I copy ..., catalina don't startup (XML
error: appear that  need to be inside a  tag). Then I copied
my  and  tag from catalina standalone, but when I execute
context.loookup in my code, I get NullPointerException.

Again, my application works fine in Catalina standalone. And this works fine
in HP-AS (another similar product). So, I know that this is not a
programming issue.


Please, someone can send me any tips? I lost several hours searching mail
list, but nothing was found.


Thanks,

Edson Carlos Ericksson Richter
Gerente de Tecnologia
ECONET Soluções Web
+55 61 326 5115
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02


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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread rainer jünger

Hi Craig,

> > Sorry somehow I don't understand your answer.
> Struts is ***NOT*** going to remove its own connection pool :-).
Thanks thats an answer even I can understand ; ).

> However, the internal implementation is changing in Struts 1.1 to use the
> commons-dbcp implementation underneath.
this might answer the primar question form Ric as well. 
 
> Recommendation:  If you can, you should use JNDI 
thanks I 'll consider it!

> Craig
Your answer helped me now a lot.
Rainer



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




How to pre-compile JSP's ?

2002-04-10 Thread Christophe Reynaud


Do you know if there is a simple solution to pre-compile the JSP's ? 
(And
to tell tomcat not to re-compile the JSP's ?)

Thanks

Jay Gardner wrote:

> There are definitely memory leaks in javac. This is a problem when jspc
> compiles your jsp code in the same JVM as the TC server.
>
> --Jay Gardner
>
> -Original Message-
> From: Christophe Reynaud [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 09, 2002 12:52 PM
> To: Tomcat Users List
> Subject: Tomcat process takes 246M whereas total java heap is 127M
>
> Hello,
>
> We use tomcat 3.3.1 on Linux RH 7.2.  JVM : IBM 1.3
>
> "top -c" tells that the tomcat threads take 246M but if we use the Java
> function "totalMemory()", it tells that the JVM uses 127M for the heap.
> Where is the rest of memory ?  I expected that the JVM used more than
> only the total of the heap, but in this case it is almost the double !
> Any ideas about the reasons of this problem ?  Are there some momory
> leaks in the JVM ?
>
> Thanks.
>
> Christophe
>
> --
> 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: 




java.lang.NullPointerException

2002-04-10 Thread Short, Dave

I've just configured Tomcat 3.3a and Apache 1.3.24 on a W2K professional
machine.  Everything seems to work ok (Apache forwards servlet requests to
Tomcat).  However, when I try to access my servlet the following message is
written to Tomcat's log directory:

2002-04-10 10:15:58 - /PSIRxConnect: Exception in R( /PSIRxConnect +
/servlet/Jaws + /PSIRx/PSIRxMain/f_usernamepassword) -
java.lang.NullPointerException
at com.sybase.jaws.JawsServlet.processRequest(JawsServlet.java,
Compiled Code)
at com.sybase.jaws.JawsServlet.doGet(JawsServlet.java:162)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Unknown
Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:479)

Tomcat seems to find and execute my servlet.  Then it dies on the apache
stuff.  Is this a Tomcat Class issue?  Any help would be greatly
appreciated.

Dave

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




Mod_WebApp trouble

2002-04-10 Thread Edson Carlos Ericksson Richter

Hi!

I'm working for a long time using Tomcat (3.1, 3.2, 3.3, 4.0 and now 4.0.3).
I have several apps that uses JNDI DataSources to access database. All
working fine (congratulations by great work to Jakarta people).

Now, I'm trying to use Apache Httpd as main server, and use Catalina only to
processes JSP. The problem is: how do I configure Resource for the context
in server.xml (please, note: I need to configure this for mod_webapp, not
for catalina stand-alone. I've this config working fine for catalina
standalone).

For JDBC realm auth, I just copied respective section from my standalone
area. But when I copy ..., catalina don't startup (XML
error: appear that  need to be inside a  tag). Then I copied
my  and  tag from catalina standalone, but when I execute
context.loookup in my code, I get NullPointerException.

Again, my application works fine in Catalina standalone. And this works fine
in HP-AS (another similar product). So, I know that this is not a
programming issue.


Please, someone can send me any tips? I lost several hours searching mail
list, but nothing was found.


Thanks,

Edson Carlos Ericksson Richter
Gerente de Tecnologia
ECONET Soluções Web
+55 61 326 5115
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 02/04/02


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




Problems w/ NS3.62 and Tomcat 3.3 (nsapi_redirector.so)

2002-04-10 Thread Dennis Vasko

Hi,

I'm trying to configure Netscape Server (3.62) to handle jsp through Tomcat 3.31. 
Tomcat seems to work just fine. We compiled nsapi_redirector.so and it finished 
without any hassle. But after configuring NS according to this guide:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-netscape-howto.html, the secure 
server won't start up ending with this error message:
--
conf_init: Error running init function load-modules: dlopen of 
/export/home/tomcat/bin/netscape/nsapi_redirector.so failed (ld.so.1: ns-httpd: fatal: 
relocation error: file /export/home/tomcat/bin/netscape/nsapi_redirector.so: symbol 
ajp13_worker_factory: referenced symbol not found)
--

Any idea what might be wrong?

Many thanks,

 -Dennis

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




RE: Newbie question

2002-04-10 Thread Ricky Leung

>
>I've tried but it didn't work.
>
>I've made a new directory called classes under  /Program Files/Apache
Tomcat >>>4.0/webapps/ROOT/WEB-INF and I copied my HelloWorldExample.class
to this directory.
>
>From my browser I tried http://localhost:8080/servlet/HelloWorldExample and
I received a >"The requested resource (/servlet/HelloWorldExample) is not
available."  message.
>
>

If you put it in ROOT, then you should put your HelloWorldExample in classes
as in
Apache Tomcat4.0/webapps/ROOT/WEB-INF/classes

then run it as http://localhost:8080/HelloWorldExample

That ROOT name under webapps is your context path.  ROOT is a special case
that you can omit, but if you have other names like myserv then you will
need to use myserv as your context path as in
http://localhost:8080/myserv/HelloWorldExample

If that still doesn't work, it's your web.xml file.

Ricky


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




RE: J2SE v1.4 Compatibility

2002-04-10 Thread Jim Urban

Have you had any problems?  Do you use any other packages such as FOP,
Xerces, Xalan, Batik etc with your servlets?  Have you used JDBC 3.0 with
servlets?

We are considering the move to 1.4 and we would like to avoid the common
pitfalls others have had.

Thanks,
Jim

> -Original Message-
> From: Jolet, John [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 12:03 PM
> To: 'Tomcat Users List'
> Subject: RE: J2SE v1.4 Compatibility
>
>
> i'm running it on 1.4.
>
> -Original Message-
> From: Jim Urban [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 12:04 PM
> To: Tomcat-User
> Subject: J2SE v1.4 Compatibility
>
>
> Is a J2SE 1.4 version of Tomcat available?
>
> Jim Urban
> Product Manager
> Netsteps Inc.
> Suite 295
> 500 Park Blvd.
> Itasca, IL  60143
> Voice:  (630) 250-3045 x106
> Fax:  (630) 250-3046
>
>
> --
> 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: Bug in Tomcat 3.3.1 with getPathInfo() ?

2002-04-10 Thread Larry Isaacs

I think if request.getPathInfo() returns '/Hit+Run', then
the path info was '/Hit+Run' or '/Hit%2BRun'.   The path
would have to be '/Hit%20Run' for getPathInfo() to return
'/Hit Run' on Tomcat 3.3.1.

Cheers,
Larry

> -Original Message-
> From: Olaf Vetter [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, April 10, 2002 11:20 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Bug in Tomcat 3.3.1 with getPathInfo() ?
> 
> 
> OK. But now, is there any way to distinguish between a '+'
> that results from encoding '%2B' and a '+' that stands for ' ' ?
> 
> In other words, if request.getPathInfo() returns '/Hit+Run' , 
> this could be '/Hit+Run' or '/Hit Run' ...
> 
> Olaf
> 
> >>> [EMAIL PROTECTED] 10.04.2002 17:07 >>>
> According to RFC2396, '+' is are reserved character in the
> query string, but not in the path portion of a URL.  There
> was a bug fix in Tomcat 3.3.1 to avoid translating '+'
> to ' ' in the parts of the URL prior to the query string.
> 
> Cheers,
> Larry
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




Re: Newbie question

2002-04-10 Thread Javier A. Leyba

On 11/04/2002 at 0:18 yilmaz wrote:

>Hi Javier!
>Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory.
>yourcontext can be anyone like, ROOT, examples,etc.
>One more thing do not  forget to append /servlet/ to your url.
>Just to be more helpful for a new comer :
>say you put your HelloWorld servlet under
>/webapps/ROOT/WEB-INF/classes/
>your url should be like this:
>http://localhost:8080/servlet/HelloWorld
>
>Hope this helps :)


I've tried but it didn't work.

I've made a new directory called classes under  /Program Files/Apache Tomcat 
4.0/webapps/ROOT/WEB-INF and I copied my HelloWorldExample.class to this directory.

>From my browser I tried http://localhost:8080/servlet/HelloWorldExample and I 
>received a "The requested resource (/servlet/HelloWorldExample) is not available."  
>message.


Need I to define a new context ?






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


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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread Craig R. McClanahan



On Wed, 10 Apr 2002, rainer jünger wrote:

> Date: Wed, 10 Apr 2002 18:42:39 +0200
> From: rainer jünger <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Tomcat 4.x and Database Connection Pooling
>
> Hi Craig,
>
> > > So what will Tomcat Users do? Will Tomcat get a container manages
> connection
> > > pool?
> >
> > http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html
> >
> > > What is the reason for removing it form Struts?
> >
> > That was a hypothetical example of a possible future situation that would
> > cause the need to change your code.
>
> Sorry somehow I don't understand your answer.

Struts is ***NOT*** going to remove its own connection pool :-).

However, the internal implementation is changing in Struts 1.1 to use the
commons-dbcp implementation underneath.

The person who made this comment was illustrating a *possible* scenario:
- You write your app against the Struts APIs
- Struts removed its connection pool
- You now have to rewrite your apps

Although this particular scenario won't happen, it does illustrate the
potential for problems of reliance on specific APIs versus standardized
approaches (when they exist).

> Did you wont to give me a hint that I can avoid to change the code in future
> by using JNDI?
>

Struts developers who are writing apps for J2EE app servers, or servlet
containers that support JNDI, should definitely use JNDI based data
sources.  This is the standard, portable, API for accessing resources.

> Still, what will happen to the Connection Pooling in future in Struts or in
> Tomcat?
>

Struts:  The connection pool API (org.apache.struts.util.GenericDataSource),
the corresponding configuration in struts-config.xml, and the way to retrieve
data sources from ActionServlet, will remain in Struts -- backwards
compatibility is a key Struts feature.  The internal implementation will
change, but the APIs will not.

Tomcat:  As far as I'm concerned, JNDI support is a "now and forever more"
feature of Tomcat 4 and later.  It's the standard access mechanism for
J2EE app servers as well.

Recommendation:  If you can, you should use JNDI based access to data
sources.  This is both portable across containers, and portable across
Struts versus non-Struts applications.  In addition, it can be used from
directly from within a JavaBean implementing your business logic, without
requiring a reference to ActionServlet or the servlet context (or the web
layer at all).

> thanks,
> rainer juenger
>

Craig


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




RE: J2SE v1.4 Compatibility

2002-04-10 Thread Jolet, John

i'm running it on 1.4.

-Original Message-
From: Jim Urban [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 12:04 PM
To: Tomcat-User
Subject: J2SE v1.4 Compatibility


Is a J2SE 1.4 version of Tomcat available?

Jim Urban
Product Manager
Netsteps Inc.
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046


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

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




J2SE v1.4 Compatibility

2002-04-10 Thread Jim Urban

Is a J2SE 1.4 version of Tomcat available?

Jim Urban
Product Manager
Netsteps Inc.
Suite 295
500 Park Blvd.
Itasca, IL  60143
Voice:  (630) 250-3045 x106
Fax:  (630) 250-3046


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




WAP Woes

2002-04-10 Thread Graham Stirling

Dear All,

We're having trouble using Tomcat 3.2 to serve up WML with some WAP
gateways. For testing purposes, I'm using a very simple "hello world" jsp
that can be accessed without any issue via some gateways, but on others the
request just times out. 

Does anyone have any ideas? Unfortunately, I don't have any technical
information on the gateways that are causing trouble.

Using the standard Apache/Tomcat configuration works fine for all gateways.
However, the sessionid is lost after a redirection on some WAP gateways
(despite calling response.encodeRedirectURL). For example, the client is
instructed to redirect to e.g.
http://blah.com/servlet/aservlet;jsessionid=xxx but when the request is
received, the ";jsessionid=xxx" part of the URI is lost. 

I've read elsewhere that redirections should be avoided for WAP clients, but
I was hoping to work around the issue for the time being.

Any ideas would appreciated.

Cheers,

Graham.

Graham Stirling
Yakara Plc.
tel: (+44) 131 624 8906
mail: [EMAIL PROTECTED]
web: http://www.yakara.com







e-mail and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you are not an intended recipient, please notify [EMAIL PROTECTED]
immediately. Please note that some of our communications may contain
confidential information which it could be a criminal offence for you to
disclose or use without authority. This email is not intended nor should it
be taken to create any legal relations contractual or otherwise.

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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread rainer jünger

Hi Jim,



> If you are looking for connection pooling which will work with any
database
> check out DbConnectionBroker at http://www.javaexchange.com/


DbConnectionBroker is only providing as the developer calls it a "2 Tier"
model. So there is not actually a Connection Pool that manages the
connection independently and the application is only taking and giving back
connections.

rainer juenger


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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread rainer jünger

Hi Craig,

> > So what will Tomcat Users do? Will Tomcat get a container manages
connection
> > pool?
>
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html
>
> > What is the reason for removing it form Struts?
>
> That was a hypothetical example of a possible future situation that would
> cause the need to change your code.

Sorry somehow I don't understand your answer.
Did you wont to give me a hint that I can avoid to change the code in future
by using JNDI?

Still, what will happen to the Connection Pooling in future in Struts or in
Tomcat?

thanks,
rainer juenger



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




FW: Tomcat 3.3.1 on HP-UX

2002-04-10 Thread Kairam, Raj


> After installing tomcat 3.3.1 on a HP-UX 11 box and setting up required
> variables and verifying network related files, I am getting the following
> errors when I run the startup.sh.
>  <> 
> Needless to say, when I try the url http://localhost:8080/index.html I get
> following errors.
> "Forbidden
> You are not permitted to access the remote system.
> If this is an error, then you should contact your local firewall
> administrator"
> 
> Our Firewall Admin says there is nothing wrong with the firewall.
> There are no other processes that are using port 8080 for tomact to
> complain that the address is already in use. There is no Apache webserver
> or Oracle. The only thing is tomcat. I had no luck with the 4.0.1 version
> also.
> 
> My question is, why is firewall coming into picture if I am trying tomact
> as a stand alone on the local host ?.
> 
> Also when I run, shutdown.sh I get the following errors.
>  <> 
> Can any one help me understand what is happening ?.
> Thanks
> Raj
> 


root@m020plts:/meta1/jakarta-tomcat-3.3.1/bin> ./startup.sh &
Using classpath: ./../lib/tomcat.jar
Using JAVA_HOME: /opt/java1.3
Using TOMCAT_HOME: /meta1/jakarta-tomcat-3.3.1
2002-04-10 11:23:20 - ServerXmlReader: Config=$TOMCAT_HOME/conf/server.xml
2002-04-10 11:23:20 - PathSetter: home=/meta1/jakarta-tomcat-3.3.1
2002-04-10 11:23:22 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-127.0.0.1.xml
2002-04-10 11:23:22 - ContextXmlReader: Context config=$TOMCAT_HOME/conf/apps-admin.xml
2002-04-10 11:23:24 - ContextXmlReader: Context 
config=$TOMCAT_HOME/conf/apps-examples.xml
2002-04-10 11:23:24 - AutoWebApp: Loaded from config: DEFAULT:/admin
2002-04-10 11:23:24 - AutoWebApp: Auto-Adding DEFAULT:/
2002-04-10 11:23:25 - AutoWebApp: Loaded from config: DEFAULT:/examples
2002-04-10 11:23:25 - ContextManager: Tomcat configured and in stable state 
2002-04-10 11:23:26 - ContextManager: Adding  DEFAULT:/admin
2002-04-10 11:23:26 - ContextManager: Adding  DEFAULT:/examples
2002-04-10 11:23:26 - ContextManager: Adding  DEFAULT:/ROOT
EmbededTomcat: Init time 59056
Guessed home=/meta1/jakarta-tomcat-3.3.1
Exception: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException: org.apache.tomcat.core.TomcatException: 
Root cause - Address already in use:8080
at 
org.apache.tomcat.modules.server.PoolTcpConnector.engineStart(PoolTcpConnector.java:132)
at org.apache.tomcat.core.ContextManager.start(ContextManager.java:639)
at org.apache.tomcat.startup.EmbededTomcat.start(EmbededTomcat.java:586)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:710)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
at 
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
at java.lang.reflect.Method.invoke(Native Method)
at 
org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)
Root Exception: org.apache.tomcat.core.TomcatException: Root cause - Address already 
in use:8080
org.apache.tomcat.core.TomcatException: Root cause - Address already in use:8080
at 
org.apache.tomcat.modules.server.PoolTcpConnector.engineStart(PoolTcpConnector.java:132)
at org.apache.tomcat.core.ContextManager.start(ContextManager.java:639)
at org.apache.tomcat.startup.EmbededTomcat.start(EmbededTomcat.java:586)
at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:710)
at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:687)
at 
org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12Support.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at 
org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.java:100)
at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:685)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.tomcat.startup.Main.execute(Main.java:313)
at org.apache.tomcat.startup.Main.main(Main.java:140)


root@m020plts:/meta1/jakarta-tomcat-3.3.1/bin> ./shutdown.sh
Using classpath: ./../lib/tomcat.jar
Using JAVA_HOME: /opt/java1.3
Using TOMCAT_HOME: /meta1/jakarta-tomcat-3.3.1
Stopping Tomcat.
Stopping tomcat on null:-1 null
Error stopping Tomcat with Ajp12 on null:-1 java.net.UnknownHostException: m020plts



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


RE: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Brook Monroe

Jeff:

The path listed in the manager is /MySeatMap.

http://localhost:8080/MySeatMap/seating works.  Amazing. :)  Got a big list
of errors to resolve, which is what I was looking for.  Thanks!

(Off for the rest of the day...see y'all in the AM)

jbm!

-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 12:14 PM
To: Tomcat Users List
Subject: Re: Getting a servlet running under Tomcat-Apache 4.0.3


What path does the Manager display for your app? 

If tomcat is auto-deploying your app, then it should be /MySeatMap since
that is the subdir of webapps in which your WEB-INF/web.xml resides.
Then you should be accessing http://localhost:8080/MySeatMap/seating

If you are using a  element in
server.xml, 
then your URL should be http://localhost:8080/mypath/seating

Remember, the  elements only tell the container
which servlet classes to invoke WITHIN that servlet's context path.
Nothing in web.xml defines the context path itself. 

Try the above URL's and let us know if it works.

Jeff


- Original Message - 
From: "Brook Monroe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 10:55 AM
Subject: RE: Getting a servlet running under Tomcat-Apache 4.0.3


> Fabian:
> >>something not directly mentioned in the howtos for deploying a servlet:
> >>you have to update the TOMCAT_HOME/conf/server.xml file for installing 
> >>your application in the "web-app"-directory. You have to add an entry
like
> >>  >> debug="0" reloadable="true"/>
> >>in server.xml if you have your servlet in a folder named
> >>TOMCAT_HOME/web-app/seating/WEB-INF/classes
> 
> That was the first thing I did, actually.  No variations on that theme
seem
> to be making any difference, and it doesn't matter whether it's under the
> Tomcat-Standalone or Tomcat-Apache section
> 
> Jeff:
> 
> >>Under what context path is your servlet deployed? The 
> >>context path is typically the name of the directory 
> >>under $TOMCAT_HOME/webapps in which your app resides.
> 
> It's deployed where the examples are, and where the manager is.
> 
> The specific path is
> 
> :\Tomcat\webapps\MySeatMap\
> 
> with the class files in :\Tomcat\webapps\MySeatMap\WEB-INF\classes
> 
> I've tried permuting this almost to exhaustion.  I've been reading the
> example setups, and I can't even figure out how the HelloWorldExample
class
> gets called.  Something to do with  tags, but I can't make out
> what's happening.
> 
> And to repeat: I know the servlet is running, because the manager and the
> logs confirm it.
> 
> For grins and giggles, here's the web.xml file.
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> 
> 
> MySeatMap
> 
> 
> /MySeatMap
> 
> 
> 
> 
> MySeatMap
> 
> 
> /seating
> 
> 
> 
> 
> MySeatMap
> 
> 
> /seating/
> 
> 
> 
> 
> MySeatMap
> 
> *.map
> 
> 
> 
> And the context entry:
> 
>  debug="2" crossContent="true"/>
> 
> Anyone see anything (in)obviously wrong?
> 
> jbm!
> 
> --
> 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: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Jeff Larsen

What path does the Manager display for your app? 

If tomcat is auto-deploying your app, then it should be /MySeatMap since
that is the subdir of webapps in which your WEB-INF/web.xml resides.
Then you should be accessing http://localhost:8080/MySeatMap/seating

If you are using a  element in 
server.xml, 
then your URL should be http://localhost:8080/mypath/seating

Remember, the  elements only tell the container
which servlet classes to invoke WITHIN that servlet's context path.
Nothing in web.xml defines the context path itself. 

Try the above URL's and let us know if it works.

Jeff


- Original Message - 
From: "Brook Monroe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 10:55 AM
Subject: RE: Getting a servlet running under Tomcat-Apache 4.0.3


> Fabian:
> >>something not directly mentioned in the howtos for deploying a servlet:
> >>you have to update the TOMCAT_HOME/conf/server.xml file for installing 
> >>your application in the "web-app"-directory. You have to add an entry like
> >>  >> debug="0" reloadable="true"/>
> >>in server.xml if you have your servlet in a folder named
> >>TOMCAT_HOME/web-app/seating/WEB-INF/classes
> 
> That was the first thing I did, actually.  No variations on that theme seem
> to be making any difference, and it doesn't matter whether it's under the
> Tomcat-Standalone or Tomcat-Apache section
> 
> Jeff:
> 
> >>Under what context path is your servlet deployed? The 
> >>context path is typically the name of the directory 
> >>under $TOMCAT_HOME/webapps in which your app resides.
> 
> It's deployed where the examples are, and where the manager is.
> 
> The specific path is
> 
> :\Tomcat\webapps\MySeatMap\
> 
> with the class files in :\Tomcat\webapps\MySeatMap\WEB-INF\classes
> 
> I've tried permuting this almost to exhaustion.  I've been reading the
> example setups, and I can't even figure out how the HelloWorldExample class
> gets called.  Something to do with  tags, but I can't make out
> what's happening.
> 
> And to repeat: I know the servlet is running, because the manager and the
> logs confirm it.
> 
> For grins and giggles, here's the web.xml file.
> 
> 
>  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> 
> 
> MySeatMap
> 
> 
> /MySeatMap
> 
> 
> 
> 
> MySeatMap
> 
> 
> /seating
> 
> 
> 
> 
> MySeatMap
> 
> 
> /seating/
> 
> 
> 
> 
> MySeatMap
> 
> *.map
> 
> 
> 
> And the context entry:
> 
>  debug="2" crossContent="true"/>
> 
> Anyone see anything (in)obviously wrong?
> 
> jbm!
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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




Re: Newbie question

2002-04-10 Thread Javier A. Leyba

On 11/04/2002 at 0:18 yilmaz wrote:

>Hi Javier!
>Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory.
>yourcontext can be anyone like, ROOT, examples,etc.
>One more thing do not  forget to append /servlet/ to your url.
>Just to be more helpful for a new comer :
>say you put your HelloWorld servlet under
>/webapps/ROOT/WEB-INF/classes/
>your url should be like this:
>http://localhost:8080/servlet/HelloWorld
>
>Hope this helps :)


Thanks a lot.






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


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




Re: Newbie question

2002-04-10 Thread yilmaz

Hi Javier!
Servlets should be under webapps/yourcontext/WEB-INF/classes/ directory.
yourcontext can be anyone like, ROOT, examples,etc.
One more thing do not  forget to append /servlet/ to your url.
Just to be more helpful for a new comer :
say you put your HelloWorld servlet under
/webapps/ROOT/WEB-INF/classes/
your url should be like this:
http://localhost:8080/servlet/HelloWorld

Hope this helps :)
- Original Message -
From: "Javier A. Leyba" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 11:19 PM
Subject: Newbie question



Hi

I'm trying to do my first servlet. I've compiled a simple HelloWorld class.

Now, where is the root Tomcat directory where may I put it ?

How could I define a new one for my tests ?

Thanks in advance






_
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: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Brook Monroe

Fabian:
>>something not directly mentioned in the howtos for deploying a servlet:
>>you have to update the TOMCAT_HOME/conf/server.xml file for installing 
>>your application in the "web-app"-directory. You have to add an entry like
>>  >   debug="0" reloadable="true"/>
>>in server.xml if you have your servlet in a folder named
>>TOMCAT_HOME/web-app/seating/WEB-INF/classes

That was the first thing I did, actually.  No variations on that theme seem
to be making any difference, and it doesn't matter whether it's under the
Tomcat-Standalone or Tomcat-Apache section

Jeff:

>>Under what context path is your servlet deployed? The 
>>context path is typically the name of the directory 
>>under $TOMCAT_HOME/webapps in which your app resides.

It's deployed where the examples are, and where the manager is.

The specific path is

:\Tomcat\webapps\MySeatMap\

with the class files in :\Tomcat\webapps\MySeatMap\WEB-INF\classes

I've tried permuting this almost to exhaustion.  I've been reading the
example setups, and I can't even figure out how the HelloWorldExample class
gets called.  Something to do with  tags, but I can't make out
what's happening.

And to repeat: I know the servlet is running, because the manager and the
logs confirm it.

For grins and giggles, here's the web.xml file.


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




MySeatMap


/MySeatMap




MySeatMap


/seating




MySeatMap


/seating/




MySeatMap

*.map



And the context entry:



Anyone see anything (in)obviously wrong?

jbm!

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




Re: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread rsequeira


Gosh! I just read the reply I posted. Oops! with a big "O".
The URLs should actually be:
http://localhost:8080/servlet/Seating
or
http://localhost:8080/seating

Ofcourse, assuming you deployed your servlet under the ROOT webapp. And
since the second URL doesn't work for you, I'd check to see if the ROOT
application was deployed or not. Check your logs.

I apologize.
RS







[EMAIL PROTECTED] on 04/10/2002 10:28:59 AM

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

To:   "Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:  Re: Getting a servlet running under Tomcat-Apache 4.0.3


Try:
http://localhost:8080/servlet/seating
or
http://localhost:8080/servlet/MySeatingServlet


RS





Brook Monroe <[EMAIL PROTECTED]> on 04/10/2002 10:13:56 AM

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

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

Subject:  Getting a servlet running under Tomcat-Apache 4.0.3

Greetings, y'all.
* I've read all the documentation I can find.
* I've emulated all the examples.
* I've asked people I know who have set up servlets before.

I still can't get access to the servlet I just wrote and installed.

No matter how I've set up servlet-mappings, or url-patterns, or otherwise,
I
get 404'd on any attempt to test the servlet. The class files are where
they're supposed to be, and the manager HTML applet says that the servlet
is
loaded and running. Supposedly (based on reading docs and looking at
examples)


MySeatingServlet
Seating


MySeatingServlet
/seating


in my web.xml file should be sufficient to get the servlet mapped to a url,
but



produces nothing but a 404, specifically

type Status report
message /seating
description The requested resource (/seating) is not available.

Obviously I'm either misinterpreting the documentation, missed something
somewhere, or making a bad assumption. I'd appreciate any input I could get
on this, because the servlet customer is breathing down my neck for the
prototype, which I would like to test before delivering it

jbm!




--
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: Persistent Context names with auto-deploy

2002-04-10 Thread Jeff Larsen

Since you are using the manager app to deploy your war files, there is no 
need to keep the war files in the webapps directory. Make a separate
directory outside of /www/webapps, perhaps /www/war. Then Tomcat
won't find them when it starts up.

Jeff


- Original Message - 
From: "bryan collins" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 12:15 AM
Subject: Persistent Context names with auto-deploy


> Hi,
> 
> I have an environment that serves requests via apache, on Solaris.
> I have configured Tomcat 4.0.3 with mod_jk, most things appear to be working
> just fine.
> 
> Apache is configured to pass /apps/* to tomcat via ajp13 protocol.
> Tomcat is configured with an appbase of /www/webapps
> 
> I automatically deploy my .war files on paths of /apps/servletname
> so I can have completely independant contexts for each servlet.
> 
> This works, and I can access the app via apache.
> However, when tomcat restarts, it finds the servlet in the appbase, since
> unpackWARS=true, and automatically deploys it under /
> 
> My question is, How can I force persistance of Context paths across a Tomcat
> restart, when using automatic deploy (via the manager app)
> 
> i.e
> auto-deploy foo.war on /apps/foo (via manager)
> TC extracts the war to /www/webapps/foo, everything works perfectly.
> After TC restart, TC deploys the servlet as /foo, not /apps/foo.
> 
> Any ideas?
> 
> Many Thanks
> Bry
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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




Re: repost an unanswered question.

2002-04-10 Thread yilmaz

I have the same problem with  tomcat 4.0.1 running on win2000.
But hte problem is not persistent, namely , sometimes happens sometimes not.
I couldn't find out the reason, so i couldn't give any explanation to our
client other than saying " just refresh and the problem will go away".
Any one has a better explanation 
thanks ..
- Original Message -
From: "todd tredeau" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 5:38 AM
Subject: Re: repost an unanswered question.


> Ok... I'll bite... I've seen this error (or lack of it), when I get
> errors with an incompatbile jndirealm and enabling jmx beans are you
> getting any kind of errors at tomcat startup, or in your log files I
> understand you say basically "reload" after and it works. I also ran
> into this when I began testing "Chiki", it seems that when I updated to
> Tomcat 4.0.X" the problem went away... So I didn't really try to fix it,
> but upgraded past the issue...I hope this helps.. from a non-technical
> perspective..
>
> todd
> http://www.wiserlabz.com
> collaborative effort to promote Novell and Open Source solutions
>
>
> Alvin Wang wrote:
>
> >I'm not complaining. But I read someone said that they always can get
> >positive responses for their postings. Maybe my question is naive, but I
try
> >again.
> >
> >
> >-Original Message-
> >From: Alvin Wang [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, April 03, 2002 4:18 PM
> >To: Tomcat Users List
> >Cc: SERVLET-INTEREST
> >Subject: JDBCRealm problem (EMPTY page after login)
> >
> >
> >Hi! I am using JDBCRealm in Tomcat to setup the user authentication. For
> >example if the user want to access abc.html, Tomcat will first display
the
> >login.jsp page. However, after the user logs in, it shows an BLANK page.
The
> >user has to refresh the browser to see the content of abc.html
> >
> >Can any guru tell me how to fix this? Thanks!
> >
> >Alvin
> >
> >
> >--
> >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: 




Config Q: Using beans without creating context

2002-04-10 Thread Joe Sternlicht

I have tomcat running with the following virtual hosts:

localhost - docroot: C:\Program Files\Apache Tomcat 4.0\webapps\ROOT
locala - docroot: D:\locala
localb - docroot: D:\localb
localc - docroot: D:\localc

One JSP on localc uses a bean. The page works fine if I stick it in 
\examples\jsp and the bean in \examples\WEB-INF\jsp\beans.

What do I have to do to make it work from the document root of virtual host 
localc? I'd rather not create a subdirectory, I'd like the url to be 
localc/beantest.jsp NOT localc/beanapp/beantest.jsp


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




AW: AW: Tomcat intermittent failures

2002-04-10 Thread Ralph Einfeldt

Sorry , but if one jsp works and another not, that doesn't
nessesarily mean that the one that didn't work hit the 
server just because the other did it.

With verification i wass thinking of looking at the access 
log. If apache was hit, hat you should find an corresponding
entry in the access.log for this request with the error 
code 404.

If tomcat was hit you should see some messages in the
logs that are produced by tomcat. (Depends on the verbosity
that you defined)

If apache was hit but not tomcat, I would expect
an error message in the log of apache.

If tomcat was hit I would expect an error message in 
one of the logs of tomcat.

Make shure that you start apache and tomcat in way that stderr 
and stdout are captured in a log file.

> -Ursprüngliche Nachricht-
> Von: David Bank [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 10. April 2002 17:21
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: Tomcat intermittent failures
> 
> 
> Ralph,
> 
> Thanks for writing. We've been able to reproduce the situation on
> machines which were directly connected to the same LAN on which the
> servers are located (and therefore no proxy was involved), 
> and we tried
> clearing browser caches on these machines. The problem persisted.
> 
> When the problem occurs, some .JSP files will compile and run fine,
> others won't. So we know Apache is hitting Tomcat and Tomcat 
> is running
> because some files work and some don't. It'll just change - as I said
> before, we'll do the restart thing, or even reboot the whole box, and
> before, FOO.JSP wouldn't work but BAR.JSP would, and after 
> FOO.JSP will
> work and BAR.JSP won't. But a .JSP file works each time, 
> confirming that
> we are hitting Apache and Apache is hitting Tomcat.
> 
> David Bank
> NC CATS Project Manager
> Accountability Services - Testing
> NC Department of Public Instruction
> 301  Wilmington Street
> Raleigh, NC  27601
> 919-807-3796
> 
> 
> >>> [EMAIL PROTECTED] 04/10/02 03:00AM >>>
> Have you verified if your apache got hit, with the request
> that caused a 'file not found'? (We have seen in the past 
> some obscure errors that turned out to be caching problems
> of browsers and proxy caches where the server wasn't hit at 
> all)
> 
> If your apache got hit, did the request hit tomcat ?
> 
> If it hit tomcat can you find any error message that may 
> correspond to the failure? 
> (in the tomcat or the apache logs)
> 
> 
> > -Ursprüngliche Nachricht-
> > Von: David Bank [mailto:[EMAIL PROTECTED]] 
> > Gesendet: Dienstag, 9. April 2002 19:56
> > An: [EMAIL PROTECTED] 
> > Betreff: Tomcat intermittent failures
> > 
> > exist, but when we attempt to access that particular JSP thru 
> > Apache, we get 404 - File Not Found. 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 

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




Re: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Fabian Sommer

Hi!

something not directly mentioned in the howtos for deploying a servlet:
you have to update the TOMCAT_HOME/conf/server.xml file for installing 
your application in the "web-app"-directory. You have to add an entry like

in server.xml if you have your servlet in a folder named
TOMCAT_HOME/web-app/seating/WEB-INF/classes

I too was wandering some time what to do for making my servlet work in a 
different folder than /web-app/examples ...

Perhaps this helps.



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




Re: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread Jeff Larsen

Under what context path is your servlet deployed? The 
context path is typically the name of the directory 
under $TOMCAT_HOME/webapps in which your app resides.

Unless your app is deployed in the ROOT context, your
URL should be http://localhost:8080/context/seating.

Jeff



- Original Message - 
From: "Brook Monroe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 10:13 AM
Subject: Getting a servlet running under Tomcat-Apache 4.0.3


> Greetings, y'all.
> * I've read all the documentation I can find.
> * I've emulated all the examples.
> * I've asked people I know who have set up servlets before.
> 
> I still can't get access to the servlet I just wrote and installed.
> 
> No matter how I've set up servlet-mappings, or url-patterns, or otherwise, I
> get 404'd on any attempt to test the servlet. The class files are where
> they're supposed to be, and the manager HTML applet says that the servlet is
> loaded and running. Supposedly (based on reading docs and looking at
> examples)
> 
> 
> MySeatingServlet
> Seating
> 
> 
> MySeatingServlet
> /seating
> 
> 
> in my web.xml file should be sufficient to get the servlet mapped to a url,
> but
> 
> 
> 
> produces nothing but a 404, specifically
> 
> type Status report
> message /seating
> description The requested resource (/seating) is not available.
> 
> Obviously I'm either misinterpreting the documentation, missed something
> somewhere, or making a bad assumption. I'd appreciate any input I could get
> on this, because the servlet customer is breathing down my neck for the
> prototype, which I would like to test before delivering it
> 
> jbm!
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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




Re: Getting a servlet running under Tomcat-Apache 4.0.3

2002-04-10 Thread rsequeira


Try:
http://localhost:8080/servlet/seating
or
http://localhost:8080/servlet/MySeatingServlet


RS





Brook Monroe <[EMAIL PROTECTED]> on 04/10/2002 10:13:56 AM

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

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

Subject:  Getting a servlet running under Tomcat-Apache 4.0.3

Greetings, y'all.
* I've read all the documentation I can find.
* I've emulated all the examples.
* I've asked people I know who have set up servlets before.

I still can't get access to the servlet I just wrote and installed.

No matter how I've set up servlet-mappings, or url-patterns, or otherwise,
I
get 404'd on any attempt to test the servlet. The class files are where
they're supposed to be, and the manager HTML applet says that the servlet
is
loaded and running. Supposedly (based on reading docs and looking at
examples)


MySeatingServlet
Seating


MySeatingServlet
/seating


in my web.xml file should be sufficient to get the servlet mapped to a url,
but



produces nothing but a 404, specifically

type Status report
message /seating
description The requested resource (/seating) is not available.

Obviously I'm either misinterpreting the documentation, missed something
somewhere, or making a bad assumption. I'd appreciate any input I could get
on this, because the servlet customer is breathing down my neck for the
prototype, which I would like to test before delivering it

jbm!




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









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




RE: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread Jim Urban

If you are looking for connection pooling which will work with any database
check out DbConnectionBroker at http://www.javaexchange.com/

Jim

> -Original Message-
> From: Ric Searle [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 10, 2002 10:23 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 4.x and Database Connection Pooling
>
>
> Not sure - probably a little out of my depth here, but poolman
> (www.codestudio.com), which used to do connection pooling stuff is no
> longer available, and it's author claims that:
>
>   "If you are looking for connection and object pooling
>   mechanisms, they can now be found in application
>   servers such as JRun, Tomcat and the Jakarta Project,
>   and other J2EE products and servers."
>
> Which is where my journey started...!
>
>Ric Searle
>Web Application Developer
>--
>Dialogue Communications Ltd
>
>http://www.dialogue.co.uk
>+44 (0) 114 221 0307
>
>
> On Wednesday, April 10, 2002, at 04:18  pm, rainer jünger wrote:
>
> > Hi Ric,
> >
> >> Struts provides a basic Connection Pool, but user comments suggest that
> >> this is not suitable for large-scale, high-traffic applications, and
> >> also that it will soon be removed from Struts in favour of a
> >> container-managed connection pool
> >
> > So what will Tomcat Users do? Will Tomcat get a container manages
> > connection
> > pool?
> > What is the reason for removing it form Struts?
> >
> > R.
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




Re: Disabling the DefaultContext

2002-04-10 Thread Jeff Larsen

I don't think this behavior can be disabled, unless you want 
to modify the Tomcat code. The simplest solution is to have 
different appBase directories for each Tomcat instance. 

Jeff

- Original Message - 
From: "Yuval Levav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 10, 2002 3:51 AM
Subject: Disabling the DefaultContext


> Hi,
> I have more han one directory under webapps ( my appBase ).
> However, I would like to load each directory's apps with different tomcat 4
> instances.
> The problem is that a context is created for each directory, although it is
> not
> declared in my server.xml.I understand that the DefaultContext is
> responsible for this.
> 
> Is there a way to disable this feature ?
> 
> Thanks,
> Yuval
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread Ken Anderson

dbConnectionBroker works well, is easy to use.
Just drop the 5k jar into your $tocmat_home/webapp/app/lib directory
http://www.javaexchange.com/
Example:
http://www.javaexchange.com/Example1.html

Ken
p.s. sorry about my posts to the list yesterday with bad date. :-(



Ric Searle wrote:
> Hi,
> 
> I'm developing a web application using the Struts framework, running on 
> Tomcat 4.0.3, from which I need to access a MySQL database.  I've read 
> various mailing lists etc looking for the best way to achieve this, but 
> not had much luck.
> 
> Struts provides a basic Connection Pool, but user comments suggest that 
> this is not suitable for large-scale, high-traffic applications, and 
> also that it will soon be removed from Struts in favour of a 
> container-managed connection pool.  I've found references to 
> DbConnectionBroker and Jakarta's commons-dbcp module.  It seems to make 
> sense to use the latter, to keep the entire project neatly under the 
> Jakarta project, but I'd appreciate comments on either.
> 
> I'm fairly new to Tomcat (and Servlets), and I can't find any simple 
> examples of how to use one of these connection pools.  I suspect that I 
> need to add something to my server.xml, and instantiate the pool in the 
> servlet's init() method.  It would be greatly appreciated if someone 
> could provide some simple instructions to get me started - sample code 
> would be fantastic.
> 
> I hope to write about my experiences with this once I understand it - 
> there seems to be a need for documentation in this area.
> 
> Regards,
> 
>   Ric Searle
>   Web Application Developer
>   --
>   Dialogue Communications Ltd
> 
>   http://www.dialogue.co.uk
>   +44 (0) 114 221 0307
> 
> 
> -- 
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 
> 



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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread Craig R. McClanahan



On Wed, 10 Apr 2002, rainer jünger wrote:

> Date: Wed, 10 Apr 2002 17:18:34 +0200
> From: rainer jünger <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: Tomcat 4.x and Database Connection Pooling
>
> Hi Ric,
>
> > Struts provides a basic Connection Pool, but user comments suggest that
> > this is not suitable for large-scale, high-traffic applications, and
> > also that it will soon be removed from Struts in favour of a
> > container-managed connection pool
>
> So what will Tomcat Users do? Will Tomcat get a container manages connection
> pool?

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

> What is the reason for removing it form Struts?

That was a hypothetical example of a possible future situation that would
cause the need to change your code.

>
> R.

Craig McClanahan



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




Re: Tomcat 4.x and Database Connection Pooling

2002-04-10 Thread Ric Searle

Not sure - probably a little out of my depth here, but poolman 
(www.codestudio.com), which used to do connection pooling stuff is no 
longer available, and it's author claims that:

"If you are looking for connection and object pooling
mechanisms, they can now be found in application
servers such as JRun, Tomcat and the Jakarta Project,
and other J2EE products and servers."

Which is where my journey started...!

   Ric Searle
   Web Application Developer
   --
   Dialogue Communications Ltd

   http://www.dialogue.co.uk
   +44 (0) 114 221 0307


On Wednesday, April 10, 2002, at 04:18  pm, rainer jünger wrote:

> Hi Ric,
>
>> Struts provides a basic Connection Pool, but user comments suggest that
>> this is not suitable for large-scale, high-traffic applications, and
>> also that it will soon be removed from Struts in favour of a
>> container-managed connection pool
>
> So what will Tomcat Users do? Will Tomcat get a container manages 
> connection
> pool?
> What is the reason for removing it form Struts?
>
> R.
>


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




Re: AW: Tomcat intermittent failures

2002-04-10 Thread David Bank

Ralph,

Thanks for writing. We've been able to reproduce the situation on
machines which were directly connected to the same LAN on which the
servers are located (and therefore no proxy was involved), and we tried
clearing browser caches on these machines. The problem persisted.

When the problem occurs, some .JSP files will compile and run fine,
others won't. So we know Apache is hitting Tomcat and Tomcat is running
because some files work and some don't. It'll just change - as I said
before, we'll do the restart thing, or even reboot the whole box, and
before, FOO.JSP wouldn't work but BAR.JSP would, and after FOO.JSP will
work and BAR.JSP won't. But a .JSP file works each time, confirming that
we are hitting Apache and Apache is hitting Tomcat.

David Bank
NC CATS Project Manager
Accountability Services - Testing
NC Department of Public Instruction
301  Wilmington Street
Raleigh, NC  27601
919-807-3796


>>> [EMAIL PROTECTED] 04/10/02 03:00AM >>>
Have you verified if your apache got hit, with the request
that caused a 'file not found'? (We have seen in the past 
some obscure errors that turned out to be caching problems
of browsers and proxy caches where the server wasn't hit at 
all)

If your apache got hit, did the request hit tomcat ?

If it hit tomcat can you find any error message that may 
correspond to the failure? 
(in the tomcat or the apache logs)


> -Ursprüngliche Nachricht-
> Von: David Bank [mailto:[EMAIL PROTECTED]] 
> Gesendet: Dienstag, 9. April 2002 19:56
> An: [EMAIL PROTECTED] 
> Betreff: Tomcat intermittent failures
> 
> exist, but when we attempt to access that particular JSP thru 
> Apache, we get 404 - File Not Found. 


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




  1   2   >