Re: SPAM Same thread for calls to Native methods

2007-03-21 Thread Peter . Henningsen
Hi Khurram,

As a Pure Java workaround, I would use a Singleton to collect work 
orders from various servlet-threads. That singleton would create one 
worker thread and feed it sequentially with work for the native code. 

Regards,

Peter Henningsen
Senior Consultant


Is it possible to configure Tomcat so that it spawns just one thread for
calling all the methods of native code (the native methods are called from
servlets)?
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

mod_jk/1.2.21, jkstatus does not display runtime state of load balanced threads, only N/A

2007-03-21 Thread Erik Melkersson

Hi!
I've got an apache (1.3.33) with mod_jk (1.2.21) connecting to two 
tomcats (5.5.17) on other servers using a load balacer. (All running 
debian.) I also have mounted a jkstatus on a directory.


My problem is that the jkstatus is never displaying the runtime state of 
the workers. I always get N/A in the Balancer Members under the 
Stat column.


I've started it with working tomcats, tomcats blocked by a firewalls and 
pointing towards localhost (that doesn't have any tomcats at all) but 
all i get is N/A.


I've read all I could find on http://tomcat.apache.org/connectors-doc/ 
but without result and no good hits using google. (jkstatus I find, but 
info on the state is worse).


Am I missing something obvious somewhere?

I'll paste my settings below in case someone can help me.

Btw: Thanks to the people who wrote and added stuff to:
http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html
Really nice page, setting it up initially worked very well following the 
instructions there.


Regards Erik Melkersson



httpd.conf:
**
LoadModule jk_module /usr/lib/apache/1.3/mod_jk.so
JkWorkersFile conf/workers.properties
JkShmFile logs/httpd/mod_jk.shm
JkLogFile logs/mod_jk.log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

Location /test/jkmanager/
JkMount jkstatus
Order deny,allow
Deny from all
Allow from [nnn.nnn.nnn.nnn]
/Location
Location /test/cms/
  SetEnv JK_WORKER_NAME cms
  SetHandler jakarta-servlet
  ErrorDocument 503 /index-cmsfail.html
/Location

worker.properties
*
worker.list=servlethotel,cms,jkstatus

worker.jkstatus.type=status

worker.servlethotel.type=ajp13
worker.servlethotel.host=nnn.nnn.nnn.nnn
worker.servlethotel.port=8009
worker.servlethotel.socket_timeout=10

worker.cms.type=lb
worker.cms.balance_workers=cmsfront2,cmsfront3

worker.cmsfront2.type=ajp13
worker.cmsfront2.host=nnn.nnn.nnn.nnn
worker.cmsfront2.port=8009
worker.cmsfront2.lbfactor=1
worker.cmsfront2.redirect=cmsfront3

worker.cmsfront3.type=ajp13
worker.cmsfront3.host=nnn.nnn.nnn.nnn
worker.cmsfront3.port=8009
worker.cmsfront3.lbfactor=1
worker.cmsfront3.activation=disabled

# Note: the servlethotel-worker is pointing to another tomcat and
# should not be involved but it is in my file so I let it be there
# for completeness sake


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



JSPs in JAR

2007-03-21 Thread sputnik
is there a way to include JSP files which are located in a JAR?

i.e %@ import file=\/pathToJar.jar!include.jsp\%

afaik the jasper compiler can load taglibs out of JARs, might be that there\'s 
already a solution to do this with JARs?

thank you

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSPs in JAR

2007-03-21 Thread Mikolaj Rydzewski

sputnik wrote:

is there a way to include JSP files which are located in a JAR?

i.e %@ import file=\/pathToJar.jar!include.jsp\%

afaik the jasper compiler can load taglibs out of JARs, might be that there\'s 
already a solution to do this with JARs?
  
You can precompile JSPs before deploying, you'll have to add servlet 
mapping for each precompiled JSP to web.xml. There's ant task to do the job.


You can also try Velocity.

--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Same thread for calls to Native methods

2007-03-21 Thread Leon Rosenberg

You can easily avoid this problem by introducing an abstraction layer
which is called by the servlet and which maps the calls to the one
internal thread, which is associated with native libs. You can use a
queue to synchronize the calls.

regards
Leon

On 3/21/07, kz [EMAIL PROTECTED] wrote:

Hi,

Is it possible to configure Tomcat so that it spawns just one thread for
calling all the methods of native code (the native methods are called from
servlets)?

Actually I am having a problem that I call a native method (C++ is the
native language) and from the native code I initialiize some pointers (COM
interface pointers). The problem is that when Tomcat uses a different thread
to call a different method of the same DLL then the pointers which were
initialized become invalid (COM pointers require marshalling to make them
valid in a different thread but I wanted to know if any oter solution is
possible). This problem is not coming if we use Jigsaw as our web server. Is
there any option in Tomcat which can make Tomcat use one thread for calling
native methods? Or is there any other solution to this problem?


Khurram.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Log4j problems in Tomcat 5.x

2007-03-21 Thread Gaurav Kushwaha

I am trying to use log4j with Tomcat. I created a log4j.properties file and
dumped it in WEB-INF/classes. I believe its still not being picked up by
Tomcat. Any ideas ?
Regards,
Gaurav Singh 
Kushwahahttp://www.chakpak.com/MovieDetailAction-Dhoom-2-.do?movieId=18183


Ph: +91-9880110695
Bangalore, India.


Re: Log4j problems in Tomcat 5.x

2007-03-21 Thread Леонитьев И . Б .
You may add servlet, something like this:
public class init extends HttpServlet implements ServletContextListener{
  public void contextInitialized(ServletContextEvent event) {
//File propertiesFile - your log4j.properties
PropertyConfigurator.configure(propertiesFile.toString());
}
}
..and add to your web.xml
listener
listener-classpackage.init/listener-class
/listener



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Log4j problems in Tomcat 5.x

2007-03-21 Thread sputnik
Gaurav Kushwaha wrote:

 I am trying to use log4j with Tomcat. I created a log4j.properties file and
 dumped it in WEB-INF/classes. I believe its still not being picked up by
 Tomcat. Any ideas ?
 Regards,
 Gaurav Singh 
 Kushwahahttp://www.chakpak.com/MovieDetailAction-Dhoom-2-.do?movieId=18183


 Ph: +91-9880110695
 Bangalore, India.


won\'t   it help to put the properties file into tomcat_home/conf path, as 
long as you\'re owning the server?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Log4j problems in Tomcat 5.x

2007-03-21 Thread Foo Shyn
Are ur tomcat started manually or by services? if it's started manually then 
ur path is correct, otherwise u'll need to put the properties file into the 
system folder.


HTH

Thanx.
Regards,
FooShyn
- Original Message - 
From: sputnik [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Wednesday, March 21, 2007 5:27 PM
Subject: Re: Log4j problems in Tomcat 5.x



Gaurav Kushwaha wrote:

I am trying to use log4j with Tomcat. I created a log4j.properties file 
and

dumped it in WEB-INF/classes. I believe its still not being picked up by
Tomcat. Any ideas ?
Regards,
Gaurav Singh 
Kushwahahttp://www.chakpak.com/MovieDetailAction-Dhoom-2-.do?movieId=18183



Ph: +91-9880110695
Bangalore, India.



won\'t   it help to put the properties file into tomcat_home/conf path, 
as long as you\'re owning the server?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release Date: 3/20/2007 
8:07 AM







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 6.0.10/Tomcat Native 1.1.8/Apache2 .0.59/Apache APR 1.2.8/Solaris 10

2007-03-21 Thread John Minson

Please be patient this is not my area of expertise (I am a JOATMON)

I installed Apache2 2.0.59
Tomcat 6.0.10  mod_jk
on Solaris 10.
It all seems to work.

Looking at the catalina.out log file I  see

'INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the 
java.library.path: blah blah'


So after some investigating  I assemble Apache APR 1.2.8 and Tomcat 'Native' 
1.1.8.
I can make the above message go away putting the 'Native' libraries path in 
'CATALINA_OPTS' .

Now what ? I pretty sure there needs to be some change made to the Tomcat servers.xml file . If I bring Apache/Tomcat up 
with the native libraries loading things still seem to work put the tomcat process 'burns' the cpu .


What exactly is the relationship between the 'native' libs/apache apr and ajp13 
?

Is there a doc describing how all these pieces/parts play together ?

John

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Who do I have to pay (and how much) to...

2007-03-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Matt,

Matthew wrote:
 ...get an answer to the following:
 
 For Tomcat 5.5.20, how do I configure virtual hosts using a context.xml
 file in the META-INF directory (of each domain's .war file) as opposed
 to having to do the following in server.xml
 
 Host name=domain.com appBase= .
Context path= docBase=webapps/domain/
 /Host

You cannot configure virtual hosts in context.xml files.

If you want to do this, you'll probably have to write a ton of code to
make Tomcat work in a different way and install that into the server's
libraries. It's far easier to configure virtual hosts using the
configuration the way it was intended.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGASsp9CaO5/Lv0PARArvgAJ4sDL50G/IBoYDoiZ1fP7hgRUU/0QCgmhdU
coocpO6K4Vfk9b3z389+zng=
=fmuO
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSPs in JAR

2007-03-21 Thread sputnik
Mikolaj Rydzewski wrote:


 sputnik wrote:


 is there a way to include JSP files which are located in a JAR?

 i.e %@ import file=\\\/pathToJar.jar!include.jsp\\\%

 afaik the jasper compiler can load taglibs out of JARs, might be that
 there\\\'s already a solution to do this with JARs?
   


 You can precompile JSPs before deploying, you\'ll have to add servlet
 mapping for each precompiled JSP to web.xml. There\'s ant task to do
 the job.

 You can also try Velocity.


I think this would work for standalone JSP scripts but not if just using
them as includes like

%@ import file=\checkLogin.jsp\ %

or

..
c:if test=\${page.header=\'true\'}\
jsp:import url=\/header.jsp\/
c/:if

because (as I think) you have to have all jsp sources accessible to be
able to compile a servlet out of jsp.
according to my trace, when using %@ import file=\checkLogin.jsp\ %
the jasper compiler does not
check if checkLogin_jsp.class already exists, but tries to parse the
checkLogin.jsp file.

the idea behind is to have a jar library which contains jsp fragments, which
should be able to include from a certain application the way as they were
located on file system.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Who do I have to pay (and how much) to...

2007-03-21 Thread EDMOND KEMOKAI

You can use mod_jk (Tomcat connector) with apache to do virtual hosting.
As for who to pay? Well the mailing list is for technical help not
solicitations.

On 3/21/07, Christopher Schultz [EMAIL PROTECTED] wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Matt,

Matthew wrote:
 ...get an answer to the following:

 For Tomcat 5.5.20, how do I configure virtual hosts using a context.xml
 file in the META-INF directory (of each domain's .war file) as opposed
 to having to do the following in server.xml

 Host name=domain.com appBase= .
Context path= docBase=webapps/domain/
 /Host

You cannot configure virtual hosts in context.xml files.

If you want to do this, you'll probably have to write a ton of code to
make Tomcat work in a different way and install that into the server's
libraries. It's far easier to configure virtual hosts using the
configuration the way it was intended.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGASsp9CaO5/Lv0PARArvgAJ4sDL50G/IBoYDoiZ1fP7hgRUU/0QCgmhdU
coocpO6K4Vfk9b3z389+zng=
=fmuO
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
talk trash and carry a small stick.
PAUL KRUGMAN (NYT)


A disk directory context without cache

2007-03-21 Thread Artur Rataj

Hello. How to configure a context that displays the contents of a
given disk directory, but without it being cached? I tried this, but
it does not work at all, i. e. I get an error message from tomcat when
trying to access /disk.

Context path=/disk
docBase=/home/lib/disk/
   reloadable=true
Logger className=org.apache.catalina.logger.FileLogger
Source code of org.apache.catalina.logger.FileLogger
   prefix=localhost_examples_log. suffix=.txt
timestamp=true/
Ejb   name=ejb/EmplRecord type=Entity
   home=com.wombat.empl.EmployeeRecordHome
 remote=com.wombat.empl.EmployeeRecord/
Environment name=maxExemptions type=java.lang.Integer
Source code of java.lang.Integer
value=15/
Parameter name=context.param.name value=context.param.value
   override=false/
Resource name=jdbc/EmployeeAppDb auth=SERVLET
  type=javax.sql.DataSource Source code of
javax.sql.DataSource/
  /Context

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Who do I have to pay (and how much) to...

2007-03-21 Thread David Delbecq
You don't have to pay anyone, most people on this mailing list are
helping each other for free. However, if you really want to waste money,
i can send you my bank account number :)

En l'instant précis du 21/03/07 06:53, Matthew s'exprimait en ces termes:
 ...get an answer to the following:

 For Tomcat 5.5.20, how do I configure virtual hosts using a
 context.xml file in the META-INF directory (of each domain's .war
 file) as opposed to having to do the following in server.xml

 Host name=domain.com appBase= .
Context path= docBase=webapps/domain/
 /Host

 Thanks,

 Matthew

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSPs in JAR

2007-03-21 Thread Mikolaj Rydzewski

sputnik wrote:

I think this would work for standalone JSP scripts but not if just using
them as includes like

%@ import file=\checkLogin.jsp\ %
  

That's correct.

or

..
c:if test=\${page.header=\'true\'}\
jsp:import url=\/header.jsp\/
c/:if
  

This one should work, because jsp:import / performs additional request.

--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Re: A disk directory context without cache

2007-03-21 Thread Mikolaj Rydzewski

Artur Rataj wrote:

Context path=/disk
docBase=/home/lib/disk/
   reloadable=true
Logger className=org.apache.catalina.logger.FileLogger
Source code of org.apache.catalina.logger.FileLogger
   prefix=localhost_examples_log. suffix=.txt
timestamp=true/
Ejb   name=ejb/EmplRecord type=Entity
   home=com.wombat.empl.EmployeeRecordHome
 remote=com.wombat.empl.EmployeeRecord/

Where can I read about Ejb/ element? I cannot find it in the docs.

--
Mikolaj Rydzewski [EMAIL PROTECTED]



smime.p7s
Description: S/MIME Cryptographic Signature


Re: Who do I have to pay (and how much) to...

2007-03-21 Thread Martin Gainty
use Apache VirtualHosts ..a fairly lightweight HTTP server 
OR
but if you want to use only tomcat
if your URLs will always map to TomcatServer:TomcatPort
and if you configure the default catalina connector port for 80 you will only 
need the TomcatServer
then map your webapp relative path for tomcat to the webappServletName
http://host/MyApp/MyServlet

so All refs for MyServlet go to some-servlet-name-that-tomcat-uses-internally
servlet
servlet-name
some-servlet-name-that-tomcat-uses-internally
/servlet-name
servlet-class
dir1.dir2.dir3.MyServlet
/servlet-class
/servlet

   servlet-mapping
servlet-name
some-servlet-name-that-tomcat-uses-internally
/servlet-name
url-pattern
/MyServlet
/url-pattern
/servlet-mapping

HTH,
M-
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: EDMOND KEMOKAI [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, March 21, 2007 9:02 AM
Subject: Re: Who do I have to pay (and how much) to...


 You can use mod_jk (Tomcat connector) with apache to do virtual hosting.
 As for who to pay? Well the mailing list is for technical help not
 solicitations.
 
 On 3/21/07, Christopher Schultz [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Matt,

 Matthew wrote:
  ...get an answer to the following:
 
  For Tomcat 5.5.20, how do I configure virtual hosts using a context.xml
  file in the META-INF directory (of each domain's .war file) as opposed
  to having to do the following in server.xml
 
  Host name=domain.com appBase= .
 Context path= docBase=webapps/domain/
  /Host

 You cannot configure virtual hosts in context.xml files.

 If you want to do this, you'll probably have to write a ton of code to
 make Tomcat work in a different way and install that into the server's
 libraries. It's far easier to configure virtual hosts using the
 configuration the way it was intended.

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.7 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFGASsp9CaO5/Lv0PARArvgAJ4sDL50G/IBoYDoiZ1fP7hgRUU/0QCgmhdU
 coocpO6K4Vfk9b3z389+zng=
 =fmuO
 -END PGP SIGNATURE-

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 talk trash and carry a small stick.
 PAUL KRUGMAN (NYT)


Re: Log4j problems in Tomcat 5.x

2007-03-21 Thread reno
Le mercredi 21 mars 2007 à 14:36 +0530, Gaurav Kushwaha a écrit :

 I am trying to use log4j with Tomcat. I created a log4j.properties file and
 dumped it in WEB-INF/classes. I believe its still not being picked up by
 Tomcat. Any ideas ?

could you please precise your problem...

is your log4j config file is correct?
is there an error in the catalina.out when your tomcat restarts?
how do you use tomcat in your app?

Regards
S


requiring multiple roles for access

2007-03-21 Thread Ryan

Hi All,

I would like to require a user to belong to two roles to access a certain
application (i.e. user must belong to role1 AND role2 to access). I've tried
the following in my web.xml
 auth-constraint
  role-namerole1/role-name
  role-namerole2/role-name
 /auth-constraint

Unfortunately, this doesn't seem to work (it seems to allow role1 OR role2).
Is what I'm trying to do possible??

Thanks,
Ryan


Tomcat5 and jndi context using fscontext from Sun

2007-03-21 Thread Francesco Pretto

Hi! I use tomcat 5.0.30 with java 1.4 for my app (constrained to them,
unfortunately). My os is Gnu/Linux Ubuntu 6.10.

I use hibernate plus Sun fscontext (class
com.sun.jndi.fscontext.RefFSContextFactory ) to create a jndi context
( stored in the filesystem) for my application, so hibernate can
easily lookup sessions. It works very well launching a test app
outside tomcat, but when launching it inside the tomcat container,
fscontext is unable to create the files/dirs it need to store the jndi
context. I can't find them anywhere, neither if a specify a workDir
attribute for the tomcat container (inside the context tag).

I tryed a lot of combination of specifying the path for store the jndi
context (inside the hibernate.cfg.xml, jndi.url property), relative,
file:/, file://, file://., file:., and absolute (after
previously setting the workDir attribute), file:///tmp/context,
file:/tmp/context, etc., but nothing: files are not created
anywhere...

I'm doing it right? Or in general there's other settings that regulate
the permission for webapps classes to write in the fs? Or another
approach? Maybe there's another dir where fscontext could try to write
in? A lot of dirs at $CATALINA_HOME aren't writable by the tomcat5
user...

Unfortunately, the log is not useful (most probably the i/o exception
is catched immediately by fscontext, and not reported to the user, or
piped to some tty i'm unable to find). Got only errors from Hibernate
unable to bound to the jndi context (or unable to bound to the tomcat
one, that's read only). However, you can find it here:
http://www.webalice.it/ceztko/tomcat5log

Thanks for the help!

Francesco

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Deployment] Tomcat 5.5, Single war into multiple apps

2007-03-21 Thread Caldarale, Charles R
 From: Eugene Wong [mailto:[EMAIL PROTECTED] 
 Subject: Re: [Deployment] Tomcat 5.5, Single war into multiple apps
 
 Where should I put context if not in seperate xml under
 conf/Catalina/localhost?

Where you have them is fine, just take out the path attribute.  Do not
put Context elements in server.xml, since that makes them impossible
to update without restarting Tomcat.  For details, see:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A disk directory context without cache

2007-03-21 Thread Artur Rataj

I have just copied the context from another one in the default
configuration file.

On 3/21/07, Mikolaj Rydzewski [EMAIL PROTECTED] wrote:

Artur Rataj wrote:
 Context path=/disk
 docBase=/home/lib/disk/
reloadable=true
 Logger className=org.apache.catalina.logger.FileLogger
 Source code of org.apache.catalina.logger.FileLogger
prefix=localhost_examples_log. suffix=.txt
 timestamp=true/
 Ejb   name=ejb/EmplRecord type=Entity
home=com.wombat.empl.EmployeeRecordHome
  remote=com.wombat.empl.EmployeeRecord/
Where can I read about Ejb/ element? I cannot find it in the docs.

--
Mikolaj Rydzewski [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A disk directory context without cache

2007-03-21 Thread Artur Rataj

Please help me. I tried this:

   Context path=/disk docBase=/home/lib/disk debug=0
reloadable=true
   /Context

with various combinations of slashes, with a symlink etc. it all gives
404 when trying

http://address/disk

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6.0.10/Tomcat Native 1.1.8/Apache2 .0.59/Apache APR 1.2.8/Solaris 10

2007-03-21 Thread Filip Hanik - Dev Lists

John Minson wrote:

Please be patient this is not my area of expertise (I am a JOATMON)

I installed Apache2 2.0.59
Tomcat 6.0.10  mod_jk
on Solaris 10.
It all seems to work.

Looking at the catalina.out log file I  see

'INFO: The Apache Tomcat Native library which allows optimal 
performance in production environments was not found on the 
java.library.path: blah blah'


So after some investigating  I assemble Apache APR 1.2.8 and Tomcat 
'Native' 1.1.8.
I can make the above message go away putting the 'Native' libraries 
path in 'CATALINA_OPTS' .


Now what ? I pretty sure there needs to be some change made to the 
Tomcat servers.xml file . If I bring Apache/Tomcat up with the native 
libraries loading things still seem to work put the tomcat process 
'burns' the cpu .


What exactly is the relationship between the 'native' libs/apache apr 
and ajp13 ?


Is there a doc describing how all these pieces/parts play together ?

http://tomcat.apache.org/tomcat-6.0-doc/apr.html
The APR is used for the connectors, both http and ajp, and improves 
performance over the java.io connectors.



John



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.15/728 - Release Date: 3/20/2007 8:07 
AM
  



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: A disk directory context without cache

2007-03-21 Thread Propes, Barry L [GCG-NAOT]
all of mine look like this, with no slashes on docBase

Context path=/examples docBase=examples debug=0

in fact...I had a problem before when I did put slashes in the docBase 
attribute.

-Original Message-
From: Artur Rataj [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 21, 2007 9:23 AM
To: Tomcat Users List
Subject: Re: A disk directory context without cache


Please help me. I tried this:

Context path=/disk docBase=/home/lib/disk debug=0
 reloadable=true
/Context

with various combinations of slashes, with a symlink etc. it all gives
404 when trying

http://address/disk

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A disk directory context without cache

2007-03-21 Thread Hassan Schroeder

On 3/21/07, Artur Rataj [EMAIL PROTECTED] wrote:

 it all gives
404 when trying

http://address/disk


Do you have a valid welcome file, or are you specifically trying a file
that you *know* is there? e.g. either

 http://address/disk/index.jsp
or
 http://address/disk/foo.html

Directory listing isn't on by default; if you want it, you'll need to make
that change in web.xml.

HTH,
--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A disk directory context without cache

2007-03-21 Thread sputnik
Artur Rataj wrote:


 Please help me. I tried this:

Context path=\/disk\ docBase=\/home/lib/disk\ debug=\0\
 reloadable=\true\
/Context

 with various combinations of slashes, with a symlink etc. it all gives
 404 when trying

 http://address/disk

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


u\'re using this context description in the server.xml file, arent\'t you?

1) save these lines as  tomcat/conf/Catalina/localhost/disk.xml
--
?xml version=\1.0\ encoding=\UTF-8\?
Context
docBase=\/home/lib/disk\ reloadable=\true\
/Context
---

2) open the tomcat/conf/web.xml file, find the definition for
DefaultServlet and make
sure these lines appears

init-param
param-namelistings/param-name
param-valuetrue/param-value
/init-param


3) u\'re working in linux, so check if \/home/lib/disk\ is accessible to
tomcat.
or try to list \/tmp\ directory

good luck



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem help: how iterate arraylist included in a object with c:for

2007-03-21 Thread dr_pompeii

Hello guys

i have this case:
for payments each object (a debt) can has more details about part of payment
(Set object) of the object

so, in the next part of code jsp,
the first for represents the list of the objects and the nested for (second)
represents the details or the Set objects for each Object of the first for

all the objects and its details are already initializated by hibernate , so

% //HIJOS DE LOS HIJOS %
c:forEach items=${hijosCorrienteProveedoresHijosHijos} var=hijo
varStatus=status 
c:set var=permission value=${status.count +1}/
tr id=tridc:out value=${permission}/
input type=hidden id=idCuentaProveedoresc:out
value=${permission}/ value=c:out
value=${hijo.idCuentaProveedores}/ /   
.. more
/tr
% //LOS SUBHIJOS %
c:forEach items=${hijosCorrienteProveedoresHijosHijos.cuentaProveedores}
var=mihijo varStatus=status 
c:set var=subcount value=${status.count +1}/  
tr id=tridc:out value=${permission}/.c:out 
value=${subcount}/
 input type=hidden id=idCuentaProveedoresc:out
value=${permission}/.c:out value=${subcount}/ value=c:out
value=${mihijo.idCuentaProveedores}/ / 
tdinput type=text id=numrowc:out value=${permission}/.c:out
value=${subcount}/ value=c:out value=${permission}/.c:out
value=${permission}/ size=15 readonly=true//td
. more
/tr
/c:forEach

/c:forEach



c:forEach items=${hijosCorrienteProveedoresHijosHijos.cuentaProveedores}
var=mihijo varStatus=status 
in the bold part i recieve this error message

08:45:32,713 ERROR [jsp]:704 - El Servlet.service() para servlet jsp lanzó
una excepción
javax.servlet.jsp.JspException: An error occurred while evaluating custom
action attribute items with value
${hijosCorrienteProveedoresHijosHijos.cuentaProveedores}: The . operator
was supplied with an index value of type java.lang.String to be applied to
a List or array, but that value cannot be converted to an integer. (null)
at
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:109)
at
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:129)
at
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:75)
at
org.apache.taglibs.standard.tag.el.core.ForEachTag.evaluateExpressions(ForEachTag.java:155)
..more
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
08:45:32,715 ERROR [lagranjita]:253 - Servlet.service() para servlet
lagranjita lanzó excepción
javax.servlet.jsp.JspException: An error occurred while evaluating custom
action attribute items with value
${hijosCorrienteProveedoresHijosHijos.cuentaProveedores}: The . operator
was supplied with an index value of type java.lang.String to be applied to
a List or array, but that value cannot be converted to an integer. (null)
at
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:109)
at
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:129)
at
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:75)
at
org.apache.taglibs.standard.tag.el.core.ForEachTag.evaluateExpressions(ForEachTag.java:155)



how i can resolve this

thanks for advanced
-- 
View this message in context: 
http://www.nabble.com/Problem-help%3A-how-iterate-arraylist-included-in-a-object-with-c%3Afor-tf3441201.html#a9595517
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: requiring multiple roles for access

2007-03-21 Thread Caldarale, Charles R
 From: Ryan [mailto:[EMAIL PROTECTED]
 Subject: requiring multiple roles for access
 
 I would like to require a user to belong to two roles to 
 access a certain application (i.e. user must belong to role1
 AND role2 to access). I've tried the following in my web.xml
   auth-constraint
role-namerole1/role-name
role-namerole2/role-name
   /auth-constraint
 
 Unfortunately, this doesn't seem to work (it seems to allow 
 role1 OR role2).

As expected; to quote from the servlet spec:

A user must be a member of at least one of the named roles to be
permitted to perform the constrained requests.

 Is what I'm trying to do possible??

The easiest way might be just to define a separate role for this purpose
rather than trying to piggy-back off combinations.

 - Chuck



THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A disk directory context without cache

2007-03-21 Thread Artur Rataj

Thank you for help, it was indeed the listings setting in web.xml that
needed to be changed. Now it works ok.

Artur

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Unable to compile class for JSP

2007-03-21 Thread Peter.Matthias
Hi everybody,
thanks for your help, which I really appreciate!
I still don't know exactly what it was, but I fixed it by doing the
following:

- uninstall tomcat
- reinstall it, not having it run as a windows service
- installing it in a directory tomcat_4_1 rather then the suggested
tomcat 4.1 because I hade problems with spaces in path before. Now it
works!

Bye
Peter 


- Original Message -
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Tuesday, March 20, 2007 12:21 PM
Subject: Unable to compile class for JSP


Hi,

This might be a silly question, but it seems to be quite a common
problem (lots or links in google). But none of the offered solutions so
far worked.

So I am asking the people who probably know!



I installed tomcat 4.1.29 with JDK 1.4.2



Trying the JSP examples coming with it, I get the following message:



type Exception report

message

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

exception

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

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file



at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH
a
ndler.java:130)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j
a
va:293)
at
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j
a
va:473)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j
a
va:190)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295
)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic
a
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil
t
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal
v
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal
v
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato
r
Base.java:494)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24
1
7)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
a
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV
a
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav
a
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve
.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.
i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7
8
1)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process
C
onnection(Http11Protocol.java:549)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5
8
9)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo
l
.java:666)
at java.lang.Thread.run(Unknown Source)

