Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread Anoop kumar V
As per tools - I think you can use JMeter. It gives u some pretty
useful graphs and analysis.

-Anoop

On 6/27/05, James Black <[EMAIL PROTECTED]> wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Phillip Qin wrote:
> > I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
> > 5.5, I have encountered any outofmemory even after 100 hundreds deployments.
> >
> > Does your web app use struts? You can always clean up resource by adding
> > Introspector.flushCaches(); in your context listener's contextDestroyed
> > method. Otherwise, you will have to go through your web app carefully to
> > find out if there is any memory leak.
> 
>   Struts is used in my beehive-based project
> (http://incubator.apache.org/beehive), but I will need to check if there
> is some memory leak otherwise.
> 
>   Thanx.
> 
> - --
> "Love is mutual self-giving that ends in self-recovery." Fulton Sheen
> James Black[EMAIL PROTECTED]
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.1 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFCwEduikQgpVn8xrARAooaAJsEjG6T/a52rsNyIQjIPbbOP7nm7ACfepMP
> ukLUqtHP8YY5mkK41AEdcFk=
> =lOrA
> -END PGP SIGNATURE-
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
Thanks and best regards,
Anoop

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



Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
> I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
> 5.5, I have encountered any outofmemory even after 100 hundreds deployments.
> 
> Does your web app use struts? You can always clean up resource by adding
> Introspector.flushCaches(); in your context listener's contextDestroyed
> method. Otherwise, you will have to go through your web app carefully to
> find out if there is any memory leak.

  Struts is used in my beehive-based project
(http://incubator.apache.org/beehive), but I will need to check if there
is some memory leak otherwise.

  Thanx.

- --
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwEduikQgpVn8xrARAooaAJsEjG6T/a52rsNyIQjIPbbOP7nm7ACfepMP
ukLUqtHP8YY5mkK41AEdcFk=
=lOrA
-END PGP SIGNATURE-

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



RE: Please help with PermGen OutOfMemory error

2005-06-27 Thread Phillip Qin
I did see this issue happened with my tomcat 4.1/5.0. After I upgraded to
5.5, I have encountered any outofmemory even after 100 hundreds deployments.

Does your web app use struts? You can always clean up resource by adding
Introspector.flushCaches(); in your context listener's contextDestroyed
method. Otherwise, you will have to go through your web app carefully to
find out if there is any memory leak.

-Original Message-
From: James Black [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2005 1:25 PM
To: Tomcat Users List
Subject: Re: Please help with PermGen OutOfMemory error


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
> What is the version of your tomcat? 5.5 supposed to have resolved this 
> issue by flush reflection cache when undeploy your web app.

  I get this with 5.5.9, using jdk 1.5, under Solaris 8, when I copy my new
beehive-based webapp into my webapps directory. After about 5-8 new versions
within a few hours then I get this error and have to restart tomcat.

- --
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwDZhikQgpVn8xrARAmGqAJ90O/O0HFgB6cCL/PvpcqOldhoFPQCeJ60A
kPBnA55zhnUmNtiNp6z1iqU=
=s7n+
-END PGP SIGNATURE-

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


!DSPAM:42c03666260791431712512!


Re: Please help with PermGen OutOfMemory error

2005-06-27 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Phillip Qin wrote:
> What is the version of your tomcat? 5.5 supposed to have resolved this issue
> by flush reflection cache when undeploy your web app.

  I get this with 5.5.9, using jdk 1.5, under Solaris 8, when I copy my
new beehive-based webapp into my webapps directory. After about 5-8 new
versions within a few hours then I get this error and have to restart
tomcat.

- --
"Love is mutual self-giving that ends in self-recovery." Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCwDZhikQgpVn8xrARAmGqAJ90O/O0HFgB6cCL/PvpcqOldhoFPQCeJ60A
kPBnA55zhnUmNtiNp6z1iqU=
=s7n+
-END PGP SIGNATURE-

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



RE: Please help with PermGen OutOfMemory error

2005-06-27 Thread Phillip Qin
What is the version of your tomcat? 5.5 supposed to have resolved this issue
by flush reflection cache when undeploy your web app.

-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED] 
Sent: June 27, 2005 12:12 PM
To: tomcat-user@jakarta.apache.org
Subject: Please help with PermGen OutOfMemory error


After many webapp installs, I get this in my tomcat logs...

Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]"
java.lang.OutOfMemory
Error: PermGen space

MaxPermSize=128m, but the errors still happen. I understand that this comes
from apps not releasing all their resources. How do I track down what part
of my app is leaving these resources behind? I'm hoping for pointers to
tools/articles/blog entries - anything that'll let me isolate this problem
(hopefully to a part of my code that I can actually fix as opposed to third
party code I have no control over).

thx
andy

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


!DSPAM:42c02542251611437718752!


Re: Please help me sir

2005-06-27 Thread Jaroslav Záruba
Hello Asit

Could it be that you write for Java 1.5 whilst your Tomcat somehow
"expects" Java 1.3?
Try this link:
http://blog.taragana.com/index.php/archive/how-to-run-javac-15-or-beyond-compiler-for-jsp-compilation-in-tomcat-55-with-generics-enabled-and-other-15-only-features/1/

hope it helps
have a nice day
  J.Zaruba

On 6/27/05, Asit Basak <[EMAIL PROTECTED]> wrote:
> Sir
> 
> I have installed Jdk1.5.0 in windows 2000 server.
> After that I have installed Apache Tomcat/5.0.29.
> I have deployed all of my JSPs in Root directory
> and all of my beans in classes.
> 
> Now after starting of the Tomcat server.
> when I want to see the paged in IE6,
> It is giving errors
>   " javac: target release 1.3 conflicts with default source release 1.5 ".
> Now sir please tell me what can I I do for this purpose.
> Thanking you in anticipation.
> 
> Regards
> Asit Basak
> email - [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Please help me

2004-12-13 Thread Hari Mailvaganam
You can load balance between the two instances.

cheers,

Hari Mailvaganam


On Mon, 13 Dec 2004 16:29:16 +0530, Rajesh <[EMAIL PROTECTED]> wrote:
> i tryed but sometimes it gives error when i restart(restarting webapp)
> it works good
> 
> or is it possible to display a page for any request to the server or a
> perticular webapp that
> 
> "site is under maintanance please visit in few minutes"
> 
> is it possible?
> 
> Rajesh
> 
> 
> 
> VTR Ravi Kumar wrote:
> 
> > I dont think u would have to shut down the server to upload files.
> > The context must be reloadable ie., set the reloadable = true in the
> > context using the
> > admin page
> >
> >
> > VTR
> > BHEL haridwar
> > - Original Message - From: "Rajesh" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, December 13, 2004 2:25 PM
> > Subject: Please help me
> >
> >
> >> Hai all,
> >>
> >> i have a doubt please help me.
> >>
> >> in my tomcat server, am developing a online shopping site.
> >>
> >> the site is live,
> >>
> >> i periodically upload updated pages, when uploading i donot want to
> >> down the server,
> >>
> >> i use a way that creating 2 webapps, one will run, i upload the
> >> updated pages to webapp 2 afteruploading i go to webapp1 and point it
> >> to webapp2 when i need to upload second time ill upload to webapp 1
> >> and i will make point from webapp2 to webapp 1 .
> >>
> >> is there any way to do this affectively ??
> >>
> >> Please reply
> >> Rajesh
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Re: Please help me

2004-12-13 Thread Rajesh
i tryed but sometimes it gives error when i restart(restarting webapp) 
it works good

or is it possible to display a page for any request to the server or a 
perticular webapp that

"site is under maintanance please visit in few minutes"
is it possible?
Rajesh
VTR Ravi Kumar wrote:
I dont think u would have to shut down the server to upload files.
The context must be reloadable ie., set the reloadable = true in the 
context using the
admin page

VTR
BHEL haridwar
- Original Message - From: "Rajesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 2:25 PM
Subject: Please help me

Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to 
down the server,

i use a way that creating 2 webapps, one will run, i upload the 
updated pages to webapp 2 afteruploading i go to webapp1 and point it 
to webapp2 when i need to upload second time ill upload to webapp 1 
and i will make point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


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


Re: Please help me

2004-12-13 Thread VTR Ravi Kumar
I dont think u would have to shut down the server to upload files.
The context must be reloadable ie., set the reloadable = true in the context 
using the
admin page

VTR
BHEL haridwar
- Original Message - 
From: "Rajesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 13, 2004 2:25 PM
Subject: Please help me


Hai all,
i have a doubt please help me.
in my tomcat server, am developing a online shopping site.
the site is live,
i periodically upload updated pages, when uploading i donot want to down 
the server,

i use a way that creating 2 webapps, one will run, i upload the updated 
pages to webapp 2 afteruploading i go to webapp1 and point it to webapp2 
when i need to upload second time ill upload to webapp 1 and i will make 
point from webapp2 to webapp 1 .

is there any way to do this affectively ??
Please reply
Rajesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


Re: Please Help: Using SSL in servlets

2004-11-21 Thread QM
On Sun, Nov 21, 2004 at 10:31:14AM +0200, Michal Ziv wrote:
: when using webservice from command line it works perfectly, but when running 
: the same code from a servlet, it doesn't find truststore.
: in both cases the full path is given, all jars are accessible to code.
: can anyone please help?

Yes, but you must first help us to help you: please post relevant files
(in this case, the web.xml from the app that doesn't work) and give a
more detailed problem description.

You'd be surprised how many SSL problems are caused by typos in web.xml,
e.g. "trusttore" instead "truststore."

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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



RE: Please help...

2004-11-12 Thread Didier McGillis
First get familiar with Tomcat, its very daunting of a task connection 
apache and tomcat with mod_jk2, but not impossible.  Use tomcat standalone, 
the one guy had a pretty straightforward and easy way of doing it, after you 
get :8080/test/ working you can move to serving over port 80 with Tomcat, 
then if you want to dive in and do apache+tomcat+mod_jk2 I would suggest you 
look at these places.

http://www.cymulacrum.net/writings/tomcat5/book1.html
http://www.linuxjava.net/howto/webapp/
http://johnturner.com/howto/apache-tomcat-howto.html
there are more, many more.  start slow, nothing more frustrating then 
getting something to work and then doing 30 steps and retrying and seeing it 
not working.  do one thing at a time, there isnt a whole lot of steps.

good luck, and if you get stuck dont hesitate to search the archives and see 
how many of us were in your shoes.


From: Ken Keefe <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Please help...
Date: Fri, 12 Nov 2004 14:14:17 -0600
I have been struggling with Tomcat for several days and I am at the end
of my rope. If I come across as irritated, I apologize in advance.
I simply want to learn how to write JSP. I have a book and I want to
start working through it, but I am having trouble setting up a server to
serve JSP. I currently run Apache to serve HTML and PHP. Ideally, I'd
simply like Apache to start recognizing JSP and handling it
appropriately. Unfortunately that seems to not be an easy task... I have
tried using mod_jk to connect Tomcat and Apache, with no luck.
I finally gave up on trying to use Apache and I was just going to keep
them separate. Now, how do I tell Tomcat to serve my jsp files??? I
tried using the manager web program to add an application pointing to
the correct directory, it accepts the command, but nothing is added to
the application list and it doesn't serve the content like I expected it
to.
Finally I said screw it, I'll simply put my experiment files in the
document root of Tomcat and use that for now. Still no luck, it serves
up the same default stuff, even when I rename the file.
My environment is the following: Fedora Core 2, Apache 2.0.51, Tomcat
5.5.4, JDK 1.5.0.
Ideally I'd like to do what I talked about earlier, having Apache
"automagically" know what to do with *.jsp files. However, I'll take
what I can get!
Thank you very much in advance. I can't explain how damned aggravating
this whole thing has been.
Ken
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Powerful Parental Controls Let your child discover the best the Internet has 
to offer.  
http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines 
 Start enjoying all the benefits of MSN® Premium right now and get the 
first two months FREE*.

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


RE: Please help...

2004-11-12 Thread Randall Svancara
Tomcat is organized differently than Apache.  First of all Apache has a
document root, where you can put all of your php and html files in.
With tomcat, the directory structure is different.  If you want to get
started with tomcat, I suggest first creating directory under the
webapps directory of your tomcat installation.  For this example, lets
call it test.  Under test we will create a WEB-INF directory.  The
WEB-INF directory contains basically the configuration file for your web
application you will be creating in the test directory.  In the WEB-INF
folder, create a file called web.xml.  So at this point you should have
directory structure that looks like this.

Test
WEB-INF
web.xml


Now edit the web.xml file to contain the following:

---snip



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


  A test web application
  
 Your test web application
  


---snip


Now that you have an empty web application container set up, add some
jsp files.
Keep in mind that everything under the WEB-INF directory is protected by
tomcat.  You would not want someone to browse through your configuration
now would you?

For simplicity sake, lets create a test jsp page now.  Create a file
called index.jsp directly under the directory test.  This is what your
directory structure should look like now under your test directory:

Test
index.jsp
WEB-INF
web.xml



Lets add some content under your test.jsp.  We will combine some html
with java code to demonstrate how things work.

<[EMAIL PROTECTED] contentType="text/html"%> 
<[EMAIL PROTECTED] pageEncoding="UTF-8"%>


Your first cool page

<%out.println("Hello world")%> 






Ok, make sure you have tomcat started.  On windows, go to services and
see if the service is running.  On linux, type ps -ef or ps -aux on
unix.  If it is not running, you need to start this service for your
platform.  

Next, browse to the machine where you have tomcat installed.  It might
be on the same machine your programming on.  http://localhost:8080/test/

You should see hello world now.  By default, Tomcat runs on port 8080.
You must specify the port number in your browser.  You can configure
Tomcat to run on port 80 if you wish, but that is out of the scope of
this document.  Oops, I just read you are using fedora core.  I am using
fedora core.  I have apache and tomcat set up to talk to each other
using mod_jk2.  I can send you my configuration files if you wish.  

I hope this was not too basic for you.  


Randall


 

-Original Message-
From: Ken Keefe [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 12, 2004 1:14 PM
To: [EMAIL PROTECTED]
Subject: Please help...

I have been struggling with Tomcat for several days and I am at the end
of my rope. If I come across as irritated, I apologize in advance. 

I simply want to learn how to write JSP. I have a book and I want to
start working through it, but I am having trouble setting up a server to
serve JSP. I currently run Apache to serve HTML and PHP. Ideally, I'd
simply like Apache to start recognizing JSP and handling it
appropriately. Unfortunately that seems to not be an easy task... I have
tried using mod_jk to connect Tomcat and Apache, with no luck.

I finally gave up on trying to use Apache and I was just going to keep
them separate. Now, how do I tell Tomcat to serve my jsp files??? I
tried using the manager web program to add an application pointing to
the correct directory, it accepts the command, but nothing is added to
the application list and it doesn't serve the content like I expected it
to.

Finally I said screw it, I'll simply put my experiment files in the
document root of Tomcat and use that for now. Still no luck, it serves
up the same default stuff, even when I rename the file. 

My environment is the following: Fedora Core 2, Apache 2.0.51, Tomcat
5.5.4, JDK 1.5.0. 

Ideally I'd like to do what I talked about earlier, having Apache
"automagically" know what to do with *.jsp files. However, I'll take
what I can get!

Thank you very much in advance. I can't explain how damned aggravating
this whole thing has been.

Ken


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


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



RE: Please help...

2004-11-12 Thread Benson Margulies
Just run a standalone tomcat. Connecting to Apache is real work and you
don't need it.

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



Re: PLEASE HELP : time outs with sticky session and file store

2004-10-25 Thread pablo
Sorry forgot to add the config files as an attachment .


config_file.tar.gz
Description: GNU Zip compressed data

On Oct 25, 2004, at 1:22 PM, pablo wrote:
Hi folks,
I am currently running apache 2.0.52 , mod_jk2, solaris 8 &  
tomcat 5.0.28 on my servers .  I have two apache serves behind an 
alteon that service my webapps on 4 tomcat servers.  I have sticky 
sessions with a file store set up on my boxes.  My filestore is via 
nfs. All my hosts are on the same subnet. They are mulithomed hosts 
because I need a back interface for the webapps to talk to the db.  
But my default routes are all set the same .  I have one apache server 
that hits two tomcat servers and then another apache sever that has 
two other tomcat servers. Once I start that apache servers everything 
is fine , for a few hours .  After a few hours the tomcat servers 
start to time out. I can get to the apache index page but as soon as I 
ask the apache server to make a request to a webapp on the tomcat 
servers is just sits there and times out.  Sometimes the webapp does 
pop up but very slowly. I have examined the routing tables , I have 
done traceroutes I have pin pointed my problem down to the application 
layer.  So I must be doing something wrong in my configuration.  I 
checked over my configuration a hundred times and I did it exactly the 
way the book told me to "professional apache tomcat 5" . This all 
worked on my testing environment , but it is not working now.  I have 
included a very small tar file that has my config files . If any of 
you can give me an example of a working config or tell me what I am 
doing wrong I would greatly appreciate it .

-Pablo

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

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

Re: Please help: Apache direct Servlet to Tomcat

2004-09-13 Thread Kelly Denehy
On Mon, 13 Sep 2004 14:57:31 -0400, Kelly Denehy <[EMAIL PROTECTED]> wrote:
> On Mon, 13 Sep 2004 11:21:55 -0700, Daxin Zuo <[EMAIL PROTECTED]> wrote:
> > [snip]
> > For example I have a servlet TestServlet.class (package: myServlet) in
> > [snip]
> >   
> > TestServlet
> > TestServlet
> >   
> 
> I might be wrong, but I believe the servlet-class needs to be fully
> qualified, so it would be
> myServlet.TestServlet.
> 

Hmmm, except you said it runs correctly when accessing directly
through Tomcat on port 8008.  I've always avoided accessing the ROOT
webapp through Apache to avoid these kind of issues, because of the
additional ambiguity that it introduces.

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



Re: Please help: Apache direct Servlet to Tomcat

2004-09-13 Thread Kelly Denehy
On Mon, 13 Sep 2004 11:21:55 -0700, Daxin Zuo <[EMAIL PROTECTED]> wrote:
> [snip]
> For example I have a servlet TestServlet.class (package: myServlet) in
> [snip]
>   
> TestServlet
> TestServlet
>   

I might be wrong, but I believe the servlet-class needs to be fully
qualified, so it would be
myServlet.TestServlet.

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



RE: Please help with jk2/tomcat5

2004-08-27 Thread Cox, Charlie
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 27, 2004 12:32 PM
> To: 'Tomcat Users List'
> Subject: RE: Please help with jk2/tomcat5
> 
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, August 26, 2004 8:41 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Please help with jk2/tomcat5
> > >
> > > Hello list members,
> > >
> > > Running Linux Fedora core2, apache2, tomcat5, jk2
> > >
> > >
> > > In my workers2.properties file, I have the following lines:
> > >
> > > [channel.socket:tomcat_server:8033]
> > > host=hostation.com
> > > port=8033
> > > debug=0
> > >
> > > [ajp13:tomcat_server:8033]
> > > channel=channel.socket:tomcat_server:8033
> > > debug=0
> > >
> > > [uri:hostation.com/*]
> > > worker=ajp13:tomcat_server:8033
> > > debug=0
> > >
> > > [uri:www.hostation.com/*]
> > > worker=ajp13:tomcat_server:8033
> > > debug=0
> > >
> > >
> > > That works as expected.  It allowed me to delegate ALL
> > requests to tomcat.
> > > However, now I want to be able to exempt a certain URI such as:
> > >
> > > http://hostation.com/private  so that it is not being handled by
> > > tomcat
> > but
> > > by apache instead.
> > >
> > > Is it possible ?  Please show me how and I will be hugely
> > greatful!!!
> > >
> > > Thanks.
> > > Lu
> 
> > -Original Message-
> > From: Cox, Charlie [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 27, 2004 6:17 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Please help with jk2/tomcat5
> >
> > 
> > JkUriSet ...
> > 
> >
> >
> > this also works for multiple directories:
> > 
> >
> > Charlie
> >
> 
> Thanks for the help.
> I am trying to use your suggestion although it seems tricky.
> Whatever I have now in workers2.properties appear not to work
> when I use JkUriSet.
> There must be a way to combine them and I haven't figured it
> out yet.
> 
> Lu
> 

I don't know. I only use JkUriSet and moved the [uri:] mappings to
httd.conf. This helped me visualize the mappings with the virtual host
settings.

I don't understand what you need to overlap if you want all except a
directory to go to tomcat. If you mean mapping both "hostation.com" and
"www.hostation.com", you can control that in your  settings.

Charlie


RE: Please help with jk2/tomcat5

2004-08-27 Thread webmaster
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, August 26, 2004 8:41 PM
> > To: [EMAIL PROTECTED]
> > Subject: Please help with jk2/tomcat5
> > 
> > Hello list members,
> > 
> > Running Linux Fedora core2, apache2, tomcat5, jk2
> > 
> > 
> > In my workers2.properties file, I have the following lines:
> > 
> > [channel.socket:tomcat_server:8033]
> > host=hostation.com
> > port=8033
> > debug=0
> > 
> > [ajp13:tomcat_server:8033]
> > channel=channel.socket:tomcat_server:8033
> > debug=0
> > 
> > [uri:hostation.com/*]
> > worker=ajp13:tomcat_server:8033
> > debug=0
> > 
> > [uri:www.hostation.com/*]
> > worker=ajp13:tomcat_server:8033
> > debug=0
> > 
> > 
> > That works as expected.  It allowed me to delegate ALL 
> requests to tomcat.
> > However, now I want to be able to exempt a certain URI such as:
> > 
> > http://hostation.com/private  so that it is not being handled by 
> > tomcat
> but
> > by apache instead.
> > 
> > Is it possible ?  Please show me how and I will be hugely 
> greatful!!!
> > 
> > Thanks.
> > Lu 

> -Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 27, 2004 6:17 AM
> To: 'Tomcat Users List'
> Subject: RE: Please help with jk2/tomcat5
> 
> 
>   JkUriSet ...
> 
> 
> 
> this also works for multiple directories:
> 
> 
> Charlie
> 

Thanks for the help.
I am trying to use your suggestion although it seems tricky.
Whatever I have now in workers2.properties appear not to work 
when I use JkUriSet.
There must be a way to combine them and I haven't figured it 
out yet.

Lu 


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



RE: Please help with jk2/tomcat5

2004-08-27 Thread Cox, Charlie

JkUriSet ...



this also works for multiple directories:


Charlie

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 26, 2004 8:41 PM
> To: [EMAIL PROTECTED]
> Subject: Please help with jk2/tomcat5
> 
> Hello list members,
> 
> Running Linux Fedora core2, apache2, tomcat5, jk2
> 
> 
> In my workers2.properties file, I have the following lines:
> 
> [channel.socket:tomcat_server:8033]
> host=hostation.com
> port=8033
> debug=0
> 
> [ajp13:tomcat_server:8033]
> channel=channel.socket:tomcat_server:8033
> debug=0
> 
> [uri:hostation.com/*]
> worker=ajp13:tomcat_server:8033
> debug=0
> 
> [uri:www.hostation.com/*]
> worker=ajp13:tomcat_server:8033
> debug=0
> 
> 
> That works as expected.  It allowed me to delegate ALL requests to tomcat.
> However, now I want to be able to exempt a certain URI such as:
> 
> http://hostation.com/private  so that it is not being handled by tomcat
but
> by apache instead.
> 
> Is it possible ?  Please show me how and I will be hugely greatful!!!
> 
> Thanks.
> Lu
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Re: Please help me

2004-08-12 Thread David Smith
I'm guessing the snippet below is from your struts-config.xml file.  I 
tried to make that work and couldn't even on a straight forward textbook 
example.  It was much easier to define the datasource in the 
[context].xml file in conf/Catalina/localhost, use the DBCP db pool, and 
then write my own db access code.  Besides, I think I saw something to 
the effect that the feature you're using below might be removed from 
future Struts releases.  I'm sure there are people on the list who can 
confirm or deny that suspicion.

--David
Rajesh wrote:
This is Rajesh. I am working on webApplication project.The project
Environment is in
Struts1.1 Framework with jdk1.4.2_01,WebServer as Tomcat5 on O.S Linux
connecting back-end Mysql.
I am trouble shooting a problem.
   I have properly closed each and every connection whenever I
open a connection.So the db connection is properly maintained.And
the Session too is properly maintained.In struts1.1 struts-config.xml
just for connection pooling I've coded  tag like
   
   
   
   
   
   
   
   
   
   
So for every 60 seconds the connection pool is checked to freeze-out the
unwanted Connection.
Every thing works fine on first day but on the consecutive day it 
troubles.


MAIN PROBLEM STATEMENT IS
On the next day  when I try to login to my site it is not
letting me login.
   I am sure there is no problem in my coding, because the whole day 
the site
is working perfectly well. Only for a period of time the db access is not
working.

So I want to know where the problem is.Whether it's in Database
Pooling or it is Tomcat related problems.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Please Help! Tomcat 5.0.25

2004-06-30 Thread Aris Javier
No Sir... everything is in my pc... no remote access...
Tomcat5.0.25 is in drive D as well as MS Access 2000...
I'm also the only user of my pc.. 

Please Help!

-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 10:00 PM
To: 'Tomcat Users List'
Subject: RE: Please Help! Tomcat 5.0.25


When you run a service in WinXX, it does not run with the same rights
and settings as the logged in user. If your app needs a mapped drive,
then you will have to find a way for your app to map the drive for it's
self. This may also be a user rights issue as the service runs without
the same credentials as the logged in user.

Robert S. Harper
801.265.8800 ex. 255

> -Original Message-
> From: Robert Bateman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 30, 2004 7:39 AM
> To: Tomcat Users List
> Subject: Re: Please Help! Tomcat 5.0.25
> 
> This may or may not be totally on topic - apologies if it's not...
> 
> On Wednesday 30 June 2004 12:16 am, Aris Javier wrote:
> > Still the same error occured after replacing my service.bat with 
> > your service.bat... (declares tools.jar inside) =|
> >
> > org.apache.commons.dbcp.SQLNestedException: Cannot create 
> > PoolableConnectionFactory, cause: General error
> >
> > When i run startup.bat... it worked fine again... the following are 
> > the logged scripts in MS DOS when i run startup.bat...
> 
> 
> I've seen similar errors when running programs as services in a
Windows
> environment.  One thing that got me over and over was the data base I
was
> accessing was not local.  Because the "remote" data base needed me to
"map" a
> drive letter to it, my program running as service failed.
> 
> Are you by chance attempting to access your data base on a network
drive?
> 
> Bob
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




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


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



RE: Please Help! Tomcat 5.0.25

2004-06-30 Thread Aris Javier
No Sir... I'm accessing my database on my pc...
MS Access 2000... everything is in my pc...

I've tried putting everything under classpath but still 
this dbcp error occured...

But the amazing thing is, no problem occured when i run
tomcat not in service...

sigh!

-Original Message-
From: Robert Bateman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 9:39 PM
To: Tomcat Users List
Subject: Re: Please Help! Tomcat 5.0.25


This may or may not be totally on topic - apologies if it's not...

On Wednesday 30 June 2004 12:16 am, Aris Javier wrote:
> Still the same error occured after replacing my service.bat with your 
> service.bat... (declares tools.jar inside) =|
>
> org.apache.commons.dbcp.SQLNestedException: Cannot create 
> PoolableConnectionFactory, cause: General error
>
> When i run startup.bat... it worked fine again... the following are 
> the logged scripts in MS DOS when i run startup.bat...


I've seen similar errors when running programs as services in a Windows 
environment.  One thing that got me over and over was the data base I
was 
accessing was not local.  Because the "remote" data base needed me to
"map" a 
drive letter to it, my program running as service failed.

Are you by chance attempting to access your data base on a network
drive?

Bob

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


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



RE: Please Help! Tomcat 5.0.25

2004-06-30 Thread Robert Harper
When you run a service in WinXX, it does not run with the same rights and
settings as the logged in user. If your app needs a mapped drive, then you will
have to find a way for your app to map the drive for it's self. This may also be
a user rights issue as the service runs without the same credentials as the
logged in user.

Robert S. Harper
801.265.8800 ex. 255

> -Original Message-
> From: Robert Bateman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 30, 2004 7:39 AM
> To: Tomcat Users List
> Subject: Re: Please Help! Tomcat 5.0.25
> 
> This may or may not be totally on topic - apologies if it's not...
> 
> On Wednesday 30 June 2004 12:16 am, Aris Javier wrote:
> > Still the same error occured after replacing my service.bat with your
> > service.bat... (declares tools.jar inside) =|
> >
> > org.apache.commons.dbcp.SQLNestedException: Cannot create
> > PoolableConnectionFactory, cause: General error
> >
> > When i run startup.bat... it worked fine again... the following are the
> > logged
> > scripts in MS DOS when i run startup.bat...
> 
> 
> I've seen similar errors when running programs as services in a Windows
> environment.  One thing that got me over and over was the data base I was
> accessing was not local.  Because the "remote" data base needed me to "map" a
> drive letter to it, my program running as service failed.
> 
> Are you by chance attempting to access your data base on a network drive?
> 
> Bob
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




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



Re: Please Help! Tomcat 5.0.25

2004-06-30 Thread Robert Bateman
This may or may not be totally on topic - apologies if it's not...

On Wednesday 30 June 2004 12:16 am, Aris Javier wrote:
> Still the same error occured after replacing my service.bat with your
> service.bat... (declares tools.jar inside) =|
>
> org.apache.commons.dbcp.SQLNestedException: Cannot create
> PoolableConnectionFactory, cause: General error
>
> When i run startup.bat... it worked fine again... the following are the
> logged
> scripts in MS DOS when i run startup.bat...


I've seen similar errors when running programs as services in a Windows 
environment.  One thing that got me over and over was the data base I was 
accessing was not local.  Because the "remote" data base needed me to "map" a 
drive letter to it, my program running as service failed.

Are you by chance attempting to access your data base on a network drive?

Bob

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



RE: Please Help! Tomcat 5.0.25

2004-06-29 Thread Aris Javier
yes i did... =|
after "service install"...
tomcat5 service will be created...
then i go to administrative tools -> services to run tomcat service...
this is the right method?

one more thing... why is it that when i run startup.bat, a lot of
stuffs have been loaded up...? as compared to when i use tomcat as
service?

i think that startup.bat is loading something that service don't load?

 
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 12:54 PM
To: Tomcat Users List
Subject: RE: Please Help! Tomcat 5.0.25


I'm at a loss at this point.  I'm not sure if there is a specific JDBC 
driver for Access.  I would avoid using Access anyway, but I suppose it 
might not be by choice.  Hopefully someone else will know what is up
with 
using the Sun driver and the Tomcat service.  BTW, you did do "service 
remove" and then "service install", right?

Jake

At 12:16 PM 6/30/2004 +0800, you wrote:
>Still the same error occured after replacing my service.bat with your 
>service.bat... (declares tools.jar inside) =|
>
>org.apache.commons.dbcp.SQLNestedException: Cannot create 
>PoolableConnectionFactory, cause: General error
>
>When i run startup.bat... it worked fine again... the following are the

>logged scripts in MS DOS when i run startup.bat...
>
>Jun 30, 2004 11:59:11 AM org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on http-8080
>Jun 30, 2004 11:59:11 AM org.apache.catalina.startup.Catalina load
>INFO: Initialization processed in 7240 ms
>Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardService start
>INFO: Starting service Catalina
>Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardEngine start
>INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
>Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardHost start
>INFO: XML validation disabled
>Jun 30, 2004 11:59:17 AM org.apache.catalina.core.StandardHost
>getDeployer
>INFO: Create Host deployer for direct deployment ( non-jmx ) Jun 30, 
>2004 11:59:17 AM org.apache.catalina.core.StandardHostDeployer
>install
>INFO: Processing Context configuration file URL 
>file:D:\Tomcat_5.0\conf\Catalina \localhost\admin.xml
>Jun 30, 2004 11:59:19 AM
org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing, config='org.apache.struts.util.LocalStrings',
>returnNull=tru
>e
>Jun 30, 2004 11:59:19 AM
org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing, config='org.apache.struts.action.ActionResources',
>returnNul
>l=true
>Jun 30, 2004 11:59:21 AM
org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing,
>config='org.apache.webapp.admin.ApplicationResources', retur
>nNull=true
>Jun 30, 2004 11:59:30 AM org.apache.catalina.core.StandardHostDeployer
>install
>INFO: Processing Context configuration file URL
>file:D:\Tomcat_5.0\conf\Catalina
>\localhost\balancer.xml
>Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
>install
>INFO: Processing Context configuration file URL
>file:D:\Tomcat_5.0\conf\Catalina
>\localhost\manager.xml
>Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
>install
>INFO: Installing web application at context path /jsp-examples from URL
>file:D:\
>Tomcat_5.0\webapps\jsp-examples
>Jun 30, 2004 11:59:33 AM org.apache.catalina.core.StandardHostDeployer
>install
>INFO: Installing web application at context path  from URL
>file:D:\Tomcat_5.0\we
>bapps\ROOT
>Jun 30, 2004 11:59:34 AM org.apache.catalina.core.StandardHostDeployer
>install
>INFO: Installing web application at context path /servlets-examples
from
>URL fil
>e:D:\Tomcat_5.0\webapps\servlets-examples
>Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
>install
>INFO: Installing web application at context path /tomcat-docs from URL
>file:D:\T
>omcat_5.0\webapps\tomcat-docs
>Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
>install
>INFO: Installing web application at context path /webdav from URL
>file:D:\Tomcat
>_5.0\webapps\webdav
>Jun 30, 2004 11:59:36 AM org.apache.coyote.http11.Http11Protocol start
>INFO: Starting Coyote HTTP/1.1 on http-8080
>Jun 30, 2004 11:59:38 AM org.apache.jk.common.ChannelSocket init
>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>Jun 30, 2004 11:59:38 AM org.apache.jk.server.JkMain start
>INFO: Jk running ID=0 time=0/280
>config=D:\Tomcat_5.0\conf\jk2.properties
>Jun 30, 2004 11:59:38 AM org.apache.catalina.startup.Catalina start
>INFO: Server startup in 26689 ms
>
>
>-Original Message-
>From: Aris Javier
>Sent: Wednesday, June 30, 2004 11:36 AM
>To: Tomcat Users List
>Subject: RE: Please Help

RE: Please Help! Tomcat 5.0.25

2004-06-29 Thread Jacob Kjome
I'm at a loss at this point.  I'm not sure if there is a specific JDBC 
driver for Access.  I would avoid using Access anyway, but I suppose it 
might not be by choice.  Hopefully someone else will know what is up with 
using the Sun driver and the Tomcat service.  BTW, you did do "service 
remove" and then "service install", right?

Jake
At 12:16 PM 6/30/2004 +0800, you wrote:
Still the same error occured after replacing my service.bat with your
service.bat... (declares tools.jar inside) =|
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory, cause: General error
When i run startup.bat... it worked fine again... the following are the
logged
scripts in MS DOS when i run startup.bat...
Jun 30, 2004 11:59:11 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 30, 2004 11:59:11 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7240 ms
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 30, 2004 11:59:17 AM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Jun 30, 2004 11:59:17 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\admin.xml
Jun 30, 2004 11:59:19 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Jun 30, 2004 11:59:19 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNul
l=true
Jun 30, 2004 11:59:21 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Jun 30, 2004 11:59:30 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\balancer.xml
Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\manager.xml
Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:D:\
Tomcat_5.0\webapps\jsp-examples
Jun 30, 2004 11:59:33 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL
file:D:\Tomcat_5.0\we
bapps\ROOT
Jun 30, 2004 11:59:34 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL fil
e:D:\Tomcat_5.0\webapps\servlets-examples
Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:D:\T
omcat_5.0\webapps\tomcat-docs
Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:D:\Tomcat
_5.0\webapps\webdav
Jun 30, 2004 11:59:36 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 30, 2004 11:59:38 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jun 30, 2004 11:59:38 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/280
config=D:\Tomcat_5.0\conf\jk2.properties
Jun 30, 2004 11:59:38 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 26689 ms
-Original Message-
From: Aris Javier
Sent: Wednesday, June 30, 2004 11:36 AM
To: Tomcat Users List
Subject: RE: Please Help! Tomcat 5.0.25
Thanks for the updated service.bat Sir Jake!
I'll test it at once...
Regarding my database... I'm just using MS Access 2000...
I don't know what driver to use or how to install or configure it that's
why I use sun.jdbc.odbc.JdbcOdbcDriver driver.
What do you think is the proper driver for MS Access 2000?
and how to install it...?
Thanks!
I'll test your updated service.bat and update you of my progress...
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 10:52 AM
To: Tomcat Users List
Subject: Re: Please Help! Tomcat 5.0.25
At 09:37 AM 6/30/2004 +0800, you wrote:
>Hello!
>
>I installed Tomcat 5.0.25
>i noticed that tomcat won't start unless i first make "service install"
>command? under catalina_home/bin/service.bat
>
>also, after running tomcat service... my previous error
>(org.apache.commons.dbcp.D

RE: Please Help! Tomcat 5.0.25

2004-06-29 Thread Aris Javier
Still the same error occured after replacing my service.bat with your
service.bat... (declares tools.jar inside) =|

org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory, cause: General error

When i run startup.bat... it worked fine again... the following are the
logged
scripts in MS DOS when i run startup.bat...

Jun 30, 2004 11:59:11 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 30, 2004 11:59:11 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 7240 ms
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.0.25
Jun 30, 2004 11:59:12 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jun 30, 2004 11:59:17 AM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Jun 30, 2004 11:59:17 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\admin.xml
Jun 30, 2004 11:59:19 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.util.LocalStrings',
returnNull=tru
e
Jun 30, 2004 11:59:19 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNul
l=true
Jun 30, 2004 11:59:21 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', retur
nNull=true
Jun 30, 2004 11:59:30 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\balancer.xml
Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Processing Context configuration file URL
file:D:\Tomcat_5.0\conf\Catalina
\localhost\manager.xml
Jun 30, 2004 11:59:31 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /jsp-examples from URL
file:D:\
Tomcat_5.0\webapps\jsp-examples
Jun 30, 2004 11:59:33 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path  from URL
file:D:\Tomcat_5.0\we
bapps\ROOT
Jun 30, 2004 11:59:34 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /servlets-examples from
URL fil
e:D:\Tomcat_5.0\webapps\servlets-examples
Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /tomcat-docs from URL
file:D:\T
omcat_5.0\webapps\tomcat-docs
Jun 30, 2004 11:59:35 AM org.apache.catalina.core.StandardHostDeployer
install
INFO: Installing web application at context path /webdav from URL
file:D:\Tomcat
_5.0\webapps\webdav
Jun 30, 2004 11:59:36 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 30, 2004 11:59:38 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jun 30, 2004 11:59:38 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/280
config=D:\Tomcat_5.0\conf\jk2.properties
Jun 30, 2004 11:59:38 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 26689 ms


-Original Message-
From: Aris Javier 
Sent: Wednesday, June 30, 2004 11:36 AM
To: Tomcat Users List
Subject: RE: Please Help! Tomcat 5.0.25


Thanks for the updated service.bat Sir Jake!
I'll test it at once... 

Regarding my database... I'm just using MS Access 2000...
I don't know what driver to use or how to install or configure it that's
why I use sun.jdbc.odbc.JdbcOdbcDriver driver. 
What do you think is the proper driver for MS Access 2000?
and how to install it...?

Thanks!
I'll test your updated service.bat and update you of my progress...

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 10:52 AM
To: Tomcat Users List
Subject: Re: Please Help! Tomcat 5.0.25


At 09:37 AM 6/30/2004 +0800, you wrote:
>Hello!
>
>I installed Tomcat 5.0.25
>i noticed that tomcat won't start unless i first make "service install"

>command? under catalina_home/bin/service.bat
>
>also, after running tomcat service... my previous error
>(org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General)

>was converted to
>
>org.apache.commons.dbcp.SQLNestedException: Cannot create
>PoolableConnectionFactory, cause: General error

I see you are using the sun.jdbc.odbc.JdbcOdbcDriver driver.  This is a
bad 
idea.  What Database are you connecting to?  You should use the driver
made 
for that database.

However, I think the error is coming from not havin

RE: Please Help! Tomcat 5.0.25

2004-06-29 Thread Aris Javier
Thanks for the updated service.bat Sir Jake!
I'll test it at once... 

Regarding my database... I'm just using MS Access 2000...
I don't know what driver to use or how to install or configure it
that's why I use sun.jdbc.odbc.JdbcOdbcDriver driver. 
What do you think is the proper driver for MS Access 2000?
and how to install it...?

Thanks!
I'll test your updated service.bat and update you of my progress...

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 30, 2004 10:52 AM
To: Tomcat Users List
Subject: Re: Please Help! Tomcat 5.0.25


At 09:37 AM 6/30/2004 +0800, you wrote:
>Hello!
>
>I installed Tomcat 5.0.25
>i noticed that tomcat won't start unless i first make "service install"

>command? under catalina_home/bin/service.bat
>
>also, after running tomcat service... my previous error
>(org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General)

>was converted to
>
>org.apache.commons.dbcp.SQLNestedException: Cannot create 
>PoolableConnectionFactory, cause: General error

I see you are using the sun.jdbc.odbc.JdbcOdbcDriver driver.  This is a
bad 
idea.  What Database are you connecting to?  You should use the driver
made 
for that database.

However, I think the error is coming from not having tools.jar in the 
classpath.  You'll have to add this to service.bat.  You might also
notice 
that JSP's don't compile for the same reason.  I have asked the Tomcat 
developers to add tools.jar to classpath in service.bat, but it never
seems 
to get done.  I have created my own copy of service.bat that works
better 
for me and brings it more in line with starting from the startup.bat 
file.  I'll attach it.


Jake


>but when i run startup.bat, no error occured...
>
>what's the difference then? running tomcat as a service and running 
>tomcat using startup.bat...??? i need to run my application as a 
>service.. so that it will keep on running eventhough i'm not 
>logged-in...
>
>
>
>-Original Message-
>From: Aris Javier
>Sent: Wednesday, June 30, 2004 8:22 AM
>To: Tomcat Users List
>Subject: RE: Please Help!
>
>
>My current tomcat version is tomcat5.0.7
>also, i dont see service.bat under catalina_home/bin folder...
>
>do i have to download latest tomcat version?
>
>-Original Message-
>From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 29, 2004 11:46 PM
>To: Tomcat Users List
>Subject: RE: Please Help!
>
>
>You specify Tomcat5.0.  If that's true, you are using a pre-release 
>version of Tomcat5.  Update to the latest official version (or
>Tomcat-5.0.27beta) and retest.  Make sure your driver is in common/lib 
>as well.  Note that CATALINA_HOME/bin/service.bat can be used to 
>install/remove the service.  Make sure to set your CATALINA_HOME 
>variable before you run service.bat.
>
>Jake
>
>Quoting Aris Javier <[EMAIL PROTECTED]>:
>
> > Thanks!
> >
> > My system works fine when i run tomcat5.0 in console...
> > but when i run tomcat5.0 in service, this error occurs...
> >
> > org.apache.commons.dbcp.DbcpException: java.sql.SQLException: 
> > General error
> >
> > I already declared my enviroment variables..
> > i declared bootstrap.jar and tools.jar in classpath...
> >
> > anyway, here's my system info...
> >
> > OS: Windows 2000
> > Database: MS Access 2000
> > System DSN: EZX_DS
> > Technology: Java Servlet/JSP MVC
> > Tomcat Folder: D:\Tomcat_5.0
> >
> > Server.xml context...
> >  > reloadable="true" crossContext="true">
> >   className="org.apache.catalina.logger.FileLogger"
> >prefix="localhost_tees_log." suffix=".txt"
> >timestamp="true"/>
> >>auth="Container"
> >type="javax.sql.DataSource"/>
> >   
> >   
> >   factory
> >
> > org.apache.commons.dbcp.BasicDataSourceFactory
> >   
> >   
> >   maxActive
> >   100
> >   
> >   
> >   maxIdle
> >   30
> >   
> >   
> >   maxWait
> >   1
> >   
> >   
> >driverClassName
> >sun.jdbc.odbc.JdbcOdbcDriver
> >  

Re: Please Help! Tomcat 5.0.25

2004-06-29 Thread Jacob Kjome
At 09:37 AM 6/30/2004 +0800, you wrote:
Hello!
I installed Tomcat 5.0.25
i noticed that tomcat won't start unless i first make "service install"
command?
under catalina_home/bin/service.bat
also, after running tomcat service... my previous error
(org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General)
was converted to
org.apache.commons.dbcp.SQLNestedException: Cannot create
PoolableConnectionFactory, cause: General error
I see you are using the sun.jdbc.odbc.JdbcOdbcDriver driver.  This is a bad 
idea.  What Database are you connecting to?  You should use the driver made 
for that database.

However, I think the error is coming from not having tools.jar in the 
classpath.  You'll have to add this to service.bat.  You might also notice 
that JSP's don't compile for the same reason.  I have asked the Tomcat 
developers to add tools.jar to classpath in service.bat, but it never seems 
to get done.  I have created my own copy of service.bat that works better 
for me and brings it more in line with starting from the startup.bat 
file.  I'll attach it.

Jake

but when i run startup.bat, no error occured...
what's the difference then? running tomcat as a service and running
tomcat using startup.bat...???
i need to run my application as a service.. so that it will keep on
running eventhough i'm not logged-in...

-Original Message-
From: Aris Javier
Sent: Wednesday, June 30, 2004 8:22 AM
To: Tomcat Users List
Subject: RE: Please Help!
My current tomcat version is tomcat5.0.7
also, i dont see service.bat under catalina_home/bin folder...
do i have to download latest tomcat version?
-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 11:46 PM
To: Tomcat Users List
Subject: RE: Please Help!
You specify Tomcat5.0.  If that's true, you are using a pre-release
version of Tomcat5.  Update to the latest official version (or
Tomcat-5.0.27beta) and retest.  Make sure your driver is in common/lib
as well.  Note that CATALINA_HOME/bin/service.bat can be used to
install/remove the service.  Make sure to set your CATALINA_HOME
variable before you run service.bat.
Jake
Quoting Aris Javier <[EMAIL PROTECTED]>:
> Thanks!
>
> My system works fine when i run tomcat5.0 in console...
> but when i run tomcat5.0 in service, this error occurs...
>
> org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
> error
>
> I already declared my enviroment variables..
> i declared bootstrap.jar and tools.jar in classpath...
>
> anyway, here's my system info...
>
> OS: Windows 2000
> Database: MS Access 2000
> System DSN: EZX_DS
> Technology: Java Servlet/JSP MVC
> Tomcat Folder: D:\Tomcat_5.0
>
> Server.xml context...
>  reloadable="true" crossContext="true">
>   prefix="localhost_tees_log." suffix=".txt"
>timestamp="true"/>
>   auth="Container"
>type="javax.sql.DataSource"/>
>   
>   
>   factory
>
> org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
>   maxActive
>   100
>   
>   
>   maxIdle
>   30
>   
>   
>   maxWait
>   1
>   
>   
>driverClassName
>sun.jdbc.odbc.JdbcOdbcDriver
>   
>   
>   url
>   jdbc:odbc:EZX_DS
>
>   
> 
>
> Web.xml contains...
> 
>   EAZIX TEES Tomcat to Access
>   
>   DB Connection
>   jdbc/EZX_DS
>   javax.sql.DataSource
>   Container
>   
>   
>  configFile
>
> d:\\eazixprojects\\tees\\xml\\mapping.xml
>   
>   
> EazixServlet
> tees.main.util.EazixServlet
>   
>   
> EazixServlet
> *.ezx
>   
>
> 
> CewolfServlet
> de.laures.cewolf.CewolfRenderer
>   
> 
>         overliburl
>
>
D:\\eazixprojects\\tees\\js\\etc\\overlib.js
> 
>   
> 
> debug
> true
> 
> 1
> 
>   
> CewolfServlet
> /cewolf/*
>   
>  
>   welcome.jsp
>  
>   
> msewFailed.jsp
>   
> 
>
> -Original Message-
> From: Kunthar [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 3:41 PM
> To: Tomcat Users List
> Subjec

RE: Please Help!

2004-06-29 Thread Aris Javier
My current tomcat version is tomcat5.0.7 
also, i dont see service.bat under catalina_home/bin folder...

do i have to download latest tomcat version?

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 11:46 PM
To: Tomcat Users List
Subject: RE: Please Help!


You specify Tomcat5.0.  If that's true, you are using a pre-release
version of Tomcat5.  Update to the latest official version (or
Tomcat-5.0.27beta) and retest.  Make sure your driver is in common/lib
as well.  Note that CATALINA_HOME/bin/service.bat can be used to
install/remove the service.  Make sure to set your CATALINA_HOME
variable before you run service.bat.

Jake

Quoting Aris Javier <[EMAIL PROTECTED]>:

> Thanks!
> 
> My system works fine when i run tomcat5.0 in console...
> but when i run tomcat5.0 in service, this error occurs...
> 
> org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General 
> error
> 
> I already declared my enviroment variables..
> i declared bootstrap.jar and tools.jar in classpath...
> 
> anyway, here's my system info...
> 
> OS: Windows 2000
> Database: MS Access 2000
> System DSN: EZX_DS
> Technology: Java Servlet/JSP MVC
> Tomcat Folder: D:\Tomcat_5.0
> 
> Server.xml context...
>  reloadable="true" crossContext="true">
>   prefix="localhost_tees_log." suffix=".txt"
>timestamp="true"/>
>   auth="Container"
>type="javax.sql.DataSource"/>
>   
>   
>   factory
> 
> org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
>   maxActive
>   100
>   
>   
>   maxIdle
>   30
>   
>   
>   maxWait
>   1
>   
>   
>driverClassName
>sun.jdbc.odbc.JdbcOdbcDriver
>   
>   
>   url
>   jdbc:odbc:EZX_DS
>
>   
> 
> 
> Web.xml contains...
> 
>   EAZIX TEES Tomcat to Access
>   
>   DB Connection
>   jdbc/EZX_DS
>   javax.sql.DataSource
>   Container
>   
>   
>  configFile
> 
> d:\\eazixprojects\\tees\\xml\\mapping.xml
>   
>   
> EazixServlet
> tees.main.util.EazixServlet
>   
>   
> EazixServlet
> *.ezx
>   
> 
> 
> CewolfServlet
> de.laures.cewolf.CewolfRenderer
>   
> 
> overliburl
> 
>
D:\\eazixprojects\\tees\\js\\etc\\overlib.js
> 
>   
> 
> debug
> true
> 
> 1
> 
>   
> CewolfServlet
> /cewolf/*
>   
>  
>   welcome.jsp
>  
>   
> msewFailed.jsp
>   
> 
> 
> -Original Message-
> From: Kunthar [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 3:41 PM
> To: Tomcat Users List
> Subject: Re: Please Help!
> 
> 
> Hello,
> 
> Please give us more detail.
> Your OS and database to connect to,
> Send your server.xml and web.xml definitions.
> Then we can have clear idea...
> 
> Take care
> Gokhan
> 
> 
> 
> 
> Aris Javier wrote:
> 
> >Please Help!
> >
> >This error kept on bugging me everytime i run tomcat5 as service... 
> >My environment variables are already declared as well as my system 
> >dsn... but still...
> >
> >org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General

> >error
> >
> >
> >Please Help!
> >
> >Thanks!
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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


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



RE: Please Help!

2004-06-29 Thread Jacob Kjome
You specify Tomcat5.0.  If that's true, you are using a pre-release version of
Tomcat5.  Update to the latest official version (or Tomcat-5.0.27beta) and
retest.  Make sure your driver is in common/lib as well.  Note that
CATALINA_HOME/bin/service.bat can be used to install/remove the service.  Make
sure to set your CATALINA_HOME variable before you run service.bat.

Jake

Quoting Aris Javier <[EMAIL PROTECTED]>:

> Thanks!
> 
> My system works fine when i run tomcat5.0 in console...
> but when i run tomcat5.0 in service, this error occurs...
> 
> org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
> error
> 
> I already declared my enviroment variables..
> i declared bootstrap.jar and tools.jar in classpath...
> 
> anyway, here's my system info...
> 
> OS: Windows 2000
> Database: MS Access 2000
> System DSN: EZX_DS
> Technology: Java Servlet/JSP MVC
> Tomcat Folder: D:\Tomcat_5.0
> 
> Server.xml context...
>  crossContext="true">
>   prefix="localhost_tees_log." suffix=".txt"
>timestamp="true"/>
>   auth="Container"
>type="javax.sql.DataSource"/>
>   
>   
>   factory
> 
> org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
>   maxActive
>   100
>   
>   
>   maxIdle
>   30
>   
>   
>   maxWait
>   1
>   
>   
>driverClassName
>sun.jdbc.odbc.JdbcOdbcDriver
>   
>   
>   url
>   jdbc:odbc:EZX_DS
>
>   
> 
> 
> Web.xml contains...
> 
>   EAZIX TEES Tomcat to Access
>   
>   DB Connection
>   jdbc/EZX_DS
>   javax.sql.DataSource
>   Container
>   
>   
>  configFile
> 
> d:\\eazixprojects\\tees\\xml\\mapping.xml
>   
>   
> EazixServlet
> tees.main.util.EazixServlet
>   
>   
> EazixServlet
> *.ezx
>   
> 
> 
> CewolfServlet
> de.laures.cewolf.CewolfRenderer
>   
> 
> overliburl
> 
> D:\\eazixprojects\\tees\\js\\etc\\overlib.js
> 
>   
> 
> debug
> true
> 
> 1
> 
>   
> CewolfServlet
> /cewolf/*
>   
>  
>   welcome.jsp
>  
>   
> msewFailed.jsp
>   
> 
> 
> -Original Message-
> From: Kunthar [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 29, 2004 3:41 PM
> To: Tomcat Users List
> Subject: Re: Please Help!
> 
> 
> Hello,
> 
> Please give us more detail.
> Your OS and database to connect to,
> Send your server.xml and web.xml definitions.
> Then we can have clear idea...
> 
> Take care
> Gokhan
> 
> 
> 
> 
> Aris Javier wrote:
> 
> >Please Help!
> >
> >This error kept on bugging me everytime i run tomcat5 as service... My
> >environment variables are already declared as well as my system dsn...
> >but still...
> >
> >org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
> >error
> >
> >
> >Please Help!
> >
> >Thanks!
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: Please Help!

2004-06-29 Thread Aris Javier
Thanks!

My system works fine when i run tomcat5.0 in console...
but when i run tomcat5.0 in service, this error occurs...

org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
error

I already declared my enviroment variables.. 
i declared bootstrap.jar and tools.jar in classpath...

anyway, here's my system info...

OS: Windows 2000
Database: MS Access 2000
System DSN: EZX_DS
Technology: Java Servlet/JSP MVC
Tomcat Folder: D:\Tomcat_5.0

Server.xml context...

  
  
  
  
  factory
 
org.apache.commons.dbcp.BasicDataSourceFactory
  
  
  maxActive
  100
  
  
  maxIdle
  30
  
  
  maxWait
  1
  
  
   driverClassName
   sun.jdbc.odbc.JdbcOdbcDriver
  
  
  url
  jdbc:odbc:EZX_DS
   
  


Web.xml contains...

  EAZIX TEES Tomcat to Access
  
  DB Connection
  jdbc/EZX_DS
  javax.sql.DataSource
  Container
  
  
 configFile
 
d:\\eazixprojects\\tees\\xml\\mapping.xml
  
  
EazixServlet
tees.main.util.EazixServlet
  
  
EazixServlet
*.ezx
  


CewolfServlet
de.laures.cewolf.CewolfRenderer


overliburl
 
D:\\eazixprojects\\tees\\js\\etc\\overlib.js



debug
true

1

  
CewolfServlet
/cewolf/*
  
 
  welcome.jsp
 
  
msewFailed.jsp
  


-Original Message-
From: Kunthar [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 29, 2004 3:41 PM
To: Tomcat Users List
Subject: Re: Please Help!


Hello,

Please give us more detail.
Your OS and database to connect to,
Send your server.xml and web.xml definitions.
Then we can have clear idea...

Take care
Gokhan




Aris Javier wrote:

>Please Help!
>
>This error kept on bugging me everytime i run tomcat5 as service... My 
>environment variables are already declared as well as my system dsn...
>but still...
>
>org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General 
>error
>
>
>Please Help!
>
>Thanks!
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>


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


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



Re: Please Help!

2004-06-29 Thread Kunthar
Hello,
Please give us more detail.
Your OS and database to connect to,
Send your server.xml and web.xml definitions.
Then we can have clear idea...
Take care
Gokhan

Aris Javier wrote:
Please Help!
This error kept on bugging me everytime i run tomcat5 as service...
My environment variables are already declared as well as my system
dsn...
but still...
org.apache.commons.dbcp.DbcpException: java.sql.SQLException: General
error
Please Help!
Thanks!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


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


RE: Please help on my DB pool problem --- I followed the struction on the web

2004-05-03 Thread Daxin Zuo
   I misunderstood that MS JDBC Driver should be the best for its MS SQL
Server. Sorry. Your instruction is very helpful. Now I decide to not use the
MS driver for MS SQL Server. I have successfully created the Pool with
net.sourceforge.jtds.jdbc.Driver.

Thank you.

-Original Message-
From: Eric Noel [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 02, 2004 6:43 PM
To: Tomcat Users List
Subject: Re: Please help on my DB pool problem --- I followed the
struction on the web


On 5/3/2004 9:31 AM, Daxin Zuo wrote:

> I thought Microsoft was the best.
if thats what you think, i guess you should stick with dotNet since with
that you will have an all microsoft retrofitted program (e.g drivers,
components, etc) :-)

> My jsp file is in tomcat\webapps\ROOT\zuo. In my
> tomcat\webapps\ROOT\WEB-INF\web.xml, there is no  block, should I
> create one or use ?
> If I need ot create a  block, Is the code bellow correct:
> 
> 
> 

Context part is in server.xml or Catalina/hostname/APPNAME.xml.


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


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



Re: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Eric Noel
On 5/3/2004 9:31 AM, Daxin Zuo wrote:

I thought Microsoft was the best.
if thats what you think, i guess you should stick with dotNet since with 
that you will have an all microsoft retrofitted program (e.g drivers, 
components, etc) :-)

My jsp file is in tomcat\webapps\ROOT\zuo. In my
tomcat\webapps\ROOT\WEB-INF\web.xml, there is no  block, should I
create one or use ?
If I need ot create a  block, Is the code bellow correct:



Context part is in server.xml or Catalina/hostname/APPNAME.xml.

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


RE: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Daxin Zuo
I thought Microsoft was the best.
My jsp file is in tomcat\webapps\ROOT\zuo. In my
tomcat\webapps\ROOT\WEB-INF\web.xml, there is no  block, should I
create one or use ?
If I need ot create a  block, Is the code bellow correct:




Thanks

-Original Message-
From: Eric Noel [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 02, 2004 5:55 PM
To: Tomcat Users List
Subject: Re: Please help on my DB pool problem --- I followed the
struction on the web


why not use jtds instead http://jtds.sourceforge.net/

## download the jtds jar
   http://heanet.dl.sourceforge.net/sourceforge/jtds/jtds-0.7.1.jar
## place it in your common/lib

## server.xml
   
   
 
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
 
 
   maxActive
   3
 
 
   maxIdle
   1
 
 
   maxWait
   1
 
 
  username
  DBUSERNAME
 
 
  password
  DBPASSWORD
 
 
driverClassName
net.sourceforge.jtds.jdbc.Driver
 
 
   url
   jdbc:jtds:sqlserver://SERVERNAME/DBNAME
 
   


## web.xml

javax.servlet.jsp.jstl.sql.dataSource
jdbc/DirectSQL





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


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



Re: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Parsons Technical Services
Daxin,

I think this would be well worth your time and effort to change to this. I
was unaware of it or I would have recommended it.

The reason for the other stuff you were asking about was because that is how
microsoft had set it up to be used.

This should give much cleaner and portable code. As I am running against
MySQL I cannot test it, but will help you get it going.

Thanks  for the info Eric.

Doug

- Original Message - 
From: "Eric Noel" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, May 02, 2004 8:55 PM
Subject: Re: Please help on my DB pool problem --- I followed the struction
on the web


> why not use jtds instead http://jtds.sourceforge.net/
>
> ## download the jtds jar
>http://heanet.dl.sourceforge.net/sourceforge/jtds/jtds-0.7.1.jar
> ## place it in your common/lib
>
> ## server.xml
> type="javax.sql.DataSource"/>
>
>  
>factory
>org.apache.commons.dbcp.BasicDataSourceFactory
>  
>  
>maxActive
>3
>  
>  
>maxIdle
>1
>  
>  
>maxWait
>1
>  
>  
>   username
>   DBUSERNAME
>  
>  
>   password
>   DBPASSWORD
>  
>  
> driverClassName
> net.sourceforge.jtds.jdbc.Driver
>  
>  
>url
>jdbc:jtds:sqlserver://SERVERNAME/DBNAME
>  
>
>
>
> ## web.xml
> 
> javax.servlet.jsp.jstl.sql.dataSource
> jdbc/DirectSQL
> 
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



Re: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Eric Noel
why not use jtds instead http://jtds.sourceforge.net/

## download the jtds jar
  http://heanet.dl.sourceforge.net/sourceforge/jtds/jtds-0.7.1.jar
## place it in your common/lib
## server.xml
  
  

  factory
  org.apache.commons.dbcp.BasicDataSourceFactory


  maxActive
  3


  maxIdle
  1


  maxWait
  1


 username
 DBUSERNAME


 password
 DBPASSWORD


   driverClassName
   net.sourceforge.jtds.jdbc.Driver


  url
  jdbc:jtds:sqlserver://SERVERNAME/DBNAME

  

## web.xml

   javax.servlet.jsp.jstl.sql.dataSource
   jdbc/DirectSQL



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


RE: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Daxin Zuo
Thank you very much for your reply on Sunday.
The error is "Name jdbc is not bound in this Context" at ctx.lookup. In both
server.xml and web.xml, the type is
com.microsoft.jdbcx.sqlserver.SQLServerDataSource. Even I use the code:
  envCtx = (Context) initCtx.lookup("java:comp/env");
  ds = (ConnectionPoolDataSource ) envCtx.lookup("jdbc/daxin");
  if (ds != null){
if(ds instanceof com.microsoft.jdbcx.sqlserver.SQLServerDataSource){
SQLServerDataSource temp =
(com.microsoft.jdbcx.sqlserver.SQLServerDataSource)ds;
con = temp.getPooledConnection("dzuo","dzuo").getConnection();

  I got the same error.  Besides jdbc, is there another name to use?
 I am using jdbc driver, why
com.microsoft.jdbc.sqlserver.SQLServerDriver.class in the mssqlserver.jar is
not indicated in the configuration? Why the driverClassName and the type are
the same? Does it related to MS sql server installation? I installed the MS
SQL JDBCdriver's servise pack 1 and 2. Does it have effect?
My current configuration is based on the link you sent me in the first
email:

Server.xml:
   ... ...
  
... ...



factory
com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory


driverClassName
com.microsoft.jdbcx.sqlserver.SQLServerDataSource

 
   driverNameSQLServer
 

 descriptionSQL Server
DataSource

 serverName"daxin"
 portNumber1433 
selectMethodcursor
 databaseNamepubs
user"dzuo"
password"dzuo"

  ..
  
   ... ...
   
  


web.xml:
  
  
SQL Server DataSource
"jdbc/dbName"
com.microsoft.jdbc.sqlserver.SQLServerDataSource
Container
  


Looking forward to more instruction.

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 02, 2004 4:07 PM
To: Tomcat Users List
Subject: Re: Please help on my DB pool problem --- I followed the
struction on the web


Try this code instead:

Context ctx = new InitialContext();
if (ctx == null) {
System.err.println("Conn.getConn ctx is null");
throw new Exception("Boom - No Context");
}
DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/dbName");
if (ds != null)
connection = ds.getConnection();

I run this from a class. I have several util classes that handle my database
queries and thus in my jsps and servlets I simly call the util class with a
simple string. But we'll save that for another time.


As for the code in the web.xml, it is fine.

Doug


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



Re: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Parsons Technical Services
Try this code instead:

Context ctx = new InitialContext();
if (ctx == null) {
System.err.println("Conn.getConn ctx is null");
throw new Exception("Boom - No Context");
}
DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/dbName");
if (ds != null)
connection = ds.getConnection();

I run this from a class. I have several util classes that handle my database
queries and thus in my jsps and servlets I simly call the util class with a
simple string. But we'll save that for another time.


As for the code in the web.xml, it is fine.

Doug

- Original Message - 
From: "Daxin Zuo" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Sunday, May 02, 2004 3:07 PM
Subject: RE: Please help on my DB pool problem --- I followed the struction
on the web


> Should I put it in tomcat\webapps\ROOT\WEB-INF\web.xml? (my jsp file using
> Database connection is in ROOT/zuo), but in this web.xml, I already have:
> 
> SQL Server DataSource
> jdbc/dbName
> com.microsoft.jdbcx.sqlserver.SQLServerDataSource
> Container
> 
>
>Following the examples on the web, I wrote the java code in JSP:
> envCtx = (Context) initCtx.lookup("java:comp/env");
> ds = (ConnectionPoolDataSource ) envCtx.lookup("jdbc/dbName");  // <---
> error occurs here
> if (ds != null){
>if(ds instanceof com.microsoft.jdbcx.sqlserver.SQLServerDataSource){
>SQLServerDataSource temp =
> (com.microsoft.jdbcx.sqlserver.SQLServerDataSource)ds;
> con = temp.getPooledConnection(user,pswd).getConnection();
> now the error occurs at envCtx.lookup. the error is: Cannot create
resource
> instance
>
> Thanks.
>
> -----Original Message-
> From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 30, 2004 4:42 PM
> To: Tomcat Users List
> Subject: Re: Please help on my DB pool problem --- I followed the
> struction on the web
>
>
> Daxin,
>
> When you put the dbcp in the GlobalResource did you put a link to the
> resource in the context?
>
> Place this in the context for each app that will use the database
connection
> pool.
>  type="com.microsoft.jdbcx.sqlserver.SQLServerDataSource"/>
>
> In the last email that I sent in addition to the link, was a complete
> working set of configurations. Each piece of the configuration was labeled
> as to where to add it. Remove all your old attempts and start from the
> beginning. If you made a backup of your original files use them. Then put
in
> each piece and modify with your information.
>
> Let us know.
>
> Doug
>
>
> - Original Message -
> From: "Daxin Zuo" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, April 30, 2004 2:05 PM
> Subject: RE: Please help on my DB pool problem --- I followed the
struction
> on the web
>
>
> > 1)I added it and still get the same error. the error occurred at con =
> > ds.getConnection(); error:Cannot create JDBC driver of class '' for
> connect
> > URL 'null'
> > 2) I also followed the way in the link that forwarded by Persons
Technical
> > Services. In that configuration, it used com.microsoft.jdbcx.sqlserver.
If
> I
> > still use javax.sql.DataSource in my JSP file, I got the same error. If
I
> > use com.microsoft.jdbcx.sqlserver in my JSP file, the error occurred at
> > lookup the source.
> > But I did not use . I moved the DB pool context into
> > . The block is for JNDI global name.
> > 3) I also add the database name as Eric indicated. It does not effect.
> > 4) if I remove the db pool configuration in server.xml( web.xml still
has
> > the configuration), I got the same error.
> >
> > 5) if I remove the db pool configuration in
> > tomcat\webapps\ROOT\WEB-INF\web.xml, the error is Name jdbc is not bound
> in
> > this Context.
> >
> > My jsp file is in tomcat\webapps\ROOT\zuo, and in tomcat\webapps\ROOT,
> same
> > error.
> >
> > It seems the configuration in tomcat/conf/server.xml is incorrect.
Should
> I
> > write some thing in different file?
> > If I should write the text in  (right now no this block in
> > server.xml), how to set the  path and  docBase if my file is in
> > tomcat\webapps\ROOT\zuo\. But I think put the configuration text in
> >  is the right place.
> > I am using  Apache 2.0.49+Tomcat 5.0.19+windows 2000/Unix/Linux+MS SQL
> > server 2000 + sp4, is there another better jdbc driver with the
> > configuration tricks?
> > Please help.
> > Thanks.
> >
> > -Original Message-
> > From: STOCKHOLM, Raymond [mailto:[

RE: Please help on my DB pool problem --- I followed the struction on the web

2004-05-02 Thread Daxin Zuo
Should I put it in tomcat\webapps\ROOT\WEB-INF\web.xml? (my jsp file using
Database connection is in ROOT/zuo), but in this web.xml, I already have:

SQL Server DataSource
jdbc/dbName
com.microsoft.jdbcx.sqlserver.SQLServerDataSource
Container


   Following the examples on the web, I wrote the java code in JSP:
envCtx = (Context) initCtx.lookup("java:comp/env");
ds = (ConnectionPoolDataSource ) envCtx.lookup("jdbc/dbName");  // <---
error occurs here
if (ds != null){
   if(ds instanceof com.microsoft.jdbcx.sqlserver.SQLServerDataSource){
   SQLServerDataSource temp =
(com.microsoft.jdbcx.sqlserver.SQLServerDataSource)ds;
con = temp.getPooledConnection(user,pswd).getConnection();
now the error occurs at envCtx.lookup. the error is: Cannot create resource
instance

Thanks.

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: Friday, April 30, 2004 4:42 PM
To: Tomcat Users List
Subject: Re: Please help on my DB pool problem --- I followed the
struction on the web


Daxin,

When you put the dbcp in the GlobalResource did you put a link to the
resource in the context?

Place this in the context for each app that will use the database connection
pool.


In the last email that I sent in addition to the link, was a complete
working set of configurations. Each piece of the configuration was labeled
as to where to add it. Remove all your old attempts and start from the
beginning. If you made a backup of your original files use them. Then put in
each piece and modify with your information.

Let us know.

Doug


- Original Message -
From: "Daxin Zuo" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, April 30, 2004 2:05 PM
Subject: RE: Please help on my DB pool problem --- I followed the struction
on the web


> 1)I added it and still get the same error. the error occurred at con =
> ds.getConnection(); error:Cannot create JDBC driver of class '' for
connect
> URL 'null'
> 2) I also followed the way in the link that forwarded by Persons Technical
> Services. In that configuration, it used com.microsoft.jdbcx.sqlserver. If
I
> still use javax.sql.DataSource in my JSP file, I got the same error. If I
> use com.microsoft.jdbcx.sqlserver in my JSP file, the error occurred at
> lookup the source.
> But I did not use . I moved the DB pool context into
> . The block is for JNDI global name.
> 3) I also add the database name as Eric indicated. It does not effect.
> 4) if I remove the db pool configuration in server.xml( web.xml still has
> the configuration), I got the same error.
>
> 5) if I remove the db pool configuration in
> tomcat\webapps\ROOT\WEB-INF\web.xml, the error is Name jdbc is not bound
in
> this Context.
>
> My jsp file is in tomcat\webapps\ROOT\zuo, and in tomcat\webapps\ROOT,
same
> error.
>
> It seems the configuration in tomcat/conf/server.xml is incorrect. Should
I
> write some thing in different file?
> If I should write the text in  (right now no this block in
> server.xml), how to set the  path and  docBase if my file is in
> tomcat\webapps\ROOT\zuo\. But I think put the configuration text in
>  is the right place.
> I am using  Apache 2.0.49+Tomcat 5.0.19+windows 2000/Unix/Linux+MS SQL
> server 2000 + sp4, is there another better jdbc driver with the
> configuration tricks?
> Please help.
> Thanks.
>
> -Original Message-
> From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 30, 2004 12:22 AM
> To: Tomcat Users List
> Subject: RE: Please help on my DB pool problem --- I followed the
> struction on the web
>
>
> I didn't see your factory in your server.xml
> 
>
> Try adding :
> 
> factory
> org.apache.commons.dbcp.BasicDataSourceFactory
> 
>
>
>
> -Message d'origine-
> De : Daxin Zuo [mailto:[EMAIL PROTECTED]
> Envoyé : vendredi 30 avril 2004 00:55
> À : Tomcat Users List
> Objet : Please help on my DB pool problem --- I followed the struction
> on the web
>
>
> I have problem in using connection pool. I use Apache 2.0.49, Tomcat
> 5.0.19, windows 2000 server, MS SQL server 2000 + sp4
> On the browser I see the
> error: Cannot create JDBC driver of class '' for connect URL 'null'
> on Tomcat monitor, I see the message:
> Apr 29, 2004 3:36:25 PM org.apache.jk.common.HandlerRequest decodeRequest
> WARNING: Error registering request
>
> The url and driver class is not find. bellow is my configuration. Please
> forward instruction. Thanks a
> lot.
>
> 1) I copy the three jar files to \common\lib in %catalina_home% from
> C:\Program Files\Microsoft SQL S

Re: Please Help (Tomcat 4.1.30)!

2004-04-23 Thread Qin Ding




I load my application from SunOne Web server to Tomcat (4.1.30).  After
starting Tomcat, I issued the URL http://localhost:8080/gmemd, I got the
first page without all the images.  Clicked the login, I got 404 error:
requested resources (/servlet/Login) is not available.

Here is part of the web.xml:

  invoker
  /servlet/*


Here is the part of the tomcat server.xml:

  


Here is the file structure:
Webapps\gmemd
Webapps\gmemd\en\home\index.jsp
Webapps\gmemd\images\
Webapps\gmemd\web-inf\classes\Login.class
Webapps\gmemd\web-inf\lib\.

Under gmemd, there is a welcome page (index.jsp) which forwards the request
to en\home\index.jsp.

Here is part of the en\home\index.jsp that references the images and calls
the login servelet:

  
 
  


  


  


By the way, the application runs under SunOne Web Server 6.0 without
problems. I am sure I must have missed something.  When I checked the
Tomcat examples, whatever examples are clicked, on the query string URL, I
can see "localhost:8080/examples" be prefixed to all the URLs. Not in my
application. I did not see "localhost:8080/gmemd" be any part of the URL.

I manually prefixed the href and src attributes in the jsp with /gmemd/, my
page now displays the images, but servlet still not being found.

Even though my gmemd context (folder) has the same properties as examples
context (folder), when I stopped the tomcat, and checked the log file, I
got this:
2004-04-23 10:34:25 StandardContext[/gmemd]: Resources start failed:
java.lang.IllegalArgumentException: Document base ..\webapps\gmemd does not
exist or is not a readable directory
  at
org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:193)
  at
org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:3349)
  at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3479)
  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:754)
  at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
  at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:363)
  at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
  at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  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:203)

Please help!

Qin




This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.




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



RE: Please help with CLASSPATH problem

2004-02-17 Thread Davide Papotti


-Original Message-
From: Andi Reinbrech [mailto:[EMAIL PROTECTED]
Sent: martedì 17 febbraio 2004 13.29
To: 'Tomcat Users List'
Subject: RE: Please help with CLASSPATH problem


My apologies - RTFM

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 03:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Please help with CLASSPATH problem



"Andi Reinbrech" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I FINALLY figured this one out.
>
> Tomcat 5.0.18 as a service ignores -Djava.class.path.  Rather, it takes
the
> path from the -Imagepath parameter as the classpath (I did a debug
> logger.info("Classpath: " + System.getProperty("java.class.path") and lo
and
> behold it gave me the Imagepath as the actual classpath.
>
> I added %CATALINA_HOME%\bin to the Imageclasspath and all is working fine.
>
> This sounds like a bug?  Or at least an "undocumented feature".
>

I believe that it is a "documented feature".  See
http://jakarta.apache.org/commons/daemon/procrun.html.


> Cheers
> Andi
>
> -Original Message-
> From: Andi Reinbrech [mailto:[EMAIL PROTECTED]
> Sent: 16 February 2004 14:58 PM
> To: Tomcat-User (E-mail)
> Subject: Please help with CLASSPATH problem
>
>
> Hi, this problem behaves differently under 4.1 and 5.0.18, but I can't use
> *either*.
>
> When I run Tomcat 5.0.18 from the command prompt, the app works 100%.  It
is
> supposed to pick up a file called "emapi.cfg" and "licenses.txt" from the
> CLASSPATH.  "emapi.cfg" works int .\axis\WEB-INF\classes, but
"licenses.txt"
> doesn't.  However, leaving "licenses.txt" in the bin\ folder and starting
> Tomcat *from* that folder it works fine.  Running Tomcat 5 as a service
> doesn't pick up "licenses.txt" although the working dir is set to be bin\.
>
> In the bin\ folder I also need a load of *.dtd files to validate XML
> responses.  They only work when they're in the bin folder.
>
> Now to Tomcat 4.1:  Everything works as a service, including picking up
the
> "licenses.txt", but now it refuses to resolve the *.dtds.  I get a SAX
> Parser error that the URI can't be relative.  This is a bogus error
though,
> as I can remove all the *dtds and the error stays the same.
>
> Can someone PLEASE help me either fix EITHER one of these problems, or
> please refer me to an alternative server to use.
> org.apache.axis.transport.http.SimpleAxisServer works like a charm, but
not
> as a service, and shouldn't be used as a production server.
>
> Thanks in advance,
> Andi
>
>

> **
> Everything in this e-mail and attachments relating to the official
business
> of MultiChoice Africa is proprietary to
> the company. Any view or opinion expressed in this message may be the view
> of the individual and should not automatically
> be ascribed to the company.  If you are not the intended recipient, you
may
> not peruse, use, disseminate, distribute or
> copy this message. If you have received this message in error, please
notify
> the sender immediately by email, facsimile
> or telephone and destroy the original message.
>

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

**
> Everything in this e-mail and attachments relating to the official
business of MultiChoice Africa is proprietary to
> the company. Any view or opinion expressed in this message may be the view
of the individual and should not automatically
> be ascribed to the company.  If you are not the intended recipient, you
may not peruse, use, disseminate, distribute or
> copy this message. If you have received this message in error, please
notify the sender immediately by email, facsimile
> or telephone and destroy the original message.
>

**




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

**
Everything in this e-mail and attachments r

RE: Please help with CLASSPATH problem

2004-02-17 Thread Andi Reinbrech
My apologies - RTFM

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 03:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Please help with CLASSPATH problem



"Andi Reinbrech" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I FINALLY figured this one out.
>
> Tomcat 5.0.18 as a service ignores -Djava.class.path.  Rather, it takes
the
> path from the -Imagepath parameter as the classpath (I did a debug
> logger.info("Classpath: " + System.getProperty("java.class.path") and lo
and
> behold it gave me the Imagepath as the actual classpath.
>
> I added %CATALINA_HOME%\bin to the Imageclasspath and all is working fine.
>
> This sounds like a bug?  Or at least an "undocumented feature".
>

I believe that it is a "documented feature".  See
http://jakarta.apache.org/commons/daemon/procrun.html.


> Cheers
> Andi
>
> -Original Message-
> From: Andi Reinbrech [mailto:[EMAIL PROTECTED]
> Sent: 16 February 2004 14:58 PM
> To: Tomcat-User (E-mail)
> Subject: Please help with CLASSPATH problem
>
>
> Hi, this problem behaves differently under 4.1 and 5.0.18, but I can't use
> *either*.
>
> When I run Tomcat 5.0.18 from the command prompt, the app works 100%.  It
is
> supposed to pick up a file called "emapi.cfg" and "licenses.txt" from the
> CLASSPATH.  "emapi.cfg" works int .\axis\WEB-INF\classes, but
"licenses.txt"
> doesn't.  However, leaving "licenses.txt" in the bin\ folder and starting
> Tomcat *from* that folder it works fine.  Running Tomcat 5 as a service
> doesn't pick up "licenses.txt" although the working dir is set to be bin\.
>
> In the bin\ folder I also need a load of *.dtd files to validate XML
> responses.  They only work when they're in the bin folder.
>
> Now to Tomcat 4.1:  Everything works as a service, including picking up
the
> "licenses.txt", but now it refuses to resolve the *.dtds.  I get a SAX
> Parser error that the URI can't be relative.  This is a bogus error
though,
> as I can remove all the *dtds and the error stays the same.
>
> Can someone PLEASE help me either fix EITHER one of these problems, or
> please refer me to an alternative server to use.
> org.apache.axis.transport.http.SimpleAxisServer works like a charm, but
not
> as a service, and shouldn't be used as a production server.
>
> Thanks in advance,
> Andi
>
>

> **
> Everything in this e-mail and attachments relating to the official
business
> of MultiChoice Africa is proprietary to
> the company. Any view or opinion expressed in this message may be the view
> of the individual and should not automatically
> be ascribed to the company.  If you are not the intended recipient, you
may
> not peruse, use, disseminate, distribute or
> copy this message. If you have received this message in error, please
notify
> the sender immediately by email, facsimile
> or telephone and destroy the original message.
>

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

**
> Everything in this e-mail and attachments relating to the official
business of MultiChoice Africa is proprietary to
> the company. Any view or opinion expressed in this message may be the view
of the individual and should not automatically
> be ascribed to the company.  If you are not the intended recipient, you
may not peruse, use, disseminate, distribute or
> copy this message. If you have received this message in error, please
notify the sender immediately by email, facsimile
> or telephone and destroy the original message.
>

**




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

**
Everything in this e-mail and attachments relating to the official business of 
MultiChoice Africa is proprietary to 
the company. Any view or opinion expresse

Re: Please help with CLASSPATH problem

2004-02-16 Thread Bill Barker

"Andi Reinbrech" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I FINALLY figured this one out.
>
> Tomcat 5.0.18 as a service ignores -Djava.class.path.  Rather, it takes
the
> path from the -Imagepath parameter as the classpath (I did a debug
> logger.info("Classpath: " + System.getProperty("java.class.path") and lo
and
> behold it gave me the Imagepath as the actual classpath.
>
> I added %CATALINA_HOME%\bin to the Imageclasspath and all is working fine.
>
> This sounds like a bug?  Or at least an "undocumented feature".
>

I believe that it is a "documented feature".  See
http://jakarta.apache.org/commons/daemon/procrun.html.


> Cheers
> Andi
>
> -Original Message-
> From: Andi Reinbrech [mailto:[EMAIL PROTECTED]
> Sent: 16 February 2004 14:58 PM
> To: Tomcat-User (E-mail)
> Subject: Please help with CLASSPATH problem
>
>
> Hi, this problem behaves differently under 4.1 and 5.0.18, but I can't use
> *either*.
>
> When I run Tomcat 5.0.18 from the command prompt, the app works 100%.  It
is
> supposed to pick up a file called "emapi.cfg" and "licenses.txt" from the
> CLASSPATH.  "emapi.cfg" works int .\axis\WEB-INF\classes, but
"licenses.txt"
> doesn't.  However, leaving "licenses.txt" in the bin\ folder and starting
> Tomcat *from* that folder it works fine.  Running Tomcat 5 as a service
> doesn't pick up "licenses.txt" although the working dir is set to be bin\.
>
> In the bin\ folder I also need a load of *.dtd files to validate XML
> responses.  They only work when they're in the bin folder.
>
> Now to Tomcat 4.1:  Everything works as a service, including picking up
the
> "licenses.txt", but now it refuses to resolve the *.dtds.  I get a SAX
> Parser error that the URI can't be relative.  This is a bogus error
though,
> as I can remove all the *dtds and the error stays the same.
>
> Can someone PLEASE help me either fix EITHER one of these problems, or
> please refer me to an alternative server to use.
> org.apache.axis.transport.http.SimpleAxisServer works like a charm, but
not
> as a service, and shouldn't be used as a production server.
>
> Thanks in advance,
> Andi
>
>

> **
> Everything in this e-mail and attachments relating to the official
business
> of MultiChoice Africa is proprietary to
> the company. Any view or opinion expressed in this message may be the view
> of the individual and should not automatically
> be ascribed to the company.  If you are not the intended recipient, you
may
> not peruse, use, disseminate, distribute or
> copy this message. If you have received this message in error, please
notify
> the sender immediately by email, facsimile
> or telephone and destroy the original message.
>

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

**
> Everything in this e-mail and attachments relating to the official
business of MultiChoice Africa is proprietary to
> the company. Any view or opinion expressed in this message may be the view
of the individual and should not automatically
> be ascribed to the company.  If you are not the intended recipient, you
may not peruse, use, disseminate, distribute or
> copy this message. If you have received this message in error, please
notify the sender immediately by email, facsimile
> or telephone and destroy the original message.
>

**




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



RE: Please help with CLASSPATH problem

2004-02-16 Thread Andi Reinbrech
I FINALLY figured this one out.

Tomcat 5.0.18 as a service ignores -Djava.class.path.  Rather, it takes the
path from the -Imagepath parameter as the classpath (I did a debug
logger.info("Classpath: " + System.getProperty("java.class.path") and lo and
behold it gave me the Imagepath as the actual classpath.

I added %CATALINA_HOME%\bin to the Imageclasspath and all is working fine.

This sounds like a bug?  Or at least an "undocumented feature".

Cheers
Andi

-Original Message-
From: Andi Reinbrech [mailto:[EMAIL PROTECTED]
Sent: 16 February 2004 14:58 PM
To: Tomcat-User (E-mail)
Subject: Please help with CLASSPATH problem


Hi, this problem behaves differently under 4.1 and 5.0.18, but I can't use
*either*.

When I run Tomcat 5.0.18 from the command prompt, the app works 100%.  It is
supposed to pick up a file called "emapi.cfg" and "licenses.txt" from the
CLASSPATH.  "emapi.cfg" works int .\axis\WEB-INF\classes, but "licenses.txt"
doesn't.  However, leaving "licenses.txt" in the bin\ folder and starting
Tomcat *from* that folder it works fine.  Running Tomcat 5 as a service
doesn't pick up "licenses.txt" although the working dir is set to be bin\.  

In the bin\ folder I also need a load of *.dtd files to validate XML
responses.  They only work when they're in the bin folder.

Now to Tomcat 4.1:  Everything works as a service, including picking up the
"licenses.txt", but now it refuses to resolve the *.dtds.  I get a SAX
Parser error that the URI can't be relative.  This is a bogus error though,
as I can remove all the *dtds and the error stays the same.

Can someone PLEASE help me either fix EITHER one of these problems, or
please refer me to an alternative server to use.
org.apache.axis.transport.http.SimpleAxisServer works like a charm, but not
as a service, and shouldn't be used as a production server.

Thanks in advance,
Andi


**
Everything in this e-mail and attachments relating to the official business
of MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view
of the individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may
not peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify
the sender immediately by email, facsimile 
or telephone and destroy the original message.

**

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

**
Everything in this e-mail and attachments relating to the official business of 
MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of the 
individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify the 
sender immediately by email, facsimile 
or telephone and destroy the original message.
**

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



RE: RE: Please help Console Problem in tomcat 5.0.16

2004-02-02 Thread Yansheng Lin

In your web.xml:
package1.structure.HelloServlet

You package declaration is:
package package.structure

They don't exactly match each other.  

-cheers:).

-Original Message-
From: Avinash Sridhar [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 02, 2004 10:08 AM
To: Tomcat Users List
Cc: Bodycombe,Andrew
Subject: Re: RE: Please help Console Problem in tomcat 5.0.16


Hi,
  Thanks for the reply.How do I correct the invalid server.xml file.

Kindly let me know.


server.xml file for the same directory structure.




Thanks 
AS


On Mon, 02 Feb 2004 Bodycombe, Andrew wrote :
>This indicates your server.xml is invalid.
>
>-Original Message-
> From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
>Sent: 02 February 2004 16:07
>To: [EMAIL PROTECTED]
>Subject: Please help Console Problem in tomcat 5.0.16
>
>
>have my own directory as "sampleapp" which has the necessary structure and
>the .class file is put into the following directory structure.
>classes/package1/structure/HelloServlet.class.
>
>All in the %TOMCAT% home directory.
>
>My question is in %TOMCAT%/conf/server.xml file how is the 
> tag written.
>I have written it like this
>
>
>
>
>The directory structure of sampleapp is as follows..
>%TOMCAT%/webapps/sampleapp/WEB-INF/classes
>/lib
>/sourcefiles
>/web.xml.
>The classes directory has the structure like this..
>
>classes/package1/structure/HelloServlet class file.
>
>My Web.xml file looks like this
>
>/ web.xml /
>
>
>
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>
>
>Servlet 2.4 Examples
> Servlet 2.4 Examples 
>
>
>
>
>
>HelloServlet
>package1.structure.HelloServlet
>
>
>
>
>HelloServlet
>/sampleapp
>
>
>
>
>
>/* web.xml **/
>
>
>/*** Console error */
>Feb 2, 2004 8:33:19 AM org.apache.commons.digester.Digester fatalError
>SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
>target
>matching "[xX][mM][lL]" is not allowed.
>/*** Console error */
>
>Let me know if any changes are to be made.
>
>Help greatly apreciated.
>
>Thanks
>AS
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


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



Re: Please help Console Problem in tomcat 5.0.16

2004-02-02 Thread Aadi Deshpande
i've always managed to get this error when i have spaces between the xml 
pi (  ) and the start of the file.
i'd check for that, and that you have no spaces at the ''

hope this helps,

-a



Avinash Sridhar wrote:

Hi,
 Thanks for the reply.How do I correct the invalid server.xml file.
Kindly let me know.

server.xml file for the same directory structure.



Thanks 
AS

On Mon, 02 Feb 2004 Bodycombe, Andrew wrote :
 

This indicates your server.xml is invalid.

-Original Message-
From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
Sent: 02 February 2004 16:07
To: [EMAIL PROTECTED]
Subject: Please help Console Problem in tomcat 5.0.16
have my own directory as "sampleapp" which has the necessary structure
   

and
 

the .class file is put into the following directory structure.
classes/package1/structure/HelloServlet.class.
All in the %TOMCAT% home directory.

My question is in %TOMCAT%/conf/server.xml file how is the 
 tag written.
I have written it like this

   

reloadable="true">
 



The directory structure of sampleapp is as follows..
%TOMCAT%/webapps/sampleapp/WEB-INF/classes
/lib
/sourcefiles
/web.xml.
The classes directory has the structure like this..
classes/package1/structure/HelloServlet class file.

My Web.xml file looks like this

/ web.xml /



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

Servlet 2.4 Examples
 Servlet 2.4 Examples 



HelloServlet
package1.structure.HelloServlet



HelloServlet
/sampleapp




/* web.xml **/
/*** Console error */
Feb 2, 2004 8:33:19 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 3 column 6: The processing
   

instruction
 

target
matching "[xX][mM][lL]" is not allowed.
/*** Console error */
Let me know if any changes are to be made.

Help greatly apreciated.

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


 



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


Re: RE: Please help Console Problem in tomcat 5.0.16

2004-02-02 Thread Avinash Sridhar
Hi,
  Thanks for the reply.How do I correct the invalid server.xml file.

Kindly let me know.


server.xml file for the same directory structure.




Thanks 
AS


On Mon, 02 Feb 2004 Bodycombe, Andrew wrote :
>This indicates your server.xml is invalid.
>
>-Original Message-
> From: Avinash Sridhar [mailto:[EMAIL PROTECTED]
>Sent: 02 February 2004 16:07
>To: [EMAIL PROTECTED]
>Subject: Please help Console Problem in tomcat 5.0.16
>
>
>have my own directory as "sampleapp" which has the necessary structure and
>the .class file is put into the following directory structure.
>classes/package1/structure/HelloServlet.class.
>
>All in the %TOMCAT% home directory.
>
>My question is in %TOMCAT%/conf/server.xml file how is the 
> tag written.
>I have written it like this
>
>
>
>
>The directory structure of sampleapp is as follows..
>%TOMCAT%/webapps/sampleapp/WEB-INF/classes
>/lib
>/sourcefiles
>/web.xml.
>The classes directory has the structure like this..
>
>classes/package1/structure/HelloServlet class file.
>
>My Web.xml file looks like this
>
>/ web.xml /
>
>
>
>PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>
>
>Servlet 2.4 Examples
> Servlet 2.4 Examples 
>
>
>
>
>
>HelloServlet
>package1.structure.HelloServlet
>
>
>
>
>HelloServlet
>/sampleapp
>
>
>
>
>
>/* web.xml **/
>
>
>/*** Console error */
>Feb 2, 2004 8:33:19 AM org.apache.commons.digester.Digester fatalError
>SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
>target
>matching "[xX][mM][lL]" is not allowed.
>/*** Console error */
>
>Let me know if any changes are to be made.
>
>Help greatly apreciated.
>
>Thanks
>AS
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


RE: Please help Console Problem in tomcat 5.0.16

2004-02-02 Thread Bodycombe, Andrew
This indicates your server.xml is invalid.

-Original Message-
From: Avinash Sridhar [mailto:[EMAIL PROTECTED] 
Sent: 02 February 2004 16:07
To: [EMAIL PROTECTED]
Subject: Please help Console Problem in tomcat 5.0.16


have my own directory as "sampleapp" which has the necessary structure and
the .class file is put into the following directory structure.
classes/package1/structure/HelloServlet.class.

All in the %TOMCAT% home directory.

My question is in %TOMCAT%/conf/server.xml file how is the 
 tag written.
I have written it like this




The directory structure of sampleapp is as follows..
%TOMCAT%/webapps/sampleapp/WEB-INF/classes
/lib
/sourcefiles
/web.xml.
The classes directory has the structure like this..

classes/package1/structure/HelloServlet class file.

My Web.xml file looks like this 

/ web.xml /



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


Servlet 2.4 Examples
 Servlet 2.4 Examples 

 



HelloServlet
package1.structure.HelloServlet




HelloServlet
/sampleapp





/* web.xml **/


/*** Console error */
Feb 2, 2004 8:33:19 AM org.apache.commons.digester.Digester fatalError
SEVERE: Parse Fatal Error at line 3 column 6: The processing instruction
target
matching "[xX][mM][lL]" is not allowed.
/*** Console error */

Let me know if any changes are to be made.

Help greatly apreciated.

Thanks 
AS 

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



RE: Please help, I have a headache .. servlet init troubles

2004-01-20 Thread Shapira, Yoav

Howdy,

>The NavigationManager closes the connection off. This was causing the
>problems. Now I put the JNDI block in the NavigationManager constructor
and
>it works just fine!?

So the lookup code worked fine, you got a connection, and then closing
the connection raised the exception?

As an aside, consider overriding init() rather than init(ServletConfig)
as with the former you don't have to remember to call
super.init(ServletConfig).

>I am using Tomcat 5.0.16. I dont want to get into compiling 5.0.18 so
will
>wait for a binary! :)

There's a binary here:
http://www.apache.org/dist/jakarta/tomcat-5/
which of course everyone is welcome to download/test/use.  I don't think
it has any changes relevant to this issue.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Please help, I have a headache .. servlet init troubles

2004-01-20 Thread Allistair Crossley
Hey,

The following is what I was doing in init ...

private static DataSource dataSource;

/** Initialisation */
public void init(ServletConfig config) throws ServletException {
super.init(config); 

logger.info("initialising iQ2");

try {
Context ctx = new InitialContext();
dataSource = (DataSource) ctx.lookup("java:comp/env/jdbc/sysdb");

if (dataSource == null) {
throw new ServletException("The iQ2 database could not be loaded.");
}
} catch (NamingException nE) {
throw new ServletException("The iQ2 database could not be loaded.");
}

logger.debug("init: setting up navigation tree");

NavigationManager navigation = null;
try {
navigation = 
new NavigationManager(dataSource.getConnection());
} catch (SQLException sqlE) {
logger.error("navigation: " + sqlE.getMessage());
throw new ServletException("navigation: failed");
}

// add a reference to the navigation in application scope
getServletContext().setAttribute("navigation", navigation);
}

The NavigationManager closes the connection off. This was causing the problems. Now I 
put the JNDI block in the NavigationManager constructor and it works just fine!?

I am using Tomcat 5.0.16. I dont want to get into compiling 5.0.18 so will wait for a 
binary! :)

Cheers ADC

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 15:37
To: Tomcat Users List
Subject: RE: Please help, I have a headache .. servlet init troubles



Howdy,
Yeah, it's not good practice to get a connection (or other resource) and in the init 
method hold on it until the destroy method.  Pools make getting a connection quick, so 
you can keep the connection for as little time as possible.

That aside, what tomcat version are you using?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 20, 2004 8:25 AM
>To: 'Tomcat Users List'
>Subject: RE: Please help, I have a headache .. servlet init troubles
>
>   Right, usually we get a dataSource in doGet or doPost method.
>
>> --
>> De:  Allistair Crossley[SMTP:[EMAIL PROTECTED]
>> Responder:   Tomcat Users List
>> Enviada: terça-feira, 20 de janeiro de 2004 9:22
>> Para:Tomcat Users List
>> Assunto: RE: Please help, I have a headache .. servlet init troubles
>>
>> I have solved the JNDI resource by removing the call to the Context out
>of
>> the init method and into the classes that wish to connect. And yes I do
>> use a JNDI properly as my application is working using
>> dataSource.getConnection(). The only time my dataSource.getConnection
>does
>> not work is when I try to get the JNDI resource in the servlet init
>> method.
>>
>>
>>
>> -Original Message-
>> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
>> Sent: 20 January 2004 13:07
>> To: 'Tomcat Users List'
>> Subject: RE: Please help, I have a headache .. servlet init troubles
>>
>>
>>  Tell us, if you use these parameters for a simple connection, do you
>> really connect to SQLServer?  I think that your real problem is to create
>> a
>> JNDI datasource.
>>
>> > --
>> > De:Allistair Crossley[SMTP:[EMAIL PROTECTED]
>> > Responder: Tomcat Users List
>> > Enviada:   segunda-feira, 19 de janeiro de 2004 13:35
>> > Para:  Tomcat Users List
>> > Assunto:   RE: Please help, I have a headache .. servlet init
>troubles
>> >
>> > Hi,
>> >
>> > Yes I have the jdbc driver in common/lib - like I say ... it "does"
>> > connect but I do not know why it gives this error!
>> >
>> > I just removed trying to get the JNDI data source in my controller
>> servlet
>> > init() and moved it to the classes that need a connection. There are
>now
>> > no errors. Therefore it seems almost that init() is too quick to try
>and
>> > get the JNDI resource before it has managed to load the servlet.xml??
>> >
>> > Do you know why my servlet initalises twice? That's my remaining
>issue..
>> >
>> > Cheers, ADC
>> >
>> > -Original Message-
>> > From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
>> > Sent: 19 January 2004 17:22
>> > To: 'Tomcat Users List'
>> > Subject: RE: Please h

RE: Please help, I have a headache .. servlet init troubles

2004-01-20 Thread Shapira, Yoav

Howdy,
Yeah, it's not good practice to get a connection (or other resource) and in the init 
method hold on it until the destroy method.  Pools make getting a connection quick, so 
you can keep the connection for as little time as possible.

That aside, what tomcat version are you using?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 20, 2004 8:25 AM
>To: 'Tomcat Users List'
>Subject: RE: Please help, I have a headache .. servlet init troubles
>
>   Right, usually we get a dataSource in doGet or doPost method.
>
>> --
>> De:  Allistair Crossley[SMTP:[EMAIL PROTECTED]
>> Responder:   Tomcat Users List
>> Enviada: terça-feira, 20 de janeiro de 2004 9:22
>> Para:Tomcat Users List
>> Assunto: RE: Please help, I have a headache .. servlet init troubles
>>
>> I have solved the JNDI resource by removing the call to the Context out
>of
>> the init method and into the classes that wish to connect. And yes I do
>> use a JNDI properly as my application is working using
>> dataSource.getConnection(). The only time my dataSource.getConnection
>does
>> not work is when I try to get the JNDI resource in the servlet init
>> method.
>>
>>
>>
>> -Original Message-
>> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
>> Sent: 20 January 2004 13:07
>> To: 'Tomcat Users List'
>> Subject: RE: Please help, I have a headache .. servlet init troubles
>>
>>
>>  Tell us, if you use these parameters for a simple connection, do you
>> really connect to SQLServer?  I think that your real problem is to create
>> a
>> JNDI datasource.
>>
>> > ------
>> > De:Allistair Crossley[SMTP:[EMAIL PROTECTED]
>> > Responder: Tomcat Users List
>> > Enviada:   segunda-feira, 19 de janeiro de 2004 13:35
>> > Para:  Tomcat Users List
>> > Assunto:   RE: Please help, I have a headache .. servlet init
>troubles
>> >
>> > Hi,
>> >
>> > Yes I have the jdbc driver in common/lib - like I say ... it "does"
>> > connect but I do not know why it gives this error!
>> >
>> > I just removed trying to get the JNDI data source in my controller
>> servlet
>> > init() and moved it to the classes that need a connection. There are
>now
>> > no errors. Therefore it seems almost that init() is too quick to try
>and
>> > get the JNDI resource before it has managed to load the servlet.xml??
>> >
>> > Do you know why my servlet initalises twice? That's my remaining
>issue..
>> >
>> > Cheers, ADC
>> >
>> > -Original Message-
>> > From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
>> > Sent: 19 January 2004 17:22
>> > To: 'Tomcat Users List'
>> > Subject: RE: Please help, I have a headache .. servlet init troubles
>> >
>> >
>> >To solve your problem with JDBC Driver, you must put the JDBC driver
>> > inside $TOMCAT_HOME/common/lib, try this first the other errors we will
>> > see
>> > if happens again.
>> >
>> > > --
>> > > De:  Allistair Crossley[SMTP:[EMAIL PROTECTED]
>> > > Responder:   Tomcat Users List
>> > > Enviada: segunda-feira, 19 de janeiro de 2004 12:56
>> > > Para:TOMCAT USER (E-mail)
>> > > Assunto: Please help, I have a headache .. servlet init troubles
>> > >
>> > > I am having the biggest headache ever with this. When I start Tomcat
>> > >
>> > > 1) Why is my controller servlet always initialised twice?? That is,
>as
>> > > soon as all my logging has finished for one init, it all comes out
>> again
>> > a
>> > > second time!
>> > >
>> > > 2) In the init I get the following error when it tries to look at my
>> > JNDI
>> > > datasource...
>> > >
>> > > 2004-01-19 15:35:28,764 INFO
>> > > com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
>> > > dataSource: done
>> > >
>> > > 2004-01-19 15:35:28,764 ERROR
>> > > com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
>> Init
>> > > could not acquire connection from DataSource:
>> > > org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
>> of
>> > > class '&#

RE: Please help, I have a headache .. servlet init troubles

2004-01-20 Thread Edson Alves Pereira
Right, usually we get a dataSource in doGet or doPost method.

> --
> De:   Allistair Crossley[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  terça-feira, 20 de janeiro de 2004 9:22
> Para: Tomcat Users List
> Assunto:      RE: Please help, I have a headache .. servlet init troubles
> 
> I have solved the JNDI resource by removing the call to the Context out of
> the init method and into the classes that wish to connect. And yes I do
> use a JNDI properly as my application is working using
> dataSource.getConnection(). The only time my dataSource.getConnection does
> not work is when I try to get the JNDI resource in the servlet init
> method.
> 
> 
> 
> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: 20 January 2004 13:07
> To: 'Tomcat Users List'
> Subject: RE: Please help, I have a headache .. servlet init troubles
> 
> 
>   Tell us, if you use these parameters for a simple connection, do you
> really connect to SQLServer?  I think that your real problem is to create
> a
> JNDI datasource.
> 
> > --
> > De: Allistair Crossley[SMTP:[EMAIL PROTECTED]
> > Responder:  Tomcat Users List
> > Enviada:segunda-feira, 19 de janeiro de 2004 13:35
> > Para:   Tomcat Users List
> > Assunto:RE: Please help, I have a headache .. servlet init troubles
> > 
> > Hi,
> > 
> > Yes I have the jdbc driver in common/lib - like I say ... it "does"
> > connect but I do not know why it gives this error!
> > 
> > I just removed trying to get the JNDI data source in my controller
> servlet
> > init() and moved it to the classes that need a connection. There are now
> > no errors. Therefore it seems almost that init() is too quick to try and
> > get the JNDI resource before it has managed to load the servlet.xml??
> > 
> > Do you know why my servlet initalises twice? That's my remaining issue..
> > 
> > Cheers, ADC
> > 
> > -Original Message-
> > From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> > Sent: 19 January 2004 17:22
> > To: 'Tomcat Users List'
> > Subject: RE: Please help, I have a headache .. servlet init troubles
> > 
> > 
> > To solve your problem with JDBC Driver, you must put the JDBC driver
> > inside $TOMCAT_HOME/common/lib, try this first the other errors we will
> > see
> > if happens again.
> > 
> > > --
> > > De:   Allistair Crossley[SMTP:[EMAIL PROTECTED]
> > > Responder:Tomcat Users List
> > > Enviada:  segunda-feira, 19 de janeiro de 2004 12:56
> > > Para: TOMCAT USER (E-mail)
> > > Assunto:  Please help, I have a headache .. servlet init troubles
> > > 
> > > I am having the biggest headache ever with this. When I start Tomcat 
> > > 
> > > 1) Why is my controller servlet always initialised twice?? That is, as
> > > soon as all my logging has finished for one init, it all comes out
> again
> > a
> > > second time! 
> > > 
> > > 2) In the init I get the following error when it tries to look at my
> > JNDI
> > > datasource...
> > > 
> > > 2004-01-19 15:35:28,764 INFO
> > > com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
> > > dataSource: done
> > > 
> > > 2004-01-19 15:35:28,764 ERROR
> > > com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
> Init
> > > could not acquire connection from DataSource:
> > > org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
> of
> > > class '' for connect URL 'null', cause: null Cannot create JDBC driver
> > of
> > > class '' for connect URL 'null'
> > > 
> > > Yet shortly after it seems to have found my datasource perfectly ok
> > > because calls work...
> > > 
> > > 2004-01-19 15:36:44,828 DEBUG
> > >
> >
> com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow
> > > n Source) : CONNECTIOINIT
> > > [EMAIL PROTECTED]
> > > 
> > > My JNDI resouce is below (clearly a URL DOES exist).
> > > 
> > > Thank you all! ADC
> > > 
> > > -- snip --
> > > 
> > > 
> > >> > type="javax.sql.DataSource"/>
> > > 
> > >

RE: Please help, I have a headache .. servlet init troubles

2004-01-20 Thread Allistair Crossley
I have solved the JNDI resource by removing the call to the Context out of the init 
method and into the classes that wish to connect. And yes I do use a JNDI properly as 
my application is working using dataSource.getConnection(). The only time my 
dataSource.getConnection does not work is when I try to get the JNDI resource in the 
servlet init method.



-Original Message-
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 13:07
To: 'Tomcat Users List'
Subject: RE: Please help, I have a headache .. servlet init troubles


Tell us, if you use these parameters for a simple connection, do you
really connect to SQLServer?  I think that your real problem is to create a
JNDI datasource.

> --
> De:   Allistair Crossley[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  segunda-feira, 19 de janeiro de 2004 13:35
> Para: Tomcat Users List
> Assunto:  RE: Please help, I have a headache .. servlet init troubles
> 
> Hi,
> 
> Yes I have the jdbc driver in common/lib - like I say ... it "does"
> connect but I do not know why it gives this error!
> 
> I just removed trying to get the JNDI data source in my controller servlet
> init() and moved it to the classes that need a connection. There are now
> no errors. Therefore it seems almost that init() is too quick to try and
> get the JNDI resource before it has managed to load the servlet.xml??
> 
> Do you know why my servlet initalises twice? That's my remaining issue..
> 
> Cheers, ADC
> 
> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: 19 January 2004 17:22
> To: 'Tomcat Users List'
> Subject: RE: Please help, I have a headache .. servlet init troubles
> 
> 
>   To solve your problem with JDBC Driver, you must put the JDBC driver
> inside $TOMCAT_HOME/common/lib, try this first the other errors we will
> see
> if happens again.
> 
> > --
> > De: Allistair Crossley[SMTP:[EMAIL PROTECTED]
> > Responder:  Tomcat Users List
> > Enviada:segunda-feira, 19 de janeiro de 2004 12:56
> > Para:   TOMCAT USER (E-mail)
> > Assunto:Please help, I have a headache .. servlet init troubles
> > 
> > I am having the biggest headache ever with this. When I start Tomcat 
> > 
> > 1) Why is my controller servlet always initialised twice?? That is, as
> > soon as all my logging has finished for one init, it all comes out again
> a
> > second time! 
> > 
> > 2) In the init I get the following error when it tries to look at my
> JNDI
> > datasource...
> > 
> > 2004-01-19 15:35:28,764 INFO
> > com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
> > dataSource: done
> > 
> > 2004-01-19 15:35:28,764 ERROR
> > com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init
> > could not acquire connection from DataSource:
> > org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
> > class '' for connect URL 'null', cause: null Cannot create JDBC driver
> of
> > class '' for connect URL 'null'
> > 
> > Yet shortly after it seems to have found my datasource perfectly ok
> > because calls work...
> > 
> > 2004-01-19 15:36:44,828 DEBUG
> >
> com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow
> > n Source) : CONNECTIOINIT
> > [EMAIL PROTECTED]
> > 
> > My JNDI resouce is below (clearly a URL DOES exist).
> > 
> > Thank you all! ADC
> > 
> > -- snip --
> > 
> > 
> >  > type="javax.sql.DataSource"/>
> > 
> > 
> >   
> >   factory  
> > 
> > org.apache.commons.dbcp.BasicDataSourceFactory
> 
> > 
> >   
> > driverClassName
> > 
> > 
> > com.microsoft.jdbc.sqlserver.SQLServerDriver
> > 
> >  
> > url  
> > 
> > jdbc:microsoft:sqlserver://server:1433
> > 
> >   
> > username  
> > sa   
> >   

RE: Please help, I have a headache .. servlet init troubles

2004-01-20 Thread Edson Alves Pereira
Tell us, if you use these parameters for a simple connection, do you
really connect to SQLServer?  I think that your real problem is to create a
JNDI datasource.

> --
> De:   Allistair Crossley[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  segunda-feira, 19 de janeiro de 2004 13:35
> Para: Tomcat Users List
> Assunto:      RE: Please help, I have a headache .. servlet init troubles
> 
> Hi,
> 
> Yes I have the jdbc driver in common/lib - like I say ... it "does"
> connect but I do not know why it gives this error!
> 
> I just removed trying to get the JNDI data source in my controller servlet
> init() and moved it to the classes that need a connection. There are now
> no errors. Therefore it seems almost that init() is too quick to try and
> get the JNDI resource before it has managed to load the servlet.xml??
> 
> Do you know why my servlet initalises twice? That's my remaining issue..
> 
> Cheers, ADC
> 
> -Original Message-
> From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
> Sent: 19 January 2004 17:22
> To: 'Tomcat Users List'
> Subject: RE: Please help, I have a headache .. servlet init troubles
> 
> 
>   To solve your problem with JDBC Driver, you must put the JDBC driver
> inside $TOMCAT_HOME/common/lib, try this first the other errors we will
> see
> if happens again.
> 
> > --
> > De: Allistair Crossley[SMTP:[EMAIL PROTECTED]
> > Responder:  Tomcat Users List
> > Enviada:segunda-feira, 19 de janeiro de 2004 12:56
> > Para:   TOMCAT USER (E-mail)
> > Assunto:Please help, I have a headache .. servlet init troubles
> > 
> > I am having the biggest headache ever with this. When I start Tomcat 
> > 
> > 1) Why is my controller servlet always initialised twice?? That is, as
> > soon as all my logging has finished for one init, it all comes out again
> a
> > second time! 
> > 
> > 2) In the init I get the following error when it tries to look at my
> JNDI
> > datasource...
> > 
> > 2004-01-19 15:35:28,764 INFO
> > com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
> > dataSource: done
> > 
> > 2004-01-19 15:35:28,764 ERROR
> > com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init
> > could not acquire connection from DataSource:
> > org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
> > class '' for connect URL 'null', cause: null Cannot create JDBC driver
> of
> > class '' for connect URL 'null'
> > 
> > Yet shortly after it seems to have found my datasource perfectly ok
> > because calls work...
> > 
> > 2004-01-19 15:36:44,828 DEBUG
> >
> com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow
> > n Source) : CONNECTIOINIT
> > [EMAIL PROTECTED]
> > 
> > My JNDI resouce is below (clearly a URL DOES exist).
> > 
> > Thank you all! ADC
> > 
> > -- snip --
> > 
> > 
> >  > type="javax.sql.DataSource"/>
> > 
> > 
> >   
> >   factory  
> > 
> > org.apache.commons.dbcp.BasicDataSourceFactory
> 
> > 
> >   
> > driverClassName
> > 
> > 
> > com.microsoft.jdbc.sqlserver.SQLServerDriver
> > 
> >  
> > url  
> > 
> > jdbc:microsoft:sqlserver://server:1433
> > 
> >   
> > username  
> > sa   
> > 
> >   
> > password  
> > pass
> > 
> >   
> > maxActive  
> > 50
> > 
> >   
> >maxI

RE: Please help, I have a headache .. servlet init troubles

2004-01-20 Thread Edson Alves Pereira
Just for curiosity, try to put a breakpoint in your
IQActionServlet:init and tell us is the two callers are the same.

> --
> De:   Allistair Crossley[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  segunda-feira, 19 de janeiro de 2004 13:44
> Para: Tomcat Users List
> Assunto:      RE: Please help, I have a headache .. servlet init troubles
> 
> no, it's one host,
> 
> Cheers, ADC
> 
> 
> -Original Message-
> From: James Neville [mailto:[EMAIL PROTECTED]
> Sent: 19 January 2004 16:31
> To: Tomcat Users List
> Subject: Re: Please help, I have a headache .. servlet init troubles
> 
> 
> Allistair Crossley wrote:
> 
> >Do you know why my servlet initalises twice? That's my remaining issue..
> >
> If you are specifying multiple hosts, all running from the same appBase, 
> then each web application will be deployed to each host.
> If this is the case, run each host from a different appBase so that you 
> don't double deploy.
> 
> James.
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
>  
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


RE: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread Hume, John - NA US HQ Delray
Just a stab   Did you back up a copy of your application such that you
might have something like this?

/tomcat
  /webapps
/myapp
/myapp_bak
/ROOT
/...

Maybe Tomcat is attempting to load myapp_bak with default settings.


-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 10:57 AM
To: TOMCAT USER (E-mail)
Subject: Please help, I have a headache .. servlet init troubles


I am having the biggest headache ever with this. When I start Tomcat 

1) Why is my controller servlet always initialised twice?? That is, as soon
as all my logging has finished for one init, it all comes out again a second
time! 

2) In the init I get the following error when it tries to look at my JNDI
datasource...

2004-01-19 15:35:28,764 INFO
com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
dataSource: done

2004-01-19 15:35:28,764 ERROR
com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init
could not acquire connection from DataSource:
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
class '' for connect URL 'null', cause: null Cannot create JDBC driver of
class '' for connect URL 'null'

Yet shortly after it seems to have found my datasource perfectly ok because
calls work...

2004-01-19 15:36:44,828 DEBUG
com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknown
Source) : CONNECTIOINIT [EMAIL PROTECTED]

My JNDI resouce is below (clearly a URL DOES exist).

Thank you all! ADC

-- snip --





  
  factory  

org.apache.commons.dbcp.BasicDataSourceFactory

  
driverClassName


com.microsoft.jdbc.sqlserver.SQLServerDriver

 
url  

jdbc:microsoft:sqlserver://server:1433

  
username  
sa   

  
password  
pass

  
maxActive  
50

  
   maxIdle  
   10

  
   maxWait  
   1


  validationQuery
  SELECT 1 + 1

 
logAbandonedtrue
 
removeAbandonedtrue


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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

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



Re: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread James Neville
Allistair Crossley wrote:

no, it's one host,

Cheers, ADC

And one Connector element?
(commonly 8009 for CoyoteConnector and 8080 for standalone are defined 
in the default server.xml)
I'm purely clutching at straws here.

Maybe you could post your /WEB-INF/web.xml and the 
$CATALINA_HOME/conf/server.xml files?

James.

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


RE: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread Donie Kelly
I've seen this before but I can't remember the solution. Search the
archives.
Donie

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 16:45
To: Tomcat Users List
Subject: RE: Please help, I have a headache .. servlet init troubles

no, it's one host,

Cheers, ADC


-Original Message-
From: James Neville [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 16:31
To: Tomcat Users List
Subject: Re: Please help, I have a headache .. servlet init troubles


Allistair Crossley wrote:

>Do you know why my servlet initalises twice? That's my remaining issue..
>
If you are specifying multiple hosts, all running from the same appBase,
then each web application will be deployed to each host.
If this is the case, run each host from a different appBase so that you
don't double deploy.

James.




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




---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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

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



RE: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread Allistair Crossley
no, it's one host,

Cheers, ADC


-Original Message-
From: James Neville [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 16:31
To: Tomcat Users List
Subject: Re: Please help, I have a headache .. servlet init troubles


Allistair Crossley wrote:

>Do you know why my servlet initalises twice? That's my remaining issue..
>
If you are specifying multiple hosts, all running from the same appBase, 
then each web application will be deployed to each host.
If this is the case, run each host from a different appBase so that you 
don't double deploy.

James.




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



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



Re: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread James Neville
Allistair Crossley wrote:

Do you know why my servlet initalises twice? That's my remaining issue..

If you are specifying multiple hosts, all running from the same appBase, 
then each web application will be deployed to each host.
If this is the case, run each host from a different appBase so that you 
don't double deploy.

James.



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


RE: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread Allistair Crossley
Hi,

No but i do load on startup if that makes a difference?


iqController

com.comp.newmedia.intranet.iq.IQActionServlet

config
/WEB-INF/struts-config.xml


skin
default
   
1



Cheers, ADC


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 16:37
To: Tomcat Users List
Subject: RE: Please help, I have a headache .. servlet init troubles



Howdy,
Is the controller servlet declared twice in your web.xml?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 19, 2004 10:57 AM
>To: TOMCAT USER (E-mail)
>Subject: Please help, I have a headache .. servlet init troubles
>
>I am having the biggest headache ever with this. When I start Tomcat
>
>1) Why is my controller servlet always initialised twice?? That is, as
soon
>as all my logging has finished for one init, it all comes out again a
>second time!
>
>2) In the init I get the following error when it tries to look at my
JNDI
>datasource...
>
>2004-01-19 15:35:28,764 INFO
>com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
>dataSource: done
>
>2004-01-19 15:35:28,764 ERROR
>com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
Init
>could not acquire connection from DataSource:
>org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of
>class '' for connect URL 'null', cause: null Cannot create JDBC driver
of
>class '' for connect URL 'null'
>
>Yet shortly after it seems to have found my datasource perfectly ok
because
>calls work...
>
>2004-01-19 15:36:44,828 DEBUG
>com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unk
nown
>Source) : CONNECTIOINIT
[EMAIL PROTECTED]
>
>My JNDI resouce is below (clearly a URL DOES exist).
>
>Thank you all! ADC
>
>-- snip --
>
>
>   type="javax.sql.DataSource"/>
>
>   
>   
> factory
>
>org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
>   driverClassName
>
>   com.microsoft.jdbc.sqlserver.SQLServerDriver
>   
>   
>   url
>
>   jdbc:microsoft:sqlserver://server:1433
>   
>   
>   username
>   sa
>   
>   
>   password
>   pass
>   
>   
>   maxActive
>   50
>   
>   
>  maxIdle
>  10
>   
>   
>  maxWait
>  1
>   
>
>  validationQuery
>  SELECT 1 + 1
>
>
>logAbandonedtrue
>
>removeAbandonedtrue
>
>
>
>---
>QAS Ltd.
>Developers of QuickAddress Software
>http://www.qas.com";>www.qas.com
>Registered in England: No 2582055
>Registered in Australia: No 082 851 474
>---
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



RE: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread Shapira, Yoav

Howdy,
Is the controller servlet declared twice in your web.xml?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>Sent: Monday, January 19, 2004 10:57 AM
>To: TOMCAT USER (E-mail)
>Subject: Please help, I have a headache .. servlet init troubles
>
>I am having the biggest headache ever with this. When I start Tomcat
>
>1) Why is my controller servlet always initialised twice?? That is, as
soon
>as all my logging has finished for one init, it all comes out again a
>second time!
>
>2) In the init I get the following error when it tries to look at my
JNDI
>datasource...
>
>2004-01-19 15:35:28,764 INFO
>com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
>dataSource: done
>
>2004-01-19 15:35:28,764 ERROR
>com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
Init
>could not acquire connection from DataSource:
>org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver
of
>class '' for connect URL 'null', cause: null Cannot create JDBC driver
of
>class '' for connect URL 'null'
>
>Yet shortly after it seems to have found my datasource perfectly ok
because
>calls work...
>
>2004-01-19 15:36:44,828 DEBUG
>com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unk
nown
>Source) : CONNECTIOINIT
[EMAIL PROTECTED]
>
>My JNDI resouce is below (clearly a URL DOES exist).
>
>Thank you all! ADC
>
>-- snip --
>
>
>   type="javax.sql.DataSource"/>
>
>   
>   
> factory
>
>org.apache.commons.dbcp.BasicDataSourceFactory
>   
>   
>   driverClassName
>
>   com.microsoft.jdbc.sqlserver.SQLServerDriver
>   
>   
>   url
>
>   jdbc:microsoft:sqlserver://server:1433
>   
>   
>   username
>   sa
>   
>   
>   password
>   pass
>   
>   
>   maxActive
>   50
>   
>   
>  maxIdle
>  10
>   
>   
>  maxWait
>  1
>   
>
>  validationQuery
>  SELECT 1 + 1
>
>
>logAbandonedtrue
>
>removeAbandonedtrue
>
>
>
>---
>QAS Ltd.
>Developers of QuickAddress Software
>http://www.qas.com";>www.qas.com
>Registered in England: No 2582055
>Registered in Australia: No 082 851 474
>---
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread Allistair Crossley
Hi,

Yes I have the jdbc driver in common/lib - like I say ... it "does" connect but I do 
not know why it gives this error!

I just removed trying to get the JNDI data source in my controller servlet init() and 
moved it to the classes that need a connection. There are now no errors. Therefore it 
seems almost that init() is too quick to try and get the JNDI resource before it has 
managed to load the servlet.xml??

Do you know why my servlet initalises twice? That's my remaining issue..

Cheers, ADC

-Original Message-
From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 17:22
To: 'Tomcat Users List'
Subject: RE: Please help, I have a headache .. servlet init troubles


To solve your problem with JDBC Driver, you must put the JDBC driver
inside $TOMCAT_HOME/common/lib, try this first the other errors we will see
if happens again.

> --
> De:   Allistair Crossley[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  segunda-feira, 19 de janeiro de 2004 12:56
> Para: TOMCAT USER (E-mail)
> Assunto:  Please help, I have a headache .. servlet init troubles
> 
> I am having the biggest headache ever with this. When I start Tomcat 
> 
> 1) Why is my controller servlet always initialised twice?? That is, as
> soon as all my logging has finished for one init, it all comes out again a
> second time! 
> 
> 2) In the init I get the following error when it tries to look at my JNDI
> datasource...
> 
> 2004-01-19 15:35:28,764 INFO
> com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
> dataSource: done
> 
> 2004-01-19 15:35:28,764 ERROR
> com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init
> could not acquire connection from DataSource:
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
> class '' for connect URL 'null', cause: null Cannot create JDBC driver of
> class '' for connect URL 'null'
> 
> Yet shortly after it seems to have found my datasource perfectly ok
> because calls work...
> 
> 2004-01-19 15:36:44,828 DEBUG
> com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow
> n Source) : CONNECTIOINIT
> [EMAIL PROTECTED]
> 
> My JNDI resouce is below (clearly a URL DOES exist).
> 
> Thank you all! ADC
> 
> -- snip --
> 
> 
>type="javax.sql.DataSource"/>
> 
>   
> 
> factory  
>   
> org.apache.commons.dbcp.BasicDataSourceFactory
>   
> 
>   driverClassName
> 
>   
> com.microsoft.jdbc.sqlserver.SQLServerDriver
>   
>
>   url  
>   
> jdbc:microsoft:sqlserver://server:1433
>   
> 
>   username  
>   sa   
>   
> 
>   password  
>   pass
>   
> 
>   maxActive  
>   50
>   
> 
>  maxIdle  
>  10
>   
> 
>  maxWait  
>  1
>   
> 
>   validationQuery
>   SELECT 1 + 1
> 
>  
> logAbandonedtrue
>  
> removeAbandonedtrue
> 
> 
>  
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



