All of a sudden Catalina can not start.

2004-01-12 Thread Yakov Belov
Dear All,

I have Tomcat 4.1.29 and untill today I had no problems with it.

Today I decided to restart it (silly me) and Tomcat won't start, but shows the 
following stack trace:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.NoClassDefFoundError: org/apache/naming/JndiPermission

so, I think what is happening, is that server.xml is being processed and for some 
reason JndiPermission.class, which is in bootstrap.jar, is not seen. How can I tell 
Tomcat where to look? I have created a CLASSPATH variable, but I am not sure if it is 
used.

I looked on the web and noticed other people having the same problem, but not too many 
answers to it.

Can someone help?

Regards,
Yakov

Re: All of a sudden Catalina can not start.

2004-01-12 Thread Yakov Belov
Dear All,

it is me again.

The full story is, that I get the stacktrace only if I uncomment the /ROOT
context tag in the server.xml file.

But if I leave everything as it was, I don't get any exceptions, but also
none of my aspplications get installed, which sux. However if I try to
manually install them using manager application, which runs, thank god, I
get get the same error:

FAIL - Encountered exception java.lang.NoClassDefFoundError:
org/apache/naming/JndiPermission

This is why I attempted to uncomment the /ROOT context tag. But it didn't
work.

So, why are my applications not able to be installed ?

Regards,
Yakov

- Original Message - 
From: Yakov Belov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 12, 2004 6:01 PM
Subject: All of a sudden Catalina can not start.


Dear All,

I have Tomcat 4.1.29 and untill today I had no problems with it.

Today I decided to restart it (silly me) and Tomcat won't start, but shows
the following stack trace:

java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Caused by: java.lang.NoClassDefFoundError: org/apache/naming/JndiPermission

so, I think what is happening, is that server.xml is being processed and for
some reason JndiPermission.class, which is in bootstrap.jar, is not seen.
How can I tell Tomcat where to look? I have created a CLASSPATH variable,
but I am not sure if it is used.

I looked on the web and noticed other people having the same problem, but
not too many answers to it.

Can someone help?

Regards,
Yakov


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



RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Altankov Peter
Hi
 From: Antonio Fiol Bonnin [mailto:[EMAIL PROTECTED] 
 Sent: 11  2004 . 11:39
 Subject: Re: Datasource - OK in app context - Fails in Global context
 
 
 So, could someone summarize for me the different ways of 
 creating a JDBC 
 DataSource in Tomcat?
 
 I will start the summary, so that it's easier to correct/complete. 
 Please fill in the gaps ;-)
 
 1. Have the DataSource defined in your application's context.
 That way, if you have two apps, you have to copy the datasource 
 definition from one to the other.
 Two connection pools will be created.

If the database schema is different for each your of you applications you will end up 
using this setup anyway, so just go for that.

 3. Have the DataSource defined in GlobalNamingResources.
 If you have two apps, you need to ResourceLink in both contexts.
 ... connection pool(s) will be created.

This setup suit the case, when your applications all use the same database schema 
(means can access their database objects trough the same authentication/db user). 
Ofcourse only 1 pool will be created, so you'll have to scale the pool parameters for 
all the applications that use it.

Hope this is usefull

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



Problem with session

2004-01-12 Thread pad
Hi!

We use Tomcat 4.1.
We developed an application with session support.
It works fine on a local machine, but after we had moved it at the server,
it started to generate new session after any link hit.
Whad did we do wrong?

Thanks, Paul


Problem with session

2004-01-12 Thread pad
Hi!

We use Tomcat 4.1.
We developed an application with session support.
It works fine on a local machine, but after we had moved it at the server,
it started to generate new session after any link hit.
Whad did we do wrong?

Thanks, Paul


RE: Problem with session

2004-01-12 Thread akki
might be your server doesnt support cookies

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 1:58 PM
To: [EMAIL PROTECTED]
Subject: Problem with session


Hi!

We use Tomcat 4.1.
We developed an application with session support.
It works fine on a local machine, but after we had moved it at the server,
it started to generate new session after any link hit.
Whad did we do wrong?

Thanks, Paul


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



Invoking JSPs in batch like environment

2004-01-12 Thread Alexander . Thomas
Hello,

I would like to use JSPs in oder to generate textfile like output in a batch
program. 
The idea is to invoke the Servlets which have been gerenated on the basis of
the JSPs. 
Also, the OutputStream of the JSP/Servlet Response class has to be
configured and necessary bean instances have to be added as attributes
before invokation.

I would like to know if the Jasper library (or something else) can be used
in some way to alleviate the setup of the necessary environment for the JSP
execution.

Kindest regards,

Alexander Thomas


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



RE: Problem with session

2004-01-12 Thread pad
It does.
We loose session info only hitting links.
When we use forms to get to next page, Tomcat doesn't generate new session.


 -Original Message-
 From: akki [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 11:39 AM
 To: Tomcat Users List
 Subject: RE: Problem with session
 
 
 might be your server doesnt support cookies
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 1:58 PM
 To: [EMAIL PROTECTED]
 Subject: Problem with session
 
 
 Hi!
 
 We use Tomcat 4.1.
 We developed an application with session support.
 It works fine on a local machine, but after we had moved it 
 at the server,
 it started to generate new session after any link hit.
 Whad did we do wrong?
 
 Thanks, Paul
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Invoking JSPs in batch like environment

2004-01-12 Thread Ralph Einfeldt

You can alway execute the generated servlet 
in the context of tomcat. But I can't think
of a solution that works just with jasper. 
(Jasper is just a code generator and no 
servlet engine)

Depending on your needs there are different 
solutions to achieve this:
- Write a programm that requests an url from tomcat
  and processs the result.
- just use wget/curl to trigger the servlet

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 9:42 AM
 To: [EMAIL PROTECTED]
 Subject: Invoking JSPs in batch like environment
 
 
 I would like to use JSPs in oder to generate textfile like 
 output in a batch program. 
 The idea is to invoke the Servlets which have been gerenated 
 on the basis of the JSPs. 
 Also, the OutputStream of the JSP/Servlet Response class has to be
 configured and necessary bean instances have to be added as attributes
 before invokation.
 
 I would like to know if the Jasper library (or something 
 else) can be used
 in some way to alleviate the setup of the necessary 
 environment for the JSP
 execution.
 

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



Re: Problem with session

2004-01-12 Thread Giuliano Gavazzi
cookies are host specific, so you might have an absolute rather then 
relative URL in your links and pointing to an alias for the host.

Giuliano

At 11:27 am +0300 2004/01/12, [EMAIL PROTECTED] wrote:
Hi!

We use Tomcat 4.1.
We developed an application with session support.
It works fine on a local machine, but after we had moved it at the server,
it started to generate new session after any link hit.
Whad did we do wrong?
Thanks, Paul


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


AW: Invoking JSPs in batch like environment

2004-01-12 Thread Alexander . Thomas
Hello Ralph,

thanks for your help! 
However I can not use a whole webcontainer and http protocol stack in my
batch app...

Kindest regards,

Alexander Thomas


 -Ursprüngliche Nachricht-
 Von:  Ralph Einfeldt [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Montag, 12. Januar 2004 10:03
 An:   Tomcat Users List
 Betreff:  RE: Invoking JSPs in batch like environment
 
 
 You can alway execute the generated servlet 
 in the context of tomcat. But I can't think
 of a solution that works just with jasper. 
 (Jasper is just a code generator and no 
 servlet engine)
 
 Depending on your needs there are different 
 solutions to achieve this:
 - Write a programm that requests an url from tomcat
   and processs the result.
 - just use wget/curl to trigger the servlet
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 12, 2004 9:42 AM
  To: [EMAIL PROTECTED]
  Subject: Invoking JSPs in batch like environment
  
  
  I would like to use JSPs in oder to generate textfile like 
  output in a batch program. 
  The idea is to invoke the Servlets which have been gerenated 
  on the basis of the JSPs. 
  Also, the OutputStream of the JSP/Servlet Response class has to be
  configured and necessary bean instances have to be added as attributes
  before invokation.
  
  I would like to know if the Jasper library (or something 
  else) can be used
  in some way to alleviate the setup of the necessary 
  environment for the JSP
  execution.
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



RE: Invoking JSPs in batch like environment

2004-01-12 Thread Ralph Einfeldt

The servlet container has not to be part of the batch job.
It's enough if there is a servlet container outside of the 
job that can be reached from the job.

To talk to tomcat you can use HttpClient from the
jakarta project.

The only other option that I see is to look for a small
footprint servlet container, that has enough features to 
perform your task.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 10:31 AM
 To: [EMAIL PROTECTED]
 Subject: AW: Invoking JSPs in batch like environment
 
 thanks for your help! 
 However I can not use a whole webcontainer and http protocol 
 stack in my batch app...
 

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



it's a bit too much

2004-01-12 Thread Giuliano Gavazzi
Sorry, but I think I will have to leave this list shortly. I am bored 
of getting two bounces for each message I send to it.  Adding to the 
bogus Symantec Mail Security I now get a bounce for [EMAIL PROTECTED] 
(User unknown).

Adding to this is a volume of over 10MB/month, mainly of unedited 
quoted text...

If I update my MacOSX/mod_jk pages I will let the list know anyway, 
in the meantime anyone with MacOSX/tomcat issues is welcome posting 
directly to my address.

Thank you

Giuliano

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


problems with adding Verisign root certificate to keystore

2004-01-12 Thread Jorrit Kronjee
Dear list,

I've been browsing to the archives a bit, but I couldn't find what i am 
looking for, so I'll ask here.

Since the expiration of one of the Verisign certificates, the SSL 
certificate on our Tomcat server is no longer valid. Back then I 
imported the key and certificate with ImportKey from 
http://www.computer-mutter.de/docs/tomcat_ssl/comu/ImportKey.java

That still works, but somehow I can't add the new Verisign certificate 
too. I've tried adding it with alias root through keytool, but it 
doesn't seem to work. I also added the new certificates from Verisign to 
cacerts as 
http://sunsolve.sun.com/pub-cgi/retrieve.pl?type=0doc=fsalert/57436 
suggests. What am I doing wrong?

Thanks in advance,

Jorrit



--
InfoPact Netwerkdiensten B.V.
http://www.infopact.nl/
Emmastraat 11-13
3255 BD Oude Tonge
tel. +31(0)187-64 77 11
fax. +31(0)187-64 77 99


pgp0.pgp
Description: PGP signature


Re: java.security.AccessControlException

2004-01-12 Thread thuret olivier
yes,thanks :)
- Original Message - 
From: Jeanfrancois Arcand [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, January 09, 2004 7:26 PM
Subject: Re: java.security.AccessControlException




 thuret olivier wrote:

 no thanks i see my error i'm a noobie ..
 
 
  Have you fixed your problem?

 -- Jeanfrancois


 - Original Message - 
 From: thuret olivier [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, January 09, 2004 5:00 PM
 Subject: java.security.AccessControlException
 
 
 hello,
 
 i'm problem with my tomcat 5.0.16.
 i have a error message when tomcat start with the following message :
 
 java.security.AccessControlException: access denied
(java.io.FilePermission

C:\Tomcat\webapps\V2\WEB-INF\classes\mx4j\tools\naming\NamingService.class
 read)
 at java.security.AccessControlContext.checkPermission(Unknown
 Source)
 at java.security.AccessController.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkPermission(Unknown Source)
 at java.lang.SecurityManager.checkRead(Unknown Source)
 at java.io.File.exists(Unknown Source)
 at
 org.apache.naming.resources.FileDirContext.file(FileDirContext.java:873)
 at

org.apache.naming.resources.FileDirContext.lookup(FileDirContext.java:255)
 at

org.apache.naming.resources.ProxyDirContext.lookup(ProxyDirContext.java:334
)
 at

org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappCla
s
 sLoader.java:1726)
 at

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassL
o
 ader.java:1594)
 at

org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.ja
v
 a:883)
 at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
v
 a:1333)
 at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.ja
v
 a:1213)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at

test.maclasse.database.rmi.ReloadCacheEngine.startServerRmi(ReloadCacheEngi
n
 e.java:83)
 at test.maclasse.servlet.Init.init(ClientVersion.java:56)
 at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1
0
 44)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
 at

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java
:
 3948)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4271)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:519)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
 java.lang.reflect.InvocationTargetException
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:297)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:398)
 Caused by: java.lang.RuntimeException: access denied
 (java.util.PropertyPermission catalina.base read)
 at

org.apache.catalina.core.ApplicationContextFacade.doPrivileged(ApplicationC
o
 ntextFacade.java:489)
 at

org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFac
a
 de.java:315)
 at

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1
0
 81)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
 at

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java
:
 3948)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:4271)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
 at
 

server-status in tomcat

2004-01-12 Thread Olve S. Hansen
I have searched around for a component similar to the server-status mod 
in Apache httpd, but cannot find anything similar. Does anyone know if 
such a component exists?

I have just ditched the httpd with forwarding to tomcat via mod_jk2, as 
we experienced some weird behaviour with apache 2.0.47. In high load 
situations it took very long time for it to serve static binary files. 
Tomcat proved much better, but I miss the server-status module.

Anyone?

Btw, I use the Tomcat integrated in JBoss, but such a component should 
work on both, right?

Thanks.

--
Olve S. Hansen
Intermedia (http://www.intermedia.uib.no)
Tlf: +47 55 58 83 96
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: Invoking JSPs in batch like environment

2004-01-12 Thread Alexander . Thomas


 -Ursprüngliche Nachricht-
 Von:  Ralph Einfeldt [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Montag, 12. Januar 2004 10:39
 An:   Tomcat Users List
 Betreff:  RE: Invoking JSPs in batch like environment
 
 
 The servlet container has not to be part of the batch job.
 It's enough if there is a servlet container outside of the 
 job that can be reached from the job.
 
 To talk to tomcat you can use HttpClient from the
 jakarta project.
 
 The only other option that I see is to look for a small
 footprint servlet container, that has enough features to 
 perform your task.
[Thomas, Alexander]  That´s what I am looking for ;-)

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]
  Sent: Monday, January 12, 2004 10:31 AM
  To: [EMAIL PROTECTED]
  Subject: AW: Invoking JSPs in batch like environment
  
  thanks for your help! 
  However I can not use a whole webcontainer and http protocol 
  stack in my batch app...
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: it's a bit too much

2004-01-12 Thread Thomas Kellerer
Giuliano Gavazzi schrieb:

Sorry, but I think I will have to leave this list shortly. I am bored of 
getting two bounces for each message I send to it.  Adding to the bogus 
Symantec Mail Security I now get a bounce for [EMAIL PROTECTED] (User 
unknown).

Adding to this is a volume of over 10MB/month, mainly of unedited quoted 
text...

If I update my MacOSX/mod_jk pages I will let the list know anyway, in 
the meantime anyone with MacOSX/tomcat issues is welcome posting 
directly to my address.

Thank you

Giuliano
I'm happy reading this list through gmane's newsreader (news.gmane.org)

No bounces and only the traffic I want :-)

Thomas



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


IIS/Tomcat 4 Admin and Manager - Can't Connect from IIS

2004-01-12 Thread Emile Coetzee
IIS/Tomcat 4 Admin and Manager - Can't Connect from IIS

Tomcat: 4.1.29
Windows 2000 Pro (IIS 5.0)
isapi_redirect.dll 1.2.5
JDK 1.4.2_02

I've setup IIS/Tomcat successfully. My webapp mappings are working correctly
with IIS as the front end. So I'm happy that everything is working as it
should.

I then started setting up the Admin and Manager tools. They work correctly
when connecting directly via Tomcat on port 8080 but if i connect via IIS i
get a 403 access denied error. From looking at the admin and manager logs
(debug 9) I found that there is a security check against GET which is true
when connecting via IIS and false when connecting via Tomcat. The IIS log
doesn't offer much insight.

I've done a bit of googling and some RTFMing but so far i've found no
solution. Is there anyway to fix this?