RE: SSL set expiration date

2007-03-21 Thread Zhan, Jimmy
Hi,

  I don't you can or not to set none/never expire, but you can set a
longer days.
  If you use keytool, using -validith days(say 10)
  If you use openssl using -day days(say 10)

Hope it help you.

Jimmy

-Original Message-
From: Hoa Doan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 3:10 PM
To: users@tomcat.apache.org
Subject: SSL set expiration date

I have generated my own .keystore file just fine and SSL is work fine
too, but i want to know if it is possible to set the expiration date of
the certificate to me none/never expire or if that is not possible, to
set it with the newest date possible.

Thanks in advance,
Hoa

 
-
TV dinner still cooling?
Check out Tonight's Picks on Yahoo! TV.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SSL set expiration date

2007-03-21 Thread Hoa Doan
Yup it helped thanks, its better than the default one.

Zhan, Jimmy [EMAIL PROTECTED] wrote: Hi,

  I don't you can or not to set none/never expire, but you can set a
longer days.
  If you use keytool, using -validith days(say 10)
  If you use openssl using -day days(say 10)

Hope it help you.

Jimmy

-Original Message-
From: Hoa Doan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 20, 2007 3:10 PM
To: users@tomcat.apache.org
Subject: SSL set expiration date

I have generated my own .keystore file just fine and SSL is work fine
too, but i want to know if it is possible to set the expiration date of
the certificate to me none/never expire or if that is not possible, to
set it with the newest date possible.