RE: Please help, I have a headache .. servlet init troubles

2004-01-19 Thread Edson Alves Pereira
To solve your problem with JDBC Driver, you must put the JDBC driver
inside $TOMCAT_HOME/common/lib, try this first the other errors we will see
if happens again.

> --
> De:   Allistair Crossley[SMTP:[EMAIL PROTECTED]
> Responder:Tomcat Users List
> Enviada:  segunda-feira, 19 de janeiro de 2004 12:56
> Para: TOMCAT USER (E-mail)
> Assunto:  Please help, I have a headache .. servlet init troubles
> 
> I am having the biggest headache ever with this. When I start Tomcat 
> 
> 1) Why is my controller servlet always initialised twice?? That is, as
> soon as all my logging has finished for one init, it all comes out again a
> second time! 
> 
> 2) In the init I get the following error when it tries to look at my JNDI
> datasource...
> 
> 2004-01-19 15:35:28,764 INFO
> com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) :
> dataSource: done
> 
> 2004-01-19 15:35:28,764 ERROR
> com.qas.newmedia.intranet.iq.IQActionServlet.init(Unknown Source) : Init
> could not acquire connection from DataSource:
> org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
> class '' for connect URL 'null', cause: null Cannot create JDBC driver of
> class '' for connect URL 'null'
> 
> Yet shortly after it seems to have found my datasource perfectly ok
> because calls work...
> 
> 2004-01-19 15:36:44,828 DEBUG
> com.qas.newmedia.intranet.iq.base.navigation.NavigationManager.init(Unknow
> n Source) : CONNECTIOINIT
> [EMAIL PROTECTED]
> 
> My JNDI resouce is below (clearly a URL DOES exist).
> 
> Thank you all! ADC
> 
> -- snip --
> 
> 
>type="javax.sql.DataSource"/>
> 
>   
> 
> factory  
>   
> org.apache.commons.dbcp.BasicDataSourceFactory
>   
> 
>   driverClassName
> 
>   
> com.microsoft.jdbc.sqlserver.SQLServerDriver
>   
>
>   url  
>   
> jdbc:microsoft:sqlserver://server:1433
>   
> 
>   username  
>   sa   
>   
> 
>   password  
>   pass
>   
> 
>   maxActive  
>   50
>   
> 
>  maxIdle  
>  10
>   
> 
>  maxWait  
>  1
>   
> 
>   validationQuery
>   SELECT 1 + 1
> 
>  
> logAbandonedtrue
>  
> removeAbandonedtrue
> 
> 
>  
> ---
> QAS Ltd.
> Developers of QuickAddress Software
> http://www.qas.com";>www.qas.com
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