Sample from the Admin logs:
Access via Tomcat:
2004-01-12 10:42:50 StandardManager[/admin]: Seeding random number generator
class java.security.SecureRandom
2004-01-12 10:42:54 StandardManager[/admin]: Seeding of random number
generator has been completed
2004-01-12 10:42:55 StandardContext[/admin]: Posting standard context
attributes
2004-01-12 10:42:55 StandardContext[/admin]: Configuring application event
listeners
2004-01-12 10:42:55 StandardContext[/admin]: Sending application start
events
2004-01-12 10:42:55 StandardContext[/admin]: Starting filters
2004-01-12 10:42:55 StandardWrapper[/admin:default]: Loading container
servlet default
2004-01-12 10:43:14 StandardWrapper[/admin:invoker]: Loading container
servlet invoker
2004-01-12 10:43:15 StandardContext[/admin]: Starting completed
2004-01-12 10:44:25 Authenticator[/admin]: Security checking request GET
/admin
2004-01-12 10:44:25 Authenticator[/admin]: Checking constraint
'SecurityConstraint[Protected Area]' against GET -- false
2004-01-12 10:44:25 Authenticator[/admin]: No applicable constraint
located
2004-01-12 10:44:25 Authenticator[/admin]: Not subject to any constraint
2004-01-12 10:44:25 StandardContext[/admin]: Mapping contextPath='/admin'
with requestURI='/admin' and relativeURI=''
2004-01-12 10:44:25 StandardContext[/admin]: Trying exact match
2004-01-12 10:44:25 StandardContext[/admin]: Trying prefix match
2004-01-12 10:44:25 StandardContext[/admin]: Trying extension match
2004-01-12 10:44:25 StandardContext[/admin]: Trying default match
2004-01-12 10:44:25 StandardContext[/admin]: Mapped to servlet 'default'
with servlet path '' and path info 'null' and update=true
2004-01-12 10:44:25 Authenticator[/admin]: Security checking request GET
/admin/
2004-01-12 10:44:25 Authenticator[/admin]: Checking constraint
'SecurityConstraint[Protected Area]' against GET / -- false


Access via IIS:
2004-01-12 12:05:28 StandardContext[/admin]: Mapping contextPath='/admin'
with requestURI='/admin/' and relativeURI='/'
2004-01-12 12:05:28 StandardContext[/admin]: Trying exact match
2004-01-12 12:05:28 StandardContext[/admin]: Trying prefix match
2004-01-12 12:05:28 StandardContext[/admin]: Trying extension match
2004-01-12 12:05:28 StandardContext[/admin]: Trying default match
2004-01-12 12:05:28 StandardContext[/admin]: Mapped to servlet 'default'
with servlet path '/' and path info 'null' and update=true
2004-01-12 12:05:28 Authenticator[/admin]: Security checking request GET
/admin/index.jsp
2004-01-12 12:05:28 Authenticator[/admin]: Checking constraint
'SecurityConstraint[Protected Area]' against GET /index.jsp -- true
2004-01-12 12:05:28 Authenticator[/admin]: Subject to constraint
SecurityConstraint[Protected Area]
2004-01-12 12:05:28 Authenticator[/admin]: Calling checkUserData()
2004-01-12 12:05:28 Authenticator[/admin]: User data constraint has no
restrictions
2004-01-12 12:05:28 Authenticator[/admin]: Calling authenticate()
2004-01-12 12:05:28 Authenticator[/admin]: Already authenticated ''
2004-01-12 12:05:28 Authenticator[/admin]: Calling accessControl()
2004-01-12 12:05:28 Authenticator[/admin]: Failed accessControl() test


Regards
Emile




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



Encoding issues

2004-01-12 Thread K. Harvatis
I run Tomcat 3.2 and it reports unsupported encoding iso-8859-7 when using
FORMs. As a result, servlets receive garbage instead of data. Is there a
workaround?


Kostas Harvatis
-
National Center for Social Research - Directorate of Research Support
www.ekke.gr




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



Redhat9 / apxs / mod_jk2 build problem.

2004-01-12 Thread James Snelling
I have been trying to compile the mod_jk2.so connector, but having
problems.

I have the following:
O/S - RedHat9.0
Apache2.0.48 installed from source and working standalone on port 80 
443 at /usr/local/apache2
jakarta-tomcat-4.1.29 installed and working standalone on port 8080 at
/usr/local/jakarta-tomcat-4.1.29
java at /usr/local/j2sdk1.4.2 (also tested and working ok)

Apache was configured as follows:

# ./configure --enable-rewrite --enable-speling --enable-shared=max
--enable-module=so \
 --enable-ssl --enable-cgi --enable-info --enable-usertrack
--enable-deflate \
 --enable-mime-magic --with-ssl=/usr/local/ssl

I obtained jakarta-tomcat-connectors-jk2-src-current.tar.gz and did the
following:

# gunzip jakarta-tomcat-connectors-jk2-src-current.tar.gz
# tar -xvf jakarta-tomcat-connectors-jk2-src-current.tar
# cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
# sh ./buildconf.sh
# ./configure --with-apxs2=/usr/local/apache/bin/apxs \
  --with-tomcat41=/usr/local/jakarta-tomcat-4.1.29 \
  --with-jni --with-jave-home=/usr/local/j2sdk1.4.2
# make

Now, according to most of the how-tos I have looked at, I should have a
copy of mod_jk2.so and jkjni.so waiting for me in
/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apac
he2/
Unfortunatly all that is here are the following files:

# ls -l ../build/jk2/apache2/ | grep mod_jk2
-rw-r--r--1 root root  3064400 Jan 12 11:48 mod_jk2.a
-rw-r--r--1 root root  666 Jan 12 11:48 mod_jk2.la
-rw-r--r--1 root root   10 Jan 12 11:48 mod_jk2.lo
-rw-r--r--1 root root   103024 Jan 12 11:48 mod_jk2.o

# ls -l ../build/jk2/apache2/ | grep jkjni
-rw-r--r--1 root root  2680734 Jan 12 11:48 jkjni.a
-rw-r--r--1 root root  728 Jan 12 11:48 jkjni.la

I have had a look through the mailing list archives, and have seen this
problem before, but unfortunately I don't see a solution for it.

Any help finding a way forward is appreciated, 

James Snelling

James Snelling

[EMAIL PROTECTED]

---

The views expressed here are not those of the Students' Association nor can they be 
assumed to be those of the writer. No liability is accepted for the accuracy or the 
veracity of the contents. You are held to accept this and any use to which you put any 
contents of this communication are entirely your responsibility. 

DISCLAIMER: This e-mail is intended solely for the above-mentioned recipient and it 
may contain confidential or privileged information. If you have received it in error, 
please notify us immediately and delete the e-mail. You must not copy, distribute, 
disclose or take any action in reliance on it. This e-mail message and any attached 
files have been scanned for the presence of computer viruses, however, you are advised 
that you open any attachments at your own risk.

Nothing in this email shall be construed as constituting an order for goods or services

www.upsa.org.uk

 





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



Re: Isapi redirector jk2.02 Installer

2004-01-12 Thread kwirirai
Figured it out it works,I am now running the examples ,but I had to 
define the tomcat connector in IIS ISAPI filter and ponted the
native\i386\isapi_redirector2.dll installation

kwirirai wrote:

Hi
I have tried using the Isapi redirector jk2.02 Installer  from 
http://www.shiftomat.com/opensource/
It does not seem to work on my machine .I am running Windows 2000 and 
IIS 5 and Tomcat v 5, Also tried  the documentation from

http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html

I dont know where I am getting wrong please help

kwiri

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


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


Re: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread jean-philippe . belanger
That sounds good.

I'll get the CVS head and check this out. We won't really put much 
stress on those server for a while, but as long as the behavior is the 
same. I buy! :)

btw: is there a pool config or is it hardcoded for now?

Thanks again Filip.

Jean-Philippe Belanger

Filip Hanik wrote:

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,
replicationMode=pooled

With this setting it still is synchronized replication, but uses a pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it works for
you
You will notice the improvement under load.
of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686
i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003
i686 i686 i386 GNU/Linux
java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
same on both

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head
Hrmmmare yours SMP servers? Could be something odd with synch if that is
the case.
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
interesting, mine doesn't work at all unless I set the LD_ASSUME_KERNEL

what VM (version and name) are you using?

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 10:59 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Now that's really very strange. I am running RH9 and everything seems to go
through just fine.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:56 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
The replication message ACK never get back to the sender.
So my webpages never loads without that flag.
I think it is only needed under REDHAT 9.

Jean-Philippe Bélanger

Steve Nelson wrote:

 

I don't seem to need the ld_assume_kernel thing. What are the symptoms when
it is required?
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:33 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
Just tried the CVS head and everything works with any CPU going crazy!
only if ld_assume_kernel is set to 2.4
One more question for you Filip, is the useDirtyFlag working at all? It
seams like even if it's set to true, the whole session gets replicated
after each request. :(
Jean-Philippe

[EMAIL PROTECTED] wrote:



   

Hurray for Fillip! :)

I'll get the CVS head for the module today and test this out.
Happy to see that it got fixed that quickly!
Thanks again and I'll let you know how it goes

Jean-Philippe

Filip Hanik wrote:



 

Jean-Philippe and Steve,
I fixed the bug, and tried replication on RH9. Immediately it didn't
work.
The problem is that when RH9 tries to write the ACK back to the NIO
socket,
it never reaches the other node. and times out after a long time.
I set LD_ASSUME_KERNEL=2.4 and it started to work

Filip

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 6:43 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
ok guys,
good news. The 100% cpu is totally my fault. I messed up on that one.
I was registering OP_WRITE as an interest
this is not good :)
checking in the working code in 15 min, some more regression tests
Filip
-Original Message-
From: Filip Hanik [mailto:[EMAIL 

Re: server-status in tomcat

2004-01-12 Thread Tim Funk
The manager app will give you status info.

-Tim

Olve S. Hansen wrote:
I have searched around for a component similar to the server-status mod 
in Apache httpd, but cannot find anything similar. Does anyone know if 
such a component exists?

I have just ditched the httpd with forwarding to tomcat via mod_jk2, as 
we experienced some weird behaviour with apache 2.0.47. In high load 
situations it took very long time for it to serve static binary files. 
Tomcat proved much better, but I miss the server-status module.


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


Re: Redhat9 / apxs / mod_jk2 build problem.

2004-01-12 Thread martin grotzke
On Mon, 2004-01-12 at 13:11, James Snelling wrote:
 Any help finding a way forward is appreciated, 
a cannot help you for your specific problem, but i built mod_jk2
two days ago on fedora, and succeeded.

perhaps this solves your problem too...
you can find the description in the archives,
http://www.mail-archive.com/[EMAIL PROTECTED]/msg114982.html

cheers,
martin


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



problem starting tomcat on True64Unix

2004-01-12 Thread Damian Minkov
Reacently we wrote a little web app using hibernate - we run it in 
tomcat 4.1.29
(using : java1.4.2-1 )
But when we run the application the tomcat throws exception.

the code from hibernate which throws exception is :
Class persister ..
persister..getConstructor.
a simple java.lang.reflect using.

The log file follows can anybody help with this problem. How can be fixed.
We first wrote to the hibernate forum but we saw that the problem is 
actially from the
ClassLoader  of Catalina.

09.01.2004 18:18:37 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.29
09.01.2004 18:18:41 net.sf.hibernate.cfg.Environment clinit
INFO: Hibernate 2.1 beta 4
09.01.2004 18:18:41 net.sf.hibernate.cfg.Environment clinit
INFO: hibernate.properties not found
09.01.2004 18:18:41 net.sf.hibernate.cfg.Environment clinit
INFO: using CGLIB reflection optimizer
09.01.2004 18:18:41 net.sf.hibernate.cfg.Configuration 
getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
09.01.2004 18:18:41 net.sf.hibernate.cfg.Configuration addResource
INFO: Mapping resource: BeansDescription.hbm.xml
09.01.2004 18:18:41 net.sf.hibernate.cfg.Binder bindRootClass
INFO: Mapping class: com.cosmos.wap.demo.Person - t_person
09.01.2004 18:18:41 net.sf.hibernate.cfg.Binder bindRootClass
INFO: Mapping class: com.cosmos.wap.demo.Car - t_car
09.01.2004 18:18:41 net.sf.hibernate.cfg.Configuration configure
INFO: Configured SessionFactory: null
09.01.2004 18:18:41 net.sf.hibernate.dialect.Dialect init
INFO: Using dialect: net.sf.hibernate.dialect.SybaseDialect
09.01.2004 18:18:41 
net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
09.01.2004 18:18:41 
net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
09.01.2004 18:18:41 
net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: net.sourceforge.jtds.jdbc.Driver at URL: 
jdbc:jtds:sqlserver://10.10.14.199:1433/tetrawap
09.01.2004 18:18:41 
net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=tetrawap, password=}
09.01.2004 18:18:41 net.sf.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: Running hbm2ddl schema update
09.01.2004 18:18:41 net.sf.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: fetching database metadata
09.01.2004 18:18:42 net.sf.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: updating schema
09.01.2004 18:18:42 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-many association mappings
09.01.2004 18:18:42 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-one association property references
09.01.2004 18:18:42 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
09.01.2004 18:18:43 net.sf.hibernate.tool.hbm2ddl.SchemaUpdate execute
INFO: schema update complete
09.01.2004 18:18:43 
net.sf.hibernate.connection.DriverManagerConnectionProvider close
INFO: cleaning up connection pool: 
jdbc:jtds:sqlserver://10.10.14.199:1433/tetrawap
09.01.2004 18:18:43 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-many association mappings
09.01.2004 18:18:43 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing one-to-one association property references
09.01.2004 18:18:43 net.sf.hibernate.cfg.Configuration secondPassCompile
INFO: processing foreign key constraints
09.01.2004 18:18:43 net.sf.hibernate.dialect.Dialect init
INFO: Using dialect: net.sf.hibernate.dialect.SybaseDialect
09.01.2004 18:18:43 net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: Use outer join fetching: true
09.01.2004 18:18:43 
net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Using Hibernate built-in connection pool (not for production use!)
09.01.2004 18:18:43 
net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: Hibernate connection pool size: 20
09.01.2004 18:18:43 
net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: using driver: net.sourceforge.jtds.jdbc.Driver at URL: 
jdbc:jtds:sqlserver://10.10.14.199:1433/tetrawap
09.01.2004 18:18:43 
net.sf.hibernate.connection.DriverManagerConnectionProvider configure
INFO: connection properties: {user=tetrawap, password=}
09.01.2004 18:18:43 
net.sf.hibernate.transaction.TransactionManagerLookupFactory 
getTransactionManagerLookup
INFO: No TransactionManagerLookup configured (use of process level 
read-write cache is not recommended)
09.01.2004 18:18:43 net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: Use scrollable result sets: true
09.01.2004 18:18:43 net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: echoing all SQL to stdout
09.01.2004 18:18:43 net.sf.hibernate.cfg.SettingsFactory buildSettings
INFO: Query 

Re: Isapi redirector jk2.02 Installer

2004-01-12 Thread Martin Sturzenegger

hi,
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html describes how 2 install tomcat 
5 on iis 5 on windows2003.
i've tried to install tomcat 5 on iis5 on windows2000 servicepack 3 and it failed also.
martin



-- Urspruengliche Nachricht --
Von: kwirirai [EMAIL PROTECTED]
Antworten an: Tomcat Users List [EMAIL PROTECTED]
Datum:  Mon, 12 Jan 2004 14:21:11 +0200

Figured it out it works,I am now running the examples ,but I had to 
define the tomcat connector in IIS ISAPI filter and ponted the
native\i386\isapi_redirector2.dll installation

kwirirai wrote:

 Hi
 I have tried using the Isapi redirector jk2.02 Installer  from 
 http://www.shiftomat.com/opensource/
 It does not seem to work on my machine .I am running Windows 2000 and 
 IIS 5 and Tomcat v 5, Also tried  the documentation from

 http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html

 I dont know where I am getting wrong please help

 kwiri


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




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


 
 

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



RE: Please help me for jk_nt_service problem

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

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

Cheers,
Larry

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

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



Re: mod_jk2 doesn't create jk2.socket

2004-01-12 Thread Faine, Mark
PS - My preferred way of dealing with Solaris installs
has been to get gcc up and running, and then build
everything else from source.  This can be a pain on a
slow box . . . building the latest version of gcc and
perl take a while.  However, in the end I think the
effort is worth it.
Check to see if there is a directory under
$JAVA_HOME/include.  If so, you'll have to add that to
the configure command in the same fashion that I added
 
The supporting software, gcc, make, autoconf,etc are pkgadds but all of
mod_jk2 and supporting software such as apr, apr-util, apache, tomcat, etc
are all from source.
 
thanks,
-Mark
 



Re: server-status in tomcat

2004-01-12 Thread Olve S. Hansen


Olve S. Hansen wrote:

I have searched around for a component similar to the server-status 
mod in Apache httpd, but cannot find anything similar. Does anyone 
know if such a component exists?

I have just ditched the httpd with forwarding to tomcat via mod_jk2, 
as we experienced some weird behaviour with apache 2.0.47. In high 
load situations it took very long time for it to serve static binary 
files. Tomcat proved much better, but I miss the server-status module.
12.01.2004 13:36 :
The manager app will give you status info.
-Tim 
I am aware of that. But it doesn't give me the kind of status info as 
the server-status info given by httpd.

http://www.apache.org/server-status

This I can get a quick view of the server load, as well as what is being 
accessed...
My question was if someone knows about a similar application of module 
for tomcat. I would really appreciate it.

Thanks.

-- Olve

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


RE: information on tomcat shutdown port / mechanism

2004-01-12 Thread Shapira, Yoav

Howdy,
Sure: see org.apache.catalina.core.StandardServer#await,
http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/s
hare/org/apache/catalina/core/StandardServer.java?rev=1.24view=markup

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Rudolf Nottrott [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 9:50 PM
To: [EMAIL PROTECTED]
Subject: information on tomcat shutdown port / mechanism

Hello,

Can somebody out there point me to a place with explanations of the
Tomcat
shutdown mechanism and how it relates to the shutdown port
(default
Server port=8005 shutdown=SHUTDOWN debug=0
)

I'm having some trouble shutting down tomcat normally after changing
that
port, and I'm looking for possible explanations.

Thanks,
Rudolf



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




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


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



RE: linking between contexts

2004-01-12 Thread Shapira, Yoav

Howdy,
You don't need to do any special configuration for this...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jerald Powel [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 11, 2004 5:34 PM
To: [EMAIL PROTECTED]
Subject: linking between contexts

Hi,
  Relating to a similar recent post, how do I configure Tomcat so
that
I can link between contexts, to appear in the same browser?

Many thanks

Gerald.


-
  Yahoo! Messenger - Communicate instantly...Ping your friends today!
Download Messenger Now



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


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



RE: Possible to disable session persistence at shutdown?

2004-01-12 Thread Shapira, Yoav

Howdy,
Make sure to read the manager configuration reference, it outlines this
process in detail.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 11, 2004 5:55 PM
To: Tomcat Users List
Subject: RE: Possible to disable session persistence at shutdown?

you can define a Manager element, using the same class
(org.apache.catalina.session.StandardManager) and then setting the path
variable to an invalid path. no sessions will be persisted

Manager class=org.apache.catalina.session.StandardManager
path=/sadasdas/

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Marc Guillemot
Sent: Sunday, January 11, 2004 1:57 AM
To: [EMAIL PROTECTED]
Subject: Possible to disable session persistence at shutdown?


Hi,

is there a possibility to disable the session persistence performed
by Tomcat (4
and 5) when shutting down?
I'm not interested in this feature and it reports many exceptions
as my objects
stored in session scope aren't serializable.

Marc.



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


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




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


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



RE: Modifying tomcat startup options on Tomcat 5 with Windows .exe

2004-01-12 Thread Allistair Crossley
b) Yes, but the service startup tomcat //UK//Tomcat5 cannot be changed in the service 
properties.

Furthermore, if the service does not use catalina.bat, how am I suppoed to change the 
JAVA_OPTS parameter for things like profiling the JVM?

Cheers!!

-Original Message-
From: Bill Barker [mailto:[EMAIL PROTECTED]
Sent: 10 January 2004 04:48
To: [EMAIL PROTECTED]
Subject: Re: Modifying tomcat startup options on Tomcat 5 with Windows
.exe


a) No.
b) Well, if it is working perfectly, then 'tomcat //US//Tomcat5 -security'
should work.  A very quick look at the code suggests that it should, but I
haven't actually tried it.