Thanks in advance,
Hoa

 
-
TV dinner still cooling?
Check out Tonight's Picks on Yahoo! TV.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
-
Don't get soaked.  Take a quick peek at the forecast 
 with theYahoo! Search weather shortcut.

Re: Who do I have to pay (and how much) to...

2007-03-21 Thread Matthew

Hello,

Thanks for all the replies to my plea. I should point out that I am not 
trying to do all the configuring of virtual hosts in the context.xml 
file. I realize I still need the Host entries in server.xml, however, 
I believe there is a way of specifying the context information in 
context.xml that resides in the META-INF directory of the hosts .war 
file. (i.e. one .war file per host, each with its own context.xml file).


I.e. I don't want to have any Context tags in server.xml.

I don't want to use the mod_jk approach as I think this can be done with 
Tomcat alone (I've already set up iptables to reroute from 80 to 8080).


Here's the set up I imagine (a fixed size font may be needed to view the 
directory structures below)...


In server.xml...

Host name=domain1.com appBase=?
/Host

Host name=domain2.com appBase=?
/Host

The domain1.war and domain2.war files are placed into 
$CATALINA_HOME/webapps.


In domain1.war (shown as expanded by Tomcat)

domain1 (in webapps)
|
|--...
|--META-INF
   |-context.xml

In domain2.war (again, shown as expanded by Tomcat)

domain2 (in webapps)
|
|--...
|--META-INF
   |-context.xml

Where the contents of the context.xml files are as follows...

   Context path=? docBase=?/

The problem I'm having is that I have tried every combination of 
docBase, path and appBase values imaginable and always end up with a 400 
not found error. Does anyone out there know what ? should be in each 
case (or am I missing attributes / tags)? Ultimately, I would like each 
of the .war file's contents to be accessible via...


   http://www.domain1.com
   http://www.domain2.com

...by the way, this was easy on JBoss (but don't have the option to use 
it here). Since JBoss uses Tomcat as it's web server, I would have 
thought it would be possible with just Tomcat.


Thanks,

Matthew







Christopher Schultz wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Matt,

Matthew wrote:
 


...get an answer to the following:

For Tomcat 5.5.20, how do I configure virtual hosts using a context.xml
file in the META-INF directory (of each domain's .war file) as opposed
to having to do the following in server.xml

Host name=domain.com appBase= .
  Context path= docBase=webapps/domain/
/Host
   



You cannot configure virtual hosts in context.xml files.

If you want to do this, you'll probably have to write a ton of code to
make Tomcat work in a different way and install that into the server's
libraries. It's far easier to configure virtual hosts using the
configuration the way it was intended.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGASsp9CaO5/Lv0PARArvgAJ4sDL50G/IBoYDoiZ1fP7hgRUU/0QCgmhdU
coocpO6K4Vfk9b3z389+zng=
=fmuO
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Who do I have to pay (and how much) to...

2007-03-21 Thread Matthew

Hello David,

If you care to send me the solution along with that bank account 
number.. ;-)


David Delbecq wrote:


You don't have to pay anyone, most people on this mailing list are
helping each other for free. However, if you really want to waste money,
i can send you my bank account number :)

En l'instant précis du 21/03/07 06:53, Matthew s'exprimait en ces termes:
 


...get an answer to the following:

For Tomcat 5.5.20, how do I configure virtual hosts using a
context.xml file in the META-INF directory (of each domain's .war
file) as opposed to having to do the following in server.xml

Host name=domain.com appBase= .
  Context path= docBase=webapps/domain/
/Host

Thanks,

Matthew

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

   




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



RE: Who do I have to pay (and how much) to...