Re: Please help: error: The requested resource (/stuff/index.html) is not available.

2004-01-18 Thread Tim Funk
You need a webapp called stuff. OR you need to move stuff/index.html under
webapps/ROOT/stuff/incdex.html
In either case, please first read the docs. Also Sun's webservices developer 
kit would also be very helpful.

-Tim

Susan Tahmoresi wrote:
Hi All,

I am new to tomcat and just installed Jakarta.tomcat 5.0.16. I am able to start up and shut down the web server successfully.

I tried to write a simple HTML to print "hello world".
The HTML program alone is working fine offline but when I try to link it =
to webserver I get this error message:
The requested resource (/stuff/index.html) is not available.
the index.html is located at webapps/stuff/index.html.

I am setting CATALINA_HOME and JAVA_HOME at the beginning of startup.bat and am using Windows XP.

I shut down and restart webserver several times. It looks like that it doesn't recognize Catalina home.

Any help is much appreciated.


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


RE: Please help me for "jk_nt_service" problem

2004-01-12 Thread Larry Isaacs
See the note at the bottom of this page:

http://www.apache.org/dist/jakarta/tomcat-3/bin/win32/i386/

Cheers,
Larry

> -Original Message-
> From: Dreamy Wu [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, January 11, 2004 4:49 AM
> To: [EMAIL PROTECTED]
> Subject: Please help me for "jk_nt_service" problem 
> 
> 
> Hi :
> 
> Please help me for "jk_nt_service" problem .
> 
> Description :
> [I followed your guiding : 
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-> howto.html]
> After I install JAVA and Jakarta, I run "jk_nt_service -I 
> Jakarta wrapper.properties".
> It's OK, and I ran "jk_nt_service -s Jakarta".
> It shows :
> "C:\jakarta-tomcat-3.3.1a\bin\win32\i386>jk_nt_service -s Jakarta
> Asked (and given) winsock 1.1
> Starting Jakarta.
> Jakarta failed to start."
> 
> My env :
> JAVA_HOME=C:\Program Files\Java\j2re1.4.2_01
> TOMCAT_HOME=C:\jakarta-tomcat-3.3.1a
> 
> 
> "JVM.STDerr" shows below :
> java.lang.NoClassDefFoundError: $(wrapper/jvm/options)
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> $(wrapper/jvm/options)
> 
> Could you please help me for this issue ?
> Thanks.
> 
> *
> Dreamy Wu
> Professional Service Dept. 
> ADVANCED SYSTEM & STORAGE CORP.
> TEL: +886-2-8792-0108 #812
> Mobile : 0913391369
> FAX: +886-2-8792-0109
> *
> 

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



Re: Please help me for "jk_nt_service" problem

2004-01-11 Thread Bill Barker
It looks like you commented out the line:

"Dreamy Wu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hi :

Please help me for "jk_nt_service" problem .
  wrapper.jvm.options=
in your wrapper.properties file.

Description :
[I followed your guiding :
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/NT-Service-howto.html]
After I install JAVA and Jakarta, I run "jk_nt_service -I Jakarta
wrapper.properties".
It's OK, and I ran "jk_nt_service -s Jakarta".
It shows :
"C:\jakarta-tomcat-3.3.1a\bin\win32\i386>jk_nt_service -s Jakarta
Asked (and given) winsock 1.1
Starting Jakarta.
Jakarta failed to start."

My env :
JAVA_HOME=C:\Program Files\Java\j2re1.4.2_01
TOMCAT_HOME=C:\jakarta-tomcat-3.3.1a


"JVM.STDerr" shows below :
java.lang.NoClassDefFoundError: $(wrapper/jvm/options)
Exception in thread "main" java.lang.NoClassDefFoundError:
$(wrapper/jvm/options)

Could you please help me for this issue ?
Thanks.

*
Dreamy Wu
Professional Service Dept.
ADVANCED SYSTEM & STORAGE CORP.
TEL: +886-2-8792-0108 #812
Mobile : 0913391369
FAX: +886-2-8792-0109
*




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



Re: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Filip Hanik
I'm working on a JDK1.3 version of the clustering, hopefully the next stable
release

Filip
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 22, 2003 7:33 AM
Subject: RE: Please Help!! Tomcat 5 Clustering


Yoav,

You've been an incredible help.  Thank you very much.  It seems my only
options are to skip the clustering or move to 1.4 (I don't know how long it
would take Filip to get clustering working on 1.3 but I doubt I have the
time).

Thanks again,

Matt

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Mon 22/12/2003 10:12 AM
To: Tomcat Users List
Cc:
Subject: RE: Please Help!! Tomcat 5 Clustering




Howdy,

>Thank you very much for your response.  Unfortunately we are using jdk
1.3.
>Do you know if it is possible for me to simply add the charsequence
class
>into my jar?  It will be a very big headache to move to 1.4.

I do happen to know that no it's not possible for you to add that class
(it's an interface, and a number of the core JDK classes are retrofitted
to implement it) to your jar.

It might be possible, though Filip would have to chime in and want to do
the work (unless you do it yourself), to make tomcat's clustering code
work on JDK 1.3.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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





This message is for the designated recipient only and may contain
privileged, proprietary, or otherwise private information.  If you have
received it in error, please notify the sender immediately and delete the
original.  Any other use of the email by you is prohibited.








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


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



RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Shapira, Yoav

Howdy,

>You've been an incredible help.  Thank you very much.  It seems my only
>options are to skip the clustering or move to 1.4 (I don't know how
long it
>would take Filip to get clustering working on 1.3 but I doubt I have
the
>time).

No problem, glad to help.

I wouldn't overestimate the complexity of the patch to the clustering
code: the CharSequence interface isn't earth-shattering, it's methods
are few, simple, and previously available.  I bet a code change to
compile and run under JDK 1.3 wouldn't be that hard.  That said, I
haven't looked at the code, so I can't tell for sure.

I also don't know what your timeline is, i.e. if you can wait for a
patch and a new release.  Alternatively, I don't know (based on your
organization) if you or your client would be willing to run with a
patched, unofficial version of tomcat.