Allistair Crossley [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,

I have the windows version of Tomcat 5 installed and am using the windows
service. I need to add the -security option to the startup. I notice that
catalina.bat is still there but

a) does the tomcat.exe use catalina.bat's config?
b) how do I make the tomcat.exe service use -security?

Cheers, ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT





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


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



Re: server-status in tomcat

2004-01-12 Thread Tim Funk
In tomcat 4 - there is not much else.  In tomcat5 - (IIRC) the status servlet 
has more information. If you want even more information - the JMXProxy 
servlet will tell you anything you need to know about the internals of Tomcat.

-Tim

Olve S. Hansen wrote:



Olve S. Hansen wrote:

I have searched around for a component similar to the server-status 
mod in Apache httpd, but cannot find anything similar. Does anyone 
know if such a component exists?

I have just ditched the httpd with forwarding to tomcat via mod_jk2, 
as we experienced some weird behaviour with apache 2.0.47. In high 
load situations it took very long time for it to serve static binary 
files. Tomcat proved much better, but I miss the server-status module.


12.01.2004 13:36 :
The manager app will give you status info.
-Tim 


I am aware of that. But it doesn't give me the kind of status info as 
the server-status info given by httpd.

http://www.apache.org/server-status

This I can get a quick view of the server load, as well as what is being 
accessed...
My question was if someone knows about a similar application of module 
for tomcat. I would really appreciate it.
 


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


RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Bruno.Melloni
I am using 5.0, so that should not be a problem.  

But are you sure the bug is fixed in 5.x?  Before this I had the DataSource defined at 
the application context level, and I had noticed that the application would crash if I 
redeployed without shutting down, deleting the deployed application directory, 
restarting.  A nuisance, but usable, so I didn't worry about it.  

In any case, Autodeploying and deploying to a live server was definitely not working 
on 5.0.  If a developer wants to investigate and fix this flaw I'd be happy to do some 
test deploys to troubleshoot, if not, the workaround works just fine.

Bruno.

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 4:23 PM
To: [EMAIL PROTECTED]
Subject: RE: Datasource - OK in app context - Fails in Global context


There's a catch though

In TC 4.x, if you put a app context entry in the server.xml, the app
doesn't get reloaded even if the war is overwritten or the app directory
is deleted or the server is restarted. The fully expanded (war)
directory has to be overwritten to webapps directory and server needs to
be restarted to make it work.

This bug is fixed in 5.x.

 [EMAIL PROTECTED] 01/09/04 02:44PM 
Bingo!!!  That was it.

It might be a good idea to add a paragraph to the JDBC DataSources
section of the documentation that mentions:

(a) That global datasources are defined in GlobalNamingResources of
server.xml
(b) The need for the ResourceLink in the application context .xml
file

I had the mistaken impression that anything placed in the server.xml
file was automatically applied to all application contexts.  I am sure
that others make the same mistake.

Thanks, I have been pulling my hair on this issue for almost a month.

Bruno

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 3:22 PM
To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas)
Subject: Re: Datasource - OK in app context - Fails in Global context


Have you defined a reference to the global resource in the
ResourceLink element of the application context ?

 [EMAIL PROTECTED] 01/09/04 10:38AM 
I have an Oracle JDBC datasource that I defined in the Tomcat5 context
for an application (conf/Catalina/localhost/nwg.xml).  Works fine,
context file listed below.  

But when I tried to move the datasource to the GlobalNamingResources
section of server.xml so that it would be accessible to all apps it
gets
recognized in the admin console, but not by the application.  

What gives?  I thought a Global resource is supposed to function
identically to an application resource.

Any help would be greatly welcomed.


nwg.xml:
  Resource auth=Container name=rcfDS
type=javax.sql.DataSource/
  ResourceParams name=rcfDS
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameurl/name
 
valuejdbc:oracle:thin:@hostNameHere:portNumberHere:dbNameHere/value
/parameter
parameter
  nameusername/name
  valueusernameHere/value
/parameter
parameter
  namepassword/name
  valueuserpasswordHere/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
parameter
  namemaxActive/name
  value20/value
/parameter
parameter
  namemaxWait/name
  value-1/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  namelogAbandoned/name
  valuetrue/value
/parameter
  /ResourceParams

Note: The JDBC driver is ojdbc14.jar and is present in common/lib, the
application's WEB-INF/lib and is present also in the JRE's lib/ext for
unrelated JAAS reasons.

Bruno Melloni
eBusiness Application Center, Americas
Nokia, Inc
6000 Connection Drive, Mailstop 4w223
Irving, TX  75039  USA
*Office: +1 (972)894-6120
*Cellular: +1 (469) 939-1067
* SMS: [EMAIL PROTECTED] 
* e-mail: [EMAIL PROTECTED] 


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




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




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


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



Re: Problems finding my JDBC driver for Oracle

2004-01-12 Thread Luciano Kiniti Issoe
I had trouble once with Oracle 8.1.6 classes12.zip,  then when I used 8.1.7,
and it worked fine.
Another trouble was when trying to use J2SE 1.4 compliant classes with 1.3,
so I tried different combinations and then it worked.



Hope it helps.

miagi


- Original Message - 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 12, 2004 3:34 AM
Subject: Re: Problems finding my JDBC driver for Oracle


 Dor Orgad wrote:

  I think this thing is playing funny buggers cos with this new code its
  giving me the driver not found exception.  a i dont know what to
  d!!!
 
  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: 6 in the jsp file: /testing.jsp
 
  Generated servlet error:
 [javac] Compiling 1 source file
 
 
/export/home/tomcat/jakarta-tomcat-4.1.29/work/Standalone/localhost/_/testin
g_jsp.java:48:
  cannot resolve symbol
  symbol  : class OraceDriver
  location: package driver
  java.sql.Driver driver = new oracle.jdbc.driver.OraceDriver();
^

 This would indicate that Oracle's classes are not loaded up. At least not
for
 this run :-)

  An error occurred at line: 6 in the jsp file: /testing.jsp
 
  Generated servlet error:
 
/export/home/tomcat/jakarta-tomcat-4.1.29/work/Standalone/localhost/_/testin
g_jsp.java:50:
  cannot resolve symbol
  symbol  : method getConnection
  (java.lang.String,java.lang.String,java.lang.String)
  location: interface java.sql.Driver
  java.sql.Connection con =
driver.getConnection(url,ontrack,iamontrack);

 Now, this is bad. Looks like the java.sql.* package didn't load
properly, either.

 Are you sure you haven't shot your classloader full of holes?

 Nix.


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






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



RE: Serialization problems

2004-01-12 Thread Shapira, Yoav

Howdy,
You would use constructions like
ObjectInputStream ois = new ObjectInputStream(request.getInputStream());
String s = (String) ois.Object();

Or alternatively, to write it out,
ObjectOutputStream oos = new
ObjectOutputStream(response.getOutpuStream());
oos.writeObject(test string);

Where request and response above are ServletRequest and ServletResponse
instances respectively.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: bartek [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 11, 2004 12:06 PM
To: [EMAIL PROTECTED]
Subject: Serialization problems

From: bartek [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject:
Date: 11 stycznia 2004 17:59

Hi
could anyone give me an example of objects serialization  and sending
them
through http connection?
I made simple application and servlet. Servlet was sending object
String to
application .
It was written in jbuilder9 but when I lunched servlet on web wiev
shows
something like this:
No pilot for x-java-serialized-object [I set content type to
application/x-java-serialized-object]
and SAVE button [I may save object to a file].
Of course applicattion doesn't get anything.
I didnt modify web.xml because I don't know what should i add there.

Cheers
Tom



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


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



SQLPLUS and TOMCAT conflict?

2004-01-12 Thread [EMAIL PROTECTED]
Hi All,

I earlier did install Tomcat 5.0 but soon found out that i
wasnt able to work with SQL PLUS. Everytime i try to login
into SQL Plus i get the error message ORA 12571 : Tns
packet writer failure.

Since i didnt find any effective solution to avoid this
problem, I soon had to uninstall the OS itself to enable me
to work in SQL Plus.
:-(

Soon I came to know that both these applications use the
same port-number 8080, so this conflict makes SQL Plus
inoperable. 

Is there any way through which I can change the port-number
of Apache, so that I can work in both these applications
without any problems?

Please help.

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



Re: SQLPLUS and TOMCAT conflict?

2004-01-12 Thread Tim Funk
RTFM. Tomcat and/or apache can be configured on any port.

See server.xml and look for the port attribute on the Connector element.

-Tim

[EMAIL PROTECTED] wrote:

Hi All,

I earlier did install Tomcat 5.0 but soon found out that i
wasnt able to work with SQL PLUS. Everytime i try to login
into SQL Plus i get the error message ORA 12571 : Tns
packet writer failure.
Since i didnt find any effective solution to avoid this
problem, I soon had to uninstall the OS itself to enable me
to work in SQL Plus.
:-(
Soon I came to know that both these applications use the
same port-number 8080, so this conflict makes SQL Plus
inoperable. 

Is there any way through which I can change the port-number
of Apache, so that I can work in both these applications
without any problems?


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


Servlet returning blank page and then re-initing every 5 minutes

2004-01-12 Thread Allistair Crossley
I am not sure if this is a Tomcat or Struts or code problem...

Every now and again (every 5 minutes or so) my requests to Tomcat are coming back with 
a blank white page. 

The logs show the following stack trace where myController is an ActionServlet ...

Servlet.service() for servlet myController threw exception
java.lang.NullPointerException
 at 
org.apache.struts.action.RequestProcessor.getServletContext(RequestProcessor.java:1136)
 at 
org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:180)
 at 
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

About 2 subsequent requests are also blank but around the 3rd attempt works and I 
notice in our own logs that the myController servlet has been reinitialised with the 
init() method.

Does anyone know what could be going on here? Why is the servlet going down and then 
having to be revived by subsequent requests to it? 

Cheers ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Servlet returning blank page and then re-initing every 5 minutes

2004-01-12 Thread Shapira, Yoav

Howdy,
Is your server or webapp being restarted? ;)  Is your context reloadable
and the class files are changing?

Does anyone know what could be going on here? Why is the servlet going
down
and then having to be revived by subsequent requests to it?

Your servlet is not being revived by subsequent requests.  It simply
starts serving the requests once it's properly initialized by the
container.

Yoav Shapira



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


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



Re: SQLPLUS and TOMCAT conflict?

2004-01-12 Thread epyonne
Port 8080 is the default port for many different application.  Oracle HTTP
server is one of them.  Therefore, it is not a good idea to use the default
8080 for your Tomcat installation.  You can always change it in the
server.xml file yourself.


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 12, 2004 08:26 AM
Subject: SQLPLUS and TOMCAT conflict?


 Hi All,

 I earlier did install Tomcat 5.0 but soon found out that i
 wasnt able to work with SQL PLUS. Everytime i try to login
 into SQL Plus i get the error message ORA 12571 : Tns
 packet writer failure.

 Since i didnt find any effective solution to avoid this
 problem, I soon had to uninstall the OS itself to enable me
 to work in SQL Plus.
 :-(

 Soon I came to know that both these applications use the
 same port-number 8080, so this conflict makes SQL Plus
 inoperable.

 Is there any way through which I can change the port-number
 of Apache, so that I can work in both these applications
 without any problems?

 Please help.

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



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



RE: Servlet returning blank page and then re-initing every 5 minutes

2004-01-12 Thread Allistair Crossley
Hi

No its not being restarted! Yes it is reloadable and we are compiling often, but I 
have found that in general it only serves a blank page when a request is made to a 
class that has been recompiled. 

OK, I will assume there is nothing untoward here for now! Cheers!

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 12 January 2004 14:32
To: Tomcat Users List
Subject: RE: Servlet returning blank page and then re-initing every 5
minutes



Howdy,
Is your server or webapp being restarted? ;)  Is your context reloadable
and the class files are changing?

Does anyone know what could be going on here? Why is the servlet going
down
and then having to be revived by subsequent requests to it?

Your servlet is not being revived by subsequent requests.  It simply
starts serving the requests once it's properly initialized by the
container.

Yoav Shapira



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


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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Servlet returning blank page and then re-initing every 5 minutes

2004-01-12 Thread Shapira, Yoav

Howdy,

No its not being restarted! Yes it is reloadable and we are compiling
often, but I have found that in general it only serves a blank page
when a
request is made to a class that has been recompiled.

So your context is reloadable and you're changing classes often, but the
context is not being restarted?  Is that what you're saying?

OK, I will assume there is nothing untoward here for now! Cheers!

That's a bit of a quick assumption, but OK, whatever suits your mood ;)

If I were you, I would turn off reloadable (set it to false) and the
host's autoDeploy feature, and see if this behavior persists.

Yoav Shapira


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 12 January 2004 14:32
To: Tomcat Users List
Subject: RE: Servlet returning blank page and then re-initing every 5
minutes



Howdy,
Is your server or webapp being restarted? ;)  Is your context
reloadable
and the class files are changing?

Does anyone know what could be going on here? Why is the servlet going
down
and then having to be revived by subsequent requests to it?

Your servlet is not being revived by subsequent requests.  It simply
starts serving the requests once it's properly initialized by the
container.

Yoav Shapira



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


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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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




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


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



Taskmanager memory figures vs jvm figures

2004-01-12 Thread Reynir Þór Hübner
Hi, 
I've been running my apps in profilers for quite some time now, and I
must say it's been a good experience. Now I've seen and fixed the leaks
in my applications. 

This small jsp page should display the figures as seen from the JVM: 

---8 jsp begins

Total: %= Runtime.getRuntime().totalMemory() / 1048576 %br
Free: %= Runtime.getRuntime().freeMemory() / 1048576 %br
Used: %= (Runtime.getRuntime().totalMemory() -
Runtime.getRuntime().freeMemory()) / 1048576 %


---8 jsp ends


I run my the tomcat service with the parameters -Xmx128m -Xms64m -Xrs,
and when I run this page I never see figures above  128mb, but the Task
Manager application (in windows) shows over 200mbs in use for the
process. And it always seems to increase. 

What could explain this ? Could there be some leaks outside of my
application ? This setup I am refering to is using version 4.1.24 of
tomcat, and java version 1.4.1_02 and the application is a rather
complicated (but flexible) implementation of MVC. 


My question is really, what explaines the difference between the numbers
shown when a jsp like the one above is called, and the numbers shown in
the task manager application ?

Thanx
-reynir



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



RE: Servlet returning blank page and then re-initing every 5 minutes

2004-01-12 Thread Allistair Crossley
Hi

So your context is reloadable and you're changing classes often, but the
context is not being restarted?  Is that what you're saying?

Sometimes yes I believe so. Just compiling new classes with a reloadable context does 
not make the context reload as far as I can see. What does make the context reload is 
when the user makes a request to one of the re-compiled classes. I guess that makes 
sense.

 If I were you, I would turn off reloadable (set it to false) and the
 host's autoDeploy feature, and see if this behavior persists.

Thanks Yoav, I will try this out. I also want to solve our Pool Exhausted problem 
(even though all connections are being closed in the source) and the fact that our 
Tomcat memory goes up and up and crashes out at 158MB in process memory. I am bundling 
these issues together as one task!!

At the moment we have multiple developers working on the application which is why we 
have reloadable on. Restarting Tomcat every time a class changes is not an 
option...way too inefficient!!

Cheers, ADC


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 12 January 2004 14:32
To: Tomcat Users List
Subject: RE: Servlet returning blank page and then re-initing every 5
minutes



Howdy,
Is your server or webapp being restarted? ;)  Is your context
reloadable
and the class files are changing?