2007-03-21 Thread Caldarale, Charles R
 From: Matthew [mailto:[EMAIL PROTECTED] 
 Subject: Re: Who do I have to pay (and how much) to...
 
 I believe there is a way of specifying the context information in 
 context.xml that resides in the META-INF directory of the hosts .war 
 file.

That is the preferred mechanism.  Read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 Where the contents of the context.xml files are as follows...
 
 Context path=? docBase=?/

You do not use either the path or the docBase attribute when the
Context element is located in the META-INF/context.xml file.  These
are derived from the deployment name of the app.  You usually don't need
a Context element (or context.xml file) at all.

Your 404 may be arrising because you're erroneously trying to specify
these attributes, or it may be something else entirely, such as not
having a welcome file in the webapp.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Who do I have to pay (and how much) to...

2007-03-21 Thread Matthew

Hello Chuck,

Actually, I'm getting a 400. I have read many pages (including the link 
you've provided) and agree that the consensus is that the context tag 
(in META-INF) should be empty if there at all. However, regardless of 
how I populate the Host tag in server.xml, I always get a 400 (so now 
I'm in trial and error mode).


I should point out that the whole set up works when I add a Context 
tag within the Host tag (in server.xml) and set the docBase. I should 
not need (nor do I want) to have a Context tag in server.xml.


Thanks,

Matthew

Caldarale, Charles R wrote:

From: Matthew [mailto:[EMAIL PROTECTED] 
Subject: Re: Who do I have to pay (and how much) to...


I believe there is a way of specifying the context information in 
context.xml that resides in the META-INF directory of the hosts .war 
file.
   



That is the preferred mechanism.  Read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

 


Where the contents of the context.xml files are as follows...

   Context path=? docBase=?/
   



You do not use either the path or the docBase attribute when the
Context element is located in the META-INF/context.xml file.  These
are derived from the deployment name of the app.  You usually don't need
a Context element (or context.xml file) at all.

Your 404 may be arrising because you're erroneously trying to specify
these attributes, or it may be something else entirely, such as not
having a welcome file in the webapp.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



RE: deploying problem

2007-03-21 Thread Deano!!

21-Mar-07 4:20:42 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
com.sun.rave.web.ui.appbase.ApplicationException:
org.apache.jasper.JasperException: Exception in JSP: /Page1.jsp:7

4: f:view
5: ui:page binding=#{Page1.page1} id=page1
6: ui:html binding=#{Page1.html1} id=html1
7: ui:head binding=#{Page1.head1} id=head1
8: ui:link binding=#{Page1.link1} id=link1
url=/resources/stylesheet.css/
9: /ui:head
10: ui:body binding=#{Page1.body1} id=body1
style=-rave-layout: grid


Stacktrace:
   at
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:559)
   at
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:290)
   at
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
   at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.17.jar.sovwj9yy.so)
   at com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:198)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.StandardContextValve.invoke(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.StandardHostValve.invoke(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.StandardEngineValve.invoke(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.connector.CoyoteAdapter.service(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.coyote.http11.Http11Processor.process(tomcat-http-5.5.17.jar.so)
   at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(tomcat-http-5.5.17.jar.so)
   at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(tomcat-util-5.5.17.jar.so)
   at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(tomcat-util-5.5.17.jar.so)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(tomcat-util-5.5.17.jar.so)
   at java.lang.Thread.run(libgcj.so.7rh)
Caused by: javax.faces.FacesException: org.apache.jasper.JasperException:
Exception in JSP: /Page1.jsp:7

4: f:view
5: ui:page binding=#{Page1.page1} id=page1
6: ui:html binding=#{Page1.html1} id=html1
7: ui:head binding=#{Page1.head1} id=head1
8: ui:link binding=#{Page1.link1} id=link1
url=/resources/stylesheet.css/
9: /ui:head
10: ui:body binding=#{Page1.body1} id=body1
style=-rave-layout: grid


Stacktrace:
   at
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:351)
   at
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
   at
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
   ...21 more
Caused by: org.apache.jasper.JasperException: Exception in JSP: /Page1.jsp:7

4: f:view
5: ui:page binding=#{Page1.page1} id=page1
6: ui:html binding=#{Page1.html1} id=html1
7: ui:head binding=#{Page1.head1} id=head1
8: ui:link binding=#{Page1.link1} id=link1
url=/resources/stylesheet.css/
9: /ui:head
10: ui:body binding=#{Page1.body1} id=body1
style=-rave-layout: grid


Stacktrace:
   at
org.apache.jasper.servlet.JspServletWrapper.handleJspException(jasper5-compiler-5.5.17.jar.so)
   at
org.apache.jasper.servlet.JspServletWrapper.service(jasper5-compiler-5.5.17.jar.so)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(jasper5-compiler-5.5.17.jar.so)
   at
org.apache.jasper.servlet.JspServlet.service(jasper5-compiler-5.5.17.jar.so)
   at
javax.servlet.http.HttpServlet.service(tomcat5-servlet-2.4-api-5.5.17.jar.so)
   at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.ApplicationFilterChain.doFilter(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.ApplicationDispatcher.invoke(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.ApplicationDispatcher.processRequest(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.ApplicationDispatcher.doForward(catalina-5.5.17.jar.sovwj9yy.so)
   at
org.apache.catalina.core.ApplicationDispatcher.forward(catalina-5.5.17.jar.sovwj9yy.so)
   at

Can I get your 2 cents?

2007-03-21 Thread Nathan Aaron
I sent this yesterday.  I am hoping someone can let me know as why this 
is occurring or maybe give me some ideas of things to look at.  Any help 
would be greatly appreciated!


I am running Apache 2.0.52, jk2 2.0.4, and Tomcat 5.0.28.  Recently I 
changed the version of Java that Tomcat is using from IBM jdk 1.4.1 to

Sun jdk 1.6.  Since then I get the following messages in the
catalina.out file every 5 minutes or so:

Mar 20, 2007 11:59:46 AM org.apache.commons.modeler.Registry
unregisterComponent
SEVERE: Error unregistering mbean
javax.management.RuntimeOperationsException: Object name cannot be null
   at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:582)
   at
com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:598)
   at
org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:642)
   at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:706)
   at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException: Object name cannot be null
   ... 7 more

Thanks,
Nathan



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Who do I have to pay (and how much) to...

2007-03-21 Thread Rashmi Rubdi

Not sure if you read this:
http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html

I've configured according to Approach #2 , as it makes it easy to switch off
projects in the development environment.

I was able to set up virtual hosts simply by following the above How-to.**

On 3/21/07, Matthew [EMAIL PROTECTED] wrote:


Hello Chuck,

Actually, I'm getting a 400. I have read many pages (including the link
you've provided)


Can JMX proxy invoke operations on Mbeans?

2007-03-21 Thread Nicholas Sushkin
Hi,

Can I invoke mbean operations using JMX Proxy? 

I am reading Using JMX Proxy Servlet Section of 
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html, but it only 
mentions reading and setting mbean attributes.

Thank you
-- 
Nicholas Sushkin, Senior Software Engineer
Open Finance


smime.p7s
Description: S/MIME cryptographic signature


Re: Who do I have to pay (and how much) to...

2007-03-21 Thread Hassan Schroeder

On 3/21/07, Matthew [EMAIL PROTECTED] wrote:


Here's the set up I imagine (a fixed size font may be needed to view the
directory structures below)...

In server.xml...

Host name=domain1.com appBase=?
/Host

Host name=domain2.com appBase=?
/Host


This is just not that difficult. Specify an appBase for each host, e.g.

Host name=domain1.com appBase=foo/
Host name=domain1.com appBase=bar/

Now in $CATALINA_HOME/webapps/foo put your domain1.war
renamed to ROOT.war and in $CATALINA_HOME/webapps/bar
put domain2.war, likewise renamed to ROOT.war

Restart. Done.
--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Who do I have to pay (and how much) to...

2007-03-21 Thread Matthew

Hello Hassan,

I quite agree, it should be easy. As it turns out, whilst I saw the link 
mentioned by Rashmi and tried it a while ago, my configuration must have 
been compromised elsewhere, as it did not work.


Now, retrying the same thing, it comes up fine and, as you said, with 
hindsight, it was not that difficult.


So thanks to the both of you.

Matthew

Hassan Schroeder wrote:


On 3/21/07, Matthew [EMAIL PROTECTED] wrote:


Here's the set up I imagine (a fixed size font may be needed to view the
directory structures below)...

In server.xml...

Host name=domain1.com appBase=?
/Host

Host name=domain2.com appBase=?
/Host



This is just not that difficult. Specify an appBase for each host, e.g.

Host name=domain1.com appBase=foo/
Host name=domain1.com appBase=bar/

Now in $CATALINA_HOME/webapps/foo put your domain1.war
renamed to ROOT.war and in $CATALINA_HOME/webapps/bar
put domain2.war, likewise renamed to ROOT.war

Restart. Done.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Who do I have to pay (and how much) to...

2007-03-21 Thread Caldarale, Charles R
 From: Matthew [mailto:[EMAIL PROTECTED] 
 Subject: Re: Who do I have to pay (and how much) to...
 
 Actually, I'm getting a 400.
 
 I should point out that the whole set up works when I add
 a Context tag within the Host tag (in server.xml) and
 set the docBase. I should not need (nor do I want) to have
 a Context tag in server.xml.

O.k., let's get back to basics.

1) What is the appBase setting for your Host?

2) Where are your apps deployed?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JK ISAPI Filter and Keep-Alive/Chunked Encoding (a.k.a. Is 1.2.21 broken?)

2007-03-21 Thread Mladen Turk

Brandon Knitter wrote:


Attached and below.  Let me know if this is considered large and I
should move this to a bugzilla issue.  Only took us about 30 minutes to
apply it.  Again, this is against 1.2.21!



It would be the best if you could open bugzilla issue, because
the patch is more the a small one :)

Few thing.

Do not change unused code by commenting them out.
For example:
-}
+}*/

Simply delete the braces.
Next, please use spaces instead tabs.