So yeah, the bottom line might be that even though this is not a
complicated patch, you have to move to JDK 1.4.  It should not be a
difficult move though, unless you're doing some crazy XML stuff ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread matthew . rapoport
Yoav,
 
You've been an incredible help.  Thank you very much.  It seems my only options are to 
skip the clustering or move to 1.4 (I don't know how long it would take Filip to get 
clustering working on 1.3 but I doubt I have the time).
 
Thanks again,
 
Matt

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Mon 22/12/2003 10:12 AM 
To: Tomcat Users List 
Cc: 
    Subject: RE: Please Help!! Tomcat 5 Clustering




Howdy,

>Thank you very much for your response.  Unfortunately we are using jdk
1.3.
>Do you know if it is possible for me to simply add the charsequence
class
>into my jar?  It will be a very big headache to move to 1.4.

I do happen to know that no it's not possible for you to add that class
(it's an interface, and a number of the core JDK classes are retrofitted
to implement it) to your jar.

It might be possible, though Filip would have to chime in and want to do
the work (unless you do it yourself), to make tomcat's clustering code
work on JDK 1.3.

Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


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





This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of the 
email by you is prohibited.

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

RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Shapira, Yoav

Howdy,
I added a note about the JDK 1.4 requirement to the clustering how-to
page.  It'll show up next time we refresh the site.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Sunday, December 21, 2003 10:01 PM
>To: [EMAIL PROTECTED]
>Subject: Please Help!! Tomcat 5 Clustering
>
>Hi All,
>
>I am a Tomcat newbie running Tomcat 5 and I would like to implement
>clustering between 2 servers.  I followed the instructions given at
>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
>
>
>When I uncomment the cluster tag in server.xml and the replication
valve
>(as per the instructions) I got the following error upon starting up
>Tomcat.  Does anyone know why???
>
>Thank You,
>
>Matt
>
>[ERROR] Digester - -Begin event threw error
>java/lang/CharSequence>java.lang.NoClassDefFoundError: java/lang/
>CharSequence
>at java.lang.Class.newInstance0(Native Method)
>at java.lang.Class.newInstance(Class.java:232)
>at
>org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav
a:25
>3)
>at org.apache.commons.digester.Rule.begin(Rule.java:200)
>at
>org.apache.commons.digester.Digester.startElement(Digester.java:1273)
>at
>org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester
.jav
>a:112)
>at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>Source)
>at
>org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknow
n
>Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
Unkn
>own Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
>cher.dispatch(Unknown Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own
>Source)
>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
>at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>Source)
>at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
>at java.lang.reflect.Method.invoke(Native Method)
>at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
>at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
>
>
>
>
>This message is for the designated recipient only and may contain
>privileged, proprietary, or otherwise private information.  If you have
>received it in error, please notify the sender immediately and delete
the
>original.  Any other use of the email by you is prohibited.




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Shapira, Yoav