Does anyone know what could be going on here? Why is the servlet going
down
and then having to be revived by subsequent requests to it?

Your servlet is not being revived by subsequent requests.  It simply
starts serving the requests once it's properly initialized by the
container.

Yoav Shapira



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


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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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




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


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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Servlet returning blank page and then re-initing every 5 minutes

2004-01-12 Thread Shapira, Yoav

Howdy,

Thanks Yoav, I will try this out. I also want to solve our Pool
Exhausted
problem (even though all connections are being closed in the source)
and
the fact that our Tomcat memory goes up and up and crashes out at 158MB
in
process memory. I am bundling these issues together as one task!!

I would address them one at a time. ;)

At the moment we have multiple developers working on the application
which
is why we have reloadable on. Restarting Tomcat every time a class
changes
is not an option...way too inefficient!!

How about giving each developer his/her own instance of tomcat?

Yoav Shapira



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


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



RE: Taskmanager memory figures vs jvm figures

2004-01-12 Thread Shapira, Yoav

Howdy,

I run my the tomcat service with the parameters -Xmx128m -Xms64m -Xrs,
and when I run this page I never see figures above  128mb, but the Task
Manager application (in windows) shows over 200mbs in use for the
process. And it always seems to increase.

What could explain this ? Could there be some leaks outside of my