... and it would be perfect if you could make a patch to the
SVN HEAD. If not the 1.2.21 will do with upper style guidelines.


Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Caldarale, Charles R
 From: Nelson, Tracy M. [mailto:[EMAIL PROTECTED] 
 Subject: RE: apache-tomcat on an ia64 rhel4?
 
 Sun shows a 1.5 JDK for RHAS3.0 on Itanium2 at
 http://java.sun.com/j2se/1.5.0/system-configurations.html.  

Yup - but there's no IA64 entries on the actual download page.  Bait and
switch?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



IIS 7.0

2007-03-21 Thread Stefan Wachter

Hi all,

has anyone already managed to integrate Tomcat into an IIS 7.0 using the 
isapi_redirect.dll? I tried for several hours but did not succeed.


--Stefan


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Jeff Sadowski

I couldn't find the binary to download either like Charles. Thanks for
the link though

On 3/21/07, Nelson, Tracy M. [EMAIL PROTECTED] wrote:

| From: Jeff Sadowski [mailto:[EMAIL PROTECTED]
| Sent: Tuesday, 20 March, 2007 16:44
|
| I would like to run apache-tomcat on an dual Itanium server I have at
| work.
| I cannot find JDK for it nor can I find anything besides gcj

Sun shows a 1.5 JDK for RHAS3.0 on Itanium2 at
http://java.sun.com/j2se/1.5.0/system-configurations.html.  Is there a big
difference between RHAS and RHEL?  They also show SLES9 as a supported OS,
if that's any help.
-

The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can a web app discover its Service?

2007-03-21 Thread Paul Singleton

Raghupathy, Gurumoorthy wrote:
How about Setting up jndi variables ? 


I've had a closer look at Tomcat Configuration
Reference, which says you can set per-Server
JNDI variables (GlobalNamingResources), and
per-Context ones, but there's no mention of
per-Service variables.

Any idea whether/how this could be done?

regards - Paul



Regards
Guru
 


---
Gurumoorthy Raghupathy
Email  :  [EMAIL PROTECTED]
Internal Extn : 2337 
External Phone  : 01483712337 
Nielsen Book

3rd Floor Midas House
62 Goldsworth Road
Woking Surrey GU21 6LQ
Visit us at  : http://www.nielsenbookdata.co.uk/ 


---

-Original Message-
From: Mikolaj Rydzewski [mailto:[EMAIL PROTECTED] 
Sent: 20 March 2007 15:05

To: Tomcat Users List
Subject: Re: can a web app discover its Service?

Paul Singleton wrote:

I want to deploy the same war into different (5.5)
Services (e.g. test and live), and want it to
discover where it is and behave differently.

Is there a Tomcat-specific way to do this?

JMX and MBeans come to mind.

Is there a container-independent way of discovering
container-specific info like this?

Check port server listens on?




--
Paul Singleton
Jambusters Ltd

tel: 01782 750821
fax: 08707 628609
VAT: 777 3904 85
Company no. 04150146


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can a web app discover its Service?

2007-03-21 Thread Paul Singleton

Mikolaj Rydzewski wrote:

Paul Singleton wrote:

I want to deploy the same war into different (5.5)
Services (e.g. test and live), and want it to
discover where it is and behave differently.

Is there a Tomcat-specific way to do this?

JMX and MBeans come to mind.

Is there a container-independent way of discovering
container-specific info like this?

Check port server listens on?


OK, since Servlet 2.4 there's

  String ServletRequest.getLocalAddr()

which returns the IP address on which
the request was received; this should
enable my web apps to discover whether
they are deployed to our 'test' virtual
server or one of the live ones.

I'd still like to know if there's anything
we can set in a Service element which
our web apps can read...

Paul Singleton


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: can a web app discover its Service?

2007-03-21 Thread Caldarale, Charles R
 From: Paul Singleton [mailto:[EMAIL PROTECTED] 
 Subject: Re: can a web app discover its Service?
 
 I've had a closer look at Tomcat Configuration
 Reference, which says you can set per-Server
 JNDI variables (GlobalNamingResources), and
 per-Context ones, but there's no mention of
 per-Service variables.

I have to ask: are you really trying to run both test and production
environments inside a single instance of Tomcat inside a single JVM?  If
so, that's pretty gutsy.  If you're not doing that, why do you have to
change the Service name?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Jeff Sadowski

I'm still really unclear about what tomcat is. I have never used it I
play mostly with php and html.
I have another engineer that would like to use it. Is there a fully
open source alternative?
I guess tomcat itself is open source but it depends on java
development kit? is that right?
I'm more interested in if it could use something from the gcj project?
I know I can run java applications on my Altix 330 it has the java
command. I know I can compile some java code as well with gcj but I
take it that there is more too it than that? right? I guess I could
also use gcj to compile the java code to binaries and run them as cgi?
I guess I really need to ask my other engineer but I was just trying
to get as much done as I could and try and install the application he
asked for (tomcat)

Thanks

On 3/20/07, Jeff Sadowski [EMAIL PROTECTED] wrote:

I would like to run apache-tomcat on an dual Itanium server I have at work.
I cannot find JDK for it nor can I find anything besides gcj

Is it possable to build tomcat with gcj?

has anyone gotten tomcat to run on a ia64 linux machine? or ia64
windows even(I think MS stoped support for the ia64 even) for that
matter?
(the machine I'm looking at only supports linux and is headless) its
an SGI Altix 330



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: requiring multiple roles for access

2007-03-21 Thread Ryan

Barry,

I'm looking for a way to disable the user by taking them out of one role,
but leaving them in the roles they were in before they were disabled (for
informational purposes). I didn't think it would be possible, but I wanted
to throw it out there in case I missed something. What you are suggesting
may also be suitable.

Thanks,
Ryan


On 3/21/07, Propes, Barry L [GCG-NAOT] [EMAIL PROTECTED] wrote:


I know you can assign different roles to an app, and to a user, and make
that user need one role to get to one part and an additional role to access
a separate part of the app, but the entire app? Not sure about that.

I've got people in my users table that have to have multiple roles for
several tasks within my app. If they only have one role, they're able to do
a certain part of the app, but not all of it. Is this what you're trying to
accomplish?

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 21, 2007 8:39 AM
To: users@tomcat.apache.org
Subject: requiring multiple roles for access


Hi All,

I would like to require a user to belong to two roles to access a certain
application (i.e. user must belong to role1 AND role2 to access). I've
tried
the following in my web.xml
  auth-constraint
   role-namerole1/role-name
   role-namerole2/role-name
  /auth-constraint

Unfortunately, this doesn't seem to work (it seems to allow role1 OR
role2).
Is what I'm trying to do possible??

Thanks,
Ryan

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: can a web app discover its Service?

2007-03-21 Thread Paul Singleton

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul,

Paul Singleton wrote:

I want to deploy the same war into different (5.5)
Services (e.g. test and live), and want it to
discover where it is and behave differently.

Is there a Tomcat-specific way to do this?

Is there a container-independent way of discovering
container-specific info like this?


You tell us: how can /you/ tell that you are in production versus test?

If you can make that determination, then you should be able to make your
software do it, too.

I have ant scripts that build everything for me including WAR files for
deployment. In my source repo, I have different configuration
directories for each of dev, demo, and prod. In fact, I can make as many
of those as I'd like, since I just set release-type in my
build.properties file to a string, and ant pulls the configuration and
properties files that match that directory, so I could potentially
create a foo release-type if I wanted.

So, instead of the application detecting where it is and configuring
itself appropriately, I tell the application what it /will be/ and
configure it at build time.


Yeah, so do we, but like I said:

 I want to deploy the same war into different (5.5)
 Services (e.g. test and live), and want it to
 discover where it is and behave differently.

I didn't explain *why* we want to do this, because I
don't want to spend time debating it with folk who
prefer to do it the other way ;-)

But here are a couple of plus points for discovery
and self-configuration (DSC):

1) our dev, test and demo configurations behave in
convenient ways we don't *ever* want in our live
apps; with DSC we are more confident that, even if
deployment misteaks are made, we won't be embarrassed

2) we can implement all configuration in Java and
don't need to learn or teach anything else!

regards - Paul



Just my $0.02
- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF//kT9CaO5/Lv0PARAgJZAJ4r2l8nkM/fbQWl62nTeR1TsKgQOACfYIXr
wWE/VnGrYVqHxl5mUpbPt1U=
=qyrv
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Paul Singleton
Jambusters Ltd

tel: 01782 750821
fax: 08707 628609
VAT: 777 3904 85
Company no. 04150146


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: requiring multiple roles for access

2007-03-21 Thread Ryan

Chuck,

I think you and Barry are correct, I will probably to define another role
for this purpose and segregate different parts of the application.

Thanks,
Ryan


On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:


 From: Ryan [mailto:[EMAIL PROTECTED]
 Subject: requiring multiple roles for access

 I would like to require a user to belong to two roles to
 access a certain application (i.e. user must belong to role1
 AND role2 to access). I've tried the following in my web.xml
   auth-constraint
role-namerole1/role-name
role-namerole2/role-name
   /auth-constraint

 Unfortunately, this doesn't seem to work (it seems to allow
 role1 OR role2).

As expected; to quote from the servlet spec:

A user must be a member of at least one of the named roles to be
permitted to perform the constrained requests.

 Is what I'm trying to do possible??

The easiest way might be just to define a separate role for this purpose
rather than trying to piggy-back off combinations.

- Chuck



THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Caldarale, Charles R
 From: Jeff Sadowski [mailto:[EMAIL PROTECTED] 
 Subject: Re: apache-tomcat on an ia64 rhel4?
 
 I'm still really unclear about what tomcat is.

Many books and tutorials are available, most of them freely available on
the web.

 I guess tomcat itself is open source but it depends on java
 development kit?

Current versions of Tomcat require only a JRE, not a JDK.

 I'm more interested in if it could use something from the gcj project?

I hope you're joking.

You need to install a real JRE.  I would expect a 32-bit one to work on
an IA64, albeit not as efficiently.  It's unfortunate that you're stuck
with a platform that's been superseded by much more reasonable 64-bit
technologies.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: requiring multiple roles for access

2007-03-21 Thread Propes, Barry L [GCG-NAOT]
yeah and you might even add another table to tie it in, too. I've done that as 
well.

Tomcat requires the users and user_roles tables, but that doesn't inhibit you 
from customizing it further if needed.

-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 21, 2007 2:28 PM
To: Tomcat Users List
Subject: Re: requiring multiple roles for access


Chuck,

I think you and Barry are correct, I will probably to define another role
for this purpose and segregate different parts of the application.

Thanks,
Ryan


On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

  From: Ryan [mailto:[EMAIL PROTECTED]
  Subject: requiring multiple roles for access
 
  I would like to require a user to belong to two roles to
  access a certain application (i.e. user must belong to role1
  AND role2 to access). I've tried the following in my web.xml
auth-constraint
 role-namerole1/role-name
 role-namerole2/role-name
/auth-constraint
 
  Unfortunately, this doesn't seem to work (it seems to allow
  role1 OR role2).

 As expected; to quote from the servlet spec:

 A user must be a member of at least one of the named roles to be
 permitted to perform the constrained requests.

  Is what I'm trying to do possible??

 The easiest way might be just to define a separate role for this purpose
 rather than trying to piggy-back off combinations.

 - Chuck



 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread David Smith
Tomcat is really a whole service environment for running java servlets 
and jsp.  Don't think if it in terms of CGIs that just run for the 
request and close down.  Tomcat is more akin to Apache's httpd, 
listening ports and responding to client requests on the http or https 
protocol.  It can be proxied with Httpd if you want using either 
straight http reverse proxying or a custom AJP protocol.


Tomcat is fully open source and can run with the Sun JRE as of version 
5.5 (maybe 5.0, but I'm not sure without looking it up).


Don't use gcj -- it's not a complete enough java environment.  I've 
heard IBM's implementation of  java is pretty good but haven't tried it.


--David

Jeff Sadowski wrote:


I'm still really unclear about what tomcat is. I have never used it I
play mostly with php and html.
I have another engineer that would like to use it. Is there a fully
open source alternative?
I guess tomcat itself is open source but it depends on java
development kit? is that right?
I'm more interested in if it could use something from the gcj project?
I know I can run java applications on my Altix 330 it has the java
command. I know I can compile some java code as well with gcj but I
take it that there is more too it than that? right? I guess I could
also use gcj to compile the java code to binaries and run them as cgi?
I guess I really need to ask my other engineer but I was just trying
to get as much done as I could and try and install the application he
asked for (tomcat)

Thanks

On 3/20/07, Jeff Sadowski [EMAIL PROTECTED] wrote:

I would like to run apache-tomcat on an dual Itanium server I have at 
work.

I cannot find JDK for it nor can I find anything besides gcj

Is it possable to build tomcat with gcj?

has anyone gotten tomcat to run on a ia64 linux machine? or ia64
windows even(I think MS stoped support for the ia64 even) for that
matter?
(the machine I'm looking at only supports linux and is headless) its
an SGI Altix 330



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can a web app discover its Service?

2007-03-21 Thread Bob Hall

--- Paul Singleton [EMAIL PROTECTED] wrote:

   I want to deploy the same war into different
 (5.5)
   Services (e.g. test and live), and want it
 to
   discover where it is and behave differently.
 
 I didn't explain *why* we want to do this, because I
 don't want to spend time debating it with folk who
 prefer to do it the other way ;-)
 
 But here are a couple of plus points for discovery
 and self-configuration (DSC):
 
 1) our dev, test and demo configurations behave in
 convenient ways we don't *ever* want in our live
 apps; with DSC we are more confident that, even if
 deployment misteaks are made, we won't be
 embarrassed
 

Paul,

If your app talks to a database, have you considered
using a database table to map IP's to deploy modes?

-Bob


 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



high CPU usage

2007-03-21 Thread Gurdeep Kaur \(gurdeep\)
I am going to add some more information to the question I asked
yesterday.

I am running a TLS test case to do a TLS handshake on port 8443 of our
server that is running Tomcat 5.5.

I noticed in the log file that there are two threads currently running
on the invocation of this test( there should be just one to handle one
https request?).  

One of them is Printing 
http-8443-Processor1, READ: TLSv1 Handshake, length = 0 and the message
is repeated thousands and thousand of times thus consuming the CPU.

The other thread seems to look ok. And the difference I find between
these two is that the thread that works as intended prints :

http-8443-Processor2, READ: TLSv1 Handshake, length = 78

Note the non-zero length.

I can constantly reproduce the issue.

Any pointers, inputs will be greatly appreciated.

Thanks
Gurdeep


 



-Original Message-
From: Gurdeep Kaur (gurdeep) 
Sent: Tuesday, March 20, 2007 4:56 PM
To: users@tomcat.apache.org
Subject: high CPU usage with codenomicon TLS test case #91

 
We are using tomcat 5.5 with JSSE. When we execute codenomicon test case
#91 from the TLS suit, tomcat CPU usage goes up to 90%.  The platform is
Redhat Linux.

Was wondering if someone has seen something like this before.

Thanks
Gurdeep

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can a web app discover its Service?

2007-03-21 Thread Paul Singleton

Bob Hall wrote:

--- Paul Singleton [EMAIL PROTECTED] wrote:


  I want to deploy the same war into different
(5.5)
  Services (e.g. test and live), and want it
to
  discover where it is and behave differently.

I didn't explain *why* we want to do this, because I
don't want to spend time debating it with folk who
prefer to do it the other way ;-)

But here are a couple of plus points for discovery
and self-configuration (DSC):

1) our dev, test and demo configurations behave in
convenient ways we don't *ever* want in our live
apps; with DSC we are more confident that, even if
deployment misteaks are made, we won't be
embarrassed



Paul,

If your app talks to a database, have you considered
using a database table to map IP's to deploy modes?


No, each app has its own database, and in our case, I'm
happier building this table into our (common) application
bean.

But you've given me an idea: I may label each database
internally as test, live etc. and get the apps to
check this too when they start...

Many thanks - Paul



-Bob


 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.

http://games.yahoo.com/games/front

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Paul Singleton
Jambusters Ltd

tel: 01782 750821
fax: 08707 628609
VAT: 777 3904 85
Company no. 04150146


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JK ISAPI Filter and Keep-Alive/Chunked Encoding (a.k.a. Is 1.2.21 broken?)

2007-03-21 Thread Brandon Knitter
Will do, please give me a day. 


--
-bk
 
-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 21, 2007 11:27 AM
To: Brandon Knitter
Cc: Tomcat Users List
Subject: Re: JK ISAPI Filter and Keep-Alive/Chunked Encoding (a.k.a. Is
1.2.21 broken?)

Brandon Knitter wrote:
 
 Attached and below.  Let me know if this is considered large and I
 should move this to a bugzilla issue.  Only took us about 30 minutes
to
 apply it.  Again, this is against 1.2.21!
 

It would be the best if you could open bugzilla issue, because
the patch is more the a small one :)

Few thing.

Do not change unused code by commenting them out.
For example:
-}
+}*/

Simply delete the braces.
Next, please use spaces instead tabs.

... and it would be perfect if you could make a patch to the
SVN HEAD. If not the 1.2.21 will do with upper style guidelines.


Regards,
Mladen.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---
This email message is for the sole use of the intended recipient(s) and may 
contain
confidential information.  Any unauthorized review, use, disclosure or 
distribution
is prohibited.  If you are not the intended recipient, please contact the 
sender by
reply email and destroy all copies of the original message.
---

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread vamsee movva

How about installing everything from source ??


On 3/21/07, David Smith [EMAIL PROTECTED] wrote:


Tomcat is really a whole service environment for running java servlets
and jsp.  Don't think if it in terms of CGIs that just run for the
request and close down.  Tomcat is more akin to Apache's httpd,
listening ports and responding to client requests on the http or https
protocol.  It can be proxied with Httpd if you want using either
straight http reverse proxying or a custom AJP protocol.