Howdy,

>Thank you very much for your response.  Unfortunately we are using jdk
1.3.
>Do you know if it is possible for me to simply add the charsequence
class
>into my jar?  It will be a very big headache to move to 1.4.

I do happen to know that no it's not possible for you to add that class
(it's an interface, and a number of the core JDK classes are retrofitted
to implement it) to your jar.

It might be possible, though Filip would have to chime in and want to do
the work (unless you do it yourself), to make tomcat's clustering code
work on JDK 1.3.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread matthew . rapoport
Thank you very much for your response.  Unfortunately we are using jdk 1.3.  Do you 
know if it is possible for me to simply add the charsequence class into my jar?  It 
will be a very big headache to move to 1.4.
 
Thanks,
 
Matt

-Original Message- 
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Mon 22/12/2003 9:27 AM 
To: Tomcat Users List 
Cc: 
Subject: RE: Please Help!! Tomcat 5 Clustering




Howdy,
Looks like the Cluster code requires JDK 1.4, as java.lang.CharSequence
is new in JDK 1.4.  Are you running a 1.4 JDK and still getting this
error?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Sunday, December 21, 2003 10:01 PM
>To: [EMAIL PROTECTED]
>Subject: Please Help!! Tomcat 5 Clustering
>
>Hi All,
>
>I am a Tomcat newbie running Tomcat 5 and I would like to implement
>clustering between 2 servers.  I followed the instructions given at
>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
><http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html>
>
>When I uncomment the cluster tag in server.xml and the replication
valve
>(as per the instructions) I got the following error upon starting up
>Tomcat.  Does anyone know why???
>
>Thank You,
>
>Matt
>
>[ERROR] Digester - -Begin event threw error
>java/lang/CharSequence>java.lang.NoClassDefFoundError: java/lang/
>CharSequence
>at java.lang.Class.newInstance0(Native Method)
>at java.lang.Class.newInstance(Class.java:232)
>at
>org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav
a:25
>3)
>at org.apache.commons.digester.Rule.begin(Rule.java:200)
>at
>org.apache.commons.digester.Digester.startElement(Digester.java:1273)
>at
>org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester
.jav
>a:112)
>at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>Source)
>at
>org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknow
n
>Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
Unkn
>own Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
>cher.dispatch(Unknown Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own
>Source)
>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
>at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>Source)
>at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
>at java.lang.reflect.Method.invoke(Native Method)
>at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
>at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
>
>
>
>
>This message is for the designated recipient only and may contain
>privileged, proprietary, or otherwise private information.  If you have
>received it in error, please notify the sender immediately and delete
the
>original.  Any other use of the email by you is prohibited.




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary and/or 
privileged.  This e-mail is intended only for the individual(s) to whom it is 
addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  
If you are not the(an) intended recipient, please immediately delete this e-mail from 
your computer system and notify the sender.  Thank you.