This is normal and expected.  The numbers shown in your JSP and adjusted
via the -Xmx and -Xms arguments are the JVM heap only.  The JVM itself
contains several other memory areas (the stack, the symbol table, etc.),
although they are typically smaller than the heap.  Then the operating
system (this is true for all OS's, not just windows) adds overhead for
scheduling, memory allocation, thread managements, etc.  The task
manager on windows shows the overall footprint as seen by the operating
system: that includes all the above memory-consuming tasks on top of the
JVM's heap.  You would always expect it to be higher than the heap
itself.

Yoav Shapira



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


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



Re: John Turner or someone who responsible for Posting -- Re: How to Apache2, Tomcat4.1.2, JK2 ?

2004-01-12 Thread Shreehari Manikarnika
Hi,

Is this possible? - connecting Tomcat 4 to Apache 2 via mod_jk2 under
Linux, in any_of_the_JNI_modes. Any sort of help or even a reference to
any available information will be great!

Thanks,
Shreehari.

Technical Yahoo!,
Yahoo! Software Development India Pvt. Ltd.

 -Original Message-
 From: Jerry Birchler [mailto:[EMAIL PROTECTED]
 Sent: Sunday, October 20, 2002 1:46 AM
 To: Tomcat Users List
 Subject: RE: RE: John Turner or someone who responsible for Posting --
 Re: How to Apache2, Tomcat4.1.2, JK2 ?
 
 
 I have a working example of Apache 2.0.43 with Tomcat 4.1.2 
 using JK2 on Red
 Hat Linux 8.0. I had to fallback to methods used on a 
 previous integration
 of Apache 1.3.24 with Tomcat 4.0.4 after looking at the 
 Howtos that came
 with the 4.1.2 documentaton. That enabled me to quickly put together a
 workers.properties file. I can see why people might want to have some
 examples. Please let me know if you're interested in a 
 separate post with
 what I did. After rebuilding apache, I was up and running in 
 just a few
 minutes.


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



Tomcat 4.1.29: Pool exhausted

2004-01-12 Thread Dmitry Guralnik
My resource params for DataSource:

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

ResourceParams name=jdbc/KDb
parameter
namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namedriverClassName/name
valuecom.informix.jdbc.IfxDriver/value
/parameter
parameter
nameurl/name

valuejdbc:informix-sqli://h1:1526/kdb:INFORMIXSERVER=ifx_h1/value
/parameter
parameter
nameusername/name
valueinformix/value
/parameter
parameter
namepassword/name
valueinformix/value
/parameter
parameter
namemaxActive/name
value20/value
/parameter
parameter
namemaxIdle/name
value10/value
/parameter
parameter
namemaxWait/name
value-1/value
/parameter
/ResourceParams



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



How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-12 Thread Enrique MARTIN
Hi,

I am trying to serve .xls and .ppt files from tomcat so that the browser 
opens the right application (excel and powerpoint respectively) . What I 
obtain instead is that the byte content is sent by the web server and this 
content is then interpreted as text by the browser.
For the .doc files, on the other hand, I have the desired behavior: word 
opens.

Does anybody know how to obtain from tomcat this behavior?

Thanks,
Enrique.


Re: IIS/Tomcat 4 Admin and Manager - Can't Connect from IIS

2004-01-12 Thread hoodworld
Have you check the windows security of the files in your application folder.
I encounter similar problem. I think it's IIS problem. Try assigning users
Everyone and IUSER_COMPUTER_NAME for right of read.

Kenneth

- Original Message -
From: Emile Coetzee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 12, 2004 7:33 PM
Subject: IIS/Tomcat 4 Admin and Manager - Can't Connect from IIS


 I've setup IIS/Tomcat successfully. My webapp mappings are working
correctly
 with IIS as the front end. So I'm happy that everything is working as it
 should.

 I then started setting up the Admin and Manager tools. They work correctly
 when connecting directly via Tomcat on port 8080 but if i connect via IIS
i
 get a 403 access denied error. From looking at the admin and manager logs
 (debug 9) I found that there is a security check against GET which is true
 when connecting via IIS and false when connecting via Tomcat. The IIS log
 doesn't offer much insight.


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



RE: John Turner or someone who responsible for Posting -- Re: How to Apache2, Tomcat4.1.2, JK2 ?

2004-01-12 Thread Turner, John

Hi -

I don't use JK2.  Best bet for help is the tomcat-user mailing list,
[EMAIL PROTECTED]

John


 -Original Message-
 From: Shreehari Manikarnika [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 12, 2004 1:58 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: John Turner or someone who responsible for 
 Posting -- Re: How to Apache2, Tomcat4.1.2, JK2 ?
 
 Hi,
 
 Is this possible? - connecting Tomcat 4 to Apache 2 via 
 mod_jk2 under Linux, in any_of_the_JNI_modes. Any sort of 
 help or even a reference to any available information will be great!
 
 Thanks,
 Shreehari.
 
 Technical Yahoo!,
 Yahoo! Software Development India Pvt. Ltd.
 
  -Original Message-
  From: Jerry Birchler [mailto:[EMAIL PROTECTED]
  Sent: Sunday, October 20, 2002 1:46 AM
  To: Tomcat Users List
  Subject: RE: RE: John Turner or someone who responsible for 
 Posting --
  Re: How to Apache2, Tomcat4.1.2, JK2 ?
  
  
  I have a working example of Apache 2.0.43 with Tomcat 4.1.2 
 using JK2 
  on Red Hat Linux 8.0. I had to fallback to methods used on 
 a previous 
  integration of Apache 1.3.24 with Tomcat 4.0.4 after looking at the 
  Howtos that came with the 4.1.2 documentaton. That enabled me to 
  quickly put together a workers.properties file. I can see 
 why people 
  might want to have some examples. Please let me know if you're 
  interested in a separate post with what I did. After rebuilding 
  apache, I was up and running in just a few minutes.
 


RE: Servlet returning blank page and then re-initing every 5 minutes

2004-01-12 Thread Allistair Crossley
Well we'd still have to restart on each compile - that is the biggest pain. Reloadable 
has proven to be very helpful so far and works well. Plus because our code relies on 
each other's we would still deploy the same compile to both instances!

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 12 January 2004 14:54
To: Tomcat Users List
Subject: RE: Servlet returning blank page and then re-initing every 5
minutes



Howdy,

Thanks Yoav, I will try this out. I also want to solve our Pool
Exhausted
problem (even though all connections are being closed in the source)
and
the fact that our Tomcat memory goes up and up and crashes out at 158MB
in
process memory. I am bundling these issues together as one task!!

I would address them one at a time. ;)

At the moment we have multiple developers working on the application
which
is why we have reloadable on. Restarting Tomcat every time a class
changes
is not an option...way too inefficient!!

How about giving each developer his/her own instance of tomcat?

Yoav Shapira



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


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



FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Invoking JSPs in batch like environment

2004-01-12 Thread George Sexton
If you are using UNIX, then wget is the answer. If you are using
Windows, you will have to use Windows Scripting Host to create and
instance of IE and retrieve the URL.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 1:42 AM
To: [EMAIL PROTECTED]
Subject: Invoking JSPs in batch like environment


Hello,

I would like to use JSPs in oder to generate textfile like output in a
batch
program. 
The idea is to invoke the Servlets which have been gerenated on the
basis of
the JSPs. 
Also, the OutputStream of the JSP/Servlet Response class has to be
configured and necessary bean instances have to be added as attributes
before invokation.

I would like to know if the Jasper library (or something else) can be
used
in some way to alleviate the setup of the necessary environment for the
JSP
execution.

Kindest regards,

Alexander Thomas


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


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



RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Keshav Sarin
When I tested 5.0 for auto deployment, the datasource JNDI context was
no longer available to the application and a SQLException was thrown in
the logs (the app interacts with database on initialization). The
application worked fine after the server was restarted.

In 4.x, even sever restart wouldn't load the application. The
application directory had to be replaced. 5.0 doesn't have this issue.

 [EMAIL PROTECTED] 01/12/04 07:12AM 
I am using 5.0, so that should not be a problem.  

But are you sure the bug is fixed in 5.x?  Before this I had the
DataSource defined at the application context level, and I had noticed
that the application would crash if I redeployed without shutting down,
deleting the deployed application directory, restarting.  A nuisance,
but usable, so I didn't worry about it.  

In any case, Autodeploying and deploying to a live server was
definitely not working on 5.0.  If a developer wants to investigate and
fix this flaw I'd be happy to do some test deploys to troubleshoot, if
not, the workaround works just fine.

Bruno.

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 4:23 PM
To: [EMAIL PROTECTED] 
Subject: RE: Datasource - OK in app context - Fails in Global context


There's a catch though

In TC 4.x, if you put a app context entry in the server.xml, the app
doesn't get reloaded even if the war is overwritten or the app
directory
is deleted or the server is restarted. The fully expanded (war)
directory has to be overwritten to webapps directory and server needs
to
be restarted to make it work.

This bug is fixed in 5.x.

 [EMAIL PROTECTED] 01/09/04 02:44PM 
Bingo!!!  That was it.

It might be a good idea to add a paragraph to the JDBC DataSources
section of the documentation that mentions:

(a) That global datasources are defined in GlobalNamingResources of
server.xml
(b) The need for the ResourceLink in the application context .xml
file

I had the mistaken impression that anything placed in the server.xml
file was automatically applied to all application contexts.  I am sure
that others make the same mistake.

Thanks, I have been pulling my hair on this issue for almost a month.

Bruno

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 3:22 PM
To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas)
Subject: Re: Datasource - OK in app context - Fails in Global context


Have you defined a reference to the global resource in the
ResourceLink element of the application context ?

 [EMAIL PROTECTED] 01/09/04 10:38AM 
I have an Oracle JDBC datasource that I defined in the Tomcat5 context
for an application (conf/Catalina/localhost/nwg.xml).  Works fine,
context file listed below.  

But when I tried to move the datasource to the GlobalNamingResources
section of server.xml so that it would be accessible to all apps it
gets
recognized in the admin console, but not by the application.  

What gives?  I thought a Global resource is supposed to function
identically to an application resource.

Any help would be greatly welcomed.


nwg.xml:
  Resource auth=Container name=rcfDS
type=javax.sql.DataSource/
  ResourceParams name=rcfDS
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameurl/name
 
valuejdbc:oracle:thin:@hostNameHere:portNumberHere:dbNameHere/value
/parameter
parameter
  nameusername/name
  valueusernameHere/value
/parameter
parameter
  namepassword/name
  valueuserpasswordHere/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
parameter
  namemaxActive/name
  value20/value
/parameter
parameter
  namemaxWait/name
  value-1/value
/parameter
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter
parameter
  namelogAbandoned/name
  valuetrue/value
/parameter
  /ResourceParams

Note: The JDBC driver is ojdbc14.jar and is present in common/lib, the
application's WEB-INF/lib and is present also in the JRE's lib/ext for
unrelated JAAS reasons.

Bruno Melloni
eBusiness Application Center, Americas
Nokia, Inc
6000 Connection Drive, Mailstop 4w223
Irving, TX  75039  USA
*Office: +1 (972)894-6120
*Cellular: +1 (469) 939-1067
* SMS: [EMAIL PROTECTED] 
* e-mail: [EMAIL PROTECTED] 


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




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




-
To unsubscribe, e-mail: [EMAIL 

Application Realm with Tomcat 4.1.X / Apache 2 / mod_jk2

2004-01-12 Thread Lázaro Miguel Fung
Hi,

I'am porting tomcat with apache 2 from mod_jk to mod_jk2 and I can't make
work Realm with mod_jk2.

My Realm type is a MemoryUserDataBaseFactory, and the users/pass/roles are
in a separated file.

The application not recognize the users/pass/roles in the application realm
file, if I copy the usr/pass/roles to conf/tomcat-users.xml it works but I
prefer to have this files detached.

Regards

LFung


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



Re: Encoding issues

2004-01-12 Thread Howard Watson
That's a greek character set. Is that intentional?

 [EMAIL PROTECTED] 01/12/04 04:52AM 
I run Tomcat 3.2 and it reports unsupported encoding iso-8859-7 when
using
FORMs. As a result, servlets receive garbage instead of data. Is there
a
workaround?


Kostas Harvatis
-
National Center for Social Research - Directorate of Research Support
www.ekke.gr 




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


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



Re: Encoding issues

2004-01-12 Thread Graham Reeds
 That's a greek character set. Is that intentional?

His email is [EMAIL PROTECTED] so I would guess so.

G.


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



RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Bruno.Melloni
Yes, that sounds about right.  A manual restart of the server seems to be required, 
which is what I meant by autodeployment not working.  As a matter of fact, although I 
have not tried it yet, I would not be surprised that a manual deploy to Tomcat would 
also require a server restart.  

From experience with other application servers (JBoss, Weblogic,...) autodeploying 
usually means that you do not need to manually restart, since the server does 
whatever is needed to make the application usable (of course, assuming that you 
have already successfully deployed the application at least once before - it is not 
rare for servers to choke on the first autodeploy).

Btw, I got the same SQLException because my app also interacts with the database on 
initialization.  Which is why I got into the habit of shutting down before deploying, 
when a database is involved.

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 9:25 AM
To: [EMAIL PROTECTED]
Subject: RE: Datasource - OK in app context - Fails in Global context


When I tested 5.0 for auto deployment, the datasource JNDI context was
no longer available to the application and a SQLException was thrown in
the logs (the app interacts with database on initialization). The
application worked fine after the server was restarted.

In 4.x, even sever restart wouldn't load the application. The
application directory had to be replaced. 5.0 doesn't have this issue.

 [EMAIL PROTECTED] 01/12/04 07:12AM 
I am using 5.0, so that should not be a problem.  

But are you sure the bug is fixed in 5.x?  Before this I had the
DataSource defined at the application context level, and I had noticed
that the application would crash if I redeployed without shutting down,
deleting the deployed application directory, restarting.  A nuisance,
but usable, so I didn't worry about it.  

In any case, Autodeploying and deploying to a live server was
definitely not working on 5.0.  If a developer wants to investigate and
fix this flaw I'd be happy to do some test deploys to troubleshoot, if
not, the workaround works just fine.

Bruno.

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 4:23 PM
To: [EMAIL PROTECTED] 
Subject: RE: Datasource - OK in app context - Fails in Global context


There's a catch though

In TC 4.x, if you put a app context entry in the server.xml, the app
doesn't get reloaded even if the war is overwritten or the app
directory
is deleted or the server is restarted. The fully expanded (war)
directory has to be overwritten to webapps directory and server needs
to
be restarted to make it work.

This bug is fixed in 5.x.

 [EMAIL PROTECTED] 01/09/04 02:44PM 
Bingo!!!  That was it.

It might be a good idea to add a paragraph to the JDBC DataSources
section of the documentation that mentions:

(a) That global datasources are defined in GlobalNamingResources of
server.xml
(b) The need for the ResourceLink in the application context .xml
file

I had the mistaken impression that anything placed in the server.xml
file was automatically applied to all application contexts.  I am sure
that others make the same mistake.

Thanks, I have been pulling my hair on this issue for almost a month.

Bruno

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 3:22 PM
To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas)
Subject: Re: Datasource - OK in app context - Fails in Global context


Have you defined a reference to the global resource in the
ResourceLink element of the application context ?

 [EMAIL PROTECTED] 01/09/04 10:38AM 
I have an Oracle JDBC datasource that I defined in the Tomcat5 context
for an application (conf/Catalina/localhost/nwg.xml).  Works fine,
context file listed below.  

But when I tried to move the datasource to the GlobalNamingResources
section of server.xml so that it would be accessible to all apps it
gets
recognized in the admin console, but not by the application.  

What gives?  I thought a Global resource is supposed to function
identically to an application resource.

Any help would be greatly welcomed.


nwg.xml:
  Resource auth=Container name=rcfDS
type=javax.sql.DataSource/
  ResourceParams name=rcfDS
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameurl/name
 
valuejdbc:oracle:thin:@hostNameHere:portNumberHere:dbNameHere/value
/parameter
parameter
  nameusername/name
  valueusernameHere/value
/parameter
parameter
  namepassword/name
  valueuserpasswordHere/value
/parameter
parameter
  namemaxIdle/name
  value10/value
/parameter
parameter
  namemaxActive/name
  value20/value
/parameter
parameter
  

Re: it's a bit too much

2004-01-12 Thread Graham Reeds
 Sorry, but I think I will have to leave this list shortly. I am bored 
 of getting two bounces for each message I send to it.  Adding to the 
 bogus Symantec Mail Security I now get a bounce for [EMAIL PROTECTED] 
 (User unknown).

I just got the bounce as well in addition to the RadTools responder.

G.

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



Re: How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-12 Thread Vitor Buitoni
Hi,

Probably your browser is misconfigured. I don't think this is a tomcat 
issue.
Check the file type associations in your browser and make sure that xls 
files are configured to be opened by msexcel.
Also check the .doc file association, if it is opening properly, it 
should be configured to be opened by msword.

Vitor

Enrique MARTIN wrote:

Hi,

I am trying to serve .xls and .ppt files from tomcat so that the browser 
opens the right application (excel and powerpoint respectively) . What I 
obtain instead is that the byte content is sent by the web server and this 
content is then interpreted as text by the browser.
For the .doc files, on the other hand, I have the desired behavior: word 
opens.

Does anybody know how to obtain from tomcat this behavior?

Thanks,
Enrique.
 



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


Jasper: INFO Priority logging of request parameters from JspServlet

2004-01-12 Thread Andrew May
Hi,

Using Tomcat 5 I'm seeing INFO log messages from org.apache.jasper.servlet.JspServlet 
containing request parameters.

Having looked at the code I'm not sure that this is deliberate because the logging is done 
within a if (log.isDebugEnabled()) check. Also, the priority was changed from info to 
debug in rev 1.19, and then changed back in 1.20 (where the comment is about fixing a NPE):

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/servlet/JspServlet.java?r1=1.19r2=1.20

I know it's a fairly minor issue, but I thought I'd mention it.

Regards,

Andrew

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


tomcat 5 and oracle 8i

2004-01-12 Thread Jeremy Martinez
I am running tomcat 5 and java 1.4.  I am attempting to connect to an oracle 8i 
database.   However, the drivers listed on oracles download site for the jdbc's do not 
have this combination of tomcat5, java 1.4 and oracle 8i.   Has anyone got this 
combination working?  And if so, was there anything special that had to be done to 
make it work?

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



Re: Isapi redirector jk2.02 Installer

2004-01-12 Thread kwirirai
Download the installer from

http://www.shiftomat.com/opensource/

Follow the instructions for installing , in IIS 5 go to ISAPI filters 
add the tomcat connector and select the

native\i386\isapi_redirector2.dll in the tomcat 5 installation

Then restart IIS 5

Hope it works



Martin Sturzenegger wrote:

hi,
http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html describes how 2 install tomcat 
5 on iis 5 on windows2003.
i've tried to install tomcat 5 on iis5 on windows2000 servicepack 3 and it failed also.
martin


-- Urspruengliche Nachricht --
Von: kwirirai [EMAIL PROTECTED]
Antworten an: Tomcat Users List [EMAIL PROTECTED]
Datum:  Mon, 12 Jan 2004 14:21:11 +0200
 

Figured it out it works,I am now running the examples ,but I had to 
define the tomcat connector in IIS ISAPI filter and ponted the
native\i386\isapi_redirector2.dll installation

kwirirai wrote:

   

Hi
I have tried using the Isapi redirector jk2.02 Installer  from 
http://www.shiftomat.com/opensource/
It does not seem to work on my machine .I am running Windows 2000 and 
IIS 5 and Tomcat v 5, Also tried  the documentation from

http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html

I dont know where I am getting wrong please help

kwiri

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

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



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




RE: How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-12 Thread Bruno.Melloni
Wouldn't you just have a URL link to the actual files in your HTML?  The browser 
should be smart enough to open up the appropriate application and display it, since it 
will recognize its extension/mime-type.

bruno

-Original Message-
From: ext Vitor Buitoni [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 10:07 AM
To: Tomcat Users List
Subject: Re: How to serve static EXCEL or POWERPOINT files from Tomcat ?


Hi,

Probably your browser is misconfigured. I don't think this is a tomcat 
issue.
Check the file type associations in your browser and make sure that xls 
files are configured to be opened by msexcel.
Also check the .doc file association, if it is opening properly, it 
should be configured to be opened by msword.

Vitor

Enrique MARTIN wrote:

Hi,

I am trying to serve .xls and .ppt files from tomcat so that the browser 
opens the right application (excel and powerpoint respectively) . What I 
obtain instead is that the byte content is sent by the web server and this 
content is then interpreted as text by the browser.
For the .doc files, on the other hand, I have the desired behavior: word 
opens.

Does anybody know how to obtain from tomcat this behavior?

Thanks,
Enrique.

  




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


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



RE: tomcat 5 and oracle 8i

2004-01-12 Thread Reynir Þór Hübner
Hi, 
I use tomcat 4.1.x with oracle all the time, I don’t think the version
of tomcat matters, as there should not be any conflicts between
libraries in tomcat and the driver. 

Just get the driver for j2sdk 1.4 and oracle 8i, the only special
thing you need to do, is use the Thin driver, and then refer to the
documentation on how to create a valid jdbc url, and make connection to
the database. 

Hope it helps

-reynir




 -Original Message-
 From: Jeremy Martinez [mailto:[EMAIL PROTECTED] 
 Sent: 12. janúar 2004 16:29
 To: [EMAIL PROTECTED]
 Subject: tomcat 5 and oracle 8i
 
 
 I am running tomcat 5 and java 1.4.  I am attempting to 
 connect to an oracle 8i database.   However, the drivers 
 listed on oracles download site for the jdbc's do not have 
 this combination of tomcat5, java 1.4 and oracle 8i.   Has 
 anyone got this combination working?  And if so, was there 
 anything special that had to be done to make it work?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: tomcat 5 and oracle 8i

2004-01-12 Thread Bruno.Melloni
I am using JDK1.4.2_03, and the oracle drivers ojdbc14.jar.  No problems.

-Original Message-
From: ext Jeremy Martinez [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 10:29 AM
To: [EMAIL PROTECTED]
Subject: tomcat 5 and oracle 8i


I am running tomcat 5 and java 1.4.  I am attempting to connect to an oracle 8i 
database.   However, the drivers listed on oracles download site for the jdbc's do not 
have this combination of tomcat5, java 1.4 and oracle 8i.   Has anyone got this 
combination working?  And if so, was there anything special that had to be done to 
make it work?

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


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



Re: it's a bit too much

2004-01-12 Thread Giuliano Gavazzi
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
At 3:44 pm + 2004/01/12, Graham Reeds wrote:
  Sorry, but I think I will have to leave this list shortly. I am bored
 of getting two bounces for each message I send to it.  Adding to the
 bogus Symantec Mail Security I now get a bounce for [EMAIL PROTECTED]
 (User unknown).
I just got the bounce as well in addition to the RadTools responder.

cant we do anything to avoid this? Wouldn't an Errors To: header 
redirect the bounces to somewhere more useful (like 
the-part-where-the-sun-does-not-shine of whoever ignored to 
unsubscribe itself from the list...)?
Perhaps is because this list has got a very large user base, but, 
from this point of view, it is the most annoying list I ever 
joined... sigh!

This is my proposal:

Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
[that I naively added to the top of this email... it will not work of course!]

Giuliano

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


RE: How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-12 Thread Reynir Þór Hübner
Hi, 

Just add a mime mapping into tomcat/conf/web.xml 

 mime-mapping
extensionxls/extension
mime-typeapplication/msexcel/mime-type
/mime-mapping
  mime-mapping
  extensionppt/extension
  mime-typeapplication/powerpnt/mime-type
/mime-mapping

Restart tomcat... 
And that should do the trick (done it many times). 

Hope it helps
-reynir






 -Original Message-
 From: Enrique MARTIN [mailto:[EMAIL PROTECTED] 
 Sent: 12. janúar 2004 10:58
 To: [EMAIL PROTECTED]
 Subject: How to serve static EXCEL or POWERPOINT files from Tomcat ?
 
 
 Hi,
 
 I am trying to serve .xls and .ppt files from tomcat so that 
 the browser 
 opens the right application (excel and powerpoint 
 respectively) . What I 
 obtain instead is that the byte content is sent by the web 
 server and this 
 content is then interpreted as text by the browser.
 For the .doc files, on the other hand, I have the desired 
 behavior: word 
 opens.
 
 Does anybody know how to obtain from tomcat this behavior?
 
 Thanks,
 Enrique.
 


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



Re: How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-12 Thread Daniel Gibby
However, If tomcat is serving the content, the correct headers must be 
sent, especially if it is being sent through a servlet.

If it is really a static file, you should do as was mentioned, but if 
you are sending it through a servlet, you will need to set the 
appropriate Content-Type header, and I can't remember how that is done, 
but I know that it must be done.

It could be that tomcat isn't setting that header correctly even when it 
is not sent through a servlet, and that is probably what you are 
experiencing. I'm just validating your issue here so you know you're not 
crazy, and that it is a valid issue. I've experienced it before, but I 
wasn't the developer that had to solve the problem, so I can't help you 
much more than that.

Daniel Gibby

[EMAIL PROTECTED] wrote:

Wouldn't you just have a URL link to the actual files in your HTML?  The browser should be smart enough to open up the appropriate application and display it, since it will recognize its extension/mime-type.

bruno

-Original Message-
From: ext Vitor Buitoni [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 10:07 AM
To: Tomcat Users List
Subject: Re: How to serve static EXCEL or POWERPOINT files from Tomcat ?
Hi,

Probably your browser is misconfigured. I don't think this is a tomcat 
issue.
Check the file type associations in your browser and make sure that xls 
files are configured to be opened by msexcel.
Also check the .doc file association, if it is opening properly, it 
should be configured to be opened by msword.

Vitor

Enrique MARTIN wrote:

 

Hi,

I am trying to serve .xls and .ppt files from tomcat so that the browser 
opens the right application (excel and powerpoint respectively) . What I 
obtain instead is that the byte content is sent by the web server and this 
content is then interpreted as text by the browser.
For the .doc files, on the other hand, I have the desired behavior: word 
opens.

Does anybody know how to obtain from tomcat this behavior?

Thanks,
Enrique.


   



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



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


Two Connection pools - Tomcat 4.1.29- Please help!!

2004-01-12 Thread GuptaD

Hi,

I was wondering that is it possible at all to create 2 pools of
connections which are to be used by the same application. I tried to do
someyhing like this in server.xml but the second one doesn't work: - 
it's giving me following error for second one 

 --Cannot create PoolableConnectionFactory--

I will really appreciate if somebosy could post the code if you've done it
already...

-- the part of server.xml looks like this--

  Resource name=jdbc/CrdbConn auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/CrdbConn
 
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourc
eFactory/value/parameter
parameternamemaxActive/name
value20/value
/parameter

  parameter
namemaxIdle/name
value10/value
  /parameter
  parameter
namemaxWait/name
value-1/value
  /parameter

parameternamedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value/parameter
parameternameurl/name
 
valuejdbc:oracle:thin:@dpwdev02:1521:drpd/value/parameter
 
parameternameusername/namevaluecweb/value/parameter
 
parameternamepassword/namevaluecweb/value/parameter
  /ResourceParams
  
  !-- HDB connection --
  
  Resource name=jdbc/hdbConn auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/hdbConn
 
parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourc
eFactory/value/parameter
parameternamemaxActive/name
value10/value
/parameter

  parameter
namemaxIdle/name
value10/value
  /parameter
  parameter
namemaxWait/name
value-1/value
  /parameter

parameternamedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value/parameter
parameternameurl/name
  valuejdbc:oracle:thin:@wfmprd02:1521:HDB/value/parameter
 
parameternameusername/namevalueadmin/value/parameter
 
parameternamepassword/namevalueadmin/value/parameter
  /ResourceParams
  
  !-- end HDB --
--  end of part of
server.xml--

my web.xml looks like this


---web.xml--
?xml version=1.0?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN  
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
web-app   
context-param 
param-nameappversion/param-name  
param-valueDevelopment/param-value   
/context-param
context-param
  param-namesom/param-name
  param-valueDivya Gupta/param-value
/context-param
context-param
  param-nameamphost/param-name
  param-valuesundev01/param-value
/context-param
context-param
  param-nameampsid/param-name
  param-valueam2d/param-value
/context-param
context-param
  param-namecrdbhost/param-name
  param-valuedpwdev02/param-value
/context-param
context-param
  param-namecrdbsid/param-name
  param-valuedrpd/param-value
/context-param
resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/CrdbConn/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
/resource-ref

resource-ref
 descriptionOracle Datasource example/description
 res-ref-namejdbc/hdbConn/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
/resource-ref


/web-app
---end of web.xml-

Thanks in advance,

Regards,

Divya


Re: Redhat9 / apxs / mod_jk2 build problem.

2004-01-12 Thread Mark Eggers
James,

I don't know about
jakarta-tomcat-connectors-jk2-src-current.tar.gz, but
the latest CVS snapshot has some problems during make.

It appears to be an issue with the configure scripts
(actually multiple issues) that need to be addressed.

The best bet is to use the 2.0.2 source and compile
from there.

As discussed on the mailing list you'll be able to get
sockets (both IP and UNIX) working, but in-process is
currently not possible with the available
multi-processor modules in apache.

Also, add --with-pcre and --with-os-type=include/linux
to your ./configure command for mod_jk2.

Finally, you'll need to tweak the Makefile in
server/apache2 of mod_jk2.  The JK_LDFLAGS line should
read:

JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt -lapr-0 -lpcre
-lpcreposix -laprutil-0

HTH

/mde/
just my two cents . . . .


__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



OpenSource / Free Profilers to use with Tomcat

2004-01-12 Thread Allistair Crossley
Hi Guys,

I hope you dont mind me asking if there are any free/opensource profilers out there 
that are quite good and offer the same type of features as JProfiler et al that I can 
use to profile tomcat 5?

Many thanks, ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


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



RE: Encoding issues

2004-01-12 Thread Altankov Peter
I used to have similar problems with windows-1251 cyrylic codeapge and I solved it by 
creating a siple filter, mapped to all request that explicitly sets the encoding of 
the request before any1 else gets the request:

request.setCharacterEncoding(windows-1251);

I think this happens because Internet Explorer does not set the appropriate encoding 
headers on HTTP level of the protocol and tomcat just assumes it is ISO8859-1 (leading 
to garbage ofcourse)


Here is the full source of the filter:
package bg.cbm.servlet.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * Creator: paltankov
 * Date: 2003-10-30
 * Time: 10:03:49
 */
public class LocaleHelperFilter implements Filter
{
private String defaultRequestEncoding = null;

public void init (FilterConfig filterConfig) {
defaultRequestEncoding = 
filterConfig.getInitParameter(defaultRequestEncoding);
}

public void doFilter(ServletRequest request, ServletResponse response, 
FilterChain chain)
  throws IOException, ServletException {

if (null == request.getCharacterEncoding())
request.setCharacterEncoding(defaultRequestEncoding);

chain.doFilter(request, response);
}

public void destroy() {}

}


Here is the mapping entry for web.xml of the application that uses it:

filter
filter-namelocaleHelper/filter-name
filter-classbg.cbm.servlet.filter.LocaleHelperFilter/filter-class
init-param
param-namedefaultRequestEncoding/param-name
param-valuewindows-1251/param-value
/init-param
/filter

filter-mapping
filter-namelocaleHelper/filter-name
url-pattern*.jsp/url-pattern
/filter-mapping

I hope this helps (making my sleepless nights worth :)))
cheers

 -Original Message-
 From: K. Harvatis [mailto:[EMAIL PROTECTED] 
 Sent: 12  2004 . 13:53
 To: [EMAIL PROTECTED]
 Subject: Encoding issues
 
 
 I run Tomcat 3.2 and it reports unsupported encoding 
 iso-8859-7 when using FORMs. As a result, servlets receive 
 garbage instead of data. Is there a workaround?
 
 
 Kostas Harvatis
 -
 National Center for Social Research - Directorate of Research 
 Support www.ekke.gr
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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



OT?:Can't include .js file on jsp page controlled by front contro ller servlet

2004-01-12 Thread Januski, Ken
I may be getting in over my head here as I'm really not all that familiar
with patterns. And I'm not sure that the pattern has anything to do with
problem. But I have a controller servlet through which all web requests must
pass. It has worked fine as is. Until I tried to include a .js file on a jsp
page. In that case it seems to either print it out to page, rather than
execute it, or it tries to use requestDispatcher portion of controller
servlet to forward/include it. Normally the requestDispatcher forwards
request to the requested page after it checks to see if user is logged in.
But now it seems to go into an infinite loop when forwarding. And  I guess
it's trying to use requestDispather.include because the .js resource is
included via a src='http:...'  request. I know that this is a very vague
question but I wonder if anyone has any clues as to where the problem might
lie or what I can start experimenting with.


Re: OT?:Can't include .js file on jsp page controlled by front contro ller servlet

2004-01-12 Thread pete . storey
A JavaScript include is a purely HTML thing - it shouldnt be processed in 
any way by the server.  You can do it by going:

script language=JavaScript src=xyz.js/script

cheers
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Januski, Ken [EMAIL PROTECTED]
12/01/2004 16:58
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:OT?:Can't include .js file on jsp page controlled 
by front contro ller servlet


I may be getting in over my head here as I'm really not all that familiar
with patterns. And I'm not sure that the pattern has anything to do with
problem. But I have a controller servlet through which all web requests 
must
pass. It has worked fine as is. Until I tried to include a .js file on a 
jsp
page. In that case it seems to either print it out to page, rather than
execute it, or it tries to use requestDispatcher portion of controller
servlet to forward/include it. Normally the requestDispatcher forwards
request to the requested page after it checks to see if user is logged in.
But now it seems to go into an infinite loop when forwarding. And  I guess
it's trying to use requestDispather.include because the .js resource is
included via a src='http:...'  request. I know that this is a very vague
question but I wonder if anyone has any clues as to where the problem 
might
lie or what I can start experimenting with.

email protected and scanned by AdvascanTM - keeping email useful - 
www.advascan.com





Re: WAS: tomcat 5.0.16 Replication

2004-01-12 Thread Jeanfrancois Arcand
BTW you can get the nightly build here:

http://cvs.apache.org/builds/jakarta-tomcat-5/nightly/

Instead of building tomcat from scratch :-)

-- Jeanfrancois

[EMAIL PROTECTED] wrote:

That sounds good.

I'll get the CVS head and check this out. We won't really put much 
stress on those server for a while, but as long as the behavior is the 
same. I buy! :)

btw: is there a pool config or is it hardcoded for now?

Thanks again Filip.

Jean-Philippe Belanger

Filip Hanik wrote:

Steve and Jean-Philippe,
I've been working on some more replication stuff and made a major change
that I think you might want to use.
I have added a third configuration to the parameter replicationMode,
replicationMode=pooled

With this setting it still is synchronized replication, but uses a 
pool of
sockets to replicate the data.
It improves performance a lot. Try it out, and let me know how it 
works for
you
You will notice the improvement under load.

of course, get latest from cvs first

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:05 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Hrmmm, perhaps I should reboot using the non-SMP kernel and try it. I'll
have to do that when I get back to the servers.
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 2:04 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
uname -a
machine #1) Linux draco 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 
2003 i686
i686 i386 GNU/Linux
machine #2) Linux scorpio 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 
2003
i686 i686 i386 GNU/Linux

java -version:
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
same on both

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:56 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
[EMAIL PROTECTED] bin]# uname -a
Linux rh9 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 
GNU/Linux

[EMAIL PROTECTED] bin]# java -version
java version 1.4.2_03
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-b02)
Java HotSpot(TM) Client VM (build 1.4.2_03-b02, mixed mode)
-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 11:05 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication
sun JDK 1.4.2 for Linux
Kernel 2.4.20-8smp
Tomcat 5.0.16 with catalina-cluster.jar from CVS head
Hrmmmare yours SMP servers? Could be something odd with synch if 
that is
the case.

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 1:01 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
interesting, mine doesn't work at all unless I set the LD_ASSUME_KERNEL

what VM (version and name) are you using?

Filip

-Original Message-
From: Steve Nelson [mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 10:59 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 5.0.16 Replication


Now that's really very strange. I am running RH9 and everything seems 
to go
through just fine.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:56 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
The replication message ACK never get back to the sender.
So my webpages never loads without that flag.
I think it is only needed under REDHAT 9.

Jean-Philippe Bélanger

Steve Nelson wrote:

 

I don't seem to need the ld_assume_kernel thing. What are the 
symptoms when
it is required?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, January 09, 2004 12:33 PM
To: Tomcat Users List
Subject: Re: tomcat 5.0.16 Replication
Just tried the CVS head and everything works with any CPU going crazy!
only if ld_assume_kernel is set to 2.4
One more question for you Filip, is the useDirtyFlag working at all? It
seams like even if it's set to true, the whole session gets replicated
after each request. :(
Jean-Philippe

[EMAIL PROTECTED] wrote:



  

Hurray for Fillip! :)

I'll get the CVS head for the module today and test this out.
Happy to see that it got fixed that quickly!
Thanks again and I'll let you know how it goes

Jean-Philippe

Filip Hanik wrote:





Jean-Philippe and Steve,
I fixed the bug, and tried replication on RH9. Immediately it didn't
work.
The problem is that when RH9 tries to write the ACK back to the NIO
socket,
it never reaches the other node. and times out after a long time.
I set LD_ASSUME_KERNEL=2.4 and it started to work

Filip

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 6:43 PM
To: Tomcat Users List
Subject: RE: tomcat 5.0.16 Replication
ok guys,
good news. The 100% cpu is totally my fault. I messed up on that one.
I was 

RE: How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-12 Thread Cox, Charlie
Actually Mozilla and Netscape can open Excel and Powerpoint based upon the
.xls or .ppt extension if the mime-type is not set. However IE only opens
them properly if you add the mime-type to web.xml. Otherwise you get a
browser full of garbled text. I find this most amusing. (They may have fixed
this in IE 6.0).

Charlie

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 11:30 AM
 To: [EMAIL PROTECTED]
 Subject: RE: How to serve static EXCEL or POWERPOINT files from Tomcat ?
 
 Wouldn't you just have a URL link to the actual files in your HTML?  The
 browser should be smart enough to open up the appropriate application and
 display it, since it will recognize its extension/mime-type.
 
 bruno
 
 -Original Message-
 From: ext Vitor Buitoni [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 10:07 AM
 To: Tomcat Users List
 Subject: Re: How to serve static EXCEL or POWERPOINT files from Tomcat ?
 
 
 Hi,
 
 Probably your browser is misconfigured. I don't think this is a tomcat
 issue.
 Check the file type associations in your browser and make sure that xls
 files are configured to be opened by msexcel.
 Also check the .doc file association, if it is opening properly, it
 should be configured to be opened by msword.
 
 Vitor
 
 Enrique MARTIN wrote:
 
 Hi,
 
 I am trying to serve .xls and .ppt files from tomcat so that the browser
 opens the right application (excel and powerpoint respectively) . What I
 obtain instead is that the byte content is sent by the web server and
 this
 content is then interpreted as text by the browser.
 For the .doc files, on the other hand, I have the desired behavior: word
 opens.
 
 Does anybody know how to obtain from tomcat this behavior?
 
 Thanks,
 Enrique.
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


two webapps in one page (dif. frames) with only one authenication dialog

2004-01-12 Thread R. Stransky
I have two different webapps in one page in different frames.
In each of the WEB-INF/web.xml there is the same login-config configuration 
like this:

  login-config
 auth-methodBASIC/auth-method
 realm-nameMy Account/realm-name
security-role
  role-nameusers/role-name
/security-role
  /login-config



But with this configuration there are two authentication dialogs for each of 
the frames. In both the same user/password combination has to be entered.

I it possible to have only one authentication dialogs for both applications ?

Rainer

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



Re: CGI servlet in tomcat

2004-01-12 Thread Martin Dengler
I've contacted the OP off-list to see if I can help as well.

On Fri, 2004-01-09 at 17:38, Tim Funk wrote:
 See the tomcat-dev and tomcat-user archives. There were some recent patches 
 to CGI Servlet and some discussions about it. I don't rember the specifics. 
 (Since I don't use cgi)
 
 Worst case scenario is you'll need to build from CVS or wait for the next 
 release depending on what was in those discussions.
 
 -Tim
 
 [EMAIL PROTECTED] wrote:
 
  Tim, 
  
  Thanks. I followed your instructions but I get the error CGI script not
  found or not specified.
  
  Any idea on what I should do? 
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


signature.asc
Description: This is a digitally signed message part


Re: OT?:Can't include .js file on jsp page controlled by front controller servlet

2004-01-12 Thread Howard Watson
What does the js in your JSP do and how are you including it? Some text
from your JSP might help.

 [EMAIL PROTECTED] 01/12/04 09:58AM 
I may be getting in over my head here as I'm really not all that
familiar
with patterns. And I'm not sure that the pattern has anything to do
with
problem. But I have a controller servlet through which all web requests
must
pass. It has worked fine as is. Until I tried to include a .js file on
a jsp
page. In that case it seems to either print it out to page, rather
than
execute it, or it tries to use requestDispatcher portion of controller
servlet to forward/include it. Normally the requestDispatcher forwards
request to the requested page after it checks to see if user is logged
in.
But now it seems to go into an infinite loop when forwarding. And  I
guess
it's trying to use requestDispather.include because the .js resource
is
included via a src='http:...'  request. I know that this is a very
vague
question but I wonder if anyone has any clues as to where the problem
might
lie or what I can start experimenting with.

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



RE: OT?:Can't include .js file on jsp page controlled by front co ntro ller servlet

2004-01-12 Thread Januski, Ken
Thanks,

The .js file is a downloaded calendar, i.e. I didn't write it myself. I'm
including it, per the instructions that came with it, using src=http:/
I believe I've tried including it using a system file path and still had
problems. But I'll give it another try just to make sure.

I guess I should have added that I'm also a beginner with javascript and
that might be part of the problem.

Ken

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 12:07 PM
To: Tomcat Users List
Subject: Re: OT?:Can't include .js file on jsp page controlled by front
contro ller servlet


A JavaScript include is a purely HTML thing - it shouldnt be processed in 
any way by the server.  You can do it by going:

script language=JavaScript src=xyz.js/script

cheers
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Januski, Ken [EMAIL PROTECTED]
12/01/2004 16:58
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:OT?:Can't include .js file on jsp page controlled 
by front contro ller servlet


I may be getting in over my head here as I'm really not all that familiar
with patterns. And I'm not sure that the pattern has anything to do with
problem. But I have a controller servlet through which all web requests 
must
pass. It has worked fine as is. Until I tried to include a .js file on a 
jsp
page. In that case it seems to either print it out to page, rather than
execute it, or it tries to use requestDispatcher portion of controller
servlet to forward/include it. Normally the requestDispatcher forwards
request to the requested page after it checks to see if user is logged in.
But now it seems to go into an infinite loop when forwarding. And  I guess
it's trying to use requestDispather.include because the .js resource is
included via a src='http:...'  request. I know that this is a very vague
question but I wonder if anyone has any clues as to where the problem 
might
lie or what I can start experimenting with.

email protected and scanned by AdvascanTM - keeping email useful - 
www.advascan.com





RE: Datasource - OK in app context - Fails in Global context

2004-01-12 Thread Keshav Sarin
On a different topic, do you have the database driver under WEB-INF/lib
or common/lib? The driver is not visible if put under WEB-INF/lib.

 [EMAIL PROTECTED] 01/12/04 08:38AM 
Yes, that sounds about right.  A manual restart of the server seems to
be required, which is what I meant by autodeployment not working.  As a
matter of fact, although I have not tried it yet, I would not be
surprised that a manual deploy to Tomcat would also require a server
restart.  

From experience with other application servers (JBoss, Weblogic,...)
autodeploying usually means that you do not need to manually restart,
since the server does whatever is needed to make the application
usable (of course, assuming that you have already successfully deployed
the application at least once before - it is not rare for servers to
choke on the first autodeploy).

Btw, I got the same SQLException because my app also interacts with the
database on initialization.  Which is why I got into the habit of
shutting down before deploying, when a database is involved.

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 12, 2004 9:25 AM
To: [EMAIL PROTECTED] 
Subject: RE: Datasource - OK in app context - Fails in Global context


When I tested 5.0 for auto deployment, the datasource JNDI context was
no longer available to the application and a SQLException was thrown
in
the logs (the app interacts with database on initialization). The
application worked fine after the server was restarted.

In 4.x, even sever restart wouldn't load the application. The
application directory had to be replaced. 5.0 doesn't have this issue.

 [EMAIL PROTECTED] 01/12/04 07:12AM 
I am using 5.0, so that should not be a problem.  

But are you sure the bug is fixed in 5.x?  Before this I had the
DataSource defined at the application context level, and I had noticed
that the application would crash if I redeployed without shutting
down,
deleting the deployed application directory, restarting.  A nuisance,
but usable, so I didn't worry about it.  

In any case, Autodeploying and deploying to a live server was
definitely not working on 5.0.  If a developer wants to investigate
and
fix this flaw I'd be happy to do some test deploys to troubleshoot, if
not, the workaround works just fine.

Bruno.

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 4:23 PM
To: [EMAIL PROTECTED] 
Subject: RE: Datasource - OK in app context - Fails in Global context


There's a catch though

In TC 4.x, if you put a app context entry in the server.xml, the app
doesn't get reloaded even if the war is overwritten or the app
directory
is deleted or the server is restarted. The fully expanded (war)
directory has to be overwritten to webapps directory and server needs
to
be restarted to make it work.

This bug is fixed in 5.x.

 [EMAIL PROTECTED] 01/09/04 02:44PM 
Bingo!!!  That was it.

It might be a good idea to add a paragraph to the JDBC DataSources
section of the documentation that mentions:

(a) That global datasources are defined in GlobalNamingResources of
server.xml
(b) The need for the ResourceLink in the application context .xml
file

I had the mistaken impression that anything placed in the server.xml
file was automatically applied to all application contexts.  I am sure
that others make the same mistake.

Thanks, I have been pulling my hair on this issue for almost a month.

Bruno

-Original Message-
From: ext Keshav Sarin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 09, 2004 3:22 PM
To: [EMAIL PROTECTED]; Melloni Bruno (Nokia-BI/Dallas)
Subject: Re: Datasource - OK in app context - Fails in Global context


Have you defined a reference to the global resource in the
ResourceLink element of the application context ?

 [EMAIL PROTECTED] 01/09/04 10:38AM 
I have an Oracle JDBC datasource that I defined in the Tomcat5 context
for an application (conf/Catalina/localhost/nwg.xml).  Works fine,
context file listed below.  

But when I tried to move the datasource to the GlobalNamingResources
section of server.xml so that it would be accessible to all apps it
gets
recognized in the admin console, but not by the application.  

What gives?  I thought a Global resource is supposed to function
identically to an application resource.

Any help would be greatly welcomed.


nwg.xml:
  Resource auth=Container name=rcfDS
type=javax.sql.DataSource/
  ResourceParams name=rcfDS
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
  nameurl/name
 
valuejdbc:oracle:thin:@hostNameHere:portNumberHere:dbNameHere/value
/parameter
parameter
  nameusername/name
  valueusernameHere/value
/parameter
parameter
  namepassword/name
  valueuserpasswordHere/value

RE: SSL failure with some browsers - Access denied by access control list

2004-01-12 Thread Bruno.Melloni
Bill,

Where do I find the place to set the debug level for 'org.apache.tomcat.net'?

I apologize for bugging you with this.  I already searched the Tomcat docs, the whole 
Tomcat 5.0 deployed tree, and the contents of the whole conf directory (including 
server.xml) but could not find where Tomcat hides the log4j config file (or for that 
matter even the commons-logging jar file!!!).  I know it must be somewhere since the 
server does actually log its messages, but I can't find it.  

I am familiar with log4j and my application uses it.  My application has log4j-1.2.8 
in its lib directory and its own application-specific log4j configuration file, and it 
all works wonderfully.  Except of course, for the usual annoying but innocuous 
well-known Tomcat bug (that no one knows how to fix) about the log4j:WARN No 
appenders could be found for logger (org.apache.catalina.session.ManagerBase) message.

Bruno

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of ext Bill Barker
Sent: Friday, January 09, 2004 9:33 PM
To: [EMAIL PROTECTED]
Subject: Re: SSL failure with some browsers - Access denied by access
control list


At a guess, those Mozilla versions don't support TLS, which is Tomcat's
default SSL protocol.  Whatever it is, try turning up your commons-logging
debug level for 'org.apache.tomcat.net' to 'debug'.  You should get plenty
of messages in your Tomcat logs to help you figure out why Tomcat doesn't
like Mozilla.

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Problem:

- Making any https call fails with the message Forbidden.  You were denied
access because: Access denied by access control list..
- The failure happens even accessing https://host:8443/tomcat-docs, while
a regular http call succeeds.
- The failure happens with some browsers (i.e.: Mozilla) but now with others
(i.e.: Internet Explorer, and most versions of Netscape).
- The failure appears to only happen when accessing a server on a different
box than the one where the browser is running.  It has not happened (so far)
on the same box as the client.
- The failure appears to happen with the Tomcat running on either Windows or
Solaris.
- The failure is not related to the JDK's Verisign Certificate issue
(expired Jan 7).  It was happening in December, and it was not corrected by
JDK 1.4.2_03.  Also, the certificates being used are self-signed according
to the Tomcat's default instructions.

Questions:

- Is this a configuration issue?  Or is it a deeper problem with either
Tomcat or the browsers?  I have not seen many postings out there on this
topic, so I assume (and hope) the problem is a dumb configuration snafu.

- Is there a know solution?  I have not found any on the Tomcat archives, on
the Mozilla archives, or even after several exchanges with the Mozilla
support people.

- Is there any additional information I can provide that might shed some
light as to why this is happening?

Environment details:
- Tomcat version: 5.
- JDK version 1.4.2 (both _02 and _03).
- Mozilla versions failing (at least 1.4 and 1.5).
- IE version succeeding (at least 6.0)
- Netscape version succeeding (at least 4.5, 4.7, and I believe one of the
7.x versions).

server.xml:
(feel free to comment if you see something wrong even if unrelated)

Server port=8105 shutdown=SHUTDOWN debug=0
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  GlobalNamingResources
Environment name=simpleValue type=java.lang.Integer value=30/
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources
  Service name=Catalina
Connector port=8089
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /
Connector port=8443
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
Connector port=8109
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
Engine name=Catalina defaultHost=localhost debug=0
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. suffix=.txt
  timestamp=true/
  Realm 

RE: SQLPLUS and TOMCAT conflict?

2004-01-12 Thread Goehring, Chuck Mr., RCI - San Diego
epyonne,

It is not sqlPlus that uses 8080.  xmldb is a new thing they came up with for 9i.  It 
takes 8080. Technically, it is sql*net rather than SQL*Plus and it should be using 
1521 by default.  If you have also installed Oracle's application server, it may also 
present a conflict.

For me, it was easiest to change the tomcat port, but if not needed, these other 
products should be disabled or removed for security  maintenance reasons.

Chuck

-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 6:39 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: SQLPLUS and TOMCAT conflict?


Port 8080 is the default port for many different application.  Oracle HTTP
server is one of them.  Therefore, it is not a good idea to use the default
8080 for your Tomcat installation.  You can always change it in the
server.xml file yourself.


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, January 12, 2004 08:26 AM
Subject: SQLPLUS and TOMCAT conflict?


 Hi All,

 I earlier did install Tomcat 5.0 but soon found out that i
 wasnt able to work with SQL PLUS. Everytime i try to login
 into SQL Plus i get the error message ORA 12571 : Tns
 packet writer failure.

 Since i didnt find any effective solution to avoid this
 problem, I soon had to uninstall the OS itself to enable me
 to work in SQL Plus.
 :-(

 Soon I came to know that both these applications use the
 same port-number 8080, so this conflict makes SQL Plus
 inoperable.

 Is there any way through which I can change the port-number
 of Apache, so that I can work in both these applications
 without any problems?

 Please help.

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



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


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



Re: Tomcat don't receive the right URL from mod_jk2 (or mod_jk) with IIS 6.0 on Win 2003 Server?

2004-01-12 Thread Spam
Hi Daniel,

Thank you so much. It's working!

My problem was around:
Default Web Site Properties (right click) isapi Filters: jakarta has 
a green arrow.
Global Websites Properties: No jakarta isapi Filter!
An isapi filter was defined for global website.

It's working with both Tomcat alone and JBoss (with tomcat embedded).

Best regards.
Johann DUPUIS
Daniel Schmitt wrote:

Hi Johann,
You did not make a fresh install as i can see in your log file. My 
knowledge is only enough to show you a basic setup on a clean 
computer, not to treat you.

I'm using Tomcat 4 (I can reach http://localhost:8080/examples/ with 
no error).
Try a jsp e.g.
http://localhost:8080/examples/jsp/snp/snoop.jsp
so you can be sure the sdk is installed properly and javac is working.
we build an installer which automates all steps at:
http://www.shiftomat.com/opensource/

Whatever I've tried your installer, nice one but it still not working 
with an error that looks like the one I have with my previous 
installation.
(Before try the installation I've removed my jakarta virtual 
directory to let the installer do its job)


This is not enough. The installer is not brave enough to overide your 
handmade reg-entries and property files.

I'm totally lost. Especially I don't understand why
   --- HttpFilterProc check if [/jakarta/isapi_redirector2.dll] 
is pointing to the web-inf directory
although before the mapping was matching
    HttpFilterProc [/examples/] is a servlet url - should 
redirect to lb:lb


isapi_redirector2.dll should not be in your web-inf directory! The 
correct place is
C:\Dvp\Tomcat 4.1\native\i386
in your setup!

so step by step what the installer did.
1.) copies the newest jk2.02 build to C:\Dvp\Tomcat 4.1\native\i386
creates a virtual directory. Check with IIS Manager: Web Sites - 
Default Web Site - jakarta. isapi_redirector2.dll is the one and only 
file in this dir. vdir jakarta points to C:\Dvp\Tomcat 4.1\native\i386 
and has executables permissions.

2.)Default Web Site Properties (right click) isapi Filters: jakarta 
has a green arrow.
Global Websites Properties: No jakarta isapi Filter!

3) Web Service Extensions - Jakarta Isapi Redirector Properties 
(right click) C:\Dvp\Tomcat 4.1\native\i386\isapi_redirector2.dll
C:\Dvp\Tomcat 4.1\conf\jk2.properties
C:\Dvp\Tomcat 4.1\conf\workers2.properties
C:\Dvp\Tomcat 4.1\temp\jk2.shm
all 4 files allowed.

Additional File Security (with file explorer not iis manager)
C:\Dvp\Tomcat 4.1\conf\jk2.properties - Buildin Users - write 
permission.
C:\Dvp\Tomcat 4.1\temp\jk2.shm - Buildin Users - write permission.

 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta 
Isapi Redirector\2.0]
 workersFile=C:\\Dvp\\Tomcat4.1\\conf\\workers2.properties
 extensionUri=/jakarta/isapi_redirector2.dll
 logLevel=DEBUG
 serverRoot=C:\\Dvp\\Tomcat4.1
 authComplete=0
 threadPool=20
 @=C:\\Dvp\\Tomcat4.1