Tomcat is fully open source and can run with the Sun JRE as of version
5.5 (maybe 5.0, but I'm not sure without looking it up).

Don't use gcj -- it's not a complete enough java environment.  I've
heard IBM's implementation of  java is pretty good but haven't tried it.

--David

Jeff Sadowski wrote:

 I'm still really unclear about what tomcat is. I have never used it I
 play mostly with php and html.
 I have another engineer that would like to use it. Is there a fully
 open source alternative?
 I guess tomcat itself is open source but it depends on java
 development kit? is that right?
 I'm more interested in if it could use something from the gcj project?
 I know I can run java applications on my Altix 330 it has the java
 command. I know I can compile some java code as well with gcj but I
 take it that there is more too it than that? right? I guess I could
 also use gcj to compile the java code to binaries and run them as cgi?
 I guess I really need to ask my other engineer but I was just trying
 to get as much done as I could and try and install the application he
 asked for (tomcat)

 Thanks

 On 3/20/07, Jeff Sadowski [EMAIL PROTECTED] wrote:

 I would like to run apache-tomcat on an dual Itanium server I have at
 work.
 I cannot find JDK for it nor can I find anything besides gcj

 Is it possable to build tomcat with gcj?

 has anyone gotten tomcat to run on a ia64 linux machine? or ia64
 windows even(I think MS stoped support for the ia64 even) for that
 matter?
 (the machine I'm looking at only supports linux and is headless) its
 an SGI Altix 330


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Caldarale, Charles R
 From: vamsee movva [mailto:[EMAIL PROTECTED] 
 Subject: Re: apache-tomcat on an ia64 rhel4?
 
 How about installing everything from source ??

Are you talking about building a JVM from the Sun source?  That's a
decidedly non-trivial exercise, and still doesn't resolve the problem of
not having a JIT that generates IA64 code.

If you're talking about Tomcat, then you're somewhat confused about how
pure Java programs execute.  The same class files will run on any
platform, *if* you have a JVM for that platform.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread vamsee movva

Hi Chuck,
I am talking about bulding JAVA SE from source. I thought it won't be a
problem.
My project supervisor told me  , he built Java SE on IA64 bit machine.
I don't know whether Java SE comes with JRE or not.
I know we need not build java application again if we change the platform.

Excuse my english.


On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:


 From: vamsee movva [mailto:[EMAIL PROTECTED]
 Subject: Re: apache-tomcat on an ia64 rhel4?

 How about installing everything from source ??

Are you talking about building a JVM from the Sun source?  That's a
decidedly non-trivial exercise, and still doesn't resolve the problem of
not having a JIT that generates IA64 code.

If you're talking about Tomcat, then you're somewhat confused about how
pure Java programs execute.  The same class files will run on any
platform, *if* you have a JVM for that platform.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Caldarale, Charles R
 From: vamsee movva [mailto:[EMAIL PROTECTED] 
 Subject: Re: apache-tomcat on an ia64 rhel4?
 
 My project supervisor told me  , he built Java SE on IA64 bit machine.

Yes, it can be done, but that still doesn't address the lack of a JIT to
convert byte codes into IA64 instructions.  (The HotSpot server compiler
used to be able to do this, but it wasn't terribly reliable in IA64
mode.)  You could run entirely in interpreter mode, but that would be a
bit on the painful side...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread vamsee movva

Ok, I got it.
Thanks


On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:


 From: vamsee movva [mailto:[EMAIL PROTECTED]
 Subject: Re: apache-tomcat on an ia64 rhel4?

 My project supervisor told me  , he built Java SE on IA64 bit machine.

Yes, it can be done, but that still doesn't address the lack of a JIT to
convert byte codes into IA64 instructions.  (The HotSpot server compiler
used to be able to do this, but it wasn't terribly reliable in IA64
mode.)  You could run entirely in interpreter mode, but that would be a
bit on the painful side...

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Jeff Sadowski

What is the difference between Java Runtime Environment and having the
java binary to run? Is there one? If I have the java binary do I not
have the JRE?

rpm -qa|grep java
java-1.4.2-gcj-compat-1.4.2.0-27jpp
gcc-java-3.4.6-3.1

I know swing is not implemeted yet but do servlets use guis?

IA64 is an entirely different beast.(I hope your joking suggesting x86
based java, An Itanium is far better than any of the current 64 bit
x86 based chips) And no I am not joking if gcj is not made into a
fully functional compiler I suggest you move away from java. As I see
it there is no open source java compiler thus defeating purpose of any
open source java programs. Thus one of the reasons I have against java
in the first place. I also like data being passed in containers and
not having to mold it to fit into an object but either or there.

free and open source are two entirely different beasts. Open Source is
community driven
free is an enticement. So your stuck using a vendors products.

What do you have against gcj? If it is missing something help
implement it. Or tell what it is missing to the developers if they
don't already know it is missing.
Notice open office 2 was not released until it could be entirely built
with gcj so my guess is someone in sun is also betting on it. Maybe
the designers of the language.

On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

 From: Jeff Sadowski [mailto:[EMAIL PROTECTED]
 Subject: Re: apache-tomcat on an ia64 rhel4?

 I'm still really unclear about what tomcat is.

Many books and tutorials are available, most of them freely available on
the web.

 I guess tomcat itself is open source but it depends on java
 development kit?

Current versions of Tomcat require only a JRE, not a JDK.

 I'm more interested in if it could use something from the gcj project?

I hope you're joking.

You need to install a real JRE.  I would expect a 32-bit one to work on
an IA64, albeit not as efficiently.  It's unfortunate that you're stuck
with a platform that's been superseded by much more reasonable 64-bit
technologies.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Jeff Sadowski

IBM's JRE is jikes I think I'll look into it it might also be an
opensource project.
Might I'll check it out. Thanks

On 3/21/07, David Smith [EMAIL PROTECTED] wrote:

Tomcat is really a whole service environment for running java servlets
and jsp.  Don't think if it in terms of CGIs that just run for the
request and close down.  Tomcat is more akin to Apache's httpd,
listening ports and responding to client requests on the http or https
protocol.  It can be proxied with Httpd if you want using either
straight http reverse proxying or a custom AJP protocol.

Tomcat is fully open source and can run with the Sun JRE as of version
5.5 (maybe 5.0, but I'm not sure without looking it up).

Don't use gcj -- it's not a complete enough java environment.  I've
heard IBM's implementation of  java is pretty good but haven't tried it.

--David

Jeff Sadowski wrote:

 I'm still really unclear about what tomcat is. I have never used it I
 play mostly with php and html.
 I have another engineer that would like to use it. Is there a fully
 open source alternative?
 I guess tomcat itself is open source but it depends on java
 development kit? is that right?
 I'm more interested in if it could use something from the gcj project?
 I know I can run java applications on my Altix 330 it has the java
 command. I know I can compile some java code as well with gcj but I
 take it that there is more too it than that? right? I guess I could
 also use gcj to compile the java code to binaries and run them as cgi?
 I guess I really need to ask my other engineer but I was just trying
 to get as much done as I could and try and install the application he
 asked for (tomcat)

 Thanks

 On 3/20/07, Jeff Sadowski [EMAIL PROTECTED] wrote:

 I would like to run apache-tomcat on an dual Itanium server I have at
 work.
 I cannot find JDK for it nor can I find anything besides gcj

 Is it possable to build tomcat with gcj?

 has anyone gotten tomcat to run on a ia64 linux machine? or ia64
 windows even(I think MS stoped support for the ia64 even) for that
 matter?
 (the machine I'm looking at only supports linux and is headless) its
 an SGI Altix 330


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Requesting files with non-English/international characters in their names

2007-03-21 Thread Thomas Peter Berntsen

-- Forwarded message --
From: Christopher Schultz [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Date: Mon, 19 Mar 2007 12:55:30 -0400
Subject: Re: Requesting files with non-English/international characters in 
their names
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Chris,

Thanks for your reply. My comments are below:


Thomas,

Thomas Peter Berntsen wrote:
 I have some trouble getting Tomcat to return files with
 non-English/international characters in their names.

It's interesting how questions like this come in waves.

 I have tried setting 'URIEncoding=UTF-8' in the port 8080 connector,
 but without success.

Are you serving your pages in UTF-8 encoding? Usually, the browser uses
the response encoding from the previous request to submit the next
request's URI. If you are using ISO-8859-1 for your web pages, then
expecting the browser to use UTF-8 for the URIs in incorrect.


Thanks. I'll check that. But isn't that irrelevant in the case that I
just request a directory listing through a URL like:
localhost:8080/test? Or irrelevant in the case I request a file
directly through a URL like: localhost:8080/æøå.gif?

I mean, it's not that I access a webapp's jsp file first through the
browser. Or do I need to look for Tomcat's own jsp files (used to
provide the view for the directory listing) and edit those to use
UTF-8?

Just to be sure I edited the index.jsp of the ROOT app in which I have
created the æøå.gif file and changed the encoding to UTF-8, but with
no different result.


Basically, you have to make sure that everything is using UTF-8, and it
should all start to work. If you are missing one piece of the puzzle,
you can always find something that doesn't work.

Check:
- - Your web page response encoding.
- - Any forms with overridden encoding.
- - Your Connector (which you already mentioned).

... and make sure that everything is using UTF-8. Next, verify that it
is set up properly by requesting a page and then examining the request
using your browser. I believe that most popular browsers today will
display the character encoding being used to render the page if you view
the page properties or whatever the proper term is in your browser.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF/sCC9CaO5/Lv0PARAtXUAJ9J8Osxwy8dgcKg5jUwO0w61njD7gCcCi6t
BQ52LhpMAT2lS68smdnbPlQ=
=E1Wy
-END PGP SIGNATURE-




Thanks for your help until now.

Cheers,
Thomas

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Caldarale, Charles R
 From: Jeff Sadowski [mailto:[EMAIL PROTECTED] 
 Subject: Re: apache-tomcat on an ia64 rhel4?
 
 What is the difference between Java Runtime Environment and having the
 java binary to run?

A myriad of library API implementations provided with a proper JRE but
not supported by gcj.

 I know swing is not implemeted yet but do servlets use guis?

No, but they frequently use things like image codecs that aren't
available with gcj.

 IA64 is an entirely different beast.

You can say that again.  The IA64 pipeline implementors basically threw
up their hands at doing the hard work of optimization and pushed it off
onto the compiler (and JIT) developers - which is one of the things I
get paid for.  It's a nightmare to generate code for that architecture.

 What do you have against gcj? If it is missing something help
 implement it.

It's missing quite a bit - try running the JCK against it.  I see
absolutely no reason to reinvent an already well-rounded wheel.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OutOfMemoryError

2007-03-21 Thread Haroon Rafique
On Yesterday at 2:54pm, FHDL=Filip Hanik - Dev Lists [EMAIL PROTECTED]...:

FHDL java.lang.OutOfMemoryError: unable to create new native thread
FHDL 
FHDL There is not enough space to create a new thread. Threads(stacks).
FHDL if -Xmx solves your problem, then set it and be happy :)
FHDL 
FHDL another tip is to decrease the value of your thread stack size using the
FHDL -Xss parameter, for example
FHDL -Xss32k is one value
FHDL 

That would be my recommendation as well (that's twice now - I replied to 
an earlier email in this thread with the same advice). That's what solved 
the problem for me on a similar configuation.

FHDL How many threads are you creating?
FHDL 
FHDL Filip

Later,
--
Haroon Rafique
[EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem in MySQL JNDI Resource..

2007-03-21 Thread prt

Hi to all,

I have in webapps web application name test1.

In server.xml i define Resource for MySQL db,

Host name=localhost appBase=webapps ...
Context path=/test1 debug=0 reloadable=true crossContext=true
Resource name=jdbc/mydb auth=Container type=javax.sql.DataSource 
removeAbandoned=true removeAbandonedTimeout=30 
maxActive=100 maxIdle=30  maxWait=1   
username=user password=pass driverClassName=com.mysql.jdbc.Driver 
url=jdbc:mysql://localhost/mydb/
/Context
/host

In test1/WEB-INF/web.xml i define,

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

I start my Apache tomcat 5 on port 80 and everything work good in
http://localhost/test1;.

Now i want to access test1 from this link http://localhost/;.
So i changed server.xml to,

Host name=localhost appBase=webapps ...
Context path=/ debug=0 reloadable=true crossContext=true
Resource name=jdbc/mydb auth=Container type=javax.sql.DataSource 
removeAbandoned=true removeAbandonedTimeout=30 
maxActive=100 maxIdle=30  maxWait=1   
username=user password=pass driverClassName=com.mysql.jdbc.Driver 
url=jdbc:mysql://localhost/mydb/
/Context
/host

I can access to http://localhost/;, but the JNDI Resource for MySQL is not
working and i get this error,
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver
of class '' for connect URL 'null'

I try to put the mysql Connector jar in common/lib And server/lib And
shared/lib but still i get the same error.

I was googeling for hourse and found non.

So can any body help me here please ???

Thank you all.
(Sory about my English :) )
-- 
View this message in context: 
http://www.nabble.com/Problem-in-MySQL-JNDI-Resource..-tf3443968.html#a9603852
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Jeff Sadowski

What about jikes will that work?

On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

 From: Jeff Sadowski [mailto:[EMAIL PROTECTED]
 Subject: Re: apache-tomcat on an ia64 rhel4?

 What is the difference between Java Runtime Environment and having the
 java binary to run?

A myriad of library API implementations provided with a proper JRE but
not supported by gcj.

 I know swing is not implemeted yet but do servlets use guis?

No, but they frequently use things like image codecs that aren't
available with gcj.

 IA64 is an entirely different beast.

You can say that again.  The IA64 pipeline implementors basically threw
up their hands at doing the hard work of optimization and pushed it off
onto the compiler (and JIT) developers - which is one of the things I
get paid for.  It's a nightmare to generate code for that architecture.

 What do you have against gcj? If it is missing something help
 implement it.

It's missing quite a bit - try running the JCK against it.  I see
absolutely no reason to reinvent an already well-rounded wheel.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Caldarale, Charles R
 From: Jeff Sadowski [mailto:[EMAIL PROTECTED] 
 Subject: Re: [OT] apache-tomcat on an ia64 rhel4?
 
 What about jikes will that work?

Jikes is just a Java compiler - not a runtime system.  You still need a
JRE to load and execute the generated class files and provide the APIs.
Class files produced by Jikes should function with any of the standard
JREs (Sun, IBM, JRockit) and possibly others.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem in MySQL JNDI Resource..

2007-03-21 Thread Rashmi Rubdi

The closing host tag's case doesn't match the opening Host tags case, I
don't know if it matters but just wanted to point it out.

It should be
Host
/Host

and not
Host
/host

-Rashmi

On 3/21/07, prt [EMAIL PROTECTED] wrote:



Host name=localhost appBase=webapps ...
Context path=/ debug=0 reloadable=true crossContext=true
Resource name=jdbc/mydb auth=Container type=javax.sql.DataSource
removeAbandoned=true removeAbandonedTimeout=30
maxActive=100 maxIdle=30  maxWait=1
username=user password=pass driverClassName=
com.mysql.jdbc.Driver
url=jdbc:mysql://localhost/mydb/
/Context
/host



RE: Problem in MySQL JNDI Resource..

2007-03-21 Thread Caldarale, Charles R
 From: prt [mailto:[EMAIL PROTECTED] 
 Subject: Problem in MySQL JNDI Resource..
 
 Host name=localhost appBase=webapps ...
 Context path=/test1 debug=0 reloadable=true 

The Context element should not be placed in server.xml, since changing
it requires restarting Tomcat.  Put it in your webapp's
META-INF/context.xml file instead, and remove the path attribute.

 /host

I hope the above is really /Host.

 I start my Apache tomcat 5 on port 80 and everything work good in
 http://localhost/test1;.

Are you using 5.0 or 5.5?  The resource configuration is different for
each.  Check the Tomcat docs for the appropriate level for details.

 Now i want to access test1 from this link http://localhost/;.
 So i changed server.xml to,
 
 Context path=/ debug=0 reloadable=true crossContext=true

The path attribute should be , not / - but then you shouldn't have
the Context element there anyway.  To make an app the default app, its
name must be ROOT, and it should be placed in [appBase]/ROOT (or
[appBase]/ROOT.war).

 I try to put the mysql Connector jar in common/lib And server/lib And
 shared/lib but still i get the same error.

Do not put the same jar in multiple places - that guarantees you will
have problems.  Your JDBC driver jar of choice normally goes into
common/lib or WEB-INF/lib only.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Jeff Sadowski

Yeah I was reading about this on the jikes sight I guess I need jdk?

I should be able to get this from any platform's binary distribution
and copy the classpath files
they should be compiled into bite code right?

Is this what you meant Charles by getting the x86 version?
and then compile jikes to use it?

ok so just to go over what I think I need to do tell me if I'm right
1. Get a JDK for any platform copy the stuff from the classpath into a
tarball then install that on the server.
2. download and install jikes on the server setup the environment
variable CLASSPATH to point to the directory created above.
3. Install tomcat?

Is that what I need to run tomcat?

On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

 From: Jeff Sadowski [mailto:[EMAIL PROTECTED]
 Subject: Re: [OT] apache-tomcat on an ia64 rhel4?

 What about jikes will that work?

Jikes is just a Java compiler - not a runtime system.  You still need a
JRE to load and execute the generated class files and provide the APIs.
Class files produced by Jikes should function with any of the standard
JREs (Sun, IBM, JRockit) and possibly others.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Caldarale, Charles R
 From: Jeff Sadowski [mailto:[EMAIL PROTECTED] 
 Subject: Re: [OT] apache-tomcat on an ia64 rhel4?
 
 Yeah I was reading about this on the jikes sight I guess I need jdk?

Actually, just a JRE for the current versions of Tomcat.  5.0 and below
required a JDK.

 I should be able to get this from any platform's binary distribution

No, you have to use a JRE built for Linux.

 and copy the classpath files
 they should be compiled into bite code right?

A JRE consists of much more than class files; the core of the JVM
(object allocation, garbage collection, byte code execution, etc.) is
written in C and C++ (plus a smidgen of assembler); the JRE API handlers
that interface with the system are typically written in C.
Consequently, you must have a JRE that has been built for your specific
platform.

 Is this what you meant Charles by getting the x86 version?

Yes, assuming your OS supports some form of IA32 compatibility mode.

 and then compile jikes to use it?

This has nothing to do with Jikes - it's not needed.  The 5.5 and above
versions of Tomcat come with a built-in JSP and Java compiler.

 1. Get a JDK for any platform copy the stuff from the classpath into a
 tarball then install that on the server.

No - download and install a real JRE for Linux from the vendor of your
choice.  (If you're running Red Hat, I would expect them to have one
available.)

 2. download and install jikes on the server setup the environment
 variable CLASSPATH to point to the directory created above.

No - none of this has anything to do with Jikes.

 3. Install tomcat?

Yes, version 5.5 or above.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Jeff Sadowski

Is there an open source JRE?

On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

 From: Jeff Sadowski [mailto:[EMAIL PROTECTED]
 Subject: Re: [OT] apache-tomcat on an ia64 rhel4?

 Yeah I was reading about this on the jikes sight I guess I need jdk?

Actually, just a JRE for the current versions of Tomcat.  5.0 and below
required a JDK.

 I should be able to get this from any platform's binary distribution

No, you have to use a JRE built for Linux.

 and copy the classpath files
 they should be compiled into bite code right?

A JRE consists of much more than class files; the core of the JVM
(object allocation, garbage collection, byte code execution, etc.) is
written in C and C++ (plus a smidgen of assembler); the JRE API handlers
that interface with the system are typically written in C.
Consequently, you must have a JRE that has been built for your specific
platform.

 Is this what you meant Charles by getting the x86 version?

Yes, assuming your OS supports some form of IA32 compatibility mode.

 and then compile jikes to use it?

This has nothing to do with Jikes - it's not needed.  The 5.5 and above
versions of Tomcat come with a built-in JSP and Java compiler.

 1. Get a JDK for any platform copy the stuff from the classpath into a
 tarball then install that on the server.

No - download and install a real JRE for Linux from the vendor of your
choice.  (If you're running Red Hat, I would expect them to have one
available.)

 2. download and install jikes on the server setup the environment
 variable CLASSPATH to point to the directory created above.

No - none of this has anything to do with Jikes.

 3. Install tomcat?

Yes, version 5.5 or above.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



request hangs

2007-03-21 Thread Chris Eldredge
I'm working on a web application which sometimes has several daemon 
threads doing I/O processing in the background.  The application seems 
to be fine except when several tasks are running, sometimes Tomcat gets 
a request and doesn't seem to process it.  The request seems to time out 
without ever being passed into my application for processing.


My index page has an auto-refresh meta tag so I see this problem 
frequently.  The really strange thing is if I click reload once, the 
next request also hangs, but if I click reload a 2nd time, this request 
is processed very quickly.  This behavior is very consistent, and 
doesn't seem to have anything to do with the state of the background 
tasks (they are still running).


I mention the background tasks because I only see this hanging behavior 
when the background tasks are active.  When my application is idle, I 
never see the behavior.  Beyond that, I can't figure out what the 
background tasks might be doing which would prevent Tomcat from 
processing incoming requests:


* Accepting UDP packets on the loopback address.
* Reading standard out from a child process and writing it to a temp file.

Neither of these activities seem like they should interfere with Tomcat 
request processing.


I have placed some logging calls on a filter I configured in my 
application and for the hung requests, the filter never logs a request. 
 This seems to indicate that the request is getting stuck before my 
application gets a chance to process it.


Has anybody seen anything like this before?

Any advice for troubleshooting?


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Requesting files with non-English/international characters in their names

2007-03-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thomas,

Thomas Peter Berntsen wrote:
 Are you serving your pages in UTF-8 encoding? Usually, the browser uses
 the response encoding from the previous request to submit the next
 request's URI. If you are using ISO-8859-1 for your web pages, then
 expecting the browser to use UTF-8 for the URIs in incorrect.
 
 Thanks. I'll check that. But isn't that irrelevant in the case that I
 just request a directory listing through a URL like:
 localhost:8080/test? Or irrelevant in the case I request a file
 directly through a URL like: localhost:8080/æøå.gif?

Since the server doesn't know for sure what encoding is being used by
the browser, it certainly does make a difference. If the browser uses
the encoding from the last response, then the encoding from the last
response is certainly relevant.

If you cold-call the server with a URL, the server does not know what
encoding to use. I believe that Tomcat's default is ISO-8859-1 (as
inferred from
http://java.sun.com/developer/technicalArticles/Intl/HTTPCharset/index.html,
which points out the use of URIEncoding in the Connector), in spite of
the W3C's recommendation to use UTF-8
(http://www.w3.org/TR/html40/appendix/notes.html#non-ascii-chars).

 Just to be sure I edited the index.jsp of the ROOT app in which I have
 created the æøå.gif file and changed the encoding to UTF-8, but with
 no different result.

Hmm... and did you still have URIEncoding=UTF-8 set in your
Connector? Also, make sure that it's the right connector... Tomcat's
default config file has a bunch of connectors that are commented-out.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGAbN09CaO5/Lv0PARAu9pAJwNwi3G/2j/P+ygJqjiHE0lj4IjAwCgiPgm
b3KRLBeQc0h7E9b5SDyQPa8=
=26jP
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Caldarale, Charles R
 From: Jeff Sadowski [mailto:[EMAIL PROTECTED] 
 Subject: Re: [OT] apache-tomcat on an ia64 rhel4?
 
 Is there an open source JRE?

The Sun JRE is at least partially open source as of sometime last year
(maybe all of it is by now - it's not really a concern); why are you
hung up about that?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: can a web app discover its Service?

2007-03-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul,

Paul Singleton wrote:
 For now, I'm using ServletRequest.getLocalAddr() on the
 first request and inferring deploy mode from that.

That seems pretty fragile, although I must admit that I can't
immediately think of a way to subvert it. I mean, I'm assuming that one
IP address is used for test and another for production, so using the
test-IP to try to make the production deployment act like test (oops)
probably wouldn't work.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGAbiS9CaO5/Lv0PARAiw6AJsEvVx9mWrwAWw72qUUueeN9b2jNgCdFtgn
NYq70m0p93KL0faxB8SeHoo=
=G6eQ
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Jeff Sadowski

Because I am not finding the stuff I need to install as far as I know
there is no ia32 support on rhel4 running on my ia64 thus the ia32
jre's will not work. All my other servers are windows platforms which
I can not run anything other than what is running on them already.
Windows machines are fragile you have to treat them that way. I feel
comfortable compiling code and even righting code. I just need
something that will work however I get there.
I did see an article on Sun releasing their JRE under the GPLv2 but I
can not find the source code.

On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:

 From: Jeff Sadowski [mailto:[EMAIL PROTECTED]
 Subject: Re: [OT] apache-tomcat on an ia64 rhel4?

 Is there an open source JRE?

The Sun JRE is at least partially open source as of sometime last year
(maybe all of it is by now - it's not really a concern); why are you
hung up about that?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] apache-tomcat on an ia64 rhel4?

2007-03-21 Thread Jeff Sadowski

If all else fails I could run bochs and run linux on top of that boy
that would be ugly.

On 3/21/07, Jeff Sadowski [EMAIL PROTECTED] wrote:

Because I am not finding the stuff I need to install as far as I know
there is no ia32 support on rhel4 running on my ia64 thus the ia32
jre's will not work. All my other servers are windows platforms which
I can not run anything other than what is running on them already.
Windows machines are fragile you have to treat them that way. I feel
comfortable compiling code and even righting code. I just need
something that will work however I get there.
I did see an article on Sun releasing their JRE under the GPLv2 but I
can not find the source code.

On 3/21/07, Caldarale, Charles R [EMAIL PROTECTED] wrote:
  From: Jeff Sadowski [mailto:[EMAIL PROTECTED]
  Subject: Re: [OT] apache-tomcat on an ia64 rhel4?
 
  Is there an open source JRE?

 The Sun JRE is at least partially open source as of sometime last year
 (maybe all of it is by now - it's not really a concern); why are you
 hung up about that?

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: request hangs

2007-03-21 Thread Martin Gainty
Hi Chris-

what happens when you log these events?

start of UDP loop
Accepting UDP packets on the loopback address.
log the buffer from UDP accept 
goto start of UDP loop

start of loop to write to temp file
Reading standard out from a child process 
log the buffer which is read from standard out
writing it to a temp file.
go start of loop to write to temp file

Im guessing the UDP packet accept logic *may possibly* be blocking as it waits 
for the socket to read
(and hanging the thread)

Martin --
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: Chris Eldredge [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, March 21, 2007 6:30 PM
Subject: request hangs


 I'm working on a web application which sometimes has several daemon 
 threads doing I/O processing in the background.  The application seems 
 to be fine except when several tasks are running, sometimes Tomcat gets 
 a request and doesn't seem to process it.  The request seems to time out 
 without ever being passed into my application for processing.
 
 My index page has an auto-refresh meta tag so I see this problem 
 frequently.  The really strange thing is if I click reload once, the 
 next request also hangs, but if I click reload a 2nd time, this request 
 is processed very quickly.  This behavior is very consistent, and 
 doesn't seem to have anything to do with the state of the background 
 tasks (they are still running).
 
 I mention the background tasks because I only see this hanging behavior 
 when the background tasks are active.  When my application is idle, I 
 never see the behavior.  Beyond that, I can't figure out what the 
 background tasks might be doing which would prevent Tomcat from 
 processing incoming requests:
 
 * Accepting UDP packets on the loopback address.
 * Reading standard out from a child process and writing it to a temp file.
 
 Neither of these activities seem like they should interfere with Tomcat 
 request processing.
 
 I have placed some logging calls on a filter I configured in my 
 application and for the hung requests, the filter never logs a request. 
  This seems to indicate that the request is getting stuck before my 
 application gets a chance to process it.
 
 Has anybody seen anything like this before?
 
 Any advice for troubleshooting?
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Connections in tomcat resource in busy state forever

2007-03-21 Thread Mark Thomas
Drazen Nikolic wrote:
 Is there a possibility to remove those connection, or to threat them somehow
 not be become busy forever?

Configuring a time-out (to close them if they are open too long) and a
validation query (to fix any connections broken when the db goes down)
should help.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



question: java.net.UnknownHostException: .chemease.local: .chemease.local

2007-03-21 Thread James liu

i use freebsd 6.2 , tomcat 6(gz file which not installed). java 1.5_07

anyone know how to solve?

Error information:

Mar 22, 2007 9:03:40 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.net.UnknownHostException: .chemease.local: .chemease.local
   at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
   at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:106)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:384)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:228)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:104)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:216)
   at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:634)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:445)
   at java.lang.Thread.run(Thread.java:595)
Mar 22, 2007 9:04:56 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.net.UnknownHostException: .chemease.local: .chemease.local
   at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
   at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:106)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:384)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:228)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:104)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:216)
   at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:634)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:445)
   at java.lang.Thread.run(Thread.java:595)



--
regards
jl


Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

2007-03-21 Thread Rashmi Rubdi

java.net.UnknownHostException
Thrown to indicate that the IP address of a host could not be determined.

Could you post the snippet of code that throws this error?

-Rashmi

On 3/21/07, James liu [EMAIL PROTECTED] wrote:


SEVERE: Servlet.service() for servlet jsp threw exception
java.net.UnknownHostException: .chemease.local: .chemease.local


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

2007-03-21 Thread James liu

I don't know where error happen from this information.

It work well when i use winxp+tomcat6(same zip file)+java 1.6

It is index.jsp.

%@ page contentType=text/html; charset=utf-8 pageEncoding=UTF-8%

%--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the License); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an AS IS BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
--%

%-- $Id: index.jsp 487199 2006-12-14 13:03:40Z bdelacretaz $ --%
%-- $Source: /cvs/main/searching/SolrServer/resources/admin/index.jsp,v $
--%
%-- $Name:  $ --%

%@ page import=java.util.Date %

%-- jsp:include page=header.jsp/ --%
%-- do a verbatim include so we can use the local vars --%
[EMAIL PROTECTED] file=header.jsp %

br clear=all
table

tr
  td
h3Solr/h3
  /td
  td
[a href=get-file.jsp?file=schema.xmlSchema/a]
[a href=get-file.jsp?file=solrconfig.xmlConfig/a]
[a href=analysis.jsp?highlight=onAnalysis/a]
br
[a href=stats.jspStatistics/a]
[a href=registry.jspInfo/a]
[a href=distributiondump.jspDistribution/a]
[a href=pingPing/a]
[a href=logging.jspLogging/a]
  /td
/tr


tr
  td
strongApp server:/strongbr
  /td
  td
[a href=get-properties.jspJava Properties/a]
[a href=threaddump.jspThread Dump/a]
  %
if (enabledFile!=null)
if (isEnabled) {
  %
  [a href=action.jsp?action=DisableDisable/a]
  %
} else {
  %
  [a href=action.jsp?action=EnableEnable/a]
  %
}
  %
  /td
/tr

jsp:include page=get-file.jsp?file=admin-extra.htmloptional=y
flush=true/

/tableP


table
tr
  td
h3Make a Query/h3
  /td
  td
[a href=form.jspFull Interface/a]
  /td

/tr
tr
  td
  Query String:
  /td
  td colspan=2
form name=queryForm method=GET action=../select/
textarea class=std rows=4 cols=40 name=q%=
defaultSearch %/textarea
input name=version type=hidden value=2.2
input name=start type=hidden value=0
input name=rows type=hidden value=10
input name=indent type=hidden value=on
brinput class=stdbutton type=button value=search
onclick=if (queryForm.q.value.length==0) alert('no empty queries,
please'); else queryForm.submit();
/form
  /td
/tr
/tablep

table
tr
  td
h3Assistance/h3
  /td
  td
[a href=http://incubator.apache.org/solr/;Documentation/a]
[a href=http://issues.apache.org/jira/browse/SOLR;Issue
Tracker/a]
[a href=mailto:solr-user@lucene.apache.org;Send Email/a]
br
[a href=
http://lucene.apache.org/java/docs/queryparsersyntax.html;Lucene Query
Syntax/a]
  /td
!--
  td rowspan=3
a href=http://incubator.apache.org/solr/;img align=right
border=0 height=107 width=148 src=power.png/a
  /td
 --
/tr
tr
  td
  /td
  td
  Current Time: %= new Date() %
  /td
/tr
tr
  td
  /td
  td
  Server Start At: %= new Date(core.getStartTime()) %
  /td
/tr
/table
/body
/html



2007/3/22, Rashmi Rubdi [EMAIL PROTECTED]:


java.net.UnknownHostException
Thrown to indicate that the IP address of a host could not be determined.

Could you post the snippet of code that throws this error?

-Rashmi

On 3/21/07, James liu [EMAIL PROTECTED] wrote:

 SEVERE: Servlet.service() for servlet jsp threw exception
 java.net.UnknownHostException: .chemease.local: .chemease.local

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
regards
jl


Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

2007-03-21 Thread James liu

Maybe header.jsp output host cause it happen

Am i right? i m jsp newbie.


%@ page contentType=text/html; charset=utf-8 pageEncoding=UTF-8%

%--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the License); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an AS IS BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
--%
[EMAIL PROTECTED] file=_info.jsp %
script
var host_name=%= hostname %
/script

html
head
link rel=stylesheet type=text/css href=solr-admin.css
link rel=icon href=favicon.ico type=image/ico/link
link rel=shortcut icon href=favicon.ico type=image/ico/link
titleSolr admin page/title
/head

body
a href=.img border=0 align=right height=61 width=142 src=
solr-head.gif alt=Solr/a
h1Solr Admin (%= collectionName %)
%= enabledStatus==null ?  : (isEnabled ?  - Enabled :  - Disabled)
% /h1

%= hostname %:%= port %br/
cwd=%= cwd %  SolrHome=%= solrHome %



Re: high CPU usage

2007-03-21 Thread Mark Thomas
Gurdeep Kaur (gurdeep) wrote:
 Any pointers, inputs will be greatly appreciated.

The handshake is handled by JSSE / the JDK. This looks like a JSSE /
JDK issue rather than a Tomcat one.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

2007-03-21 Thread James liu

i fix itjust modify my host name

Thk u,Rashmi


Re: question: java.net.UnknownHostException: .chemease.local: .chemease.local

2007-03-21 Thread Filip Hanik - Dev Lists
your system returns .chemease.local as a hostname, and naturally that 
doesn't resolve to anything


two options
1. fix your hostname
2. possibly add .chemease.local into /etc/hosts to trick the server, 
not sure how that is gonna work with the . prefix, but it just might


Filip

James liu wrote:

i use freebsd 6.2 , tomcat 6(gz file which not installed). java 1.5_07

anyone know how to solve?

Error information:

Mar 22, 2007 9:03:40 AM org.apache.catalina.core.StandardWrapperValve 
invoke

SEVERE: Servlet.service() for servlet jsp threw exception
java.net.UnknownHostException: .chemease.local: .chemease.local
   at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
   at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:106)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:384)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:228)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:104)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:216)
   at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:634)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:445)
   at java.lang.Thread.run(Thread.java:595)
