Re: Is Tomcat is an application server ?

2005-06-22 Thread Michael Echerer

There is no meaning in saying that one can plug in required
services to Tomcat. My question is by design is it an application
server ?. My opinion is that Tomcat in the shipped form is not an
application server. At the minimum it should provide transaction and
persistence services, method level security is also preferred.
One can add all the above mentioned features to any servlet engine
by deploying JAR files of the required services(JNDI,JTA,persistence
and even EJB). So any servlet engine becomes an application server. Am
I right ?
 
 
 I think you are getting your terms mixed up... Your arguments could be
 used in regards to a full J2EE container, which Tomcat isn't on it's
 own but an application server just needs to serve applications and
 Tomcat certainly does that.
 

Agree. Tomcat is an application server, e.g. JBoss aswell, but JBoss is
a J2EE 1.x compliant application server as all parts of the spec are
implemented, Tomcat is not as only parts are covered.

Cheers,
Michael



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



RE: Is Tomcat is an application server ?

2005-06-22 Thread Werner van Mook (RY/ETM)
IMHO :

Tomcat is a web application server, not an application server.
It is true you can extend tomcat and make it work like an application server.

Tomcat and just Tomcat is no application server.

It's like saying that an engine is a car. Which is not true!
You can extend this engine and build things around it that will make 
the complete thing you have build a car.
But the engine still is an engine and not a car.
You could also have build a motorbike which uses an engine.

An application server can use a web front end hosted by tomcat but it is not a 
requirement. An application server can also have native clients (written in any 
programming language).
An application server has standard ejb support.

If you have build a web application with tomcat than you have build yourself a 
j2ee application without using an application server, which is perfectly legal.

Regards
Werner van Mook

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



mod_jk configuration

2005-06-22 Thread [EMAIL PROTECTED]

Hello all,

i am using Tomcat 4.1.3x, mod_jk 1.x and Apache 1.3.x.

I have read all the documentation available on apache.org, but
i think i have not understood some principles of JK.

Problem:
I have java.domain.tld pointing to the root-directory of Tomcat. The default
tomcat site appears. I guess my installations are ok.

I want to have myotherdomain.tld pointing to a specific webapp.
I have a worker (the same as the java.domain.tld Domain), but where
must i declare which context is to use?

In my vhosts i have:
virtual host ...
JkMount /* ajp13   -- My worker
/virtual host ...

In my workers.properties there is nothing about an context. Documentation
told me nothin about tags to declare. Btw, i installed my app with the 
war-deploy feat.

Maybe this is important.

Any help is appreciated- thank you for reading.

Regards
Chris

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



Re: Can't rename a file using renameTo()

2005-06-22 Thread Christoph Kutzinski

Hi,

I would guess that there is a security policy in JBoss that prevents 
JBoss (and its integrated Tomcat) from writing outside some special 
directories (e.g. its working directory and the temp directory).
There is surely a way to lessen this security restriction, but that is 
obviously a JBoss question. You should ask for more help in a JBoss 
forum/mailing list (or probably just reading the JBoss configuration 
documentation would help, too)



Christoph

Kam Lung Leung wrote:

Hi Jason,

Thank you for the information. It is a long paragraph. I checked the /SomeDirectory again, and it is the same name. I was able to create directory with the mkdir -p 
/SomeDirectory/firstSubdirectory/secondSubdirectory and manually created a file by this command 
touch /SomeDirectory/firstSubdirectory/secondSubdirectory/newFile . The Servlet was able to create directories under the /SomeDirectory directory. For example, the Servlet was able to create 
/SomeDirectory/firstSubdirectory/secondSubdirectory directories. But the Servlet can’t rename the file named oldFile under the /tmp directory to /SomeDirectory/firstSubdirectory/secondSubdirectory/newFile. The Servlet did created all directories under the /SomeDirectory by not able to move the oldFile to the that directory. The same code work fines what it run without the Jboss running in the same server.


Kam





 Jason Bainbridge [EMAIL PROTECTED] wrote:


On 6/21/05, Kam Lung Leung [EMAIL PROTECTED] wrote:


Hi,

I have a servlet, Servlet-A, that rename a file from /tmp/oldFile to 
/someDirectory/newFile. The Servlet-A runs fine when it runs by itself in a Red Hat Linux 
7.2 server that has jakarta-tomcat-4.1.30 running. However, it false to rename the 
/tmp/oldFile to /someDirectory/newFile when the Servlet-A run (within the 
jakarta-tomcat-4.1.30) in a Red Hat Linux 7.2 server box that also has 
jboss-3.2.1_tomcat-4.1.24 running. I thought it may be privilege issue so I set the 
/someDirectory directory with chmod –R 777 and run Tomcat as a root user. 
But, it is still false to rename the /tmp/oldFile file to the /someDirectory/newFile.

The strange thing is that the Servlet-A was able to write the oldFile to the 
/tmp directory but can not rename the oldFile to the /someDirectory directory 
that was allowed for writing for ALL user levels. Can this be Jboss prevented 
the rename operation. I used the canRead and canWrite to check allowable action 
by the File. It turns out that the Servlet-A can read and write the /tmp/ 
oldFile. But the Servlet-A can't read or write the /someDirectory/newFile.

The strangest thing is that when the Servlet-A runs in a Red Hat Linux 7.2 
server that has ONLY jakarta-tomcat-4.1.30 running, the condition of canRead 
and canwrite are the same. Meaning that the Servlet-A was able to read, and 
write the oldFile. But can't read, and write the newFile. However, the 
renameTo() method returned true and the Servlet-A was able to rename the 
/tmp/oldFile into /someDirectory/newFile.


It took me a few reads to even come close to following all that but is
it possibly that you are trying to copy a subdirectory within /tmp to
a subdirectory of /someDirectory that doesn't exist?


--
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com




-
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: Can't rename a file using renameTo()

2005-06-22 Thread Paul French
Hello,

Just a thought but I believe renameTo only works if you are renaming the
file in the same disk volume. If you try and do this across disk volumes
then this is effectively a copy and the renameTo does not work. This
maybe your problem.

Paul

-Original Message-
From: Christoph Kutzinski [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 08:38
To: Tomcat Users List
Subject: Re: Can't rename a file using renameTo()

Hi,

I would guess that there is a security policy in JBoss that prevents 
JBoss (and its integrated Tomcat) from writing outside some special 
directories (e.g. its working directory and the temp directory).
There is surely a way to lessen this security restriction, but that is 
obviously a JBoss question. You should ask for more help in a JBoss 
forum/mailing list (or probably just reading the JBoss configuration 
documentation would help, too)


Christoph

Kam Lung Leung wrote:
 Hi Jason,
 
 Thank you for the information. It is a long paragraph. I checked the
/SomeDirectory again, and it is the same name. I was able to create
directory with the mkdir -p 
 /SomeDirectory/firstSubdirectory/secondSubdirectory and manually
created a file by this command 
 touch /SomeDirectory/firstSubdirectory/secondSubdirectory/newFile .
The Servlet was able to create directories under the /SomeDirectory
directory. For example, the Servlet was able to create 
 /SomeDirectory/firstSubdirectory/secondSubdirectory directories. But
the Servlet can't rename the file named oldFile under the /tmp directory
to /SomeDirectory/firstSubdirectory/secondSubdirectory/newFile. The
Servlet did created all directories under the /SomeDirectory by not able
to move the oldFile to the that directory. The same code work fines what
it run without the Jboss running in the same server.
 
 Kam
 
 
 
 
 
  Jason Bainbridge [EMAIL PROTECTED] wrote:
 
On 6/21/05, Kam Lung Leung [EMAIL PROTECTED] wrote:

Hi,

I have a servlet, Servlet-A, that rename a file from /tmp/oldFile to
/someDirectory/newFile. The Servlet-A runs fine when it runs by itself
in a Red Hat Linux 7.2 server that has jakarta-tomcat-4.1.30 running.
However, it false to rename the /tmp/oldFile to /someDirectory/newFile
when the Servlet-A run (within the jakarta-tomcat-4.1.30) in a Red Hat
Linux 7.2 server box that also has jboss-3.2.1_tomcat-4.1.24 running. I
thought it may be privilege issue so I set the /someDirectory directory
with chmod -R 777 and run Tomcat as a root user. But, it is still
false to rename the /tmp/oldFile file to the /someDirectory/newFile.

The strange thing is that the Servlet-A was able to write the oldFile
to the /tmp directory but can not rename the oldFile to the
/someDirectory directory that was allowed for writing for ALL user
levels. Can this be Jboss prevented the rename operation. I used the
canRead and canWrite to check allowable action by the File. It turns out
that the Servlet-A can read and write the /tmp/ oldFile. But the
Servlet-A can't read or write the /someDirectory/newFile.

The strangest thing is that when the Servlet-A runs in a Red Hat
Linux 7.2 server that has ONLY jakarta-tomcat-4.1.30 running, the
condition of canRead and canwrite are the same. Meaning that the
Servlet-A was able to read, and write the oldFile. But can't read, and
write the newFile. However, the renameTo() method returned true and the
Servlet-A was able to rename the /tmp/oldFile into
/someDirectory/newFile.

It took me a few reads to even come close to following all that but is
it possibly that you are trying to copy a subdirectory within /tmp to
a subdirectory of /someDirectory that doesn't exist?


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

 
 
 -
 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]


 Buy your train tickets for business and leisure the easy way at 
www.thetrainline.com http://www.thetrainline.com/


This email has been sent from Trainline Holdings Limited, or from one of its 
group companies. The information in this email (and any attachments) is 
confidential and is intended solely for the use of the individual or entity to 
whom it is addressed. Access to this email by anyone else is unauthorised. If 
you are not the intended recipient please do not disclose, copy, distribute, or 
take any action in reliance on it. If you received this email in error please 
tell us by reply email (or telephone the sender) and delete all electronic 
copies on your system or other copies known to you.

Whilst we have taken reasonable precautions to ensure that this email and any 
attachments have been 

Re: Is Tomcat is an application server ?

2005-06-22 Thread Christoph Kutzinski

There only relevant question here is:
How is a application server defined?

As Richard Mixon already pointed out, there are many definitions under 
which Tomcat IS an application server.
For many others however application server is equivalent to  full J2EE 
application server (or something like this). In this definition Tomcat 
is surely no application server.


For me however an application server is just what the word says:
A server that serves applications. And that is what Tomcat can do.


just my 2 Euro cents,
Christoph

Werner van Mook (RY/ETM) wrote:

IMHO :

Tomcat is a web application server, not an application server.
It is true you can extend tomcat and make it work like an application server.

Tomcat and just Tomcat is no application server.

It's like saying that an engine is a car. Which is not true!
You can extend this engine and build things around it that will make 
the complete thing you have build a car.

But the engine still is an engine and not a car.
You could also have build a motorbike which uses an engine.

An application server can use a web front end hosted by tomcat but it is not a 
requirement. An application server can also have native clients (written in any 
programming language).
An application server has standard ejb support.

If you have build a web application with tomcat than you have build yourself a 
j2ee application without using an application server, which is perfectly legal.

Regards
Werner van Mook

-
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]



Documentation ... : Your Advices please

2005-06-22 Thread Raghupathy,Gurumoorthy
Hello All,
I am thinking of writing a document of how to set up. Apache +
tomcat + mod_jk with Apache using SSL. for free.
I am using Apache 1.3.* and Tomcat 4.1 and this works very nicely
 I have this running on my linux box for 2 years + now. 

I need your advice if I create a document of how to setup this will
it be use full. I am thinking that tomcat now being 5.5.* and 
apache 2.0.* will it be worth my time for the peoplpe or do you
think I should upgrade as well 

Regards
Guru 

Gurumoorthy Raghupathy
EMFS - Fidelity Investments International
* Tel: +44 1737 836798
* Internal: 8-724 6798
* Tel (R): +442086423806
* Mail-Zone : XTB2B
* E-Mail: mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

Regret for the things we did can be tempered by time; it is regret for the
things we did not do that is inconsolable

Important: Fidelity Investments International, Fidelity Investment Services
Limited, Fidelity Pensions Management and Financial Administration Services
Limited (a Fidelity Group company) are all authorised and regulated in the
UK by the Financial Services Authority and have their registered offices at
Oakhill House, 130 Tonbridge Road, Hildenborough, Tonbridge, Kent TN11 9DZ.
Tel 01732 361144. Fidelity only gives information on products and does not
give investment advice to private clients based on individual circumstances.
Any comments or statements made are not necessarily those of Fidelity. The
information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material. If
you received this in error, please contact the sender and delete the
material from any computer. All e-mails sent from or to Fidelity may be
subject to our monitoring procedures. 'Direct link to Fidelitys website.
http://www.fidelity-international.com/world/index.html
http://www.fidelity-international.com/world/index.html 



RE: getRemoteUser() always returns null

2005-06-22 Thread Allistair Crossley
Hi,

Try setting tomcatAuthentication=false on the connector, or jk2.properties 
file

Cheers, Allistair.

 -Original Message-
 From: Scott Heitkamp [mailto:[EMAIL PROTECTED]
 Sent: 21 June 2005 21:40
 To: tomcat-user@jakarta.apache.org
 Subject: getRemoteUser() always returns null
 
 
 I'm currently using tomcat with the apache connector.  I use 
 apache to authenicate the user and then allow them to access 
 certain servlets in tomcat.  My problem is that when I call 
 getRemoteUser in the servlet, it always returns null even 
 though I was authenticated through apache.  I'm assuming that 
 it's because the request isn't sending the Authorization 
 Header to tomcat.  How do I get it?
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Use JSPC

2005-06-22 Thread Karasek-XID, Nicolas
Hi bernhard,

Just a few dumb questions on this, I still have problem to generate servlets 
source files from jsp.
From a previous message you sent on this subject in another thread I guess I 
have a classpath problem in my jspc task ( NullPointerException at 
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:220)
 with tomcat 5.5.9).
I think I have the correct values for getting tools.jar and jasper jars in 
jspc.classpath.
So, should the webapp be placed in tomcat webapps directory in order to allow 
jspc work ? or maybe it doesn't matter ?
Maybe someone have an idea on what I miss...

-- 
Nicolas


-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
Sent: jeudi 16 juin 2005 11:44
To: 'Tomcat Users List'
Subject: AW: Use JSPC

Hi Mino,

just one thing to add to the very good answer from Charl:
I post you my ant sccript, which does all together precompiling and
automatic generation of the web.xml file.
You might take it as a basis for your stuff.

Cheers

Bernhard

!-- do the precompilation --
target name=jspc depends=get-properties-stage  
mkdir dir=${webapproot}/src/

!-- define the jasper task --
taskdef classname=org.apache.jasper.JspC name=jasper2 

classpath id=jspc.classpath 
pathelement
location=${java.home}/../lib/tools.jar/ 
fileset dir=${tomcat.home}/bin 
include name=*.jar/ 
/fileset 
fileset dir=${tomcat.home}/server/lib 
include name=*.jar/ 
/fileset 
fileset dir=${tomcat.home}/common/lib 
include name=*.jar/ 
/fileset
fileset
dir=${webapproot}${webappname}/WEB-INF/lib 
include name=*.jar/
/fileset
/classpath
/taskdef 

!-- execute jasper, creates the servlet source files --
jasper2 
validateXml=false 
uriroot=${webapproot}${webappname} 
 
webXmlFragment=${webapproot}${webappname}/WEB-INF/generated_web.xml 
outputDir=${webapproot}/src / 

!-- compile the source files --
javac destdir=${webapproot}${webappname}/WEB-INF/classes
optimize=off
debug=on failonerror=false
srcdir=${webapproot}/src 
excludes=**/*.smap
classpath
pathelement
location=${webapproot}${webappname}/WEB-INF/classes/
pathelement
location=${tomcat.home}/common/classes/
pathelement
location=${tomcat.home}/shared/classes/
fileset dir=${tomcat.home}/common/lib
include name=*.jar/
/fileset
fileset dir=${tomcat.home}/shared/lib
include name=*.jar/
/fileset
fileset dir=${tomcat.home}/bin 
include name=*.jar/ 
/fileset 
fileset
dir=${webapproot}${webappname}/WEB-INF/lib 
include name=*.jar/
/fileset
/classpath
include name=** /
exclude name=tags/** /
/javac

!-- Load your precompiled snippet into a property --
loadfile property=precompiled

srcFile=${webapproot}${webappname}/WEB-INF/generated_web.xml
encoding=ISO-8859-1/

!-- Now replace the web.xml with a predifined snippet --
replace file=${webapproot}${webappname}/WEB-INF/web.xml
value=${precompiled}
replacetoken![CDATA[!-- precompile include
--]]/replacetoken
/replace
/target 

 -Ursprüngliche Nachricht-
 Von: Charl Gerber [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 16. Juni 2005 11:24
 An: Tomcat Users List
 Betreff: Re: Use JSPC
 
 
 If you have the generated java files, you can compile
 them like any other java class (remember to setup your
 classpath correctly, including some jars in the Tomcat
 libraries).
 
 Trickier to figure out first time round is to
 dynamically create the web.xml settings. Every .jsp
 now effectively becomes a servlet which needs to be

RE: Documentation ... : Your Advices please

2005-06-22 Thread Sue Roe
I think most people would probably use later versions of both Java and
Tomcat if they were going to set an environment up from scratch now. So I
would suggest it better for you to upgrade now and document for later
releases.

Rgds

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 22 June 2005 09:14
To: 'Tomcat Users List'
Subject: Documentation ... : Your Advices please 

Hello All,
I am thinking of writing a document of how to set up. Apache +
tomcat + mod_jk with Apache using SSL. for free.
I am using Apache 1.3.* and Tomcat 4.1 and this works very nicely
 I have this running on my linux box for 2 years + now. 

I need your advice if I create a document of how to setup this will
it be use full. I am thinking that tomcat now being 5.5.* and 
apache 2.0.* will it be worth my time for the peoplpe or do you
think I should upgrade as well 

Regards
Guru 

Gurumoorthy Raghupathy
EMFS - Fidelity Investments International
* Tel: +44 1737 836798
* Internal: 8-724 6798
* Tel (R): +442086423806
* Mail-Zone : XTB2B
* E-Mail: mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

Regret for the things we did can be tempered by time; it is regret for the
things we did not do that is inconsolable

Important: Fidelity Investments International, Fidelity Investment Services
Limited, Fidelity Pensions Management and Financial Administration Services
Limited (a Fidelity Group company) are all authorised and regulated in the
UK by the Financial Services Authority and have their registered offices at
Oakhill House, 130 Tonbridge Road, Hildenborough, Tonbridge, Kent TN11 9DZ.
Tel 01732 361144. Fidelity only gives information on products and does not
give investment advice to private clients based on individual circumstances.
Any comments or statements made are not necessarily those of Fidelity. The
information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material. If
you received this in error, please contact the sender and delete the
material from any computer. All e-mails sent from or to Fidelity may be
subject to our monitoring procedures. 'Direct link to Fidelitys website.
http://www.fidelity-international.com/world/index.html
http://www.fidelity-international.com/world/index.html 




***Disclaimer***

The contents of this Email may be privileged and are confidential. If you are 
not the intended recipient, any disclosure, copying, distribution or any action 
taken or omitted to be taken in reliance on it, is prohibited and may be 
unlawful.

Should you wish to use Email as a mode of communication, CMi plc and its 
subsidiaries are unable to guarantee the security of Email content outside of 
our own computer systems.

This footnote also confirms that this Email message has been checked by 
MIMESweeper for the presence of computer viruses. Whilst we run anti-virus 
software, you are solely responsible for ensuring that any Email or attachment 
you receive is virus free. We disclaim any liability for any damage you suffer 
as a consequence of receiving any virus.

Checkmate International plc (CMi)
Registered in England No: 1899857
Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW


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



AW: Use JSPC

2005-06-22 Thread Bernhard Slominski
Hi Nicolas,

what jspc basically needs, is acces to all the internal tomcat libraries,
as you see from the ant script:
${tomcat.home}/bin/*.jar
${tomcat.home}/server/lib/*.jar
${tomcat.home}/common/lib/*.jar

As well as all the libraries from you web application.
So what I did was just installing (unzipping) Tomcat on my deployment
machine, just in order to the able to do the precomplation. I think you can
also just download the deployer distribution
(http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi) this
should contain all the stuff you need for the deployment. But I don't have
experience with the deployer application.

Conerning you web application: You need to include all the classes and
libraries in the classpath as well, but it doesn't have to be under
${tomcat.home}/webapps it can be anywhere on your deployment machine.
Maybe what's missing is that you have to include the /WEB-INF/classes
directory too in your ant script.
It's not in mine because I only use jar files in my webapp.

Good luck!

Bernhard


 -Ursprüngliche Nachricht-
 Von: Karasek-XID, Nicolas [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 22. Juni 2005 10:26
 An: Tomcat Users List
 Betreff: RE: Use JSPC
 
 
 Hi bernhard,
 
 Just a few dumb questions on this, I still have problem to 
 generate servlets source files from jsp.
 From a previous message you sent on this subject in another 
 thread I guess I have a classpath problem in my jspc task ( 
 NullPointerException at 
 org.apache.jasper.JspCompilationContext.createCompiler(JspComp
 ilationContext.java:220) with tomcat 5.5.9).
 I think I have the correct values for getting tools.jar and 
 jasper jars in jspc.classpath.
 So, should the webapp be placed in tomcat webapps directory 
 in order to allow jspc work ? or maybe it doesn't matter ?
 Maybe someone have an idea on what I miss...
 
 -- 
 Nicolas
 
 
 -Original Message-
 From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
 Sent: jeudi 16 juin 2005 11:44
 To: 'Tomcat Users List'
 Subject: AW: Use JSPC
 
 Hi Mino,
 
 just one thing to add to the very good answer from Charl:
 I post you my ant sccript, which does all together precompiling and
 automatic generation of the web.xml file.
 You might take it as a basis for your stuff.
 
 Cheers
 
 Bernhard
 
   !-- do the precompilation --
   target name=jspc depends=get-properties-stage  
   mkdir dir=${webapproot}/src/
 
   !-- define the jasper task --
   taskdef classname=org.apache.jasper.JspC 
 name=jasper2 
 
   classpath id=jspc.classpath 
   pathelement
 location=${java.home}/../lib/tools.jar/ 
   fileset dir=${tomcat.home}/bin 
   include name=*.jar/ 
   /fileset 
   fileset 
 dir=${tomcat.home}/server/lib 
   include name=*.jar/ 
   /fileset 
   fileset 
 dir=${tomcat.home}/common/lib 
   include name=*.jar/ 
   /fileset
   fileset
 dir=${webapproot}${webappname}/WEB-INF/lib 
   include name=*.jar/
   /fileset
   /classpath
   /taskdef 
 
   !-- execute jasper, creates the servlet source 
 files --
   jasper2 
   validateXml=false 
   uriroot=${webapproot}${webappname} 
  
 webXmlFragment=${webapproot}${webappname}/WEB-INF/generated_web.xml 
   outputDir=${webapproot}/src / 
 
   !-- compile the source files --
   javac 
 destdir=${webapproot}${webappname}/WEB-INF/classes
   optimize=off
   debug=on failonerror=false
   srcdir=${webapproot}/src 
   excludes=**/*.smap
   classpath
   pathelement
 location=${webapproot}${webappname}/WEB-INF/classes/
   pathelement
 location=${tomcat.home}/common/classes/
   pathelement
 location=${tomcat.home}/shared/classes/
   fileset 
 dir=${tomcat.home}/common/lib
   include name=*.jar/
   /fileset
   fileset 
 dir=${tomcat.home}/shared/lib
   include name=*.jar/
   /fileset
   fileset dir=${tomcat.home}/bin 
   include name=*.jar/ 
   /fileset 
   fileset
 dir=${webapproot}${webappname}/WEB-INF/lib 
 