your registry is ok, logLevel is not written by the installer, imho it 
is outdated.

After installation the C:\Dvp\Tomcat 4.1\temp\jk2.shm has 0 bytes.
the very, very first time you call
http://localhost/examples/jsp/snp/snoop.jsp
it took a while an the connector is building the jk2.shm file. you get 
a page cannot displayed. After that the shm is 1 meg big and the 
connector is working.






Here is the logs and configuration with Tomcat 4.1.29 (fresh install) 
and IIS 6 on Win 2003 Server:
( info ) [jk_isapi_plugin.c (612)]  Set serverRoot 
Z:\usr\jakarta-tomcat-4.1.18\jakarta-tomcat-4.1.18


fresh install? ;-)


( info ) [jk_logger_file.c (224)]  Level DEBUG 0
( info ) [jk_logger_file.c (184)]  Initializing log file 
C:/usr/TMS/AppServer/ApplicationServer/IIS/logs/isapi.log
(debug ) [jk_uriMap.c (377)]  uriMap.init() Fixing Host *
(debug ) [jk_uriMap.c (464)]  uriMap: fix uri /examples/* context 
(null) host *
(debug ) [jk_uriMap.c (464)]  uriMap: fix uri (null) context (null) 
host *
(debug ) [jk_uriMap.c (464)]  uriMap: fix uri / context / host *
( info ) [jk_workerEnv.c (403)]  workerEnv.init() ok 
C:\Dvp\Tomcat4.1\conf\workers2.properties
( info ) [jk_isapi_plugin.c (612)]  Set serverRoot C:\Dvp\Tomcat4.1
(debug ) [jk_isapi_plugin.c (616)]  Using registry.
(debug ) [jk_isapi_plugin.c (618)]  Using extension uri 
/jakarta/isapi_redirector2.dll.
(debug ) [jk_isapi_plugin.c (619)]  Using server root C:\Dvp\Tomcat4.1.
(debug ) [jk_isapi_plugin.c (620)]  Using worker file 
C:\Dvp\Tomcat4.1\conf\workers2.properties.
(debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc started
(debug ) [jk_isapi_plugin.c (346)]  In HttpFilterProc Virtual Host 
redirection of localhost : 80
(debug ) [jk_isapi_plugin.c (355)]  HttpFilterProc [/examples/] is a 
servlet url - should redirect to lb:lb
(debug ) [jk_isapi_plugin.c (421)]  HttpFilterProc check if 
[/examples/] is pointing to the web-inf directory
(debug ) [jk_isapi_plugin.c (288)]  HttpFilterProc started


seems to be ok

(debug ) [jk_isapi_plugin.c (346)]  In 

JNI loadLibrary

2004-01-12 Thread Maxime Colas des Francs
Hi

Tomcat 5.0.16 release-note says :

... the application must also ensure that the library is
not loaded more than once.  If the above code were placed in a class inside
the web application (i.e. under /WEB-INF/classes or /WEB-INF/lib), and the
application were reloaded, the loadLibrary() call would be attempted a second
time.
To avoid this problem, place classes that load native libraries outside of the
web application, and ensure that the loadLibrary() call is executed only once
during the lifetime of a particular JVM.
How can i do that ?

thks for help 

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


Replication question

2004-01-12 Thread John Sidney-Woollett
Hi

For replication purposes (2 or more tcs in a cluster), how do you let the
sessionlistener know to re-replicate your session after you make a change
to a property of an object which is bound to the session, but where the
session attribute + object iself remains unchanged?

For example, if I bind a (lightweight and serializable) class to the
session and change one of its properties, how do I notify Tomcat that I
want the session replicated again. Probably as far as TC and the
replication code is concerned it doesn't need to do anything because no
attribute changes are recorded.

Do I just call session.setAttribute(MyObject, myObject) again (where the
myObject reference is the same as before), or do I have to remove and then
re-add the attribute? Or is there something that I have missed?

Also, if you add many attributes during a single servlet call, is the
replication buffered and delayed until the servlet sends its response, or
is the replication attempted each time the session's attributes are
changed?

When does anyone think that the recent replication fixes will make it into
the next official release?

Thanks for any info.

John Sidney-Woollett

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



Re: Replication question

2004-01-12 Thread jean-philippe . belanger
You can either use the dirtyFlag=false to automaticly replicate the 
WHOLE session after each access.
Or if the dirtyFlag is true, only if at least one setAttribute (or 
removeAttribute) was done on the session that it will get replicated.

use whichever is the easiest and more flexible for you

Jean-Philippe Bélanger
CGI
John Sidney-Woollett wrote:

Hi

For replication purposes (2 or more tcs in a cluster), how do you let the
sessionlistener know to re-replicate your session after you make a change
to a property of an object which is bound to the session, but where the
session attribute + object iself remains unchanged?
For example, if I bind a (lightweight and serializable) class to the
session and change one of its properties, how do I notify Tomcat that I
want the session replicated again. Probably as far as TC and the
replication code is concerned it doesn't need to do anything because no
attribute changes are recorded.
Do I just call session.setAttribute(MyObject, myObject) again (where the
myObject reference is the same as before), or do I have to remove and then
re-add the attribute? Or is there something that I have missed?
Also, if you add many attributes during a single servlet call, is the
replication buffered and delayed until the servlet sends its response, or
is the replication attempted each time the session's attributes are
changed?
When does anyone think that the recent replication fixes will make it into
the next official release?
Thanks for any info.

John Sidney-Woollett

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

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


RE: OT?:Can't include .js file on jsp page controlled by front co ntro ller servlet

2004-01-12 Thread Januski, Ken
I've changed javascript source from 'src =http:... ' to
src=%=request.getContextPath()%/scripts/datetimepicker.js. But I find
that the requestDispather is still being called, and then it can't find the
js. file. What I don't understand is why, when the calendar that calls the
javascript is clicked, that the file is not just included and the javascript
executed rather than the servlet calling requestDispatcher.

Thanks for any help. I realize that this is getting a bit off a specific TC
topic. I've just been wrestling with it and would like to figure it out.

Ken

-Original Message-
From: Januski, Ken [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 12:25 PM
To: Tomcat Users List
Subject: RE: OT?:Can't include .js file on jsp page controlled by front
co ntro ller servlet


Thanks,

The .js file is a downloaded calendar, i.e. I didn't write it myself. I'm
including it, per the instructions that came with it, using src=http:/
I believe I've tried including it using a system file path and still had
problems. But I'll give it another try just to make sure.

I guess I should have added that I'm also a beginner with javascript and
that might be part of the problem.

Ken

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 12:07 PM
To: Tomcat Users List
Subject: Re: OT?:Can't include .js file on jsp page controlled by front
contro ller servlet


A JavaScript include is a purely HTML thing - it shouldnt be processed in 
any way by the server.  You can do it by going:

script language=JavaScript src=xyz.js/script

cheers
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Januski, Ken [EMAIL PROTECTED]
12/01/2004 16:58
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:OT?:Can't include .js file on jsp page controlled 
by front contro ller servlet


I may be getting in over my head here as I'm really not all that familiar
with patterns. And I'm not sure that the pattern has anything to do with
problem. But I have a controller servlet through which all web requests 
must
pass. It has worked fine as is. Until I tried to include a .js file on a 
jsp
page. In that case it seems to either print it out to page, rather than
execute it, or it tries to use requestDispatcher portion of controller
servlet to forward/include it. Normally the requestDispatcher forwards
request to the requested page after it checks to see if user is logged in.
But now it seems to go into an infinite loop when forwarding. And  I guess
it's trying to use requestDispather.include because the .js resource is
included via a src='http:...'  request. I know that this is a very vague
question but I wonder if anyone has any clues as to where the problem 
might
lie or what I can start experimenting with.

email protected and scanned by AdvascanTM - keeping email useful - 
www.advascan.com





Re: Problems running pre-compiled JSP classes when in subdirectories

2004-01-12 Thread Jules Gosnell
Larry Isaacs wrote:
There is a choice when pre-compiling JSPs.

1. Compile to real servlets.  This involves precompiling
   the JSPs to classes and adding mappings to the web.xml
   so they execute just like other servlets.  This
   cuts the JspServlet out of the picture and the JSPs
   are executed the same as other servlets.
2. Pre-populate Tomcat's work directory.  This also involves
   precompiling the JSPs to classes, under the work
   directory, but continues to use the JspServlet to execute
   the JSPs.
The critical point is that the expected packages to which the
JSPs are compiled are different between these two choices.
The JspServlet expects every JSP to be compiled into the
org.apache.jsp package.  Thus, every index.jsp is expected
to be compiled as the org.apache.jsp.index_jsp class, even though
the class file may be in various subdirectories, for example
dir.  The JspServlet avoids the obvious naming collisions
by loading each JSP class into a separate classloader. (Nice
trick, but can make life tough for debuggers.)
For choice 1, the JSPs need to be compiled into a directory
structure where the package matches the directory structure
in the standard Java way.  Each JSP's fully qualified class
name would need to be unique and entered into the web.xml.
I have a requirement for this precompilation mode (1) on TC 4.1.29.

5.0.x seems to have been patched to do this (preserve the 
directory/package structure of the original jsp src) , but fixes do not 
appear to have been merged back into 4.1.x and are unfortunately tangled 
up with a number of other changes to 5.0.x.

I guess I am therefore looking for a patch to the 4.1.x branch. I'd be 
very grateful if anyone here would furnish me with one. Otherwise I 
shall probably have to put one together myself, in which case I shall 
post it here if anyone is interested.

Thanks for your time,

Jules


The error below appears that the index.jsp in question has been
compiled sort of per choice 1, but is being run under choice 2.
The class file appears to be at the right location under the work
directory, but it was compiled to the wrong package, i.e.
the package includes dir, when it shouldn't.
I don't use JspC, so I can't help much with respect to its use.
I'm currently not sure about its usability state in the various
Tomcat releases. In the past, it has had difficulting getting the
package right in the context of these two choices.  I would think
that in the current releases, it can be coaxed into doing the
right thing for one or both of these choices, but I can't say
much more than that.
However, I have used the Ant jspc task along with the javac task
to accomplish choice 2 without much difficulty in a number of
different Tomcat 4.1 releases.  I would assume there would be no
problems as well in the current Tomcat 5 release, but I haven't
actually tried it yet.
Cheers,
Larry

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 07, 2004 8:46 AM
To: Tomcat Users List
Subject: Re: Problems running pre-compiled JSP classes when 
in subdirectories

The generated servlets are not put in a package. When Tomcat 
is compiling
JSP it is put in org.apache.jsp. How to set this in the jspc task.
The files are generated as usual in the work directory in the 
same structure
as Tomcat itself compiles JSP files.

Antony Paul
- Original Message -
From: Ralph Einfeldt [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 7:06 PM
Subject: RE: Problems running pre-compiled JSP classes when in
subdirectories
May be you should have a look at the following:

- the package statements in the generated source files
- the file structure of the generate class files

-Original Message-
From: Jay Glanville [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 2:20 PM
To: 'Tomcat Users List'
Subject: Problems running pre-compiled JSP classes when in
subdirectories


Here's my application's background.  I have two files:
 WEBROOT/index.jsp
 WEBROOT/dir/index.jsp
java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp 
(wrong name:

org/apache/jsp/dir/index_jsp)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
at java.lang.ClassLoader.defineClass(ClassLoader.java:448)
at
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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




--
/**
 * Jules Gosnell
 * Partner
 * Core Developers Network (Europe)
 **/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat 5 and oracle 8i