Mar 22, 2007 9:04:56 AM org.apache.catalina.core.StandardWrapperValve 
invoke

SEVERE: Servlet.service() for servlet jsp threw exception
java.net.UnknownHostException: .chemease.local: .chemease.local
   at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
   at org.apache.jsp.admin.index_jsp._jspService(index_jsp.java:106)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java
:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:384)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(
JspServlet.java:320)
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)

   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:228)
   at org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:175)
   at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.java:104)
   at org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.java:216)
   at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java:844)
   at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
Http11Protocol.java:634)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
JIoEndpoint.java:445)
   at java.lang.Thread.run(Thread.java:595)






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to use my customer jar with tomcat6 in FreeBSD6

2007-03-21 Thread James liu

It work well when i use it in winxp+tomcat6+java1.6

Now i use freebsd6, use same tomcat6, my customer jar is put under
$TOMCAT_HOME/lib/,,,and set classpath to it.

but tomcat 6 seems not know it.

How to can i fix it?



--
regards
jl


Re: How to use my customer jar with tomcat6 in FreeBSD6

2007-03-21 Thread Rashmi Rubdi

Instead of setting CLASSPATH , I set

JAVA_HOME to the JDK home folder , CATALINA_HOME to Tomcat home folder
in system environment variables.

You can try the above and see if Tomcat 6 identifies the JAR files in
tomcat's lib folder.