Tomcat and Internet Explorers caching

2005-06-22 Thread Øyvind Johansen
Hello!

Our web-application uses a combination of JSP-pages and a controller
servlet. When viewing these pages with Internet Explorer weird things tend
to happen. I found out that if Internet Explorers caching is set to
automatic checking for newer versions on the server everything goes wrong.
Instead of sending requests to the servlet, IE just simply takes an answer
from its cache, and thus presenting the wrong results. When changing the
setting to always the problem disappears.

Now, telling every user to change this setting would require almost as much
work as convincing them that Firefox and/or Opera are much better. So, are
there any ways to tell IE that it shouldn't cache my servlet/jsp-pages?

Regards,

Øyvind Johansen
ElectricTimeCar



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



RE: Tomcat and Internet Explorers caching

2005-06-22 Thread Allistair Crossley
Hi,

Not an answer as such, but all our dev machines (and we do LOTS of changes per 
5 minutes) have Automatically switched on, and we don't experience this problem.

Like I say, not a solution, but perhaps you are looking in the wrong direction.

Cheers, Allistair.

 -Original Message-
 From: Øyvind Johansen [mailto:[EMAIL PROTECTED]
 Sent: 22 June 2005 11:11
 To: 'Tomcat Users List'
 Subject: Tomcat and Internet Explorers caching
 
 
 Hello!
 
 Our web-application uses a combination of JSP-pages and a controller
 servlet. When viewing these pages with Internet Explorer 
 weird things tend
 to happen. I found out that if Internet Explorers caching is set to
 automatic checking for newer versions on the server 
 everything goes wrong.
 Instead of sending requests to the servlet, IE just simply 
 takes an answer
 from its cache, and thus presenting the wrong results. When 
 changing the
 setting to always the problem disappears.
 
 Now, telling every user to change this setting would require 
 almost as much
 work as convincing them that Firefox and/or Opera are much 
 better. So, are
 there any ways to tell IE that it shouldn't cache my 
 servlet/jsp-pages?
 
 Regards,
 
 Øyvind Johansen
 ElectricTimeCar
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



JBoss with Tomcat using Eclipse

2005-06-22 Thread Enda Dowling
Hey!

  I downloaded the pug-ins for eclipse 3.0 to use JBoss. I followed a
tutorial on the internet
http://docs.jboss.com/jbosside/tutorial/build/en/html/debugging.html and it
all worked wellup until the very end. My file is deployed and works but when
try and run the file, it doesn't work. I think its to do with how I have
tomcat configured, cos everything else works. When I go to
http://localhost:81/fabio/ it doesn't find the requested file. Anyone know
what the problem might be? 

Thanks,

Enda

 

 



RE: Tomcat and Internet Explorers caching

2005-06-22 Thread Øyvind Johansen
You may be right, but I think it's just our weird way of combining
jsp/servlets with a magnet card reader that takes IE off guard. 

Heres a typical example: 

User uses his user card on our magnet card reader. 
The reader tells our client (which implements IE through an ActiveX control,
don’t ask why).
The reader creates an URL which sends the card information to a servlet as a
parameter. Ie /Servler?paramname=paramval.
The servlet handles the request and determines where the users should go (1
page for normal users, another for admins etc).

When Automaticly is set, this makes IE return the page of the last user that
was successfully using the server (in which IE saved these pages in the
cache). This means that user A may get the admin interface even though he
isn't an administrator.

In the web-application log, nothing happens when this behaviour shows
itself. The web-app always logs all user-logins, and the lack of this proves
that IE simply isn't sending the request to the server...

Did it become clearer?

-Opprinnelig melding-
Fra: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sendt: 22. juni 2005 12:09
Til: Tomcat Users List
Emne: RE: Tomcat and Internet Explorers caching

Hi,

Not an answer as such, but all our dev machines (and we do LOTS of changes
per 5 minutes) have Automatically switched on, and we don't experience this
problem.

Like I say, not a solution, but perhaps you are looking in the wrong
direction.

Cheers, Allistair.

 -Original Message-
 From: Øyvind Johansen [mailto:[EMAIL PROTECTED]
 Sent: 22 June 2005 11:11
 To: 'Tomcat Users List'
 Subject: Tomcat and Internet Explorers caching
 
 
 Hello!
 
 Our web-application uses a combination of JSP-pages and a controller
 servlet. When viewing these pages with Internet Explorer 
 weird things tend
 to happen. I found out that if Internet Explorers caching is set to
 automatic checking for newer versions on the server 
 everything goes wrong.
 Instead of sending requests to the servlet, IE just simply 
 takes an answer
 from its cache, and thus presenting the wrong results. When 
 changing the
 setting to always the problem disappears.
 
 Now, telling every user to change this setting would require 
 almost as much
 work as convincing them that Firefox and/or Opera are much 
 better. So, are
 there any ways to tell IE that it shouldn't cache my 
 servlet/jsp-pages?
 
 Regards,
 
 Øyvind Johansen
 ElectricTimeCar
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
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: Tomcat and Internet Explorers caching

2005-06-22 Thread Maarten Janssen
hi,

A solution is after submit clear a User object from the session, than
identifies the user and put a User object in a session and always check on
every page and action if User object exists in the session.

regards,

Maarten

-Oorspronkelijk bericht-
Van: Øyvind Johansen [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 22 juni 2005 12:39
Aan: 'Tomcat Users List'
Onderwerp: RE: Tomcat and Internet Explorers caching


You may be right, but I think it's just our weird way of combining
jsp/servlets with a magnet card reader that takes IE off guard.

Heres a typical example:

User uses his user card on our magnet card reader.
The reader tells our client (which implements IE through an ActiveX control,
don’t ask why).
The reader creates an URL which sends the card information to a servlet as a
parameter. Ie /Servler?paramname=paramval.
The servlet handles the request and determines where the users should go (1
page for normal users, another for admins etc).

When Automaticly is set, this makes IE return the page of the last user that
was successfully using the server (in which IE saved these pages in the
cache). This means that user A may get the admin interface even though he
isn't an administrator.

In the web-application log, nothing happens when this behaviour shows
itself. The web-app always logs all user-logins, and the lack of this proves
that IE simply isn't sending the request to the server...

Did it become clearer?

-Opprinnelig melding-
Fra: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sendt: 22. juni 2005 12:09
Til: Tomcat Users List
Emne: RE: Tomcat and Internet Explorers caching

Hi,

Not an answer as such, but all our dev machines (and we do LOTS of changes
per 5 minutes) have Automatically switched on, and we don't experience this
problem.

Like I say, not a solution, but perhaps you are looking in the wrong
direction.

Cheers, Allistair.

 -Original Message-
 From: Øyvind Johansen [mailto:[EMAIL PROTECTED]
 Sent: 22 June 2005 11:11
 To: 'Tomcat Users List'
 Subject: Tomcat and Internet Explorers caching


 Hello!

 Our web-application uses a combination of JSP-pages and a controller
 servlet. When viewing these pages with Internet Explorer
 weird things tend
 to happen. I found out that if Internet Explorers caching is set to
 automatic checking for newer versions on the server
 everything goes wrong.
 Instead of sending requests to the servlet, IE just simply
 takes an answer
 from its cache, and thus presenting the wrong results. When
 changing the
 setting to always the problem disappears.

 Now, telling every user to change this setting would require
 almost as much
 work as convincing them that Firefox and/or Opera are much
 better. So, are
 there any ways to tell IE that it shouldn't cache my
 servlet/jsp-pages?

 Regards,

 Øyvind Johansen
 ElectricTimeCar



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




FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
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]

--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.7.10/25 - Release Date: 21-6-2005

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.7.10/25 - Release Date: 21-6-2005


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



RE: JBoss with Tomcat using Eclipse

2005-06-22 Thread Raghupathy,Gurumoorthy
I guess it should be http://localhost:81/fibo/ 

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 11:32
To: tomcat-user@jakarta.apache.org
Subject: JBoss with Tomcat using Eclipse


Hey!

  I downloaded the pug-ins for eclipse 3.0 to use JBoss. I followed a
tutorial on the internet
http://docs.jboss.com/jbosside/tutorial/build/en/html/debugging.html and it
all worked wellup until the very end. My file is deployed and works but when
try and run the file, it doesn't work. I think its to do with how I have
tomcat configured, cos everything else works. When I go to
http://localhost:81/fabio/ it doesn't find the requested file. Anyone know
what the problem might be? 

Thanks,

Enda

 

 


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



JK connector - behavior if cachesize is exceeded

2005-06-22 Thread Möbus . Manfred
Hi,
Have set up JK (1.2.13) connector from IIS to tomcat.
When I define a worker to have cachesize=1,
and there happen to come two simultaneous requests,
the second request is aborted with status 500 Internal Server Error (as seen
in IIS log file) and no bytes are returned.

The isapi redirector log contains a warning
[warn]  ajp_get_endpoint::jk_ajp_common.c (2126): Unable to get the free
endpoint for worker  from 1 slots

While this works as desired up to the point when this warning is written to
log, I would have expected that JK connector retries such a request a few
times to see if it will find a free endpoint in the next few milliseconds.

There is a worker property named retries, and I would have supposed that
this setting will also be used in the situation described.

Is this a bug, or do you think that the current behavior is what JK
connector should do? 
In this case I think I should set cachesize to a very high value (say 100)
since I don't want to have requests aborted when there happens to be a short
peek in concurrent requests. 

If the requests were put into a queue and retried later, I could limit the
resources (open sockets) on IIS and tomcat side to a reasonable value, and
during this peek situation some requests would last a little longer, but
this would be perfectly acceptable.

Regards
Manfred

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



Simple XML RPC Servlet does not work - assuming address problem

2005-06-22 Thread Raueber Hotzenplotz
Hi

This simple Servlet works (address: http://localhost:8080/testapp/testservlet):

public class Server extends HttpServlet {
public void doGet (HttpServletRequest req, HttpServletResponse res) throws
ServletException, IOException {

PrintWriter out = res.getWriter();
out.println(Hello, you!);
out.close();
}
}

I'm using an ant script that creates testapp.war and deploys it.

my web.xml:

?xml version=1.0 encoding=UTF-8?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
  servlet
servlet-nameTestServlet/servlet-name
servlet-classtestpackage.TestServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameTestServlet/servlet-name
url-pattern/testservlet/url-pattern
  /servlet-mapping
/web-app

However, my simple Xml Rpc application doesn't. If my client makes a Xml Rpc
call on address http://localhost:8080/testapp/testservlet, I get the error:
Exception in thread main java.io.IOException: Server returned HTTP response
code: 500 for URL: http://localhost:8080/testapp/testservlet

Code:

public class Server extends HttpServlet {
public void doPost (HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {

XmlRpcServer xmlrpc = new XmlRpcServer();
xmlrpc.addHandler (testHandler, new TestHandler());

byte[] result = xmlrpc.execute(req.getInputStream());
res.setContentType(text/xml);
res.setContentLength(result.length);
OutputStream out = res.getOutputStream();
out.write (result);
out.flush ();
}
}


public class TestClient {

public static void main(String[] args) throws XmlRpcException, 
IOException {


XmlRpcClient xmlrpc = new XmlRpcClient
(http://localhost:8080/testapp/testservlet;);
Vector params = new Vector ();
params.addElement (hello world);
// this method returns a string
String result = (String) 
xmlrpc.execute(testHandler.hello, params);
System.out.println(result);
}
}

public class TestHandler implements Serializable {
public String hello(String input) {
return input;
}
}



___ 
How much free photo storage do you get? Store your holiday 
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com

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



Merlia driver error

2005-06-22 Thread Sue Roe
Hello

We have a system set up with Tomcat 4.1 and SQL Server 7. We use a Merlia
jdbc driver to communicate with SQL Server via a connection pool.

Occasionally users get the following error when they first access a servlet
that needs to call a stored procedure...

***
EmployeeDAO_Pool: com.inet.tds.SQLException: java.net.SocketException:
Connection reset
***

.. and they are thrown out.

I am trying to find out exactly why this error is thrown, then I can find a
way to sort the access failures out.

Has anyone experienced the same thing?

Thanks



***Disclaimer***

The contents of this Email may be privileged and are confidential. If you are 
not the intended recipient, any disclosure, copying, distribution or any action 
taken or omitted to be taken in reliance on it, is prohibited and may be 
unlawful.

Should you wish to use Email as a mode of communication, CMi plc and its 
subsidiaries are unable to guarantee the security of Email content outside of 
our own computer systems.

This footnote also confirms that this Email message has been checked by 
MIMESweeper for the presence of computer viruses. Whilst we run anti-virus 
software, you are solely responsible for ensuring that any Email or attachment 
you receive is virus free. We disclaim any liability for any damage you suffer 
as a consequence of receiving any virus.

Checkmate International plc (CMi)
Registered in England No: 1899857
Registered Office 4th Floor, 35 New Bridge Street, London, EC4V 6BW


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



Re: Merlia driver error

2005-06-22 Thread Guillaume Lederrey
On 6/22/05, Sue Roe [EMAIL PROTECTED] wrote:
 Hello
 
 We have a system set up with Tomcat 4.1 and SQL Server 7. We use a Merlia
 jdbc driver to communicate with SQL Server via a connection pool.
 
 Occasionally users get the following error when they first access a servlet
 that needs to call a stored procedure...

  It sound to me as if your SQL Server has closed the connection.
Maybe there is a timeout after some inactive time ... If I were you,
I'd try to log the TCP traffic (tcpdump/ethereal) to see exactly how
the conection is dropped. Or (maybe easier) try to enable logging on
your JDBC driver.

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



Re: Is Tomcat is an application server ?

2005-06-22 Thread David Johnson
On Wed, 2005-06-22 at 09:08 +0200, Michael Echerer wrote:
 
 There is no meaning in saying that one can plug in required
 services to Tomcat. My question is by design is it an application
 server ?. My opinion is that Tomcat in the shipped form is not an
 application server. At the minimum it should provide transaction and
 persistence services, method level security is also preferred.
 One can add all the above mentioned features to any servlet engine
 by deploying JAR files of the required services(JNDI,JTA,persistence
 and even EJB). So any servlet engine becomes an application server. Am
 I right ?
  
  
  I think you are getting your terms mixed up... Your arguments could be
  used in regards to a full J2EE container, which Tomcat isn't on it's
  own but an application server just needs to serve applications and
  Tomcat certainly does that.
  
 
 Agree. Tomcat is an application server, e.g. JBoss aswell, but JBoss is
 a J2EE 1.x compliant application server as all parts of the spec are
 implemented, Tomcat is not as only parts are covered.
 
JBoss as shipped, is installed as a set of services inside
(specifically) the Tomcat application server.  You have made our point
that Tomcat is an application server, since JBoss does not serve
applications without Tomcat or some other application server around it.
The parts that are specifically JBoss can (in theory) be installed any
J2EE compliant application server.

Tomcat is the minimum _reference_ implementation of J2EE application
server.  Apart from actual bugs, Tomcat _defines_ the minimum
requirements for a J2EE compliant application server.



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



RE: JBoss with Tomcat using Eclipse

2005-06-22 Thread Enda Dowling
Sorry I just spelt it wrong in the email. Any other suggestions buddy?

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 22 June 2005 11:46
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse

I guess it should be http://localhost:81/fibo/ 

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 11:32
To: tomcat-user@jakarta.apache.org
Subject: JBoss with Tomcat using Eclipse


Hey!

  I downloaded the pug-ins for eclipse 3.0 to use JBoss. I followed a
tutorial on the internet
http://docs.jboss.com/jbosside/tutorial/build/en/html/debugging.html and it
all worked wellup until the very end. My file is deployed and works but when
try and run the file, it doesn't work. I think its to do with how I have
tomcat configured, cos everything else works. When I go to
http://localhost:81/fabio/ it doesn't find the requested file. Anyone know
what the problem might be? 

Thanks,

Enda

 

 


-
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: JBoss with Tomcat using Eclipse

2005-06-22 Thread Raghupathy,Gurumoorthy
Are you running on the correct port ? 8080  or are you sure that it is 81 ?
What is th error you getting ? 404 ( produced by tomcat )  or any thing else
?

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 13:26
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse


Sorry I just spelt it wrong in the email. Any other suggestions buddy?

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 22 June 2005 11:46
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse

I guess it should be http://localhost:81/fibo/ 

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 11:32
To: tomcat-user@jakarta.apache.org
Subject: JBoss with Tomcat using Eclipse


Hey!

  I downloaded the pug-ins for eclipse 3.0 to use JBoss. I followed a
tutorial on the internet
http://docs.jboss.com/jbosside/tutorial/build/en/html/debugging.html and it
all worked wellup until the very end. My file is deployed and works but when
try and run the file, it doesn't work. I think its to do with how I have
tomcat configured, cos everything else works. When I go to
http://localhost:81/fabio/ it doesn't find the requested file. Anyone know
what the problem might be? 

Thanks,

Enda

 

 


-
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: Use JSPC

2005-06-22 Thread Karasek-XID, Nicolas
Assuming an configuration problem on my PC to be the cause of my problem,  I 
did successively:
- desinstall tomcat 5.5.9 (there was one to test the web app)
- desinstall jdk 1.5.0_03 and an anterior jdk 1.4
- install jdk 1.5.0_03, with standard directories option
- install tomcat

After that I did a copy/paste in my build.xml of the jspc task found at 
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html

target name=jspc 

taskdef classname=org.apache.jasper.JspC name=jasper2  
  classpath id=jspc.classpath 
pathelement location=${java.home}/../lib/tools.jar/ 
fileset dir=${tomcat.home}/bin 
  include name=*.jar/ 
/fileset 
fileset dir=${tomcat.home}/server/lib 
  include name=*.jar/ 
/fileset 
fileset dir=${tomcat.home}/common/lib 
  include name=*.jar/ 
/fileset 
  /classpath 
/taskdef 

jasper2 
 validateXml=false 
 uriroot=${webapp.path} 
 webXmlFragment=${webapp.path}/WEB-INF/generated_web.xml 
 outputDir=${webapp.path}/WEB-INF/src / 

  /target

First attempt, it still throw a NullPointerException ( 
java.lang.NullPointerException at 
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:220
 ) but I remarked a problem.
The ant task assume that the presence of tools.jar at:

pathelement location=${java.home}/../lib/tools.jar/

But the jdk 1.5 on windows install the following directories :
C:
  +Program Files
 +Java
   +jdk1.5.0_03
   +jre1.5.0_03
and make point ${java.home} to c:/Program Files/Java/jre1.5.0_03 and so cannot 
find tools.jar at ${java.home}/../lib/tools.jar

ok, no problem. As I didn't want to modify the copy/pasted task from 
jasper-howto, I decided to use the jre shipped with jdk at c:/Program 
Files/Java/jdk1.5.0_03/jre.
So I removed the jre from system, added the registry key for 1.5 - removed 
during jre desinstall - that point to the correct JavaHome, RuntimeLib and try 
again with a corrected ${java.home}.

Unfortunately this second attempt failed too. NullPointerException is back . 
Aargh.
For information, I set ${tomcat.home} to C:/Program Files/Apache Software 
Foundation/Tomcat 5.5 and the webapp.path is set to the directory 
c:/eclipse/workspace/myWebApp/build which has the following structure :

+build
  +WEB-INF
+classes
my_classes_files
+lib
   my_libs
+src
   my_source_files
web.xml
  +META-INF
context.xml
  +some_jsp_directories
index.jsp
error.jsp
   
so I arrived to a conclusion: it seems that I have 2 left hands :o)
However If someone see a point to check...

-- 
Nicolas

-Original Message-
From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
Sent: mercredi 22 juin 2005 11:07
To: 'Tomcat Users List'
Subject: AW: Use JSPC

Hi Nicolas,

what jspc basically needs, is acces to all the internal tomcat libraries,
as you see from the ant script:
${tomcat.home}/bin/*.jar
${tomcat.home}/server/lib/*.jar
${tomcat.home}/common/lib/*.jar

As well as all the libraries from you web application.
So what I did was just installing (unzipping) Tomcat on my deployment
machine, just in order to the able to do the precomplation. I think you can
also just download the deployer distribution
(http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi) this
should contain all the stuff you need for the deployment. But I don't have
experience with the deployer application.

Conerning you web application: You need to include all the classes and
libraries in the classpath as well, but it doesn't have to be under
${tomcat.home}/webapps it can be anywhere on your deployment machine.
Maybe what's missing is that you have to include the /WEB-INF/classes
directory too in your ant script.
It's not in mine because I only use jar files in my webapp.

Good luck!

Bernhard


 -Ursprüngliche Nachricht-
 Von: Karasek-XID, Nicolas [mailto:[EMAIL PROTECTED]
 Gesendet: Mittwoch, 22. Juni 2005 10:26
 An: Tomcat Users List
 Betreff: RE: Use JSPC
 
 
 Hi bernhard,
 
 Just a few dumb questions on this, I still have problem to 
 generate servlets source files from jsp.
 From a previous message you sent on this subject in another 
 thread I guess I have a classpath problem in my jspc task ( 
 NullPointerException at 
 org.apache.jasper.JspCompilationContext.createCompiler(JspComp
 ilationContext.java:220) with tomcat 5.5.9).
 I think I have the correct values for getting tools.jar and 
 jasper jars in jspc.classpath.
 So, should the webapp be placed in tomcat webapps directory 
 in order to allow jspc work ? or maybe it doesn't matter ?
 Maybe someone have an idea on what I miss...
 
 -- 
 Nicolas
 
 
 -Original Message-
 From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
 Sent: jeudi 16 juin 2005 11:44
 To: 'Tomcat Users List'
 Subject: AW: Use JSPC
 
 Hi Mino,
 
 just one thing to add to the very good answer from Charl:
 I post you my ant sccript, 

Force HTTPS scheme on redirects

2005-06-22 Thread kadzsol
Hi all,

I have a vendor-supplied application here that is bundled with Microsoft
IIS 5 and Tomcat version 4.1.29. Our hosting infrastructure eploys proxy
servers and external SSL acceleration hardware in front of the Tomcat
server and needs to pass scheme and secure information back to our
clients. To do this I have specified the following in server.xml:

!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0 connectionTimeout=2
  useURIValidationHack=false
  proxyPort=443 scheme=https secure=true proxyName=my.com
  protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
!-- Define an AJP 1.3 Connector on port 8009 --

Unfortunately, Tomcat seems to ignore these seetings upon redirects.
Tracing the reponse of the server shows that the protocol http is passed
back to clients instead of https (other setting like proxyport and
proxyname are passed back correctly):

No. TimeSourceDestination   Protocol Info
172 4.47655610.124.83.148 10.124.83.140 HTTP
HTTP/1.1 302 Moved Temporarily

Frame 172 (544 bytes on wire, 544 bytes captured)
Arrival Time: Jun 22, 2005 15:03:49.804862000
Time delta from previous packet: 0.288105000 seconds
Time since reference or first frame: 4.476556000 seconds
Frame Number: 172
Packet Length: 544 bytes
Capture Length: 544 bytes
Ethernet II, Src: 00:08:02:a1:b0:6b, Dst: 00:08:02:f0:94:01
Destination: 00:08:02:f0:94:01 (CompaqCo_f0:94:01)
Source: 00:08:02:a1:b0:6b (CompaqCo_a1:b0:6b)
Type: IP (0x0800)
Internet Protocol, Src Addr: 10.124.83.148 (10.124.83.148), Dst Addr:
10.124.83.140 (10.124.83.140)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
 00.. = Differentiated Services Codepoint: Default (0x00)
 ..0. = ECN-Capable Transport (ECT): 0
 ...0 = ECN-CE: 0
Total Length: 530
Identification: 0x2e08 (11784)
Flags: 0x04 (Don't Fragment)
0... = Reserved bit: Not set
.1.. = Don't fragment: Set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 128
Protocol: TCP (0x06)
Header checksum: 0x0ec6 (correct)
Source: 10.124.83.148 (10.124.83.148)
Destination: 10.124.83.140 (10.124.83.140)
Transmission Control Protocol, Src Port: http (80), Dst Port: 4184 (4184),
Seq: 90, Ack: 931, Len: 490
Source port: http (80)
Destination port: 4184 (4184)
Sequence number: 90(relative sequence number)
Next sequence number: 580(relative sequence number)
Acknowledgement number: 931(relative ack number)
Header length: 20 bytes
Flags: 0x0018 (PSH, ACK)
0...  = Congestion Window Reduced (CWR): Not set
.0..  = ECN-Echo: Not set
..0.  = Urgent: Not set
...1  = Acknowledgment: Set
 1... = Push: Set
 .0.. = Reset: Not set
 ..0. = Syn: Not set
 ...0 = Fin: Not set
Window size: 16590
Checksum: 0x69aa (correct)
Hypertext Transfer Protocol
HTTP/1.1 302 Moved Temporarily\r\n
Response Code: 302
Server: Microsoft-IIS/5.0\r\n
Date: Wed, 22 Jun 2005 13:03:49 GMT\r\n
pragma: no-cache\r\n
Cache-Control: no-store\r\n
Expires: Thu, 01 Jan 1970 00:00:00 GMT\r\n
Set-Cookie: remember=false; Expires=Fri, 22-Jul-2005 13:03:50 GMT\r\n
Set-Cookie: loginuser=; Expires=Thu, 01-Jan-1970 00:00:10 GMT\r\n
Set-Cookie: loginpass=; Expires=Thu, 01-Jan-1970 00:00:10 GMT\r\n
Location: http://my.com:443/oaa/appmenu.jsp\r\n
Content-Type: text/html;charset=UTF-8\r\n
Content-Length: 0\r\n
\r\n

I have found a similar bug in the Bugzilla database
(http://issues.apache.org/bugzilla/show_bug.cgi?id=17656) for version
4.1.18 which is resolved. However, a user states in the bug report that
the bug is still present in version 4.1.24. I wonder if it has been really
fixed or I still have this bug in version 4.1.29.

Zsolt




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



RE: JBoss with Tomcat using Eclipse

2005-06-22 Thread dachipally ramesh
hello Mr.Raghupathy
 
I installed Tomcat server and server is running. I want to know which directory 
of Tomcat,i should copy the servlet class and what is the address to excecute 
this serlvet in internet explorer.
 
please answer it back.
Thank You
Ramesh.D

Raghupathy,Gurumoorthy [EMAIL PROTECTED] wrote:
Are you running on the correct port ? 8080 or are you sure that it is 81 ?
What is th error you getting ? 404 ( produced by tomcat ) or any thing else
?

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 13:26
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse


Sorry I just spelt it wrong in the email. Any other suggestions buddy?

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 22 June 2005 11:46
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse

I guess it should be http://localhost:81/fibo/ 

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 11:32
To: tomcat-user@jakarta.apache.org
Subject: JBoss with Tomcat using Eclipse


Hey!

I downloaded the pug-ins for eclipse 3.0 to use JBoss. I followed a
tutorial on the internet
http://docs.jboss.com/jbosside/tutorial/build/en/html/debugging.html and it
all worked wellup until the very end. My file is deployed and works but when
try and run the file, it doesn't work. I think its to do with how I have
tomcat configured, cos everything else works. When I go to
http://localhost:81/fabio/ it doesn't find the requested file. Anyone know
what the problem might be? 

Thanks,

Enda






-
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]



-
Meet your soulmate!
 Yahoo! Asia presents Meetic - where millions of singles gather 

RE: JBoss with Tomcat using Eclipse

2005-06-22 Thread Enda Dowling
If I just run http://localhost:81 It does bring up the tomcat page as you
would expect. But anything after that is a no go. I don't actually get an
error, it just brings me to a InstantCantFind page.

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 22 June 2005 13:30
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse

Are you running on the correct port ? 8080  or are you sure that it is 81 ?
What is th error you getting ? 404 ( produced by tomcat )  or any thing else
?

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 13:26
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse


Sorry I just spelt it wrong in the email. Any other suggestions buddy?

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 22 June 2005 11:46
To: 'Tomcat Users List'
Subject: RE: JBoss with Tomcat using Eclipse

I guess it should be http://localhost:81/fibo/ 

-Original Message-
From: Enda Dowling [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 11:32
To: tomcat-user@jakarta.apache.org
Subject: JBoss with Tomcat using Eclipse


Hey!

  I downloaded the pug-ins for eclipse 3.0 to use JBoss. I followed a
tutorial on the internet
http://docs.jboss.com/jbosside/tutorial/build/en/html/debugging.html and it
all worked wellup until the very end. My file is deployed and works but when
try and run the file, it doesn't work. I think its to do with how I have
tomcat configured, cos everything else works. When I go to
http://localhost:81/fabio/ it doesn't find the requested file. Anyone know
what the problem might be? 

Thanks,

Enda

 

 


-
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]



AW: Use JSPC

2005-06-22 Thread Bernhard Slominski
 target name=jspc 
 
 taskdef classname=org.apache.jasper.JspC name=jasper2  
   classpath id=jspc.classpath 
 pathelement location=${java.home}/../lib/tools.jar/ 
 fileset dir=${tomcat.home}/bin 
   include name=*.jar/ 
 /fileset 
 fileset dir=${tomcat.home}/server/lib 
   include name=*.jar/ 
 /fileset 
 fileset dir=${tomcat.home}/common/lib 
   include name=*.jar/ 
 /fileset 
   /classpath 
 /taskdef 
 
 jasper2 
  validateXml=false 
  uriroot=${webapp.path} 
  
 webXmlFragment=${webapp.path}/WEB-INF/generated_web.xml 
  outputDir=${webapp.path}/WEB-INF/src / 
 
   /target
 

 However If someone see a point to check...

What I think is missing is the Webapplication classes in your classpath, so:
 fileset dir=${webapp.path}/lib 
   include name=*.jar/ 
 /fileset 
 fileset dir=${webapp.path}/classes 
   include name=**/*.class/ 
 /fileset 
But I didn't test this on my System.

But narrow it down I would do the following:
Just write a simple Hello world jsp and remove all other Jsps from your
application.
Try to get jasper working with this file, if it's working fine, then you
know an application specfic calls is not picked up.
If the Hello world jsp does not work, you know it's a Tomcat/JRE class
which is missing.

Cheers

Bernhard

 
 -Original Message-
 From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
 Sent: mercredi 22 juin 2005 11:07
 To: 'Tomcat Users List'
 Subject: AW: Use JSPC
 
 Hi Nicolas,
 
 what jspc basically needs, is acces to all the internal 
 tomcat libraries,
 as you see from the ant script:
 ${tomcat.home}/bin/*.jar
 ${tomcat.home}/server/lib/*.jar
 ${tomcat.home}/common/lib/*.jar
 
 As well as all the libraries from you web application.
 So what I did was just installing (unzipping) Tomcat on my 
 deployment
 machine, just in order to the able to do the precomplation. I 
 think you can
 also just download the deployer distribution
 (http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi) this
 should contain all the stuff you need for the deployment. But 
 I don't have
 experience with the deployer application.
 
 Conerning you web application: You need to include all the classes and
 libraries in the classpath as well, but it doesn't have to be under
 ${tomcat.home}/webapps it can be anywhere on your deployment machine.
 Maybe what's missing is that you have to include the /WEB-INF/classes
 directory too in your ant script.
 It's not in mine because I only use jar files in my webapp.
 
 Good luck!
 
 Bernhard
 
 
  -Ursprüngliche Nachricht-
  Von: Karasek-XID, Nicolas [mailto:[EMAIL PROTECTED]
  Gesendet: Mittwoch, 22. Juni 2005 10:26
  An: Tomcat Users List
  Betreff: RE: Use JSPC
  
  
  Hi bernhard,
  
  Just a few dumb questions on this, I still have problem to 
  generate servlets source files from jsp.
  From a previous message you sent on this subject in another 
  thread I guess I have a classpath problem in my jspc task ( 
  NullPointerException at 
  org.apache.jasper.JspCompilationContext.createCompiler(JspComp
  ilationContext.java:220) with tomcat 5.5.9).
  I think I have the correct values for getting tools.jar and 
  jasper jars in jspc.classpath.
  So, should the webapp be placed in tomcat webapps directory 
  in order to allow jspc work ? or maybe it doesn't matter ?
  Maybe someone have an idea on what I miss...
  
  -- 
  Nicolas
  
  
  -Original Message-
  From: Bernhard Slominski [mailto:[EMAIL PROTECTED] 
  Sent: jeudi 16 juin 2005 11:44
  To: 'Tomcat Users List'
  Subject: AW: Use JSPC
  
  Hi Mino,
  
  just one thing to add to the very good answer from Charl:
  I post you my ant sccript, which does all together precompiling and
  automatic generation of the web.xml file.
  You might take it as a basis for your stuff.
  
  Cheers
  
  Bernhard
  
  !-- do the precompilation --
  target name=jspc depends=get-properties-stage  
  mkdir dir=${webapproot}/src/
  
  !-- define the jasper task --
  taskdef classname=org.apache.jasper.JspC 
  name=jasper2 
  
  classpath id=jspc.classpath 
  pathelement
  location=${java.home}/../lib/tools.jar/ 
  fileset dir=${tomcat.home}/bin 
  include name=*.jar/ 
  /fileset 
  fileset 
  dir=${tomcat.home}/server/lib 
  include name=*.jar/ 
  /fileset 
  fileset 
  dir=${tomcat.home}/common/lib 
  include name=*.jar/ 
  /fileset
  fileset
  dir=${webapproot}${webappname}/WEB-INF/lib 
 

Blocking urls

2005-06-22 Thread Jim Henderson

I am working on porting a WebSphere JSP application to Tomcat.

I can not seem to find a way in Tomcat to block access to valid pages within
the application.  I don't want the user to access selected pages by them
typing the URL to the pages in question.

Is there a means to prevent this in Tomcat?




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



Re: mod_jk configuration

2005-06-22 Thread Colby . Meyer
One way to do this is to declare a host in your server.xml instance

The server.xml will need to contain an entry within the engine like


Host name=myotherdomain.tld appBase=webapps unpackWARs=true 
autoDeploy=true
 Logger className=org.apache.catalina.logger.FileLogger
directory=logs 
prefix=YOUR_PREFIX. suffix=.txt
timestamp=true/
 
!-- this takes all requests to myotherdomain.tld and associates 
them to the context , may need to play with this-- 
 Context path= 
docBase=/path/to/your/appDir/or/war_file
crossContext=false
debug=10 
reloadable=false
trusted=false 
/Context 
!-- ** the deva application context ** --
/Host

And in your httpd.conf 
virtual host ...
servername myotherdomain.tld
JkMount /* ajp13   -- My worker
/virtual host ...

This seems to work in our configuration to handle this type of operation.

Have Fun...
Colby C. Meyer




[EMAIL PROTECTED] [EMAIL PROTECTED] 
06/22/2005 01:31 AM
Please respond to
Tomcat Users List tomcat-user@jakarta.apache.org


To
Tomcat Users List tomcat-user@jakarta.apache.org
cc

Subject
mod_jk configuration






Hello all,

i am using Tomcat 4.1.3x, mod_jk 1.x and Apache 1.3.x.

I have read all the documentation available on apache.org, but
i think i have not understood some principles of JK.

Problem:
I have java.domain.tld pointing to the root-directory of Tomcat. The 
default
tomcat site appears. I guess my installations are ok.

I want to have myotherdomain.tld pointing to a specific webapp.
I have a worker (the same as the java.domain.tld Domain), but where
must i declare which context is to use?

In my vhosts i have:
virtual host ...
JkMount /* ajp13   -- My worker
/virtual host ...

In my workers.properties there is nothing about an context. Documentation
told me nothin about tags to declare. Btw, i installed my app with the 
war-deploy feat.
Maybe this is important.

Any help is appreciated- thank you for reading.

Regards
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]



New user, help!

2005-06-22 Thread Katherine Faella
I am a new user of Apache and of Tomcat.  I am using a Redhat AS 4.0 
system.  I am running Apache V2.0.54  and my version of Tomcat is 5.5.9. 
I believe my apache installation is okay because when I go to localhost I 
see the apache welcome screen.  When I go to localhost:8080 I see the 
Tomcat welcome screen.   For a short while, when I went to localhost I 
actually saw the Tomcat welcome screen and could run the samples there. 
The only thing missing were the Tomcat icons etc.


However,  I have improved my installation to the point where tomcat is no 
longer serving for apache, ie. at localhost I see the apache welcome 
screen.  When I peer around at various log files I do not see any obvious 
errors.  Needless to say - I am going nowhere!


Can anyone help me?  Point me in the right direction at least?!

Thanks in advance,
Kathy Faella
University of Rhode Island

a netstat -ln returns:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address 
State
tcp0  0 0.0.0.0:111 0.0.0.0:* 
LISTEN
tcp0  0 127.0.0.1:631   0.0.0.0:* 
LISTEN
tcp0  0 127.0.0.1:250.0.0.0:* 
LISTEN
tcp0  0 :::127.0.0.1:8005   :::* 
LISTEN
tcp0  0 :::8009 :::* 
LISTEN
tcp0  0 :::80   :::* 
LISTEN
tcp0  0 :::8080 :::* 
LISTEN
tcp0  0 :::22   :::* 
LISTEN

udp0  0 0.0.0.0:111 0.0.0.0:*
udp0  0 0.0.0.0:631 0.0.0.0:*
udp0  0 198.168.1.76:1230.0.0.0:*
udp0  0 131.128.1.76:1230.0.0.0:*
udp0  0 127.0.0.1:123   0.0.0.0:*
udp0  0 0.0.0.0:123 0.0.0.0:*
udp0  0 :::123  :::*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags   Type   State I-Node Path
unix  2  [ ACC ] STREAM LISTENING 5899   /dev/gpmctl
unix  2  [ ACC ] STREAM LISTENING 5986 
/tmp/.font-unix/fs7100
unix  2  [ ACC ] STREAM LISTENING 5515 
/var/run/acpid.socket
unix  2  [ ACC ] STREAM LISTENING 6062 
/var/run/dbus/system_bus_socket



***  To the default httpd.conf I added:

LoadModule jk_module modules/mod_jk.so

#
# Configure mod_jk*** kmf ***
#


JkWorkersFile /usr/local/apache2/conf/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel info

JkShmFile /var/log/httpd/jkshmfile
JkShmSize 20M

*** my workers.properties  ***

# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=loadbalancer

#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

# add any new workers to the list here to have them balanced
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13w

workers.tomcat_home=/usr/local/src/jakarta-tomcat-5.5.9
workers.java_home=/usr/java/jdk1.5.0_03



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



NoSuchElementException in cluster in 5.0.28

2005-06-22 Thread Ronald Klop

Hello,

This exception is thrown in the clustering of Tomcat 5.0.28. The fun part is, 
that the user is seeing this stacktrace in his browser.

java.util.NoSuchElementException 
java.util.LinkedList.remove(LinkedList.java:644) 
java.util.LinkedList.removeFirst(LinkedList.java:134) 
org.apache.catalina.cluster.session.DeltaRequest.addAction(DeltaRequest.java:102) 
org.apache.catalina.cluster.session.DeltaRequest.setAttribute(DeltaRequest.java:69) 
org.apache.catalina.cluster.session.DeltaSession.setAttribute(DeltaSession.java:1265) 
org.apache.catalina.cluster.session.DeltaSession.setAttribute(DeltaSession.java:1246) 
org.apache.catalina.cluster.session.DeltaSessionFacade.setAttribute(DeltaSessionFacade.java:130) 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:265) 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:213)


Any thoughts about this?

Greetings,

Ronald.


debugging tomcat itself with netbeans

2005-06-22 Thread Hernan Ochoa
Hi all,

I'm trying to debug tomcat itself v5.5.9 using netbeans 4.1 without much luck.
I'm able to attach to a running instance of tomcat using JPDA, but
then my breakpoints are activated erraticaly.

Did someone try this before?
These are the things I did:

-compiled tomcat 5.5.9 with a build.properties file containing:
compile.debug=on
compile.deprecation=off
compile.optimize=off
debuglevel=lines,vars,source
-I added all .java files into a new netbeans project (I created a new
project with the option new project with existing java source files
or sthg like that)
-I run tomcat using the command /bin/catalina.sh jpda start
-I attach to the instance of tomcat running with netbeans
-I set the breakpoints by toggling them into the .java source files I
added on netbeans. Sometimes I do this from the Files window, and
sometimes from the Projects windows. Here I'm not sure what's the
right way to go.

Any help with this would be much appreciated.
If anyone has sucessfully debugged tomcat with another debugger,
please let me know also.

Thanks in advance.
bye!

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



Re: New user, help!

2005-06-22 Thread Jon Wingfield
You need some JkMount directives to tell Apache which requests to 
forward to Tomcat.


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/config/apache.html

Jon

Katherine Faella wrote:

I am a new user of Apache and of Tomcat.  I am using a Redhat AS 4.0 
system.  I am running Apache V2.0.54  and my version of Tomcat is 5.5.9. 
I believe my apache installation is okay because when I go to localhost 
I see the apache welcome screen.  When I go to localhost:8080 I see the 
Tomcat welcome screen.   For a short while, when I went to localhost I 
actually saw the Tomcat welcome screen and could run the samples there. 
The only thing missing were the Tomcat icons etc.


However,  I have improved my installation to the point where tomcat is 
no longer serving for apache, ie. at localhost I see the apache welcome 
screen.  When I peer around at various log files I do not see any 
obvious errors.  Needless to say - I am going nowhere!


Can anyone help me?  Point me in the right direction at least?!

Thanks in advance,
Kathy Faella
University of Rhode Island

a netstat -ln returns:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address State
tcp0  0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp0  0 127.0.0.1:631   0.0.0.0:* LISTEN
tcp0  0 127.0.0.1:250.0.0.0:* LISTEN
tcp0  0 :::127.0.0.1:8005   :::* LISTEN
tcp0  0 :::8009 :::* LISTEN
tcp0  0 :::80   :::* LISTEN
tcp0  0 :::8080 :::* LISTEN
tcp0  0 :::22   :::* LISTEN
udp0  0 0.0.0.0:111 0.0.0.0:*
udp0  0 0.0.0.0:631 0.0.0.0:*
udp0  0 198.168.1.76:1230.0.0.0:*
udp0  0 131.128.1.76:1230.0.0.0:*
udp0  0 127.0.0.1:123   0.0.0.0:*
udp0  0 0.0.0.0:123 0.0.0.0:*
udp0  0 :::123  :::*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags   Type   State I-Node Path
unix  2  [ ACC ] STREAM LISTENING 5899   /dev/gpmctl
unix  2  [ ACC ] STREAM LISTENING 5986 
/tmp/.font-unix/fs7100
unix  2  [ ACC ] STREAM LISTENING 5515 
/var/run/acpid.socket
unix  2  [ ACC ] STREAM LISTENING 6062 
/var/run/dbus/system_bus_socket



***  To the default httpd.conf I added:

LoadModule jk_module modules/mod_jk.so

#
# Configure mod_jk*** kmf ***
#


JkWorkersFile /usr/local/apache2/conf/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel info

JkShmFile /var/log/httpd/jkshmfile
JkShmSize 20M

*** my workers.properties  ***

# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=loadbalancer

#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

# add any new workers to the list here to have them balanced
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13w

workers.tomcat_home=/usr/local/src/jakarta-tomcat-5.5.9
workers.java_home=/usr/java/jdk1.5.0_03



-
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: New user, help!

2005-06-22 Thread Steve
I am a newbie at this stuff also, and as I understand, for development I 
do not need to install Apache at all. Tomcat will act as a static web 
page server. I am using eclipse so I dont even want Apache installed. 
Just redirect everything to localhost:8080


Steve

Jon Wingfield wrote:

You need some JkMount directives to tell Apache which requests to 
forward to Tomcat.


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/config/apache.html

Jon

Katherine Faella wrote:

I am a new user of Apache and of Tomcat.  I am using a Redhat AS 4.0 
system.  I am running Apache V2.0.54  and my version of Tomcat is 
5.5.9. I believe my apache installation is okay because when I go to 
localhost I see the apache welcome screen.  When I go to 
localhost:8080 I see the Tomcat welcome screen.   For a short while, 
when I went to localhost I actually saw the Tomcat welcome screen and 
could run the samples there. The only thing missing were the Tomcat 
icons etc.


However,  I have improved my installation to the point where tomcat 
is no longer serving for apache, ie. at localhost I see the apache 
welcome screen.  When I peer around at various log files I do not see 
any obvious errors.  Needless to say - I am going nowhere!


Can anyone help me?  Point me in the right direction at least?!

Thanks in advance,
Kathy Faella
University of Rhode Island

a netstat -ln returns:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address State
tcp0  0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp0  0 127.0.0.1:631   0.0.0.0:* LISTEN
tcp0  0 127.0.0.1:250.0.0.0:* LISTEN
tcp0  0 :::127.0.0.1:8005   :::* LISTEN
tcp0  0 :::8009 :::* LISTEN
tcp0  0 :::80   :::* LISTEN
tcp0  0 :::8080 :::* LISTEN
tcp0  0 :::22   :::* LISTEN
udp0  0 0.0.0.0:111 0.0.0.0:*
udp0  0 0.0.0.0:631 0.0.0.0:*
udp0  0 198.168.1.76:1230.0.0.0:*
udp0  0 131.128.1.76:1230.0.0.0:*
udp0  0 127.0.0.1:123   0.0.0.0:*
udp0  0 0.0.0.0:123 0.0.0.0:*
udp0  0 :::123  :::*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags   Type   State I-Node Path
unix  2  [ ACC ] STREAM LISTENING 5899   /dev/gpmctl
unix  2  [ ACC ] STREAM LISTENING 5986 
/tmp/.font-unix/fs7100
unix  2  [ ACC ] STREAM LISTENING 5515 
/var/run/acpid.socket
unix  2  [ ACC ] STREAM LISTENING 6062 
/var/run/dbus/system_bus_socket



***  To the default httpd.conf I added:

LoadModule jk_module modules/mod_jk.so

#
# Configure mod_jk*** kmf ***
#


JkWorkersFile /usr/local/apache2/conf/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel info

JkShmFile /var/log/httpd/jkshmfile
JkShmSize 20M

*** my workers.properties  ***

# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=loadbalancer

#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

# add any new workers to the list here to have them balanced
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13w

workers.tomcat_home=/usr/local/src/jakarta-tomcat-5.5.9
workers.java_home=/usr/java/jdk1.5.0_03



-
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]






--
Rowan Cottage, Main Road, Littleton, Winchester, SO22 6QS
cellular 07791766560, 
landline: 01962 881924



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



RE: New user, help!

2005-06-22 Thread Raghupathy,Gurumoorthy
Firtst read java / j2ee / jsp and some tutorials ... 
http://www.tusc.com.au/tutorial/html is a good place to start 

Guru


-Original Message-
From: Steve [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 16:49
To: Tomcat Users List
Subject: Re: New user, help!


I am a newbie at this stuff also, and as I understand, for development I 
do not need to install Apache at all. Tomcat will act as a static web 
page server. I am using eclipse so I dont even want Apache installed. 
Just redirect everything to localhost:8080

Steve

Jon Wingfield wrote:

 You need some JkMount directives to tell Apache which requests to 
 forward to Tomcat.

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/config/apache.html

 Jon

 Katherine Faella wrote:

 I am a new user of Apache and of Tomcat.  I am using a Redhat AS 4.0 
 system.  I am running Apache V2.0.54  and my version of Tomcat is 
 5.5.9. I believe my apache installation is okay because when I go to 
 localhost I see the apache welcome screen.  When I go to 
 localhost:8080 I see the Tomcat welcome screen.   For a short while, 
 when I went to localhost I actually saw the Tomcat welcome screen and 
 could run the samples there. The only thing missing were the Tomcat 
 icons etc.

 However,  I have improved my installation to the point where tomcat 
 is no longer serving for apache, ie. at localhost I see the apache 
 welcome screen.  When I peer around at various log files I do not see 
 any obvious errors.  Needless to say - I am going nowhere!

 Can anyone help me?  Point me in the right direction at least?!

 Thanks in advance,
 Kathy Faella
 University of Rhode Island

 a netstat -ln returns:
 Active Internet connections (only servers)
 Proto Recv-Q Send-Q Local Address   Foreign Address State
 tcp0  0 0.0.0.0:111 0.0.0.0:* LISTEN
 tcp0  0 127.0.0.1:631   0.0.0.0:* LISTEN
 tcp0  0 127.0.0.1:250.0.0.0:* LISTEN
 tcp0  0 :::127.0.0.1:8005   :::* LISTEN
 tcp0  0 :::8009 :::* LISTEN
 tcp0  0 :::80   :::* LISTEN
 tcp0  0 :::8080 :::* LISTEN
 tcp0  0 :::22   :::* LISTEN
 udp0  0 0.0.0.0:111 0.0.0.0:*
 udp0  0 0.0.0.0:631 0.0.0.0:*
 udp0  0 198.168.1.76:1230.0.0.0:*
 udp0  0 131.128.1.76:1230.0.0.0:*
 udp0  0 127.0.0.1:123   0.0.0.0:*
 udp0  0 0.0.0.0:123 0.0.0.0:*
 udp0  0 :::123  :::*
 Active UNIX domain sockets (only servers)
 Proto RefCnt Flags   Type   State I-Node Path
 unix  2  [ ACC ] STREAM LISTENING 5899   /dev/gpmctl
 unix  2  [ ACC ] STREAM LISTENING 5986 
 /tmp/.font-unix/fs7100
 unix  2  [ ACC ] STREAM LISTENING 5515 
 /var/run/acpid.socket
 unix  2  [ ACC ] STREAM LISTENING 6062 
 /var/run/dbus/system_bus_socket


 ***  To the default httpd.conf I added:

 LoadModule jk_module modules/mod_jk.so

 #
 # Configure mod_jk*** kmf ***
 #


 JkWorkersFile /usr/local/apache2/conf/workers.properties
 JkLogFile /usr/local/apache2/logs/mod_jk.log
 JkLogLevel info

 JkShmFile /var/log/httpd/jkshmfile
 JkShmSize 20M

 *** my workers.properties  ***

 # workers.properties.minimal -
 #
 # This file provides minimal jk configuration properties needed to
 # connect to Tomcat.
 #
 # The workers that jk should create and work with
 #
 worker.list=loadbalancer

 #
 # Defining a worker named ajp13w and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.ajp13w.type=ajp13
 worker.ajp13w.host=localhost
 worker.ajp13w.port=8009

 # add any new workers to the list here to have them balanced
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13w

 workers.tomcat_home=/usr/local/src/jakarta-tomcat-5.5.9
 workers.java_home=/usr/java/jdk1.5.0_03



 -
 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]





-- 
Rowan Cottage, Main Road, Littleton, Winchester, SO22 6QS
cellular 07791766560, 
landline: 01962 881924


-
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: New user, help!

2005-06-22 Thread Steve

Thanks
Mind you though, the introduction to this document says


 *Prerequisites for this tutorial.*

Before you start this tutorial, you should ideally have a working 
knowledge of *Java technology, XML, J2EE technology and some exposure to 
SQL, JDBC concepts, and Xdoclet (Attribute Oriented Programming)*. Even 
if you are new to a lot of this then don't panic – just expect to do a 
bit more learning along the way!




Raghupathy,Gurumoorthy wrote:

Firtst read java / j2ee / jsp and some tutorials ... 
http://www.tusc.com.au/tutorial/html is a good place to start 


Guru


-Original Message-
From: Steve [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 16:49

To: Tomcat Users List
Subject: Re: New user, help!


I am a newbie at this stuff also, and as I understand, for development I 
do not need to install Apache at all. Tomcat will act as a static web 
page server. I am using eclipse so I dont even want Apache installed. 
Just redirect everything to localhost:8080


Steve

Jon Wingfield wrote:

 

You need some JkMount directives to tell Apache which requests to 
forward to Tomcat.


http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/config/apache.html

Jon

Katherine Faella wrote:

   

I am a new user of Apache and of Tomcat.  I am using a Redhat AS 4.0 
system.  I am running Apache V2.0.54  and my version of Tomcat is 
5.5.9. I believe my apache installation is okay because when I go to 
localhost I see the apache welcome screen.  When I go to 
localhost:8080 I see the Tomcat welcome screen.   For a short while, 
when I went to localhost I actually saw the Tomcat welcome screen and 
could run the samples there. The only thing missing were the Tomcat 
icons etc.


However,  I have improved my installation to the point where tomcat 
is no longer serving for apache, ie. at localhost I see the apache 
welcome screen.  When I peer around at various log files I do not see 
any obvious errors.  Needless to say - I am going nowhere!


Can anyone help me?  Point me in the right direction at least?!

Thanks in advance,
Kathy Faella
University of Rhode Island

a netstat -ln returns:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address State
tcp0  0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp0  0 127.0.0.1:631   0.0.0.0:* LISTEN
tcp0  0 127.0.0.1:250.0.0.0:* LISTEN
tcp0  0 :::127.0.0.1:8005   :::* LISTEN
tcp0  0 :::8009 :::* LISTEN
tcp0  0 :::80   :::* LISTEN
tcp0  0 :::8080 :::* LISTEN
tcp0  0 :::22   :::* LISTEN
udp0  0 0.0.0.0:111 0.0.0.0:*
udp0  0 0.0.0.0:631 0.0.0.0:*
udp0  0 198.168.1.76:1230.0.0.0:*
udp0  0 131.128.1.76:1230.0.0.0:*
udp0  0 127.0.0.1:123   0.0.0.0:*
udp0  0 0.0.0.0:123 0.0.0.0:*
udp0  0 :::123  :::*
Active UNIX domain sockets (only servers)
Proto RefCnt Flags   Type   State I-Node Path
unix  2  [ ACC ] STREAM LISTENING 5899   /dev/gpmctl
unix  2  [ ACC ] STREAM LISTENING 5986 
/tmp/.font-unix/fs7100
unix  2  [ ACC ] STREAM LISTENING 5515 
/var/run/acpid.socket
unix  2  [ ACC ] STREAM LISTENING 6062 
/var/run/dbus/system_bus_socket



***  To the default httpd.conf I added:

LoadModule jk_module modules/mod_jk.so

#
# Configure mod_jk*** kmf ***
#


JkWorkersFile /usr/local/apache2/conf/workers.properties
JkLogFile /usr/local/apache2/logs/mod_jk.log
JkLogLevel info

JkShmFile /var/log/httpd/jkshmfile
JkShmSize 20M

*** my workers.properties  ***

# workers.properties.minimal -
#
# This file provides minimal jk configuration properties needed to
# connect to Tomcat.
#
# The workers that jk should create and work with
#
worker.list=loadbalancer

#
# Defining a worker named ajp13w and of type ajp13
# Note that the name and the type do not have to match.
#
worker.ajp13w.type=ajp13
worker.ajp13w.host=localhost
worker.ajp13w.port=8009

# add any new workers to the list here to have them balanced
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13w

workers.tomcat_home=/usr/local/src/jakarta-tomcat-5.5.9
workers.java_home=/usr/java/jdk1.5.0_03



-
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]



   




 




--
Rowan Cottage, Main Road, Littleton, Winchester, SO22 6QS
cellular 07791766560, 
landline: 01962 881924




RE: New user, help! (UNCLASSIFIED)

2005-06-22 Thread Samara, Fadi N Mr ACSIM/ASPEX
Classification:  UNCLASSIFIED 
Caveats: NONE

There are more tutorials on the web you just have to spend some time
googling.
Some that really help understand putting all the bits and pieces together is
http://www.coreservlets.com
You'll find tutorials on the different technologies and tools

Fadi 

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: Wednesday, June 22, 2005 11:52 AM
To: 'Tomcat Users List'
Subject: RE: New user, help!

Firtst read java / j2ee / jsp and some tutorials ... 
http://www.tusc.com.au/tutorial/html is a good place to start 

Guru


-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]
Sent: 22 June 2005 16:49
To: Tomcat Users List
Subject: Re: New user, help!


I am a newbie at this stuff also, and as I understand, for development I 
do not need to install Apache at all. Tomcat will act as a static web 
page server. I am using eclipse so I dont even want Apache installed. 
Just redirect everything to localhost:8080

Steve

Jon Wingfield wrote:

 You need some JkMount directives to tell Apache which requests to 
 forward to Tomcat.

 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/config/apache.html

 Jon

 Katherine Faella wrote:

 I am a new user of Apache and of Tomcat.  I am using a Redhat AS 4.0 
 system.  I am running Apache V2.0.54  and my version of Tomcat is 
 5.5.9. I believe my apache installation is okay because when I go to 
 localhost I see the apache welcome screen.  When I go to 
 localhost:8080 I see the Tomcat welcome screen.   For a short while, 
 when I went to localhost I actually saw the Tomcat welcome screen and 
 could run the samples there. The only thing missing were the Tomcat 
 icons etc.

 However,  I have improved my installation to the point where tomcat 
 is no longer serving for apache, ie. at localhost I see the apache 
 welcome screen.  When I peer around at various log files I do not see 
 any obvious errors.  Needless to say - I am going nowhere!

 Can anyone help me?  Point me in the right direction at least?!

 Thanks in advance,
 Kathy Faella
 University of Rhode Island

 a netstat -ln returns:
 Active Internet connections (only servers)
 Proto Recv-Q Send-Q Local Address   Foreign Address State
 tcp0  0 0.0.0.0:111 0.0.0.0:* LISTEN
 tcp0  0 127.0.0.1:631   0.0.0.0:* LISTEN
 tcp0  0 127.0.0.1:250.0.0.0:* LISTEN
 tcp0  0 :::127.0.0.1:8005   :::* LISTEN
 tcp0  0 :::8009 :::* LISTEN
 tcp0  0 :::80   :::* LISTEN
 tcp0  0 :::8080 :::* LISTEN
 tcp0  0 :::22   :::* LISTEN
 udp0  0 0.0.0.0:111 0.0.0.0:*
 udp0  0 0.0.0.0:631 0.0.0.0:*
 udp0  0 198.168.1.76:1230.0.0.0:*
 udp0  0 131.128.1.76:1230.0.0.0:*
 udp0  0 127.0.0.1:123   0.0.0.0:*
 udp0  0 0.0.0.0:123 0.0.0.0:*
 udp0  0 :::123  :::*
 Active UNIX domain sockets (only servers)
 Proto RefCnt Flags   Type   State I-Node Path
 unix  2  [ ACC ] STREAM LISTENING 5899   /dev/gpmctl
 unix  2  [ ACC ] STREAM LISTENING 5986 
 /tmp/.font-unix/fs7100
 unix  2  [ ACC ] STREAM LISTENING 5515 
 /var/run/acpid.socket
 unix  2  [ ACC ] STREAM LISTENING 6062 
 /var/run/dbus/system_bus_socket


 ***  To the default httpd.conf I added:

 LoadModule jk_module modules/mod_jk.so

 #
 # Configure mod_jk*** kmf ***
 #


 JkWorkersFile /usr/local/apache2/conf/workers.properties
 JkLogFile /usr/local/apache2/logs/mod_jk.log
 JkLogLevel info

 JkShmFile /var/log/httpd/jkshmfile
 JkShmSize 20M

 *** my workers.properties  ***

 # workers.properties.minimal -
 #
 # This file provides minimal jk configuration properties needed to
 # connect to Tomcat.
 #
 # The workers that jk should create and work with
 #
 worker.list=loadbalancer

 #
 # Defining a worker named ajp13w and of type ajp13
 # Note that the name and the type do not have to match.
 #
 worker.ajp13w.type=ajp13
 worker.ajp13w.host=localhost
 worker.ajp13w.port=8009

 # add any new workers to the list here to have them balanced
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_workers=ajp13w

 workers.tomcat_home=/usr/local/src/jakarta-tomcat-5.5.9
 workers.java_home=/usr/java/jdk1.5.0_03



 -
 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]





-- 
Rowan Cottage, Main Road, Littleton, Winchester, SO22 6QS
cellular 07791766560, 
landline: 01962 

Better explained of my problem with renaming a file in Tomcat

2005-06-22 Thread Kam Lung Leung
Hi,

I have a servlet, RenameFile, that receives audio file via HTTP Post and
writes it to /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav.
Then it creates directories under /alert_messages directory based on the
timing parameters that it get. Finally, it renames the 
/tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav file to  
/alert_messages/2005/06/22/22/00/79_0_20050600_001.WAV. RenameFile runs
fine when it runs by itself (ONLY one Tomcat, jakarta-tomcat-4.1.30, is 
running). However, RenameFile fails to rename the 
/tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav to
/alert_messages/2005/06/22/22/00/79_0_20050600_001.WAV when it runs 
in a Linux box that jboss-3.2.1_tomcat-4.1.24 is also running. In this box,
TWO versions of Tomcat are running at the same time. I set the
/alert_messages directory with “chmod –R 777” and run jakarta-tomcat-4.1.30
as tomcat user. RenameFile fails the rename operation. But, it creates the
/alert_messages/2005/06/22/22/00/ directories.

It seem like RenameFile can create directory but can’t create file in the
/alert_messages directory when both version of tomcats are running at the
same time. Can it be due to both the jakarta-tomcat-4.1.30 and the 
jboss-3.2.1_tomcat-4.1.24 versions are running at the same time in one
Linux box?  Can this be Jboss prevented the operation?


Any help in this issue is greatly appreciated.



Debug listing from the RenameFile;
- originalFilename: recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
- file.toString(): /tmp/recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
- file.getName(): recording.0002002B-0C0022BB-0001.1.20050622.073208.wav
- file.length(): 122986
- file /alert_messages/2005/06/22/22/00/79_0_20050600_001.WAV
- file NOT renamed /alert_messages/2005/06/22/22/00/79_0_20050600_001.WAV

File Listing in the /tmp directory create by RenameFile;
-rw-r--r--1 tomcat   tomcat  122986 Jun 22 07:33 
recording.0002002B-0C0022BB-0001.1.20050622.073208.wav

Directoy Listing in the / directory with “ls –la”;
drwxrwxrwx3 tomcat   tomcat   4096 Jun 22 07:28 alert_messages

Directory created by the RenameFile with “ls -la 
/alert_messages/2005/06/22/22/00”;
drwxr-xr-x2 tomcat   tomcat4096 Jun 22 07:33 .
drwxr-xr-x3 tomcat   tomcat4096 Jun 22 07:33 ..



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



Move Webapps

2005-06-22 Thread MW
I would like to move the Webapps
from the current default path (CATALINA_HOME\WEBAPPS) to a different
path on a different drive - let's say D:\DATA.  I would still prefer
to run the webserver from the default installation directory, as I
only want to move the webapps to serve them from another location.
What steps do I need to take to accomplish this?

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



Re: Tomcat and Internet Explorers caching

2005-06-22 Thread Patrick Thomas
Hi Øyvind,

This works quite well for me. Place the following magic incantation at
the *end* of your JSP. Specifically, place it after the closing body
tag, but before the closing html tag. In context it looks like this:

/body
!-- Hack to disable IE caching --
head
  meta HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE
/head
!-- end no-cache hack --
/html

Why at the end? I dunno. Maybe someone on the list who has the answer
on tap would chime in?

Hope this helps.
~PST

On 6/22/05, Øyvind Johansen [EMAIL PROTECTED] wrote:
 Hello!
 
 Our web-application uses a combination of JSP-pages and a controller
 servlet. When viewing these pages with Internet Explorer weird things tend
 to happen. I found out that if Internet Explorers caching is set to
 automatic checking for newer versions on the server everything goes wrong.
 Instead of sending requests to the servlet, IE just simply takes an answer
 from its cache, and thus presenting the wrong results. When changing the
 setting to always the problem disappears.
 
 Now, telling every user to change this setting would require almost as much
 work as convincing them that Firefox and/or Opera are much better. So, are
 there any ways to tell IE that it shouldn't cache my servlet/jsp-pages?
 
 Regards,
 
 Øyvind Johansen
 ElectricTimeCar
 
 
 
 -
 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: Move Webapps

2005-06-22 Thread Raghupathy,Gurumoorthy
Change 
Host name=localhost debug=0 appBase=webapps 
   unpackWARs=true autoDeploy=true
To
Host name=localhost debug=0 appBase=D:\Data 
   unpackWARs=true autoDeploy=true
And restart tomcat 

guru
-Original Message-
From: MW [mailto:[EMAIL PROTECTED] 
Sent: 22 June 2005 17:24
To: tomcat-user@jakarta.apache.org
Subject: Move Webapps


I would like to move the Webapps
from the current default path (CATALINA_HOME\WEBAPPS) to a different
path on a different drive - let's say D:\DATA.  I would still prefer
to run the webserver from the default installation directory, as I
only want to move the webapps to serve them from another location.
What steps do I need to take to accomplish this?

-
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: Better explained of my problem with renaming a file in Tomcat

2005-06-22 Thread Jason Bainbridge
On 6/22/05, Kam Lung Leung [EMAIL PROTECTED] wrote:
 Hi,
 
 I have a servlet, RenameFile, that receives audio file via HTTP Post 

I should have read your post better and realized there was no Java
method for RenameFile as that is what I wrongly assumed... How exactly
are you ceating the directories and trying to move the file?

Are both servers running the same servlet and doing similar things?


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Better explained of my problem with renaming a file in Tomcat

2005-06-22 Thread Kam Lung Leung
Hi Jason,

Thank very much for helping me to solve this issue. Only the 
jakarta-tomcat-4.1.30 contains servlet named RenameFile. The other version of 
tomcat ( jboss-3.2.1_tomcat-4.1.24) is embedded in the Jboss. This version of 
tomcat does not contais the servlet named RenameFile. A color coded of the java 
class that does the renaming of the file is listed in the following site:
 http://forum.java.sun.com/thread.jspa?threadID=638498

Thank again for your help.

 Jason Bainbridge [EMAIL PROTECTED] wrote:

 On 6/22/05, Kam Lung Leung [EMAIL PROTECTED] wrote:
  Hi,
  
  I have a servlet, RenameFile, that receives audio file via HTTP Post 
 
 I should have read your post better and realized there was no Java
 method for RenameFile as that is what I wrongly assumed... How exactly
 are you ceating the directories and trying to move the file?
 
 Are both servers running the same servlet and doing similar things?
 
 
 -- 
 Jason Bainbridge
 http://kde.org - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 
 -
 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: How to make tomcat work on a remote server?

2005-06-22 Thread Randall Svancara
 
This might be something to look at, but I know in Fedora Core 3, the
last SE Linux Policy broke mod_jk.  You had to either turn of SELinux or
modify targeted policy.  If you think you may have this problem, look at
/var/log/messages to see if the security policy is logging any errors.

You can also run:

audit2allow -d 

to see if any policy changes needed to be added.   


Randall


-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 21, 2005 7:10 AM
To: 'Tomcat Users List'
Subject: RE: How to make tomcat work on a remote server?

Hey just got it 

Look at : http://www.junlu.com/msg/170819.html 

-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED]

Sent: 21 June 2005 14:04
To: 'Tomcat Users List'
Cc: '[EMAIL PROTECTED]'
Subject: RE: How to make tomcat work on a remote server?


From my experience 
Your DocumentRoot should be different to the appBase of your
virtual host ... 
Set the document root to something else and try 


Regards
Guru


-Original Message-
From: Raghupathy,Gurumoorthy
[mailto:[EMAIL PROTECTED]

Sent: 21 June 2005 13:45
To: 'Tomcat Users List'
Cc: '[EMAIL PROTECTED]'
Subject: RE: How to make tomcat work on a remote server?


Sorry could not get back to you earlier ... 

I think you are worker2.properties ... 

Remove 
LoadModule jk2_module modules/mod_jk2.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf


Your workers.
Should be somehting like this .. .. 

http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html

I will look into your problem from home ..  Have emailed my home address
...


Regards
Guru 

-Original Message-
From: sai krishna [mailto:[EMAIL PROTECTED]
Sent: 21 June 2005 13:06
To: Tomcat Users List
Subject: RE: How to make tomcat work on a remote server?


 Can anyone help me out  here??
 Im unable to access my jsp page on the net. I get
internal server error. Im using included both mod_jk
and mod_jk2 module, /var/logs/httpd/log shows that
mod_jk2 starts but down below this module I loaded
mod_jk module so it will support JkMount command in
httpd.conf file. Can any one suggest m e the best
method to access jsp pages on tomcat 4.1.17 either
mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora
box 2.
Today I added JkMount line in httpd.conf and rest
everything is same as my down files 
 
  server.xml is as following
  Server port=8005 shutdown=SHUTDOWN debug=0
!-- Define an Apache-Connector Service --
 Service name=Tomcat-Apache
   !-- Define a Coyote/JK2 AJP 1.3 Connector on
port 8009 --
  Connector
 className=org.apache.coyote.tomcat4.CoyoteConnector
  port=8009 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
  acceptCount=10 debug=0
  connectionTimeout=2
  useURIValidationHack=false
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
Engine name=Apache
  defaultHost=www.oursitename.com debug=0
  Logger
  className=org.apache.catalina.logger.FileLogger
  prefix=apache_log. suffix=.txt
  timestamp=true/
  !-- Access log processes all requests for this
  virtual host. --
  Valve
 
className=org.apache.catalina.valves.AccessLogValve
  directory=logs  prefix=localhost_access_log.
  suffix=.txt
  pattern=common resolveHosts=false/
   Host name=www.oursitename.com debug=0

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
   unpackWARs=true autoDeploy=true
  Aliaslocalhost/Alias
  Aliaswww/Alias/Host
  AliasOur IP/Alias
  /Engine
   /Service
   /Server
  
  --
  httpd.conf file
LoadModule jk2_module modules/mod_jk2.so
LoadModule jk_module modules/mod_jk.so
Include /usr/local/tomcat/conf/auto/mod_jk2.conf
Include /usr/local/tomcat/conf/auto/mod_jk.conf
VirtualHost Our IP:80
  ServerName   oursite.com:80
  ServerAlias  www.oursite.com
  UseCanonicalName On
  DocumentRoot
   /home/httpd/vhosts/oursite.com/httpdocs
  CustomLog 
/home/httpd/vhosts/oursite.com/statistics/logs/access_log
   combined
  ErrorLog  
/home/httpd/vhosts/oursite.com/statistics/logs/error_log
  Alias /trainer
/home/httpd/vhosts/oursite.com/httpdocs/trainer

JkMount /trainer/*.jsp ajp13
JkMount /trainer/adminjsp/*.jsp ajp13
Directory
/home/httpd/vhosts/oursite.com/httpdocs/trainer/
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp
/Directory
Location /trainer/WEB-INF/*
AllowOverride None 
deny from all 
/Location 
Location /trainer/META-INF/*
AllowOverride None
deny from all
/Location
Directory /home/httpd/vhosts/oursite.com/httpdocs/
Options None
AllowOverride None
/Directory

  ---
workers.properties
[logger.apache2]
level=DEBUG
  
[shm]
file=/home/httpd/vhosts/oursite.com/tomcatlog
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
 port=8009
 host=127.0.0.1

# define the worker
[ajp13:localhost:8009]

Change in StandardManager breaks SimpleTcpReplicationManager (TC5.5.9)

2005-06-22 Thread Eric Dalquist
There was a change in the StandardManager class for Tomcat 5.5.9 that 
deprecated the createSession method and created the 
createSession(sessionId) method to allow emptySessionPath=true to 
work. The SimpleTcpReplicationManager which subclasses StandardManager 
was not updated to reflect this change. Now if you try to use the 
SimpleTcpReplicationManager with the emptySessionPath=true 
configuration set the follow exception is thrown:


ERROR org.apache.catalina.cluster.session.SimpleTcpReplicationManager - 
[Unable to replicate session] 2005-06-22 13:13:42,657

java.lang.ClassCastException: org.apache.catalina.session.StandardSession
   at 
org.apache.catalina.cluster.session.SimpleTcpReplicationManager.requestCompleted(SimpleTcpReplicationManager.java:258)
   at 
org.apache.catalina.cluster.tcp.ReplicationValve.invoke(ReplicationValve.java:206)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
   at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)

   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
   at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

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

Doing some debugging it looks like Request.doGetSession(boolean) line: 
2204 calls public Session createSession(String sessionId); from the 
manager interface. Since SimpleTcpReplicationManager does not override 
this method but overrides the public Session createSession(); method 
the call goes directly into the StandardManager which returns a 
StandardSession. When the SimpleTcpReplicationManager attempts to 
replicate this session later it fails when trying to cast it to 
ReplicatedSession.


I've created a bug in bugzilla for the problem: 
http://issues.apache.org/bugzilla/show_bug.cgi?id=35473


I'm going to try and get a fix working locally but I've never tried to 
compile tomcat before. Any help would be much appreciated.


-Eric Dalquist

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



sporadic problem connecting from Apache web server to Tomcat 5

2005-06-22 Thread AAKhopkar
Hey guys,

I was wondering if anybody has seen an intermittent communication error
between Apache web server and Tomcat.  We were seeing something happening
intermittently about every 15-30 minutes where the apache logs were showing
something like this:



[Tue Jun 21 14:47:25 2005] [error] [client CLIENT_IP_ADDRESS] proxy: error
reading status line from remote server MY IP ADDRESS, referer:
https://blah.blah.blah/blah/blah.do


[Tue Jun 21 14:47:25 2005] [error] [client CLIENT_IP_ADDRESS] proxy: Error
reading from remote server returned by /blah/blah.do, referer:
https://blah.blah.blah/blah/blah.do





And neither the tomcat logs nor the tomcat access logs actually showed any
entries around this time.


Amarish



NOTE:  THIS DOCUMENT MAY CONTAIN CONFIDENTIAL AND NONPUBLIC INFORMATION.  IT IS 
INTENDED ONLY FOR THE USE OF THE INDIVIDUAL(S) OR ENTITY(IES) NAMED ABOVE, AND 
OTHERS SPECIFICALLY AUTHORIZED TO RECEIVE IT.  If you are not the intended 
recipient of this document, you are notified that any review, dissemination, 
distribution or copying of this communication is prohibited.  If you have 
received this communication in error, please notify me immediately by return 
email, delete the electronic message and destroy any printed copies.  Thank you 
for your cooperation.

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



Re: Better explained of my problem with renaming a file in Tomcat

2005-06-22 Thread Kam Lung Leung
Hi,

Thank to stdunbar for pointing out the problem that I was having. It turns out 
that the /tmp and the /alert_messages ware mounted on two different nodes in 
the file system. After changing the directory for writing the temporary audio 
file to be the same as the /alert_messages directory. The problem goes away.

/dev/sda11  497829 27391444736   6% /tmp
/dev/sda7  1011928217304743220  23% /

Thank Jason for his help.

Kam

 Kam Lung Leung [EMAIL PROTECTED] wrote:

 Hi Jason,
 
 Thank very much for helping me to solve this issue. Only the 
 jakarta-tomcat-4.1.30 contains servlet named RenameFile. The other version of 
 tomcat ( jboss-3.2.1_tomcat-4.1.24) is embedded in the Jboss. This version of 
 tomcat does not contais the servlet named RenameFile. A color coded of the 
 java class that does the renaming of the file is listed in the following site:
  http://forum.java.sun.com/thread.jspa?threadID=638498
 
 Thank again for your help.
 
  Jason Bainbridge [EMAIL PROTECTED] wrote:
 
  On 6/22/05, Kam Lung Leung [EMAIL PROTECTED] wrote:
   Hi,
   
   I have a servlet, RenameFile, that receives audio file via HTTP Post 
  
  I should have read your post better and realized there was no Java
  method for RenameFile as that is what I wrongly assumed... How exactly
  are you ceating the directories and trying to move the file?
  
  Are both servers running the same servlet and doing similar things?
  
  
  -- 
  Jason Bainbridge
  http://kde.org - [EMAIL PROTECTED]
  Personal Site - http://jasonbainbridge.com
  
  -
  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]



Datasource/jstl problem

2005-06-22 Thread werner

Hi,

I followed the example on : http://jakarta.apache.org/tomcat/ 
tomcat-5.0-doc/jndi-datasource-examples-howto.html


The only thing I changed was jdbc/TestDB into jdbc/weblog.
on al locations I could find.

If I look at my page (http://www.karnhuis.nl/gastenboek.jsp)

The ${row.name} and other such thingies do not seem to be 'rendered'.

I use tomcat 5.0.19 and java version 1.4.2_04

I can't find anything that I did wrong so maybe one of you will have any
idea of what went wrong.


I get an exception saying that jdbc is not bound to this context.



snippets :

gastenboek.jsp

%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

sql:query var=rs dataSource=jdbc/weblog
select name, datum, tekst, id from gb order by id desc limit 10
/sql:query

c:forEach var=row items=${rs.rows}
div id='entry'
h4 class='title' ${row.name} wrote on /h4
h5 class='date' ${row.datum} /h5
${row.tekst}
/div
/c:forEach

web.xml

resource-ref
descriptionDB Connection/description
res-ref-namejdbc/weblog/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

server.xml

  Host name=www.karnhuis.nl appBase=xxx
unpackWARs=true autoDeploy=true
Context path= docBase=. 
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=karnhuis_log.  
suffix=.txt

timestamp=true/

Resource name=jdbc/weblog auth=Container  
type=javax.sql.DataSource/


ResourceParams name=jdbc/weblog
parameter
namefactory/name
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value

/parameter
parameter
namemaxActive/name
value20/value
/parameter
parameter
namemaxIdle/name
value10/value
/parameter
parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value60/value
/parameter
parameter
namemaxWait/name
value1/value
/parameter
parameter
nameusername/name
valueThis is a secret/value
/parameter
parameter
namepassword/name
valueyou don't wanna know/value
/parameter
parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
/parameter
parameter
   parameter
nameurl/name
valuejdbc:mysql://www.karnhuis.nl:3306/weblog/ 
value

/parameter
/ResourceParams
/Context
  /Host


Kind regards
Werner van Mook


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



Tomcat 5.0 and external JCE provider

2005-06-22 Thread Madhuri Ramanathan
I have Tomcat 5.0 set up on a Linux env running JDK 1.4.2. My Tomcat is
not customized in any fashion (pretty much running out of the box). I
have an external JCE provider (Phaos) that I'd like to use. I have added
the provider into my list of approved providers by adding a reference to
it under my JDK's java.security. 
 
security.provider.6=com.phaos.jce.provider.Phaos

I also have the provider jar (Phaos_JCE_Provider.jar) added to the
WEB-INF/lib folder (and hence, into the tomcat classpath).
 
With that background, here is the problem. I find that my Tomcat
application does not seem to recognize Phaos as an available provider
when I run (causing NoSuchAlgorithmExceptions). Does anyone have any
ideas what the problem might be?
 
Some additional pieces of information.
 
- I can run this locally on my Windows system running a very similar
configuration without any problem (Tomcat recognizes the provider). 
- I can run a test program on the Linux machine by adding the provider
jar to my classpath and it recognized the provider fine.
- I have confirmed that it is not a classpath issue within Tomcat. The
Tomcat application can find the jar itself under WEB-INF/lib (used
Classloader apis to confirm).
- It does not seem to be an issue with permissions on Tomcat. I have
added permission java.security.AllPermission to all the files under
the WEB-INF/lib within the catalina.policy under my application. Still
no success finding the provider.
 
I CAN get this to work, IF I add the provider jar under the jre\lib\ext
of my JDK and hence make it an installed extension. However, this is not
an solution that is acceptable right now.
 
I am looking for a solution that will allow me to keep the jar under the
WEB-INF\lib and still be able to recognize the provider. Any ideas on
how I can accomplish this? And why I am not able to get it working from
within Tomcat while this works fine from a test program?
 
Thanks.
 
Madhuri


Apache-Tomcat Servlet Mapping Issues

2005-06-22 Thread David Rickard

System: Solaris SunOS 5.9
Apache: 2.0.52
Tomcat: 4.1.31
Mod JK: 1.2.6
The problem: Apache/mod_jk cannot resolve servlet URL mappings

When Tomcat is running stand-alone, it can resolve servlet mappings without 
any problems; so that a page with this form definition:

FORM name=login method=POST action=loginhandler
correctly invokes the com.company.LoginHandler servlet (which suggests 
there's nothing syntactically wrong with the servlet and 
servlet-mapping entries in web.xml);


When Tomcat stand-alone is turned off and Apache is turned on, that same 
page always throws a 404 error for site/loginhandler; these are the error 
messages in mod_jk.log:


[Wed Jun 22 09:04:08 2005]  [mod_jk.c (2313)]: mod_jk::jk_translate, check 
alias_dir: /usr/apache/tomcat/webapps
[Wed Jun 22 09:04:08 2005]  [mod_jk.c (2337)]: mod_jk::jk_translate, 
AutoAlias child_dir: loginhandler
[Wed Jun 22 09:04:08 2005]  [mod_jk.c (2363)]: mod_jk::jk_translate, 
AutoAlias OK for file: /usr/apache/tomcat/webapps/aiwosc/loginhandler
[Wed Jun 22 09:04:08 2005]  [jk_uri_worker_map.c (445)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Wed Jun 22 09:04:08 2005]  [jk_uri_worker_map.c (459)]: Attempting to map 
URI '/aiwosc/loginhandler'
[Wed Jun 22 09:04:08 2005]  [jk_uri_worker_map.c (577)]: 
jk_uri_worker_map_t::map_uri_to_worker, done without a match


What terribly simple configuration error have I made here?

These are the web.xml entries for this servlet:
  servlet
servlet-nameloginhandler/servlet-name
servlet-classcom.company.aiwosc.LoginHandler/servlet-class
  /servlet
  servlet-mapping
servlet-nameloginhandler/servlet-name
url-pattern/loginhandler/url-pattern
  /servlet-mapping

This is the workers.properties file:
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=server.org
worker.ajp13.type=ajp13


This is the app section from mod_jk.conf:
 server.org:/aiwosc 

# Static files
Alias /aiwosc /var/apache/tomcat/webapps/aiwosc

Directory /var/apache/tomcat/webapps/aiwosc
Options Indexes FollowSymLinks
DirectoryIndex index.html
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /aiwosc/WEB-INF/*
AllowOverride None
deny from all
/Location

Location /aiwosc/META-INF/*
AllowOverride None
deny from all
/Location

JkMount /aiwosc/addtitleservlet  ajp13
JkMount /aiwosc/submittitleservlet  ajp13
JkMount /aiwosc/transfertitleservlet  ajp13
JkMount /aiwosc/saveoscservlet  ajp13
JkMount /aiwosc/reordercastservlet  ajp13
JkMount /aiwosc/loginhandler  ajp13
JkMount /aiwosc/editcategoryservlet  ajp13
JkMount /aiwosc/edittitleservlet  ajp13
JkMount /aiwosc/addaddendumservlet  ajp13
JkMount /aiwosc/*.jsp  ajp13
JkMount /aiwosc/addcategoryservlet  ajp13

This is the Context entry for the app in server.xml:
!-- Oscars OSC Context --
Context path=/aiwosc docBase=aiwosc debug=5
 reloadable=true crossContext=true
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=aiwosc_log. suffix=.txt
 timestamp=true/

 Resource name=jdbc/oscars auth=Container
   type=javax.sql.DataSource/

  ResourceParams name=jdbc/oscars
   parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
   /parameter
   parameter
nameurl/name
valuejdbc:oracle:thin:@gtsora2.gtsgraphics.com:1521:ACAD/value
   /parameter
   parameter
nameusername/name
valueIMPC_ADMIN/value
   /parameter
   parameter
namepassword/name
valuePIRANHA/value
   /parameter
   parameter
namemaxActive/name
value20/value
   /parameter
   parameter
namemaxIdle/name
value10/value
   /parameter
   parameter
namemaxWait/name
value-1/value
   /parameter
  /ResourceParams
/Context

And these are the mod_jk load/configuration entries from httpd.conf:
IfModule !mod_jk.c
LoadModule jk_module modules/mod_jk.so
/IfModule

Include /usr/apache/tomcat/conf/auto/mod_jk.conf
JkWorkersFile /usr/apache/tomcat/conf/workers.properties
JkLogFile /usr/apache/logs/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T

JkAutoAlias /usr/apache/tomcat/webapps
JkMount /*.jsp ajp13
JkMount /*/servlet/ ajp13




--

David Rickard
Software Engineer

TechBooks/GTS
Your Single Source Solution!
Los Angeles CA * York, PA * Boston,MA * New Delhi, India
Visit 

Re: Apache-Tomcat Servlet Mapping Issues

2005-06-22 Thread Hari Mailvaganam
Hi David:

An alternate to using mod_JK is to proxy http (or https) request to
the Tomcat from Apache.

i.e:
ProxyPass /path http://localhost:port/path
ProxyPassReverse /path http://localhost/path

There are valid reasons for using mod_JK - above just an alternate
suggestion if you can do without mod_JK

regards,

Hari Mailvaganam

On 6/22/05, David Rickard [EMAIL PROTECTED] wrote:
 System: Solaris SunOS 5.9
 Apache: 2.0.52
 Tomcat: 4.1.31
 Mod JK: 1.2.6
 The problem: Apache/mod_jk cannot resolve servlet URL mappings
 
 When Tomcat is running stand-alone, it can resolve servlet mappings without
 any problems; so that a page with this form definition:
 FORM name=login method=POST action=loginhandler
 correctly invokes the com.company.LoginHandler servlet (which suggests
 there's nothing syntactically wrong with the servlet and
 servlet-mapping entries in web.xml);
 
 When Tomcat stand-alone is turned off and Apache is turned on, that same
 page always throws a 404 error for site/loginhandler; these are the error
 messages in mod_jk.log:
 
 [Wed Jun 22 09:04:08 2005]  [mod_jk.c (2313)]: mod_jk::jk_translate, check
 alias_dir: /usr/apache/tomcat/webapps
 [Wed Jun 22 09:04:08 2005]  [mod_jk.c (2337)]: mod_jk::jk_translate,
 AutoAlias child_dir: loginhandler
 [Wed Jun 22 09:04:08 2005]  [mod_jk.c (2363)]: mod_jk::jk_translate,
 AutoAlias OK for file: /usr/apache/tomcat/webapps/aiwosc/loginhandler
 [Wed Jun 22 09:04:08 2005]  [jk_uri_worker_map.c (445)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Wed Jun 22 09:04:08 2005]  [jk_uri_worker_map.c (459)]: Attempting to map
 URI '/aiwosc/loginhandler'
 [Wed Jun 22 09:04:08 2005]  [jk_uri_worker_map.c (577)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without a match
 
 What terribly simple configuration error have I made here?
 
 These are the web.xml entries for this servlet:
servlet
  servlet-nameloginhandler/servlet-name
  servlet-classcom.company.aiwosc.LoginHandler/servlet-class
/servlet
servlet-mapping
  servlet-nameloginhandler/servlet-name
  url-pattern/loginhandler/url-pattern
/servlet-mapping
 
 This is the workers.properties file:
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=server.org
 worker.ajp13.type=ajp13
 
 
 This is the app section from mod_jk.conf:
   server.org:/aiwosc 
 
  # Static files
  Alias /aiwosc /var/apache/tomcat/webapps/aiwosc
 
  Directory /var/apache/tomcat/webapps/aiwosc
  Options Indexes FollowSymLinks
  DirectoryIndex index.html
  /Directory
 
 
  # Deny direct access to WEB-INF and META-INF
  #
  Location /aiwosc/WEB-INF/*
  AllowOverride None
  deny from all
  /Location
 
  Location /aiwosc/META-INF/*
  AllowOverride None
  deny from all
  /Location
 
  JkMount /aiwosc/addtitleservlet  ajp13
  JkMount /aiwosc/submittitleservlet  ajp13
  JkMount /aiwosc/transfertitleservlet  ajp13
  JkMount /aiwosc/saveoscservlet  ajp13
  JkMount /aiwosc/reordercastservlet  ajp13
  JkMount /aiwosc/loginhandler  ajp13
  JkMount /aiwosc/editcategoryservlet  ajp13
  JkMount /aiwosc/edittitleservlet  ajp13
  JkMount /aiwosc/addaddendumservlet  ajp13
  JkMount /aiwosc/*.jsp  ajp13
  JkMount /aiwosc/addcategoryservlet  ajp13
 
 This is the Context entry for the app in server.xml:
  !-- Oscars OSC Context --
  Context path=/aiwosc docBase=aiwosc debug=5
   reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=aiwosc_log. suffix=.txt
   timestamp=true/
 
   Resource name=jdbc/oscars auth=Container
 type=javax.sql.DataSource/
 
ResourceParams name=jdbc/oscars
 parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
 /parameter
 parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
  nameurl/name
  
 valuejdbc:oracle:thin:@gtsora2.gtsgraphics.com:1521:ACAD/value
 /parameter
 parameter
  nameusername/name
  valueIMPC_ADMIN/value
 /parameter
 parameter
  namepassword/name
  valuePIRANHA/value
 /parameter
 parameter
  namemaxActive/name
  value20/value
 /parameter
 parameter
  namemaxIdle/name
  value10/value
 /parameter
 parameter
  namemaxWait/name
  value-1/value
 /parameter
/ResourceParams
  /Context
 
 And these are the mod_jk load/configuration entries from httpd.conf:
 IfModule !mod_jk.c
  

Re: sporadic problem connecting from Apache web server to Tomcat 5

2005-06-22 Thread Hari Mailvaganam
Hi Amarish:

This could be a network or DNS issue.

regards,

Hari Mailvaganam

On 6/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hey guys,
 
 I was wondering if anybody has seen an intermittent communication error
 between Apache web server and Tomcat. We were seeing something happening
 intermittentlyabout every 15-30 minutes where the apache logs were showing
 something like this:
 
 
 
 [Tue Jun 21 14:47:25 2005] [error] [client CLIENT_IP_ADDRESS] proxy: error
 reading status line from remote server MY IP ADDRESS, referer:
 https://blah.blah.blah/blah/blah.do
 
 
 [Tue Jun 21 14:47:25 2005] [error] [client CLIENT_IP_ADDRESS] proxy: Error
 reading from remote server returned by /blah/blah.do, referer:
 https://blah.blah.blah/blah/blah.do
 
 
 
 
 
 And neither the tomcat logs nor the tomcat access logs actually showed any
 entries around this time.
 
 
 Amarish
 
 
 
 NOTE:  THIS DOCUMENT MAY CONTAIN CONFIDENTIAL AND NONPUBLIC INFORMATION.  IT 
 IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL(S) OR ENTITY(IES) NAMED ABOVE, 
 AND OTHERS SPECIFICALLY AUTHORIZED TO RECEIVE IT.  If you are not the 
 intended recipient of this document, you are notified that any review, 
 dissemination, distribution or copying of this communication is prohibited.  
 If you have received this communication in error, please notify me 
 immediately by return email, delete the electronic message and destroy any 
 printed copies.  Thank you for your cooperation.
 
 -
 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: Tomcat Version detection

2005-06-22 Thread Hari Mailvaganam
Hi Steve:

When Tomcat is started, the version number appears in Catalina.log.

regards,

Hari Mailvaganam

On 6/20/05, Steve Vanspall [EMAIL PROTECTED] wrote:
 Hi there,
 
 I am running tomcat under linux, unfortunately can't remember whether it is 
 4.1.24 or 4.1.31, which made me relise, I don't know how to find out.
 
 When i look at the logs it jsut says Tomcat 4.1 unlike on windows where it 
 actually gives the full version number.
 
 So where would i look to find the tomcat version?
 
 Regards
 
 Steve


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



Re: Apache-Tomcat Servlet Mapping Issues

2005-06-22 Thread Steve Ochani
Hi,

As you test, can you load a servlet through apache httpd? Such as

http://www.xyz.com/testservlet

You should make a simple servlet that just has the doGet method to test.

-Steve O.



 System: Solaris SunOS 5.9
 Apache: 2.0.52
 Tomcat: 4.1.31
 Mod JK: 1.2.6
 The problem: Apache/mod_jk cannot resolve servlet URL mappings
 
 When Tomcat is running stand-alone, it can resolve servlet mappings
 without any problems; so that a page with this form definition: FORM
 name=login method=POST action=loginhandler correctly invokes
 the com.company.LoginHandler servlet (which suggests there's nothing
 syntactically wrong with the servlet and servlet-mapping entries
 in web.xml);
 
 When Tomcat stand-alone is turned off and Apache is turned on, that
 same page always throws a 404 error for site/loginhandler; these are
 the error messages in mod_jk.log:
 
 [Wed Jun 22 09:04:08 2005]  [mod_jk.c (2313)]: mod_jk::jk_translate,
 check alias_dir: /usr/apache/tomcat/webapps [Wed Jun 22 09:04:08 2005]
  [mod_jk.c (2337)]: mod_jk::jk_translate, AutoAlias child_dir:
 loginhandler [Wed Jun 22 09:04:08 2005]  [mod_jk.c (2363)]:
 mod_jk::jk_translate, AutoAlias OK for file:
 /usr/apache/tomcat/webapps/aiwosc/loginhandler [Wed Jun 22 09:04:08
 2005]  [jk_uri_worker_map.c (445)]: Into
 jk_uri_worker_map_t::map_uri_to_worker [Wed Jun 22 09:04:08 2005] 
 [jk_uri_worker_map.c (459)]: Attempting to map URI
 '/aiwosc/loginhandler' [Wed Jun 22 09:04:08 2005] 
 [jk_uri_worker_map.c (577)]: jk_uri_worker_map_t::map_uri_to_worker,
 done without a match
 
 What terribly simple configuration error have I made here?
 
 These are the web.xml entries for this servlet:
servlet
  servlet-nameloginhandler/servlet-name
  servlet-classcom.company.aiwosc.LoginHandler/servlet-class
/servlet
servlet-mapping
  servlet-nameloginhandler/servlet-name
  url-pattern/loginhandler/url-pattern
/servlet-mapping
 
 This is the workers.properties file:
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=server.org
 worker.ajp13.type=ajp13
 
 
 This is the app section from mod_jk.conf:
   server.org:/aiwosc 
 
  # Static files
  Alias /aiwosc /var/apache/tomcat/webapps/aiwosc
 
  Directory /var/apache/tomcat/webapps/aiwosc
  Options Indexes FollowSymLinks
  DirectoryIndex index.html
  /Directory
 
 
  # Deny direct access to WEB-INF and META-INF
  #
  Location /aiwosc/WEB-INF/*
  AllowOverride None
  deny from all
  /Location
 
  Location /aiwosc/META-INF/*
  AllowOverride None
  deny from all
  /Location
 
  JkMount /aiwosc/addtitleservlet  ajp13
  JkMount /aiwosc/submittitleservlet  ajp13
  JkMount /aiwosc/transfertitleservlet  ajp13
  JkMount /aiwosc/saveoscservlet  ajp13
  JkMount /aiwosc/reordercastservlet  ajp13
  JkMount /aiwosc/loginhandler  ajp13
  JkMount /aiwosc/editcategoryservlet  ajp13
  JkMount /aiwosc/edittitleservlet  ajp13
  JkMount /aiwosc/addaddendumservlet  ajp13
  JkMount /aiwosc/*.jsp  ajp13
  JkMount /aiwosc/addcategoryservlet  ajp13
 
 This is the Context entry for the app in server.xml:
  !-- Oscars OSC Context --
  Context path=/aiwosc docBase=aiwosc debug=5
   reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=aiwosc_log. suffix=.txt
   timestamp=true/
 
   Resource name=jdbc/oscars auth=Container
 type=javax.sql.DataSource/
 
ResourceParams name=jdbc/oscars
 parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/va
  lue
 /parameter
 parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
 /parameter
 parameter
  nameurl/name
  valuejdbc:oracle:thin:@gtsora2.gtsgraphics.com:1521:ACA
  D/value
 /parameter
 parameter
  nameusername/name
  valueIMPC_ADMIN/value
 /parameter
 parameter
  namepassword/name
  valuePIRANHA/value
 /parameter
 parameter
  namemaxActive/name
  value20/value
 /parameter
 parameter
  namemaxIdle/name
  value10/value
 /parameter
 parameter
  namemaxWait/name
  value-1/value
 /parameter
/ResourceParams
  /Context
 
 And these are the mod_jk load/configuration entries from httpd.conf:
 IfModule !mod_jk.c
  LoadModule jk_module modules/mod_jk.so
 /IfModule
 
 Include /usr/apache/tomcat/conf/auto/mod_jk.conf
 JkWorkersFile 

Re: Force Non-SSL

2005-06-22 Thread Duong BaTien
Greetings:

As promised, i report back my solutions and hope this may help others.

On Mon, 2005-06-06 at 07:42 -0600, Duong BaTien wrote:
 
 On Mon, 2005-06-06 at 07:04 -0400, Tim Funk wrote:
  Almost. (I think)
  
 Thanks. I will try the workaround and report to the list for the
 benefits of others.
 
 BaTien
 DBGROUPS
  
  You can't request any pages under /WEB-INF. Security constraints are only 
  for 
  the incoming URL - not urls obtained by getRequestDispatcher()
  
  -Tim
  
 I know. These are my protected pages and i want to make sure that they
 must go through my presentation engine (Jsf + Tiles).
 
 BaTien
 
  Duong BaTien wrote:
   On Thu, 2005-05-26 at 06:34 -0400, Tim Funk wrote:
   
   From a config point of view no. The simple workaround
  - Ditch the web.xml config for requiring SSL
  - Create a filter which checks the scheme and URL - if the do not match 
  what 
  you desire - you can issue a redirect in the filter to https (or http) as 
  desired
  
  
  -Tim
   
   
   Hello Tim and other tomcat 5.5.9 experts:
   
   If i understand you correctly, you propose:
 1) set security constraint pages you want to run under ssl, such as:
security-constraint
  web-resource-collection
url-pattern/WEB-INF/secure/*/url-pattern
http-methodPOST/http-method
http-methodGET/http-method
  /web-resource-collection
  user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
  /user-data-constraint
/security-constraint
   
 2) Write a servlet filter to direct any url NOT under the
   pattern /WEB-INF/secure/* to the same url such as /public/123.jsp. Do
   you have this code handy and want to share with others?
   
The re direct must include both desired protocol and service port as
explained in a proposed solution by Steve Ditlinger in his JavaWorld
paper (Feb 2002) and later evolved into sslext for Struts. The approach
is quite easy to implement for any framework. This is what we do under
Jsf.

   The result will be:
 1) When a user requests a /WEB-INF/secure/logonSuccess.jsp the
   container will force the user with its logon FORM, if the user is not
   authenticated. If username/password is authenticated the page
   logonSuccess.jsp wil be served.
 2) If you create a user session (e.g. a guestTag for collecting user
   activities) while user is NOT authenticated, and the container now
   authenticated the user after the request of logonSuccess.jsp, the
   servlet spec will guarantee that the session visible to developer code
   after login be the same session object that was created prior to SSL
   login so there is no loss of session information.
 3) Since the security model does not apply to RequestDispatcher
   according to serlet spec, the container will serve other requests under
   standard http and NOT https as reported after the user was served the
   logonSuccess.jsp.

The desired protocol and service port must be explicitly specified for
the requested page.

Hope this may help and/or save others some time.

BaTien
DBGROUPS

 4) Only after the user is authenticated by the server, we can use
   getUserPrincipal(), isUserInRole() to integrate container authentication
   with programmatic authorization. Before that, only a generic guestTag
   for recording user activities.
   
   Do i miss something?
   
   Thanks
   
   BaTien
   DBGROUPS
   
  
  -
  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]



website stops answering requests from time to time

2005-06-22 Thread Ayyanar Inbamohan
This is a production site. We use Tomcat 4.1.

website stops answering requests from time to time

Our website is under very high daily volume. Several
times a week, no  
requests are answered. 

Here is the log exception:

java.util.ConcurrentModificationException

at
java.util.HashMap$HashIterator.nextEntry(HashMap.java:782)

at
java.util.HashMap$EntryIterator.next(HashMap.java:824)

at java.util.HashMap.writeObject(HashMap.java:976)

at
sun.reflect.GeneratedMethodAccessor133.invoke(Unknown
Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke

(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at java.io.ObjectStreamClass.invokeWriteObject

(ObjectStreamClass.java:809)

at java.io.ObjectOutputStream.writeSerialData

(ObjectOutputStream.java:1296)

at java.io.ObjectOutputStream.writeOrdinaryObject

(ObjectOutputStream.java:1247)

at java.io.ObjectOutputStream.writeObject0

(ObjectOutputStream.java:1052)

at java.io.ObjectOutputStream.writeObject

(ObjectOutputStream.java:278)

at
org.apache.catalina.session.StandardSession.writeObject

(StandardSession.java:1429)

at
org.apache.catalina.session.StandardSession.writeObjectData

(StandardSession.java:852)

at org.apache.catalina.session.JDBCStore.save

(JDBCStore.java:690)

at

org.apache.catalina.session.PersistentManagerBase.writeSession

(PersistentManagerBase.java:

739)

at 

org.apache.catalina.session.PersistentManagerBase.processMaxIdleBackups

(PersistentManagerBase.java

:1063)

at 

org.apache.catalina.session.PersistentManagerBase.processPersistenceChecks(PersistentManagerBase.ja

va:477)

at
org.apache.catalina.session.PersistentManagerBase.run

(PersistentManagerBase.java:1141)

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

 

Thanks in Advance,

inr..



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



JDBC Persisted Sessions

2005-06-22 Thread Peter Johnson

Hi All,

Does anyone have a working config for JDBC persisted sessions that I 
could look at as the information in the docs seems a little disjointed.


Also, for those that have it working, what has been their experience 
with it?


Thanks,
Peter Johnson

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



Server.xml query

2005-06-22 Thread sai krishna
Hi again
What is this service name in server.xml
I have seen two ways of writing it.
1)Tomcat Standalone
2)Tomcat-Apache
what is the difference between two? 

--- Randall Svancara [EMAIL PROTECTED] wrote:

  
 This might be something to look at, but I know in
 Fedora Core 3, the
 last SE Linux Policy broke mod_jk.  You had to
 either turn of SELinux or
 modify targeted policy.  If you think you may have
 this problem, look at
 /var/log/messages to see if the security policy is
 logging any errors.
 
 You can also run:
 
 audit2allow -d 
 
 to see if any policy changes needed to be added.   
 
 
 Randall
 
 
 -Original Message-
 From: Raghupathy,Gurumoorthy
 [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 21, 2005 7:10 AM
 To: 'Tomcat Users List'
 Subject: RE: How to make tomcat work on a remote
 server?
 
 Hey just got it 
 
   Look at : http://www.junlu.com/msg/170819.html 
 
 -Original Message-
 From: Raghupathy,Gurumoorthy
 [mailto:[EMAIL PROTECTED]
 
 Sent: 21 June 2005 14:04
 To: 'Tomcat Users List'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
 From my experience 
   Your DocumentRoot should be different to the
 appBase of your
 virtual host ... 
   Set the document root to something else and try 
 
   
 Regards
 Guru
 
 
 -Original Message-
 From: Raghupathy,Gurumoorthy
 [mailto:[EMAIL PROTECTED]
 
 Sent: 21 June 2005 13:45
 To: 'Tomcat Users List'
 Cc: '[EMAIL PROTECTED]'
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
 Sorry could not get back to you earlier ... 
 
 I think you are worker2.properties ... 
 
 Remove 
   LoadModule jk2_module modules/mod_jk2.so
   Include /usr/local/tomcat/conf/auto/mod_jk2.conf
 
 
 Your workers.
 Should be somehting like this .. ..   
 

http://jakarta.apache.org/tomcat/connectors-doc/howto/workers.html
 
 I will look into your problem from home ..  Have
 emailed my home address
 ...
 
 
 Regards
 Guru 
 
 -Original Message-
 From: sai krishna [mailto:[EMAIL PROTECTED]
 Sent: 21 June 2005 13:06
 To: Tomcat Users List
 Subject: RE: How to make tomcat work on a remote
 server?
 
 
  Can anyone help me out  here??
  Im unable to access my jsp page on the net. I get
 internal server error. Im using included both mod_jk
 and mod_jk2 module, /var/logs/httpd/log shows that
 mod_jk2 starts but down below this module I loaded
 mod_jk module so it will support JkMount command in
 httpd.conf file. Can any one suggest m e the best
 method to access jsp pages on tomcat 4.1.17 either
 mod_jk/mod_jk2 connector and 2.0.52 apache on Fedora
 box 2.
 Today I added JkMount line in httpd.conf and rest
 everything is same as my down files 
  
   server.xml is as following
   Server port=8005 shutdown=SHUTDOWN debug=0
 !-- Define an Apache-Connector Service --
  Service name=Tomcat-Apache
!-- Define a Coyote/JK2 AJP 1.3 Connector on
 port 8009 --
   Connector
 

className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0
   connectionTimeout=2
   useURIValidationHack=false

protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/
 Engine name=Apache
   defaultHost=www.oursitename.com debug=0
   Logger
   className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
   !-- Access log processes all requests for this
   virtual host. --
   Valve
  

className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=localhost_access_log.
   suffix=.txt
   pattern=common resolveHosts=false/
Host name=www.oursitename.com debug=0
 

appBase=/home/httpd/vhosts/oursitename.com/httpdocs/
unpackWARs=true autoDeploy=true
   Aliaslocalhost/Alias
   Aliaswww/Alias/Host
   AliasOur IP/Alias
   /Engine
/Service
/Server
   
   --
   httpd.conf file
 LoadModule jk2_module modules/mod_jk2.so
 LoadModule jk_module modules/mod_jk.so
 Include /usr/local/tomcat/conf/auto/mod_jk2.conf
 Include /usr/local/tomcat/conf/auto/mod_jk.conf
 VirtualHost Our IP:80
   ServerName   oursite.com:80
   ServerAlias  www.oursite.com
   UseCanonicalName On
   DocumentRoot
/home/httpd/vhosts/oursite.com/httpdocs
   CustomLog 

/home/httpd/vhosts/oursite.com/statistics/logs/access_log
combined
   ErrorLog  

/home/httpd/vhosts/oursite.com/statistics/logs/error_log
   Alias /trainer
 /home/httpd/vhosts/oursite.com/httpdocs/trainer
 
 JkMount /trainer/*.jsp ajp13
 JkMount /trainer/adminjsp/*.jsp ajp13
 Directory
 /home/httpd/vhosts/oursite.com/httpdocs/trainer/
 Options Indexes FollowSymLinks
 DirectoryIndex index.html index.htm index.jsp
 /Directory
 Location /trainer/WEB-INF/*
 AllowOverride None 
 deny from all 
 /Location 
 Location /trainer/META-INF/*
 AllowOverride None
 deny from all
 /Location
 Directory /home/httpd/vhosts/oursite.com/httpdocs/