2004-01-12 Thread Shapira, Yoav

Howdy,
The oracle drivers don't care what servlet container you're running.
We've been using oracle 8i with tomcat 5 for a long time now, using
oracle's normal drivers (ojdbc14.jar is the file name).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jeremy Martinez [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 11:29 AM
To: [EMAIL PROTECTED]
Subject: tomcat 5 and oracle 8i

I am running tomcat 5 and java 1.4.  I am attempting to connect to an
oracle 8i database.   However, the drivers listed on oracles download
site
for the jdbc's do not have this combination of tomcat5, java 1.4 and
oracle
8i.   Has anyone got this combination working?  And if so, was there
anything special that had to be done to make it work?

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




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


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



communication issue between .jsp and servlet

2004-01-12 Thread jon yeargers
Im hoping to restrict access to a servlet object by setting a session
attribute in the valid .jsp and looking for it in the called servlet.
Unfortunately the object doesn't seem to be transferring properly.
 
Are there issues with using:
 
%
HttpSession sessionObj = request.getSession();
sessionObj.setAttribute(something, new Boolean(true));
 
/*** some code here to call servlet - form or similar **/
%
 
in my .jsp and then calling:
 
 
protected void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, java.io.IOException
{
HttpSession sessionObj = request.getSession();
Boolean b = (Boolean)sessionObj.getAttribute(something);

 
}
 
 
For some reason I keep turning up a null obj in the servlet. Ive tried
enumerating all the sessionObj and its all turning up null.
 