-Rashmi

On 3/21/07, James liu [EMAIL PROTECTED] wrote:

Now i use freebsd6, use same tomcat6, my customer jar is put under
$TOMCAT_HOME/lib/,,,and set classpath to it.

but tomcat 6 seems not know it.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to use my customer jar with tomcat6 in FreeBSD6

2007-03-21 Thread James liu

This is some informat in  my ~/.cshrc file .

I set all what u said.

setenv JAVA_HOME  /usr/local/diablo-jdk1.5.0

setenv TOMCAT_HOME /tmp/apache-tomcat-6.0.10
setenv CATALINA_HOME /tmp/apache-tomcat-6.0.10
setenv CATALINA_BASE /tmp/apache-tomcat-6.0.10

setenv CATALINA_TMPIR /tmp/apache-tomcat-6.0.10/temp

set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin
/usr/local/bin /usr/X11R6/bin $HOME/bin $JAVA_HOME/bin $TOMCAT_HOME/b

setenv CLASSPATH
.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$TOMCAT_HOME/lib/je-
analysis-1.5.1.jar:$TOMCAT





Re: How to use my customer jar with tomcat6 in FreeBSD6

2007-03-21 Thread Rashmi Rubdi

There's a file called RUNNING.txt , which is located under Tomcat's
root folder, which gives Tomcat  configuration instructions.

The RUNNING.txt file mentions setting JAVA_HOME , and doesn't mention
any of the other environment variables like TOMCAT_HOME ,
CATALINA_HOME, CATALINA_BASE, CLASSPATH in the *basic* configuration
settings.

So you can set only JAVA_HOME and *temporarily* unset all the other
environment variables and check if Tomcat can find the customer JAR
file that you added to Tomcat's lib folder.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  1   2   >