--

RE: Please Help!! Tomcat 5 Clustering

2003-12-22 Thread Shapira, Yoav

Howdy,
Looks like the Cluster code requires JDK 1.4, as java.lang.CharSequence
is new in JDK 1.4.  Are you running a 1.4 JDK and still getting this
error?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]
>Sent: Sunday, December 21, 2003 10:01 PM
>To: [EMAIL PROTECTED]
>Subject: Please Help!! Tomcat 5 Clustering
>
>Hi All,
>
>I am a Tomcat newbie running Tomcat 5 and I would like to implement
>clustering between 2 servers.  I followed the instructions given at
>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html
>
>
>When I uncomment the cluster tag in server.xml and the replication
valve
>(as per the instructions) I got the following error upon starting up
>Tomcat.  Does anyone know why???
>
>Thank You,
>
>Matt
>
>[ERROR] Digester - -Begin event threw error
>java/lang/CharSequence>java.lang.NoClassDefFoundError: java/lang/
>CharSequence
>at java.lang.Class.newInstance0(Native Method)
>at java.lang.Class.newInstance(Class.java:232)
>at
>org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.jav
a:25
>3)
>at org.apache.commons.digester.Rule.begin(Rule.java:200)
>at
>org.apache.commons.digester.Digester.startElement(Digester.java:1273)
>at
>org.apache.catalina.util.CatalinaDigester.startElement(CatalinaDigester
.jav
>a:112)
>at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
>Source)
>at
>org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknow
n
>Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
Unkn
>own Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spat
>cher.dispatch(Unknown Source)
>at
>org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn
own
>Source)
>at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
>Source)
>at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
>at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
>Source)
>at
org.apache.commons.digester.Digester.parse(Digester.java:1548)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:515)
>at org.apache.catalina.startup.Catalina.load(Catalina.java:553)
>at java.lang.reflect.Method.invoke(Native Method)
>at
org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
>at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:397)
>
>
>
>
>This message is for the designated recipient only and may contain
>privileged, proprietary, or otherwise private information.  If you have
>received it in error, please notify the sender immediately and delete
the
>original.  Any other use of the email by you is prohibited.




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: Please help - FileNotFoundException