This seems pretty straightforward.. what am I doing wrong?


RE: How to serve static EXCEL or POWERPOINT files from Tomcat ?

2004-01-12 Thread Shapira, Yoav

Howdy,
Same as any container: add the content-disposition header to your
response.  Google or search this list's archives.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Enrique MARTIN [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 5:58 AM
To: [EMAIL PROTECTED]
Subject: How to serve static EXCEL or POWERPOINT files from Tomcat ?

Hi,

I am trying to serve .xls and .ppt files from tomcat so that the
browser
opens the right application (excel and powerpoint respectively) . What
I
obtain instead is that the byte content is sent by the web server and
this
content is then interpreted as text by the browser.
For the .doc files, on the other hand, I have the desired behavior:
word
opens.

Does anybody know how to obtain from tomcat this behavior?

Thanks,
Enrique.



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


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



RE: communication issue between .jsp and servlet

2004-01-12 Thread Shapira, Yoav

Howdy,
Are you sure it's the same session?  (Check it's ID in the JSP and
servlet).

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: jon yeargers [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 12:57 PM
To: [EMAIL PROTECTED]
Subject: communication issue between .jsp and servlet

Im hoping to restrict access to a servlet object by setting a session
attribute in the valid .jsp and looking for it in the called servlet.
Unfortunately the object doesn't seem to be transferring properly.

Are there issues with using:

%
HttpSession sessionObj = request.getSession();
sessionObj.setAttribute(something, new Boolean(true));

/*** some code here to call servlet - form or similar **/
%

in my .jsp and then calling:


protected void doPost(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, java.io.IOException
{
HttpSession sessionObj = request.getSession();
Boolean b = (Boolean)sessionObj.getAttribute(something);


}


For some reason I keep turning up a null obj in the servlet. Ive tried
enumerating all the sessionObj and its all turning up null.

This seems pretty straightforward.. what am I doing wrong?



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


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



RE: OT?:Can't include .js file on jsp page controlled by front co ntro ller servlet

2004-01-12 Thread Mike Curwen
Are you trying to include the javascript *after* a user clicks on a link
to launch javascript?
 
The request dispatcher is being called when you load the page, or when
you click the little calendar icon to invoke the javascript?

 -Original Message-
 From: Januski, Ken [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 12, 2004 11:43 AM
 To: Tomcat Users List
 Subject: RE: OT?:Can't include .js file on jsp page 
 controlled by front co ntro ller servlet
 
 
 I've changed javascript source from 'src =http:... ' to 
 src=%=request.getContextPath()%/scripts/datetimepicker.js
 . But I find that the requestDispather is still being called, 
 and then it can't find the js. file. What I don't understand 
 is why, when the calendar that calls the javascript is 
 clicked, that the file is not just included and the 
 javascript executed rather than the servlet calling requestDispatcher.
 
 Thanks for any help. I realize that this is getting a bit off 
 a specific TC topic. I've just been wrestling with it and 
 would like to figure it out.
 
 Ken
 
 -Original Message-
 From: Januski, Ken [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 12:25 PM
 To: Tomcat Users List
 Subject: RE: OT?:Can't include .js file on jsp page 
 controlled by front co ntro ller servlet
 
 
 Thanks,
 
 The .js file is a downloaded calendar, i.e. I didn't write it 
 myself. I'm including it, per the instructions that came with 
 it, using src=http:/ I believe I've tried including it 
 using a system file path and still had problems. But I'll 
 give it another try just to make sure.
 
 I guess I should have added that I'm also a beginner with 
 javascript and that might be part of the problem.
 
 Ken
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 12:07 PM
 To: Tomcat Users List
 Subject: Re: OT?:Can't include .js file on jsp page 
 controlled by front contro ller servlet
 
 
 A JavaScript include is a purely HTML thing - it shouldnt be 
 processed in 
 any way by the server.  You can do it by going:
 
 script language=JavaScript src=xyz.js/script
 
 cheers
 Pete
 
 Kiss Technologies
 
http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Januski, Ken [EMAIL PROTECTED]
12/01/2004 16:58
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:OT?:Can't include .js file on jsp page
controlled 
by front contro ller servlet


I may be getting in over my head here as I'm really not all that
familiar with patterns. And I'm not sure that the pattern has anything
to do with problem. But I have a controller servlet through which all
web requests 
must
pass. It has worked fine as is. Until I tried to include a .js file on a

jsp
page. In that case it seems to either print it out to page, rather than
execute it, or it tries to use requestDispatcher portion of controller
servlet to forward/include it. Normally the requestDispatcher forwards
request to the requested page after it checks to see if user is logged
in. But now it seems to go into an infinite loop when forwarding. And  I
guess it's trying to use requestDispather.include because the .js
resource is included via a src='http:...'  request. I know that this
is a very vague question but I wonder if anyone has any clues as to
where the problem 
might
lie or what I can start experimenting with.

email protected and scanned by AdvascanTM - keeping email useful - 
www.advascan.com





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



Re: communication issue between .jsp and servlet

2004-01-12 Thread Ben Souther
Also make sure that you have session cookies enabled in your browser.


On Monday 12 January 2004 01:00 pm, Shapira, Yoav wrote:
 Howdy,
 Are you sure it's the same session?  (Check it's ID in the JSP and
 servlet).

 Yoav Shapira
 Millennium ChemInformatics

 -Original Message-

 From: jon yeargers [mailto:[EMAIL PROTECTED]

 Sent: Monday, January 12, 2004 12:57 PM
 To: [EMAIL PROTECTED]
 Subject: communication issue between .jsp and servlet
 
 Im hoping to restrict access to a servlet object by setting a session
 attribute in the valid .jsp and looking for it in the called servlet.
 Unfortunately the object doesn't seem to be transferring properly.
 
 Are there issues with using:
 
 %
 HttpSession sessionObj = request.getSession();
 sessionObj.setAttribute(something, new Boolean(true));
 
 /*** some code here to call servlet - form or similar **/
 %
 
 in my .jsp and then calling:
 
 
 protected void doPost(HttpServletRequest request, HttpServletResponse
 response)
 throws ServletException, java.io.IOException
 {
 HttpSession sessionObj = request.getSession();
 Boolean b = (Boolean)sessionObj.getAttribute(something);
 
 
 }
 
 
 For some reason I keep turning up a null obj in the servlet. Ive tried
 enumerating all the sessionObj and its all turning up null.
 
 This seems pretty straightforward.. what am I doing wrong?

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


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

-- 
Ben Souther
F.W. Davison  Company, Inc.



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



RE: OT?:Can't include .js file on jsp page controlled by front co ntro ller servlet

2004-01-12 Thread Mike Curwen
Also, if you're using an anchor tag that has # in it, then using
'onclick', change that to:

href=javascript:
 
The # will cause the page to reload, and because it's a JSP, you might
be invoking something you're not wanting to invoke. (like a login
check).
 
We had this exact problem when using mat kruse's calendar javascript
(because I think his examples use #, but for us it was causing
problems).

 -Original Message-
 From: Januski, Ken [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 12, 2004 11:43 AM
 To: Tomcat Users List
 Subject: RE: OT?:Can't include .js file on jsp page 
 controlled by front co ntro ller servlet
 
 
 I've changed javascript source from 'src =http:... ' to 
 src=%=request.getContextPath()%/scripts/datetimepicker.js
 . But I find that the requestDispather is still being called, 
 and then it can't find the js. file. What I don't understand 
 is why, when the calendar that calls the javascript is 
 clicked, that the file is not just included and the 
 javascript executed rather than the servlet calling requestDispatcher.
 
 Thanks for any help. I realize that this is getting a bit off 
 a specific TC topic. I've just been wrestling with it and 
 would like to figure it out.
 
 Ken
 
 -Original Message-
 From: Januski, Ken [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 12:25 PM
 To: Tomcat Users List
 Subject: RE: OT?:Can't include .js file on jsp page 
 controlled by front co ntro ller servlet
 
 
 Thanks,
 
 The .js file is a downloaded calendar, i.e. I didn't write it 
 myself. I'm including it, per the instructions that came with 
 it, using src=http:/ I believe I've tried including it 
 using a system file path and still had problems. But I'll 
 give it another try just to make sure.
 
 I guess I should have added that I'm also a beginner with 
 javascript and that might be part of the problem.
 
 Ken
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 12, 2004 12:07 PM
 To: Tomcat Users List
 Subject: Re: OT?:Can't include .js file on jsp page 
 controlled by front contro ller servlet
 
 
 A JavaScript include is a purely HTML thing - it shouldnt be 
 processed in 
 any way by the server.  You can do it by going:
 
 script language=JavaScript src=xyz.js/script
 
 cheers
 Pete
 
 Kiss Technologies
 
http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Januski, Ken [EMAIL PROTECTED]
12/01/2004 16:58
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:OT?:Can't include .js file on jsp page
controlled 
by front contro ller servlet


I may be getting in over my head here as I'm really not all that
familiar with patterns. And I'm not sure that the pattern has anything
to do with problem. But I have a controller servlet through which all
web requests 
must
pass. It has worked fine as is. Until I tried to include a .js file on a

jsp
page. In that case it seems to either print it out to page, rather than
execute it, or it tries to use requestDispatcher portion of controller
servlet to forward/include it. Normally the requestDispatcher forwards
request to the requested page after it checks to see if user is logged
in. But now it seems to go into an infinite loop when forwarding. And  I
guess it's trying to use requestDispather.include because the .js
resource is included via a src='http:...'  request. I know that this
is a very vague question but I wonder if anyone has any clues as to
where the problem 
might
lie or what I can start experimenting with.

email protected and scanned by AdvascanTM - keeping email useful - 
www.advascan.com





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



  1   2   >