2003-12-17 Thread Shapira, Yoav

Howdy,
Yes: don't use a FileInputStream.  Get the resource from the servlet
context (ServletContext#getResourceAsStream).

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Teja Jo [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, December 17, 2003 8:37 AM
>To: [EMAIL PROTECTED]
>Subject: Please help - FileNotFoundException
>
>Hello everyone,
>
>I am parsing a xml file using FileInputStream a file from a servlet.The
>file is in the same directory as the servlet.Yet it is giving me a
>"FileNotFoundException".Can anyone tell me some solution for this.
>
>Regards,
>Tejashri.
>
>
>-
>Do you Yahoo!?
>Free Pop-Up Blocker - Get it now



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: PLEASE HELP! How can I make Tomcat see DB2 jdbc driver?

2003-12-04 Thread Brent Sims
I've run into this before.  Although every document I've read refers to the driver as 
"COM.ibm.db2.jdbc.app.DB2Driver," in actuality the package name is "com.blah.blah."  
Change your upper case COM to lower case and it should work.

>>> [EMAIL PROTECTED] 12/3/2003 12:13:59 PM >>>
hiya,

try renaming the driver to db2java.jar

hth
JasonG

> -Original Message-
> From:Sarah Zou [SMTP:[EMAIL PROTECTED]
> Sent:Thursday,4 December 2003 7:09
> To:[EMAIL PROTECTED]
> Subject:PLEASE HELP! How can I make Tomcat see DB2 jdbc driver?
> 
> Hi All,
>I am using Tomcat 4.1.29 and DB2 8.1.  I try to use the servlet 
> below to see if it can find DB2 jdbc driver:
> public class Test extends HttpServlet {
> 
> public void init(ServletConfig config) throws ServletException
> { super.init(config); }
> 
> public void service(HttpServletRequest request, HttpServletResponse 
> response)
> {
>try{
>Class.forName ("COM.ibm.db2.jdbc.app.DB2Driver").newInstance ();
>} catch (Exception e) {
> System.err.println ("\n  Error loading DB2 Driver...\n" + e);
>}
>}
> }
> 
> I have tried to put db2java.zip in Tomcat common\lib or 
> webapp\web-inf\lib.  Also I tried to add db2java.zip  to "set classpath"
> in 
> catalina.bat in Tomcat bin.   It didnot work. 
> Your help will be very much appreciated.
> 
> Sarah
> 
> 
> 
> 
> 
> -
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

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





RE: PLEASE HELP! How can I make Tomcat see DB2 jdbc driver?

2003-12-04 Thread Gray, Jason
hiya,

try renaming the driver to db2java.jar

hth
JasonG

> -Original Message-
> From: Sarah Zou [SMTP:[EMAIL PROTECTED]
> Sent: Thursday,4 December 2003 7:09
> To:   [EMAIL PROTECTED]
> Subject:  PLEASE HELP! How can I make Tomcat see DB2 jdbc driver?
> 
> Hi All,
>I am using Tomcat 4.1.29 and DB2 8.1.  I try to use the servlet 
> below to see if it can find DB2 jdbc driver:
> public class Test extends HttpServlet {
> 
> public void init(ServletConfig config) throws ServletException
> { super.init(config); }
> 
> public void service(HttpServletRequest request, HttpServletResponse 
> response)
> {
>try{
>Class.forName ("COM.ibm.db2.jdbc.app.DB2Driver").newInstance ();
>} catch (Exception e) {
> System.err.println ("\n  Error loading DB2 Driver...\n" + e);
>}
>}
> }
> 
> I have tried to put db2java.zip in Tomcat common\lib or 
> webapp\web-inf\lib.  Also I tried to add db2java.zip  to "set classpath"
> in 
> catalina.bat in Tomcat bin.   It didnot work. 
> Your help will be very much appreciated.
> 
> Sarah
> 
> 
> 
> 
> 
> -
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now

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



Re: PLEASE HELP! How can I make Tomcat see DB2 jdbc driver?

2003-12-03 Thread Freek Woerts
Hello Sarah,

See:
http://www.cs.wisc.edu/~dbbook/openAccess/thirdEdition/DB2/Database%20Web%20Server%20Software%20Install%20Guide.htm
It works also with DB2 UDB 8.1

Greetings,
Freek.

- Original Message - 
From: "Sarah Zou" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 03, 2003 9:09 PM
Subject: PLEASE HELP! How can I make Tomcat see DB2 jdbc driver?


> Hi All,
>I am using Tomcat 4.1.29 and DB2 8.1.  I try to use the servlet
> below to see if it can find DB2 jdbc driver:
> public class Test extends HttpServlet {
>
> public void init(ServletConfig config) throws ServletException
> { super.init(config); }
>
> public void service(HttpServletRequest request, HttpServletResponse
> response)
> {
>try{
>Class.forName ("COM.ibm.db2.jdbc.app.DB2Driver").newInstance ();
>} catch (Exception e) {
> System.err.println ("\n  Error loading DB2 Driver...\n" + e);
>}
>}
> }
>
> I have tried to put db2java.zip in Tomcat common\lib or
> webapp\web-inf\lib.  Also I tried to add db2java.zip  to "set classpath"
in
> catalina.bat in Tomcat bin.   It didnot work.
> Your help will be very much appreciated.
>
> Sarah
>
>
>
>
>
> -
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now


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



Re: PLEASE HELP! How can I make Tomcat see DB2 jdbc driver?

2003-12-03 Thread Ilari Kontinen
ke, 2003-12-03 kello 22:09, Sarah Zou wrote:
> Hi All,
>I am using Tomcat 4.1.29 and DB2 8.1.  I try to use the servlet 
> below to see if it can find DB2 jdbc driver:
> ...
> I have tried to put db2java.zip in Tomcat common\lib or 
> webapp\web-inf\lib.  Also I tried to add db2java.zip  to "set classpath" in 
> catalina.bat in Tomcat bin.   It didnot work. 
> Your help will be very much appreciated.

Tomcat will only look for .jar-packages, so change the type of the
package, and place it in one or the other directory.


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



RE: Please Help: Inconsistent Load Balancing info mod_jk2

2003-12-03 Thread Asif Chowdhary
Have not tested to that extent yet

-Original Message-
From: Marco Manini [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 5:27 AM
To: Tomcat Users List
Subject: Re: Please Help: Inconsistent Load Balancing info mod_jk2


Hi,
i'm using mod_jk2 for load balancing purpose and I have a problem in fail
over scenario.
I described this scenario in the bugs database:
http://issues.apache.org/bugzilla/show_bug.cgi?id=24882

Can you tell me if you have a similar behavior please?
Thanks!

Marco

- Original Message -
From: "Asif Chowdhary" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 6:52 PM
Subject: RE: Please Help: Inconsistent Load Balancing info mod_jk2


Thank you

-Original Message-
From: David O'Brien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 12:48 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Please Help: Inconsistent Load Balancing info mod_jk2


Higher the number ... More Hits

I have one worker at lb_factor=4 and one at lb_factor=8 and the
distribution if I have
150 sessions active the server with lb_factor=4 has 49 and the server with
lb_factor=8 has 101

This can be seen at @ http://www.nacrraware.net/cluster/

-Dave




At 10:32 AM 12/2/2003, Asif Chowdhary wrote:
>The apache documentation say that higher the number
>the greater the number of requests which tomcat will receive.
>
>The tomcat definitive Guide from orielly says that the
>lower the number the greater the number of requests
>a tomcat instance will receive.
>
>What is correct?
>
>Which instance will get more requests?
>First or Second
>
>
>#First instance of tomcat in workers2.properties
>
>lb_factor = 10
>
>#Second instance of tomcat in workers2.properties
>
>lb_factor = 20
>
>
>Thanks
>
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


David G. O'Brien
Web Services Coordinator / Systems Administrator

NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax

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




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


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



Re: Please Help: Inconsistent Load Balancing info mod_jk2

2003-12-03 Thread Marco Manini
Hi,
i'm using mod_jk2 for load balancing purpose and I have a problem in fail
over scenario.
I described this scenario in the bugs database:
http://issues.apache.org/bugzilla/show_bug.cgi?id=24882

Can you tell me if you have a similar behavior please?
Thanks!

Marco

- Original Message -
From: "Asif Chowdhary" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 6:52 PM
Subject: RE: Please Help: Inconsistent Load Balancing info mod_jk2


Thank you

-Original Message-
From: David O'Brien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 12:48 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Please Help: Inconsistent Load Balancing info mod_jk2


Higher the number ... More Hits

I have one worker at lb_factor=4 and one at lb_factor=8 and the
distribution if I have
150 sessions active the server with lb_factor=4 has 49 and the server with
lb_factor=8 has 101

This can be seen at @ http://www.nacrraware.net/cluster/

-Dave




At 10:32 AM 12/2/2003, Asif Chowdhary wrote:
>The apache documentation say that higher the number
>the greater the number of requests which tomcat will receive.
>
>The tomcat definitive Guide from orielly says that the
>lower the number the greater the number of requests
>a tomcat instance will receive.
>
>What is correct?
>
>Which instance will get more requests?
>First or Second
>
>
>#First instance of tomcat in workers2.properties
>
>lb_factor = 10
>
>#Second instance of tomcat in workers2.properties
>
>lb_factor = 20
>
>
>Thanks
>
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


David G. O'Brien
Web Services Coordinator / Systems Administrator

NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax

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




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



RE: Please Help: Inconsistent Load Balancing info mod_jk2

2003-12-02 Thread Asif Chowdhary
Thank you

-Original Message-
From: David O'Brien [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 12:48 PM
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Please Help: Inconsistent Load Balancing info mod_jk2


Higher the number ... More Hits

I have one worker at lb_factor=4 and one at lb_factor=8 and the 
distribution if I have
150 sessions active the server with lb_factor=4 has 49 and the server with 
lb_factor=8 has 101

This can be seen at @ http://www.nacrraware.net/cluster/

-Dave




At 10:32 AM 12/2/2003, Asif Chowdhary wrote:
>The apache documentation say that higher the number
>the greater the number of requests which tomcat will receive.
>
>The tomcat definitive Guide from orielly says that the
>lower the number the greater the number of requests
>a tomcat instance will receive.
>
>What is correct?
>
>Which instance will get more requests?
>First or Second
>
>
>#First instance of tomcat in workers2.properties
>
>lb_factor = 10
>
>#Second instance of tomcat in workers2.properties
>
>lb_factor = 20
>
>
>Thanks
>
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


David G. O'Brien
Web Services Coordinator / Systems Administrator

NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax

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



Re: Please Help: Inconsistent Load Balancing info mod_jk2

2003-12-02 Thread David O'Brien
Higher the number ... More Hits

I have one worker at lb_factor=4 and one at lb_factor=8 and the 
distribution if I have
150 sessions active the server with lb_factor=4 has 49 and the server with 
lb_factor=8 has 101

This can be seen at @ http://www.nacrraware.net/cluster/

-Dave



At 10:32 AM 12/2/2003, Asif Chowdhary wrote:
The apache documentation say that higher the number
the greater the number of requests which tomcat will receive.
The tomcat definitive Guide from orielly says that the
lower the number the greater the number of requests
a tomcat instance will receive.
What is correct?

Which instance will get more requests?
First or Second
#First instance of tomcat in workers2.properties

lb_factor = 10

#Second instance of tomcat in workers2.properties

lb_factor = 20

Thanks





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


David G. O'Brien
Web Services Coordinator / Systems Administrator
NACCRRA
The Nation's Network of Child Care Resource & Referral
1319 F Street NW, Suite 500
Washington, DC 20004
(202) 393-5501 ext. 113
(202) 393-1109 fax


Re: Please Help to compile mod_jk2 on AIX

2003-12-02 Thread Christopher Schultz
Jose,

>>These all seem to be warnings, not errors. Does the build succed in
>>creating an object file?
>
Yes object file is created.
Okay, I think you're safe ignoring those warnings, then.

Are you using apxs to create an Apache DSO? If so, the file 
"apache-2.0/mod_jk.la" should exist (or apache-1.3/mod_jk.so for Apache 
1.3). You can simply copy it to your Apache modules directory. (Sorry, 
these are for mod_jk... mod_jk2 is likely to have the filenames slightly 
different).

Basically, you're looking for mod_jk.la for Apache 2.0 and mod_jk.so for 
Apache 1.3.

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


Re: Please Help to compile mod_jk2 on AIX

2003-12-02 Thread jose
Yes object file is created.


- Original Message - 
From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 4:28 AM
Subject: Re: Please Help to compile mod_jk2 on AIX


> Jose,
> 
> > Please, i have tried to compile hundred of times
> > jakarta-tomcat-connectors-4.1.29-src and
> > jakarta-tomcat-connectors-jk2-2.0.2-src, but it's impossible. There
> > are a lot of errors during compilation.
> 
> These all seem to be warnings, not errors. Does the build succed in
> creating an object file?
> 
> -chris
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: Please Help to compile mod_jk2 on AIX

2003-12-02 Thread jose
What is "resources dir" ? I don't find that directory.

- Original Message - 
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 02, 2003 4:33 AM
Subject: Re: Please Help to compile mod_jk2 on AIX


> I just ran into the same problem.
> I had to cd into the resources dir and run ant from there first.
> Once that build completed, I CDed back up and ran ant again. It finished 
> sucessfully.
> 
> -Ben
> 
> 
> On Monday 01 December 2003 10:28 pm, you wrote:
> > Jose,
> >
> > > Please, i have tried to compile hundred of times
> > > jakarta-tomcat-connectors-4.1.29-src and
> > > jakarta-tomcat-connectors-jk2-2.0.2-src, but it's impossible. There
> > > are a lot of errors during compilation.
> >
> > These all seem to be warnings, not errors. Does the build succed in
> > creating an object file?
> >
> > -chris
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: Please Help to compile mod_jk2 on AIX

2003-12-01 Thread Ben Souther
I just ran into the same problem.
I had to cd into the resources dir and run ant from there first.
Once that build completed, I CDed back up and ran ant again. It finished 
sucessfully.

-Ben


On Monday 01 December 2003 10:28 pm, you wrote:
> Jose,
>
> > Please, i have tried to compile hundred of times
> > jakarta-tomcat-connectors-4.1.29-src and
> > jakarta-tomcat-connectors-jk2-2.0.2-src, but it's impossible. There
> > are a lot of errors during compilation.
>
> These all seem to be warnings, not errors. Does the build succed in
> creating an object file?
>
> -chris
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: Please Help to compile mod_jk2 on AIX

2003-12-01 Thread Christopher Schultz
Jose,

Please, i have tried to compile hundred of times
jakarta-tomcat-connectors-4.1.29-src and
jakarta-tomcat-connectors-jk2-2.0.2-src, but it's impossible. There
are a lot of errors during compilation.
These all seem to be warnings, not errors. Does the build succed in
creating an object file?
-chris

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


Re: Please Help

2003-12-01 Thread Andoni
Have you tried removing the connector line from server.xml?

then tried going direct to Tomcat on the port 8080 or whatever it is set to
in the Tomcat Connector on your machine (in server.xml)

This is a JK problem so try to remove it from the Equation and make sure the
rest works.

what did you change or what changed before this started happening?

Andoni.


- Original Message -
From: "Yuval Zantkeren" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 5:07 PM
Subject: Please Help



why I'm getting this error :
01/12/2003 18:23:27 org.apache.jk.server.JkCoyoteHandler action
INFO: RESET

Which also causing my tomcat not to serve any more.

Regards,

Yuval Zantkeren

Domain The Net Technologies Ltd.
81 Sokolov St.
Ramat-Hasharon
Israel 47238
Tel: 972-3-7600500
Fax: 972-3-7600505
www.DomainTheNet.com

“This email message and any attachments hereto are intended only for use by
the addressee(s) named above, and may contain legally privileged and/or
confidential information. If you are not the intended addressee, you are
hereby kindly notified that any dissemination, distribution or copying of
this email and any attachments hereto is strictly prohibited. If you have
received this email in error, kindly delete it from your computer system,
and notify us at the telephone number or email address appearing above.
Thank you"



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



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



Re: Please help me in my problem...

2003-11-10 Thread adriacom6340
I got similar problems when I saved the server.xml with non standard ascii 
chars.



Scrive Steven Ang <[EMAIL PROTECTED]>:

> Hello, I need some help in configurating tomcat server.  I'm doing a 
> JSP project, I have read some documentation about tomcat and it states 
> that i need to add some line in %CATALINA_HOME%/conf/server.xml
>  
>  crossContext="true"/>
>  
> but after i save the server.xml and run start tomcat, i got some error 
> message in console.  I don;t know why.  And also 
> http://localhost:8080/thesis/hello.jsp returns and error message.  here 
> are my source code of hello.jsp
>  
>   
>   
>HI
>   
>   
>  
> here are my software and hardware information
>   WINDOWS XP
>   JAVA SDK 1.4.2
>   TOMCAT 4.1.24
>   Pentium III 1G
>   128MB
>   20 GB Hard Drive
>  
> Please help me
>  
> Thanks
> 
> 




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



Re: Please help me in my problem...

2003-11-10 Thread Samuel Le Berrigaud
If you don't say which error message you got it will be a little difficult !

SaM

Steven Ang wrote:

>Hello, I need some help in configurating tomcat server.  I'm doing a 
>JSP project, I have read some documentation about tomcat and it states 
>that i need to add some line in %CATALINA_HOME%/conf/server.xml
> 
>crossContext="true"/>
> 
>but after i save the server.xml and run start tomcat, i got some error 
>message in console.  I don;t know why.  And also 
>http://localhost:8080/thesis/hello.jsp returns and error message.  here 
>are my source code of hello.jsp
> 
>  
>  
>   HI
>  
>  
> 
>here are my software and hardware information
>  WINDOWS XP
>  JAVA SDK 1.4.2
>  TOMCAT 4.1.24
>  Pentium III 1G
>  128MB
>  20 GB Hard Drive
> 
>Please help me
> 
>Thanks
>
>
>  
>


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



Re: Please help - Unable to create mod_jk.so connector4.1.27 , Apache 2.0.47

2003-09-19 Thread Bill Barker
There is an extra ';' on one line, that some compilers don't like.  It's at
or near the line number given, so just edit the file and delete it.

"Satya Narayan Dash" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi All,
>
> I am unable to create mod_jk.so with
> jakarta-tomcat-connectors-4.1.27 and Apache 2.0.47.
>
> In the last few lines it is throwing some errors. But I do not
> what I missed.
>
> My Environment:
> ---
> Red Hat Linux 7.2; JDK - 1.4.0
>
> What I did:
> --
>
> 1. Installed Apache 2.0.47 and it runs fine.
>
> 2. Took the src of jakarta-tomcat-connectors-4.1.27 and followed
> the following steps.
>
> i) $ ./buildconf.sh
>
>
> libtoolize --force --automake --copy
> aclocal
> automake -a --foreign -i --copy
> automake: configure.in: installing
> `scripts/build/unix/install-sh'
> automake: configure.in: installing
> `scripts/build/unix/mkinstalldirs'
> automake: configure.in: installing `scripts/build/unix/missing'
> autoconf
> configure.in:24: AC_PROG_CPP was called before AC_PROG_CC
>
> ---
>
>
> ii) $ ./configure --with-apxs=/home/kernel/satya/instal
> led_apache/bin/apxs
>
> creating cache ./config.cache
> checking for a BSD compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking whether make sets ${MAKE}... yes
> checking for working aclocal... found
> checking for working autoconf... found
> checking for working automake... found
> checking for working autoheader... found
> checking for working makeinfo... found
> checking for Cygwin environment... no
> checking for mingw32 environment... no
> checking how to run the C preprocessor... cc -E
> checking host system type... i686-pc-linux-gnu
> checking build system type... i686-pc-linux-gnu
> checking for gcc... gcc
> checking whether the C compiler (gcc  ) works... yes
> checking whether the C compiler (gcc  ) is a cross-compiler...
> no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for ld used by GCC... /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... yes
> checking for /usr/bin/ld option to reload object files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking how to recognise dependant libraries... pass_all
> checking for object suffix... o
> checking for executable suffix... no
> checking command to parse /usr/bin/nm -B output... ok
> checking for dlfcn.h... yes
> checking for ranlib... ranlib
> checking for strip... strip
> checking for objdir... .libs
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc static flag -static works... yes
> checking if gcc supports -c -o file.o... yes
> checking if gcc supports -c -o file.lo... yes
> checking if gcc supports -fno-rtti -fno-exceptions... yes
> checking whether the linker (/usr/bin/ld) supports shared
> libraries... yes
> checking how to hardcode library paths into programs...
> immediate
> checking whether stripping libraries is possible... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking if libtool supports shared libraries... yes
> checking for dlopen in -ldl... yes
> checking whether a program can dlopen itself... yes
> checking whether a statically linked program can dlopen itself...
> no
> checking whether -lc should be explicitly linked in... no
> creating libtool
> checking for gcc... (cached) gcc
> checking whether the C compiler (gcc -g -O2 ) works... yes
> checking whether the C compiler (gcc -g -O2 ) is a
> cross-compiler... no
> checking whether we are using GNU C... (cached) yes
> checking whether gcc accepts -g... (cached) yes
> checking for ld used by GCC... (cached) /usr/bin/ld
> checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
> checking for test... /usr/bin/test
> checking for rm... /bin//rm
> checking for grep... /bin//grep
> checking for echo... /bin//echo
> checking for sed... /bin//sed
> checking for cp... /bin//cp
> checking for mkdir... /bin//mkdir
> checking for libtool... /usr/bin/libtool
> need to check for Perl first, apxs depends on it...
> checking for perl... /usr/bin/perl
> building connector for "apache-2.0"
> checking for target platform... unix
> no apache given
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating apache-1.3/Makefile
> creating apache-1.3/Makefile.apxs
> creating apache-2.0/Makefile
> creating apache-2.0/Makefile.apxs
> creating common/Makefile
> creating common/list.mk
> creating jni/Makefile
>
> ---
>
> iii)$ make
>
> Making all in common
> make[1]: Entering directory
>
>
`/home/kernel/satya/connector/jakarta-tomcat-connectors-4.1.27-src/jk/native
/common'
> /usr/bin/libtool --mode=compile gcc
> -I/home/kernel/satya/installed_apache//include -g -O2
>
> -g -O2 -pt

RE: Please help

2003-07-23 Thread Kannan Sundararajan
Are you using Tomcat and IIS in same box or different box.

-Original Message-
From: Pat Pomatto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:53 AM
To: 'Tomcat Users List'
Subject: Please help



I'm running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 and
myApp3. All of these need to share a common images directory. Does anyone
know how to do this? I've tried numerous things and nothing works. Should
the images be served by Tomcat or by IIS? Please help!

 

Pat Pomatto



RE: Please help

2003-07-23 Thread Shapira, Yoav

Howdy,
Since you already have a front-end (IIS) anyways, use it for the images.  Have a 
directory on it /images, and have all your image URLs be /images/img1.gif etc., 
instead of /myApp1/images/img1.gif.

One alternative is to have an images webapp on tomcat and use it to serve the images, 
again with the same URLs as above.

Yet another option is to have copies of the images with each webapp.

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Pat Pomatto [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:53 AM
To: 'Tomcat Users List'
Subject: Please help

I'm running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 and myApp3. 
All of these need to share a common images directory. Does anyone know how to do this? 
I've tried numerous things and nothing works. Should the images be served by Tomcat or 
by IIS? Please help!
 
Pat Pomatto



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: Please help

2003-07-23 Thread John Turner
Use IIS.

Set up a new virtual host.  Call it "images.your-domain.com".

In all web pages for all three apps, reference "images.your-domain.com" 
for image URLs.  Problem solved.

John

Pat Pomatto wrote:

I’m running Tomcat 4.1.24 with IIS. Under webapps I have myApp1, myApp2 
and myApp3. All of these need to share a common images directory. Does 
anyone know how to do this? I’ve tried numerous things and nothing 
works. Should the images be served by Tomcat or by IIS? Please help!

 

Pat Pomatto



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


Re: Please help with unusual configuration

2003-07-15 Thread John Turner
I typically do:

NameVirtualHost *

VirtualHost *

I don't put port numbers on IP addresses in VirtualHost containers, I don't 
even use IP addresses there.


   ServerName server1.host.com


   ServerName server2.host.com

John

On Mon, 14 Jul 2003 17:58:24 -0700, Goehring, Chuck Mr., RCI - San Diego 
<[EMAIL PROTECTED]> wrote:



Tried like below.  Seams simple enough, but it complains about 
overlapping and localhost:0. All I want is two virtual hosts that are 
identical except for the protocol and port.  I think I want overlapping 
in this case

#Listen 206.128.139.123:80
#Listen 206.128.139.123:443
Listen 80
Listen 443
ServerName dis.resourceconsultants.com

NameVirtualHost 206.128.139.123:80
NameVirtualHost 206.128.139.123:443
ServerAdmin [EMAIL PROTECTED]


# Didn't like this 
DocumentRoot c:/apache/htdocs
#ServerName dis.resourceconsultants.com
ErrorLog logs/error_log.txt


# Didn't like this 
DocumentRoot c:/apache/htdocs2
#ServerName dis.resourceconsultants.com
ErrorLog logs/error_ssl_log.txt

And it complains about localhost and overlapping like

C:\Apache\bin>apache
[Mon Jul 14 18:07:49 2003] [warn] VirtualHost localhost:0 overlaps with 
VirtualH
ost localhost:0, the first has precedence, perhaps you need a 
NameVirtualHost di
rective
[Mon Jul 14 18:07:49 2003] [warn] VirtualHost 206.128.139.123:443 
overlaps with
VirtualHost dis.resourceconsultants.com:0, the first has precedence, 
perhaps you
need a NameVirtualHost directive

Got any pointers

-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 8:34 PM
To: Tomcat Users List
Subject: Re: Please help with unusual configuration
Yhea,

I do something similar using the virtualhost directive.  It works great.

Rick Roberts wrote:

It doesn't sound like you are doing at all unusual.
It sounds like pretty normal HTTP/HTTPS apache/tomcat configuration.
Just have the firewall block port 80 traffic and have apache listen on 
ports 80 and 443.

Then outside traffic uses https://yoursite.gov (port 443) and inside 
traffic uses http://yoursite.gov (port 80)

1 Apache
1 Tomcat
1 computer



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Please help with unusual configuration

2003-07-14 Thread Goehring, Chuck Mr., RCI - San Diego


Tried like below.  Seams simple enough, but it complains about overlapping and 
localhost:0. All I want is two virtual hosts that are identical except for the 
protocol and port.  I think I want overlapping in this case

#Listen 206.128.139.123:80
#Listen 206.128.139.123:443

Listen 80
Listen 443

ServerName dis.resourceconsultants.com

NameVirtualHost 206.128.139.123:80
NameVirtualHost 206.128.139.123:443

ServerAdmin [EMAIL PROTECTED]


# Didn't like this 
DocumentRoot c:/apache/htdocs
#ServerName dis.resourceconsultants.com
ErrorLog logs/error_log.txt


# Didn't like this 
DocumentRoot c:/apache/htdocs2
#ServerName dis.resourceconsultants.com
ErrorLog logs/error_ssl_log.txt



And it complains about localhost and overlapping like

C:\Apache\bin>apache
[Mon Jul 14 18:07:49 2003] [warn] VirtualHost localhost:0 overlaps with VirtualH
ost localhost:0, the first has precedence, perhaps you need a NameVirtualHost di
rective
[Mon Jul 14 18:07:49 2003] [warn] VirtualHost 206.128.139.123:443 overlaps with
VirtualHost dis.resourceconsultants.com:0, the first has precedence, perhaps you
 need a NameVirtualHost directive

Got any pointers


-Original Message-
From: Atreya Basu [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 8:34 PM
To: Tomcat Users List
Subject: Re: Please help with unusual configuration


Yhea,

I do something similar using the virtualhost directive.  It works great.

Rick Roberts wrote:

> It doesn't sound like you are doing at all unusual.
> It sounds like pretty normal HTTP/HTTPS apache/tomcat configuration.
>
> Just have the firewall block port 80 traffic and have apache listen on 
> ports 80 and 443.
>
> Then outside traffic uses https://yoursite.gov (port 443) and inside 
> traffic uses http://yoursite.gov (port 80)
>
> 1 Apache
> 1 Tomcat
> 1 computer
>

-- 

Developer
Greenfield Research Inc.
atreya(AT)greenfieldresearch(DOT)ca
(902)422-9426




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



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



RE: Please help with unusual configuration

2003-07-14 Thread Goehring, Chuck Mr., RCI - San Diego


Since ssl is required/not required based on the directory, how can I have ssl and 
non-ssl users access the same files with only the protocol & port different?  Is this 
why I would use separate virtual hosts?

Thanks
Chuck


-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 5:22 PM
To: Tomcat Users List
Subject: Re: Please help with unusual configuration


It doesn't sound like you are doing at all unusual.
It sounds like pretty normal HTTP/HTTPS apache/tomcat configuration.

Just have the firewall block port 80 traffic and have apache listen on ports 80 
and 443.

Then outside traffic uses https://yoursite.gov (port 443) and inside traffic 
uses http://yoursite.gov (port 80)

1 Apache
1 Tomcat
1 computer

-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***


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



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



  1   2   3   4   >