Re: Mail Authentification

2004-06-27 Thread info

Partial message is available.


 Attachment: No Virus found
 Norton AntiVirus - www.symantec.de

**
**
WARNING: WinProxy has detected a virus in file
attached to this e-mail message!
The attachment has been automatically removed to
protect your network.
WinProxy Administrator: [EMAIL PROTECTED]
06/27/04 10:30:42 
WinProxy (Version 5.1 R1d (5.0.50.10)) - http://www.Ositis.com/
Antivirus Vendor: Panda Software
Scan Engine Version: 2.10.1.6_3.1.5.211
Pattern File Version: 3.79587 (Timestamp: 2004/06/26 08:02:21)

Machine name: SERVER
Machine IP address: 217.139.38.67
Server: 209.237.227.199
Client: dark
Protocol: SMTP
Virus: W32/Netsky.P.worm found!
Attachment: document.zip
**
**

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

Information

2004-05-07 Thread info


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Confirmation

2004-05-05 Thread Info


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Information

2004-04-24 Thread info


Norton AntiVirus gelöscht1.txt
Description: plain/text
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Re: jsp compile - default constructor

2004-03-28 Thread info
Sehr geehrte Damen und Herren

Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich 
bearbeiten.

Mit internetten Grüssen

Ihr Shoppingcity.ch-Team



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



Re: Re: I know this is a stupid question

2004-03-28 Thread info
Sehr geehrte Damen und Herren

Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich 
bearbeiten.

Mit internetten Grüssen

Ihr Shoppingcity.ch-Team



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



Re: Re: Why does free memory(not the heap) continue to drop with Tomcat4.1.29, Linux and Jrockit?

2004-03-28 Thread info
Sehr geehrte Damen und Herren

Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich 
bearbeiten.

Mit internetten Grüssen

Ihr Shoppingcity.ch-Team



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



Re: Re: I know this is a stupid question

2004-03-28 Thread info
Sehr geehrte Damen und Herren

Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich 
bearbeiten.

Mit internetten Grüssen

Ihr Shoppingcity.ch-Team



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



Re: mod_jk2 problem [OK]

2004-03-28 Thread info
Sehr geehrte Damen und Herren

Wir haben Ihre Nachricht dankend erhalten und werden diese so schnell wie möglich 
bearbeiten.

Mit internetten Grüssen

Ihr Shoppingcity.ch-Team



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



Web developer's problem

2003-03-17 Thread info
Hello,
We have 6 computers in a network and one of the PC is Win 2000 Server and all other 
PC's are with Win 98. We have installed Tomcat 4.0.6 in the server so that all other 
PC's can share it.

THE PROBLEM
When we upload a new file to the server(tomcat), we dont get the new files out put, 
instead we get old files output only. 
e.g a.jsp has been updated which is already present in the server, but dont show the 
updated file and only show the old file. 

Can any one help us figure out the exact problem? And how to over come it?

Thanks
Web Developers


Re: Web developer's problem

2003-03-17 Thread info
Hello,
Sorry, that didn't solve my problem. Is there any way to remove the cache
files in the server or clear the buffer?

Thanks

- Original Message -
From: Eric Gauthier [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, March 17, 2003 9:02 PM
Subject: RE: Web developer's problem


 You might have a context in your server.xml config file which points to a
 previous version of your deployment. May be in
 %TOMCAT_HOME%/work/Standalone/localhost/yourapp or something like that.

 It depends on how you deploy your apps but I removed the context in my
 server.xml and it works fine.

 Hope it helps

 regards
 Eric

 At 16:20 2003-03-17 +0100, you wrote:
 Hi,
 I used to have that problem, and I solved it restarting Tomcat each time
it
 didn't show the new code. But this was in my own PC. I don't know if you
can
 be restarting your server this way.
 Anyway, try this other solution, sometimes works in mine: delete all the
 files generated by Tomcat when it receives a JSP. I mean, delete the
servlet
 code in which Tomcat transform the JSP files (both the .java and .class).
 They are placed in Tomcat_folder\work\DEFAULT\ROOT\your_app_folder,
at
 least in my PC.
 
 Hope it helps,
 Dolores
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Monday, 17 March, 2003 14:12
 To: [EMAIL PROTECTED]
 Subject: Web developer's problem
 
 
 Hello,
 We have 6 computers in a network and one of the PC is Win 2000 Server and
 all other PC's are with Win 98. We have installed Tomcat 4.0.6 in the
server
 so that all other PC's can share it.
 
 THE PROBLEM
 When we upload a new file to the server(tomcat), we dont get the new
files
 out put, instead we get old files output only.
 e.g a.jsp has been updated which is already present in the server, but
dont
 show the updated file and only show the old file.
 
 Can any one help us figure out the exact problem? And how to over come
it?
 
 Thanks
 Web Developers
 
 
 -
 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]



Joey: First mobile J2EE application server for PocketPC and J2ME

2003-02-04 Thread info
Hello,

We are pleased to announce the release of Joey 1.0.  Joey is the world's
first mobile J2EE application server that runs in disconnected mode on J2ME
and J2SE devices, including Compaq iPaq and other PocketPC 2002 devices,
Sharp Zaurus Linux PDA, and all Windows/Linux laptops.

What is Joey?
--
* Joey is the first ever J2EE application server that runs on PDAs, laptops
and mobile phones.
* Joey runs all your servlets and JSPs - in connected and disconnected
modes - on PDAs and laptops.
* You develop your servlets and JSPs using standard development environments
(IDEs).  Joey does not require any special development tools.
* Joey is easy to deploy and run on all platforms.

Download Joey today at http://www.joeysoft.com.

Why Joey?
---
Enterprise web applications today remain beholden to 24x7 network
connections that confine them to desktop computers. When disconnected, the
applications are unusable.  Even with more processing power and better local
area network connectivity, PDAs, phones and network appliances are unable to
communicate with corporate applications reliably.   Developing the same
application across multiple platforms in a disconnected world requires
multiple point-solutions and parallel projects, multiplying complexity and
costs.

Joey is a key infrastructure component for all enterprises that want to
operate web applications seamlessly, efficiently, reliably and
cost-effectively on a vast range of platforms in both connected and
disconnected mode, in fixed and mobile environments.

With Joey, you can:
* Build enterprise applications once and deploy them across all platforms --
with one application, enable mobile phones, PDAs, barcode scanners, GPS
receivers, TV set-top boxes, toasters and more!
* Run all web-based applications in both connected and disconnected modes
* Take your enterprise portal with you on your personal device
* Simplify application development with your existing J2EE infrastructure
* Get more out of your J2EE investments

Specifications
--
 Joey 1.0
* Runs on: PersonalJava (J2ME), Java 2 Standard Edition (J2SE)
* Operating Systems: PocketPC (Windows CE), Linux and all flavors of Windows
* J2EE Servlet Specification 2.3 compliant
* Footprint: 700 KB
* Devices: Compaq iPaq and other PocketPC 2002 devices, Sharp Zaurus Linux
PDA, all Windows/Linux laptops

For questions, please contact [EMAIL PROTECTED]

Thanks,
Joeysoft Team


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




read only context why??

2002-12-02 Thread anywhere-info
does any one knows the rationale for making InitialContext() read only 
in tomcat ?


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



Re: SSLPeerUnverifiedException?

2002-12-01 Thread anywhere-info
download tomcat-util from gump.covalent.com/jars/latest/tomcat-connector

Randy Secrist wrote:


I am getting a whole lot of these warnings in my stderr.log each time a client connects via SSL.  I have been using SSL since tomcat 3.x - and have never had any problems.  Since I recently switched to 4.1.12 - I am assuming this is a coyote related Http11Processor bug?

I have noticed that it does even after following the SSL config howto.  If the following is a meaningless error, it would be nice to shut it off so stderr.log doesn't grow so huge.

WARNING: Exception getting SSL attributes 
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA6275)
at org.apache.tomcat.util.net.JSSESupport.getPeerCertificateChain(JSSESupport.java:118)
at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:543)
at org.apache.coyote.Response.action(Response.java:216)
at org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:314)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)


Randy

 


--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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



Re: Servlet unavailable discussion

2002-12-01 Thread anywhere-info
could you be you dint un-comment the invoker servlet in web.xml of ur tomcat

Paul Yunusov wrote:


Hello,

I  was wondering what, in general, can cause a servlet to be unavailable as 
reported by a StandardWrapperValve of Tomcat 4.1.12.
Thanks,
Paul

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

 


--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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



rationale for making jndi context read only?

2002-11-30 Thread anywhere-info
Does any one knows  the rationale for making 
InitialContext(java:comp/env) read only ?


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



Re: How do I specify default localtion of .keystore file?

2002-11-30 Thread anywhere-info
As far as i know you dont need to specify default location. 
keystoreFile attribute is to be used only if file is stored in location 
besides default.

Peter Lee wrote:

How do I specify default localtion of .keystore file in the server.xml file?

   !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
   !
   Connector className=org.apache.coyote.tomcat4.CoyoteConnector
  port=443 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0 scheme=https secure=true
  useURIValidationHack=false
 Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
  clientAuth=false protocol=TLS 
  keystoreFile = .keystore
  keystorePass = changeit/
   /Connector


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

 


--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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



Re: How do I specify default localtion of .keystore file?

2002-11-30 Thread anywhere-info
the default is the home directory,
which could be in windows 2000 c:\documents and settings\user_name\ or
it could be in c:\winnt\system32\config
or in *nix systems it would be  in ur home directory. to specify any 
other directory
just give complete path in keystoreFile attribute like
keystoreFile=/home/blah/mystore/.keystore


Peter Lee wrote:

Where is the default location of the .keystore file?
How  do I specify the another location for  the .keystore file then?

Thanks

On 30 Nov 2002 at 19:16, anywhere-info wrote:

 

As far as i know you dont need to specify default location. 
keystoreFile attribute is to be used only if file is stored in location 
besides default.

Peter Lee wrote:

   

How do I specify default localtion of .keystore file in the server.xml file?

  !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
  !
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
 port=443 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=0 scheme=https secure=true
 useURIValidationHack=false
Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
 clientAuth=false protocol=TLS 
 keystoreFile = .keystore
 keystorePass = changeit/
  /Connector


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



 

--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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

   




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

 


--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



Re: SSL problem

2002-11-30 Thread anywhere-info
what errors are you getting ?
check log file for that

Rodrigo Videschi wrote:


Ol? staff, I am trying to make configuration of the TomCat with SSL 
but I am not obtaining, I followed all the steps that were in the 
manual of the TomCat: To generate serverkey, clientkey..., all with 
keytool and in the end I decomento the lines of server.xml that they 
deal with the SSL, but unhappyly no functions. Please you they could 
help me?


Rodrigo Videschi
[EMAIL PROTECTED]
Analista JAVA
SIOUX Tecnologia

_
MSN Messenger: converse com os seus amigos online. 
http://messenger.msn.com.br


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


--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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



web.xml and manager application

2002-09-20 Thread info

Hi, using
Tomcat 4.0.1 on a Linux Box (SuSE 7.3) with JDK 1.3.1.
When I change the web.xml of a webapp and want to reload that webapp using the manager 
application the web.xml-file is not parsed again. 
Only when I restart the container.
Is that normal? Is there a soulution? It is quite unhandy!

thanks, rainer



Re: web.xml and manager application

2002-09-20 Thread info

Hi Charlie,

thanks for qour answere!
I tested it an with my Tomcat (4.0.1 if it depends on?) the web.xml ist not
beeing parsed again.

Rainer


 just use stop and start. That will read the web.xml

 Charlie

  -Original Message-
  From: William Wragg [mailto:[EMAIL PROTECTED]]
  Sent: Friday, September 20, 2002 10:15 AM
  To: Tomcat Users List
  Subject: Re: web.xml and manager application
 
 
  Hi,
 
  I had this on 4.0.4. The way I got around it was:
 
  (1) Undeploy the wepapp -
  http://localhost:8080/manager/remove?path=/myApp
  (2) Delpoy the webapp -
  http://localhost:8080/manager/install?path=/myAppwar=file:/pa
 th/to/myApp
 
  This seemed to reparse the web.xml file OK.
 
  Reagards,
 
  Wm.
 
  At 12:29 20/09/2002, you wrote:
 
  Hi, using
  Tomcat 4.0.1 on a Linux Box (SuSE 7.3) with JDK 1.3.1.
  When I change the web.xml of a webapp and want to reload that webapp
  using the manager application the web.xml-file is not parsed again.
  Only when I restart the container.
  Is that normal? Is there a soulution? It is quite unhandy!
  
  thanks, rainer
  
  
  
  ---
  Incoming mail is certified Virus Free.
  Checked by AVG anti-virus system (http://www.grisoft.com).
  Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
 

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






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




Re: web.xml and manager application

2002-09-20 Thread info

Hi,

I cannot install the Webapp with the manager app since it is not a .war.
Do you know if there is a way?
If I only try: http://localhost:8080/manager/install?path=/myApp
I am getting a
FAIL - Invalid application URL null was specified
message.

thanks, Rainer



 Hi,

 I had this on 4.0.4. The way I got around it was:

 (1) Undeploy the wepapp - http://localhost:8080/manager/remove?path=/myApp
 (2) Delpoy the webapp -
 http://localhost:8080/manager/install?path=/myAppwar=file:/path/to/myApp

 This seemed to reparse the web.xml file OK.

 Reagards,

 Wm.

 At 12:29 20/09/2002, you wrote:

 Hi, using
 Tomcat 4.0.1 on a Linux Box (SuSE 7.3) with JDK 1.3.1.
 When I change the web.xml of a webapp and want to reload that webapp
 using the manager application the web.xml-file is not parsed again.
 Only when I restart the container.
 Is that normal? Is there a soulution? It is quite unhandy!
 
 thanks, rainer
 
 
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002








 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002








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



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




Re: web.xml and manager application

2002-09-20 Thread info

Hi,

 If the webapp is just in a directory _not_ packaged as a .war file then
use:
 http://localhost:8080/manager/install?path=/myAppwar=file:/path/to/myApp

thanks for your answere.
Well it is not working with me I am getting an error:
FAIL - Encountered exception java.lang.IllegalArgumentException: Cannot
access document base directory /usr/lib/jakarta-tomcat-4.0.1/webapp/wwa-m



thanks, Rainer




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




java - more than 80MB RAM

2002-09-19 Thread info . stephan

Hello,

how can I convice java to take more than 80 MB of RAM? I do have a 1GB RAM
machine but I have no chance. 
Using these parameters -Xms384m -Xmx384m in the startup batches (WinNT) does
not change anything.

Thank you for your help

Stephan from Germany

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




RE: RE: java - more than 80MB RAM

2002-09-19 Thread info . stephan

hi,

try this: -Xms384M -Xmx384M (note: capital M)

I believe that's it.

greetings,

jeroen

Thank you very much! Sometimes its so easy. But with the jbuilder it also
works with the small m.

Stephan

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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




Problem Loading Servlet on Server startup

2002-09-13 Thread info

Hi,

below is my current web.xml listed.
As the first Servlet I am loading the InitAppServlet. The init(cfg ServletConfig) 
Methode lookes like:

   public void init(ServletConfig cfg) throws ServletException 
 {
  this.cfg = cfg;
  this.ctx = cfg.getServletContext();
  //initApp();
  
 }//init()

When I startup the application I get an Exception form the destroy() methode of the 
InitAppServlet is thrown.
You can see below the thrown Execption
As a strange thing: it already used to work!

Does anyone have an idea?

I am using Tomcat 4.0.1 on a Linux SuSE 7.3 Box, JDK 1.3.1

thanks, rainer

#
Exception:

Servlet InitAppServlet threw unload() exception
javax.servlet.ServletException: Servlet.destroy() for servlet InitAppServlet threw 
exception
 at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1020)
 at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1193)
 at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2381)
 at org.apache.catalina.servlets.ManagerServlet.reload(ManagerServlet.java:448)
 at org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:281)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:518)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
 at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
 at java.lang.Thread.run(Thread.java:484)
- Root Cause -
java.lang.NullPointerException
 at javax.servlet.GenericServlet.getServletContext(GenericServlet.java:205)
 at javax.servlet.GenericServlet.log(GenericServlet.java:300)
 at javax.servlet.GenericServlet.destroy(GenericServlet.java:122)
 at org.apache.catalina.core.StandardWrapper.unload(StandardWrapper.java:1011)
 at org.apache.catalina.core.StandardWrapper.stop(StandardWrapper.java:1193)
 at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2381)
 at org.apache.catalina.servlets.ManagerServlet.reload(ManagerServlet.java:448)
 at org.apache.catalina.servlets.ManagerServlet.doGet(ManagerServlet.java:281)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
 at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
 at 

ServletContext in a Bean

2002-09-09 Thread info

Hi,

how can I access the ServeltContext in a bean?
Could you give me sample:

e.g.

import javax.servlet.*;

// something like that, but getServletConfig() is of course not known in a normal bean.
ServletContext ctx = getServletConfig().getServletContext();
String dbdriver = ctx.getAttribute(Constants.DBDRIVER);

thanks for any help!

Rainer



Re: ServletContext in a Bean

2002-09-09 Thread info

Thanks Sandra,

you are confirming my solution I just decieded for.
I will pass on the needed values with a setter methode from the servlet to
the bean. Thats how it's supposed to be.

Rainer


 For me, you don't have to access to the ServletContext in your bean,
 because the bean belongs to the Business Model. The data model has to be
 independent
 of the web. It can be shared by all applications (web or not).
 It is the process which manipulates the bean (the Servlet) that must
access
 to the ServletContext.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: 09 September 2002 17:09
 To: Tomcat Users List
 Subject: ServletContext in a Bean


 Hi,

 how can I access the ServeltContext in a bean?
 Could you give me sample:

 e.g.

 import javax.servlet.*;

 // something like that, but getServletConfig() is of course not known in a
 normal bean.
 ServletContext ctx = getServletConfig().getServletContext();
 String dbdriver = ctx.getAttribute(Constants.DBDRIVER);

 thanks for any help!

 Rainer

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





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




Re: PLEASE IGNORE: ServletContext in a Bean

2002-09-09 Thread info

somehow a double posting. Please ignore!

rainer


- Original Message -
From: rainer juenger [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 09, 2002 4:25 PM
Subject: ServletContext in a Bean


Hi,

how can I access the ServeltContext in a bean?
Could you give me sample:

e.g.

import javax.servlet.*;

// something like that, but getServletConfig() is of course not known in a
normal bean.
ServletContext ctx = getServletConfig().getServletContext();
String dbdriver = ctx.getAttribute(Constants.DBDRIVER);

thanks for any help!

Rainer




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




ActionServlet question

2002-07-09 Thread info

Hi,

I have a general problem in understanding a Action servlet.
Is the servelt always involved when I access the belonging URL?

e.g.:
 action  path=/trinkwasserform
 type=trinkwasser.TrinkwasserInputAction
 name=trinkwasserInputForm
 scope=session
 input=/application/datensteckbriefe/forms/form_trinkwasser.jsp
  forward name=success path=/app/trinkwasserform?todo=speichern/
  forward name=preview 
path=/application/datensteckbriefe/forms/form_trinkwasser_preview.jsp/
 /action

I access the *something*/trinkwasserform action. In that action I am logging a text to 
the serverlog. I am realy supprised that the logged text showes up only once within 
the log!
Isn't the Action Class always processed when I call the URL (e.g. /trinkwasserform ?)

thanks, Rainer



Re: Error-Handling

2002-07-09 Thread info


Did you check your Server-Log for any errors during parsing the web.xml
after you restartet your container?
Sometimes I made the experiance that it will not take the web.xml. Then a
Server newstart works best.
All the tags need to be in a certain order (lock into the servelet spec)

Rainer


 Hi,
 i need help!
 i want to handle 404-Errors! If there is a 404-Error, tomcat should show
an
 error-page.
 I'm using Tomcat 3.3 and i put the following in my web.xml

 error-page
 error-code404/error-code
 location/fehler.mb1/location
 /error-page

 but it doesn't work! Can anybody help me?

 Jens

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






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




User Login Tomcat 4.1x

2002-07-09 Thread info

Hi,

I was looking arround for the documentation on 4.1 User Login tacilities but could not 
find it.
Is there one already?

thanks, Rainer



Re: ActionServlet question

2002-07-09 Thread info

Sorry, sent it to the wrong group.
Would you mind asking it when I post it to STRUTS-USER?

Thanks, Rainer


 This looks like a Struts-related question, rather than Tomcat.  You might
 do better asking it on the STRUTS-USER mailing list (subscription
 information for all Jakarta mailing lists is available at
 http://jakarta.apache.org/site/mail.html).

 Craig


 On Tue, 9 Jul 2002 [EMAIL PROTECTED] wrote:

  Date: Tue, 9 Jul 2002 11:39:51 +0200
  From: [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: ActionServlet question
 
  Hi,
 
  I have a general problem in understanding a Action servlet.
  Is the servelt always involved when I access the belonging URL?
 
  e.g.:
   action  path=/trinkwasserform
   type=trinkwasser.TrinkwasserInputAction
   name=trinkwasserInputForm
   scope=session
   input=/application/datensteckbriefe/forms/form_trinkwasser.jsp
forward name=success path=/app/trinkwasserform?todo=speichern/
forward name=preview
path=/application/datensteckbriefe/forms/form_trinkwasser_preview.jsp/
   /action
 
  I access the *something*/trinkwasserform action. In that action I am
logging a text to the serverlog. I am realy supprised that the logged text
showes up only once within the log!
  Isn't the Action Class always processed when I call the URL (e.g.
/trinkwasserform ?)
 
  thanks, Rainer
 


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






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




Re: Final releaseTomcat 4.1?

2002-07-05 Thread info

well, I would like to come back to the starting question:
WHEN can be a final stable Tomcat 4.1 expectet?
I know there is no exact date like 1. august or so but considering the
amount of bugs, the prosses that is nesessary before it will be released.
Out of your experiance:
how long will it take.
An please don't say:until it's done  ;))

Rainer



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




Re: Final releaseTomcat 4.1?

2002-07-05 Thread info


 Sorry, but ...
 
 Milestone releases will come out regularly until developers are happy 
 with the stability of the build. This is the same development process 
 used for Apache 2.0, so it can take a while and lots of milestones ;-)

Well so there is no aprox. answer like:
one week
one month
three months
half year
one year
ten years ;)

Rainer



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




application Context within a TagLib

2002-07-02 Thread info

Hi,

realy basics! I set some values in the web.xml like this:
.
.
.
context-param
 param-nameserver_pfad/param-name
 param-valuehttp://localhost:8080//param-value
 descriptionServer-Pfad/description
/context-param
.
.
.

And now I want to get the values within a TagLib:

.
.
pageContext.out().print(pageContext.getServletContext().getAttribute(server_pfad));
is null
.
.

Whats wrong??

thanks, Rainer



Re: application Context within a TagLib

2002-07-02 Thread info

thanxs!!

Rainer
- Original Message -
From: Alessio Fiore [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, July 02, 2002 3:07 PM
Subject: R: application Context within a TagLib


 Hi, there is difference between context attributes and context init
 parameters...

 Context attributes are managed with setAttribute and getAttribute
 methods.
 Init parameters are defined in the web.xml file and are read with
 getInitParameter method.

 Then, you should modify your code in following way:


pageContext.out().print(pageContext.getServletContext().getInitParameter(se
 rver_pfad));


 Alessio
 [EMAIL PROTECTED]


 -Messaggio originale-
 Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Inviato: martedì 2 luglio 2002 14.32
 A: Tomcat Users List
 Oggetto: application Context within a TagLib


 Hi,

 realy basics! I set some values in the web.xml like this:
 .
 .
 .
 context-param
  param-nameserver_pfad/param-name
  param-valuehttp://localhost:8080//param-value
  descriptionServer-Pfad/description
 /context-param
 .
 .
 .

 And now I want to get the values within a TagLib:

 .
 .

pageContext.out().print(pageContext.getServletContext().getAttribute(server
 _pfad));
 is null
 .
 .

 Whats wrong??

 thanks, Rainer



 - Disclaimer -
 This email and any attachments thereto may contain information which is
 confidential and/or protected by intellectual property rights and are
 intended for the sole use of the recipient(s) named above. Any use of the
 information contained herein (including, but not limited to, total or
 partial reproduction, communication or distribution in any form) or the
 taking of any action in reliance on the contents, by persons other than
the
 designated recipient(s) is strictly prohibited.

 If you have received this email in error, please notify the sender either
by
 telephone or by email and delete the material from any computer.

 Thank you for your cooperation.



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






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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-14 Thread info

Hi, Cindy

 Yes, and it should work - but it doesn't. For most of us, DataSource is
null and nothing apperas in the logs.
 

 Question: where is your JDBC driver currently located? I got the same
result until I moved it from WEB_INF/lib/ to $CATALINA_HOME/common/lib/

thanks for your hint. I moved my driver to $CATALINA_HOME/common/lib/. But
it makes no difference. There is still no connection to the DB. :-((

Anyone else with better testing results?

Rainer



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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread info

Hi,

well I got stuck with the same problem as the others:
I cannot get a connect to the DB via JNDI.

Just a simple idea: can the problem be the MySQL Driver?
Is there maybe someone out there to give some hints how to look into this
blackbox JNDI to see what is going wrong(Craig ?)

Thanks for any help!

Rainer

- Original Message -
From: Neil Milne [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 13, 2002 2:56 PM
Subject: Re: Connection pooling doesn't work for me ... Help !!


 I'm using the JNDI Datasource setup fine with Tomcat 4.0.3 and Sybase.
 In server.xml I have:

 Resource name=jdbc/db auth=Container
 type=javax.sql.ConnectionPoolDataSource/
 ResourceParams name=jdbc/db
 parameter namedriverClassName/name
 valuecom.sybase.jdbc2.jdbc.SybDriver/value /parameter
 parameter nameuser/name valueuser/value/parameter
 !-- other driver specific db params... --
 parameter nameinitialPoolSize/name value5/value/parameter
 /ResourceParams

 There's no need to specify a factory as Tomcat has a Datasource resource
 factory built in.

 Note that I've used the ConnectionPoolDataSource class - not sure if
 this makes a difference.

 HTH
 Neil.

 - Original Message -
 from: Martin Jacobson [EMAIL PROTECTED]
 date: Thursday, June 13, 2002 1:40 pm
 subject: Re: Connection pooling doesn't work for me ... Help !!

  anthony.dodd wrote:
 
   Hi
  
   I've posted a solution see Generic DataSource Resource Factory
   Available. JDBC Data Source on the tomcat user maillist.
  
   Tony
  
  Yes, but...
 
 
  Like many others on this list, I too have been unable to get the
  std
  JNDI DataSource thingy working; as an interim measure, I
  implemented a
  workaround (which does at least work!), but I refuse to be defeated!
 



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




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




Re: Connection pooling doesn't work for me ... Help !!

2002-06-13 Thread info

Thanks for your answer. That looks rather unconventional ;)

Rainer



 I apologize but I saw this post late. I had a problem with connection
 pooling using Oracle and JNDI. To get around it I had to do something like
 this:

 In conf\server.xml

 Resource name=jdbc/mydb auth=Container
 type=oracle.jdbc.pool.OracleConnectionPoolDataSource /
ResourceParams name=jdbc/mydb
   parameter
  nameuser/name
  valueuser/value
/parameter
 parameter
namepassword/name
valuepassword/value
 /parameter
 parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
  namedriverName/name
  valuejdbc:oracle:thin:@oracle.ds:1521:db/value
 /parameter
  /ResourceParams

 In WEB-INF/web.xml

 web-app

servlet
   servlet-nameOracleConnectionPool/servlet-name
   servlet-classaOracleConnectionPool/servlet-class
   load-on-startup1/load-on-startup
/servlet

resource-ref
   res-ref-namejdbc/mydb/res-ref-name
   res-typeoracle.jdbc.pool.OracleConnectionPoolDataSource/res-type
   res-authContainer/res-auth
/resource-ref

 /web-app

 OracleConnectionPool.java

 try {
 Context initCtx = new InitialContext();
 OracleConnectionPoolDataSource ocpds = new
 OracleConnectionPoolDataSource();
 ResourceBundle rb = ResourceBundle.getBundle(database);
 ocpds.setURL(rb.getString(url));
 ocpds.setUser(rb.getString(user));
 ocpds.setPassword(rb.getString(password));
 initCtx.rebind(axesdb, ocpds);
 } catch (SQLException sqlex) {
 sqlex.printStackTrace();
 } catch (Exception ex) {
 ex.printStackTrace();
 }

 In your code:

 Context initCtx = new InitialContext();
 OracleConnectionPoolDataSource ocpds =
 (OracleConnectionPoolDataSource)initCtx.lookup(mydb);
 PooledConnection pooledConnection = ocpds.getPooledConnection();
 Connection connection = pooledConnection.getConnection();
 Statement statement = connection.createStatement();
 ResultSet resultSet = statement.executeQuery(sql);

 Good Luck!

 Kevin

 Kevin Andryc
 Web Systems Engineer
 MISER
 http://www.umass.edu/miser/
 Phone: (413)-545-3460
 [EMAIL PROTECTED]



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, June 13, 2002 03:12 PM
 To: Tomcat Users List
 Subject: Re: Connection pooling doesn't work for me ... Help !!

 Hi,

 well I got stuck with the same problem as the others:
 I cannot get a connect to the DB via JNDI.

 Just a simple idea: can the problem be the MySQL Driver?
 Is there maybe someone out there to give some hints how to look into this
 blackbox JNDI to see what is going wrong(Craig ?)

 Thanks for any help!

 Rainer

 - Original Message -
 From: Neil Milne [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Thursday, June 13, 2002 2:56 PM
 Subject: Re: Connection pooling doesn't work for me ... Help !!


  I'm using the JNDI Datasource setup fine with Tomcat 4.0.3 and Sybase.
  In server.xml I have:
 
  Resource name=jdbc/db auth=Container
  type=javax.sql.ConnectionPoolDataSource/
  ResourceParams name=jdbc/db
  parameter namedriverClassName/name
  valuecom.sybase.jdbc2.jdbc.SybDriver/value /parameter
  parameter nameuser/name valueuser/value/parameter
  !-- other driver specific db params... --
  parameter nameinitialPoolSize/name
value5/value/parameter
  /ResourceParams
 
  There's no need to specify a factory as Tomcat has a Datasource resource
  factory built in.
 
  Note that I've used the ConnectionPoolDataSource class - not sure if
  this makes a difference.
 
  HTH
  Neil.
 
  - Original Message -
  from: Martin Jacobson [EMAIL PROTECTED]
  date: Thursday, June 13, 2002 1:40 pm
  subject: Re: Connection pooling doesn't work for me ... Help !!
 
   anthony.dodd wrote:
  
Hi
   
I've posted a solution see Generic DataSource Resource Factory
Available. JDBC Data Source on the tomcat user maillist.
   
Tony
   
   Yes, but...
  
  
   Like many others on this list, I too have been unable to get the
   std
   JNDI DataSource thingy working; as an interim measure, I
   implemented a
   workaround (which does at least work!), but I refuse to be defeated!
  
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 


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


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




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




Problem JNDI DataSource - no Connection on MySQL DB

2002-06-12 Thread info

Hi,

trying to connect to my MySQL DB via JNDI but I do not get a Connection in detail:
Using Tomcat 4.03, Linux Suse 7.3, MySQL 3.23.14.

I try to connect with this code:
.
.
.
 Context initCtx = new InitialContext();
if (initCtx == null) throw new JspException(No Context available for DataSource, 
can't get connetion);
Context envCtx = (Context) initCtx.lookup(java:comp/env);
if (envCtx == null) throw new SQLException(No DataSource availale for Connection 
(envCtx == null));
  ds = (DataSource)envCtx.lookup(jdbc/wwa-mDB);
if (ds == null) throw new SQLException(No DataSource availale for Connection (ds 
== null)  + ds + envCtx =  + envCtx);
   verbin = ds.getConnection();
   verbin.setReadOnly(true);
stmt = verbin.createStatement(); 
.
.
an the problem ist that ds == null (envCtx == org.apache.naming.NamingContext@452200).
I am wondering why I cannot connect the DB. Before I connectet directly like:

Class.forName(org.gjt.mm.mysql.Driver).newInstance(); 
String url = jdbc:mysql://localhost:3306/wwa-m01?user=userpassword=pwd;

And it worked just fine.

My web.xml-File lookes like:
resource-ref
 description
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
  /description
  res-ref-namejdbc/wwa-mDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref


und the server.xml:
Resource name=jdbc/wwa-mDB auth=Container
type=javax.sql.DataSource/
  ResourceParams name=jdbc/wwa-mDB
parameternameuser/namevalueuser/value/parameter
parameternamepassword/namevaluepwd/value/parameter

parameternamedriverClassName/namevalueorg.gjt.mm.mysql.Driver/value/parameter

parameternameurl/namevaluejdbc:mysql://localhost:3306/wwa_m01/value/parameter
  /ResourceParams

Can you give me any assistance on how to find out what is wrong with my Connection an 
how I can find out about that?

Thanks a lot!

Rainer



Re: Problem JNDI DataSource - no Connection on MySQL DB

2002-06-12 Thread info

thanks for that link but I read that already. I basically did it as it is
shown there. The only difference is that I am not using the Connection
pooling (DBCP) since I am waiting for the Tomcat 4.1 (which hopefully will
come soon) where it is implemented. I still don't have an idea how I can get
it to work?

Thanks for any more help.

Rainer



 I refer the gentlemen to my previous answer :-)

 http://marc.theaimsgroup.com/?l=tomcat-userm=102225547106556w=2

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: 12 June 2002 08:30
  To: Tomcat Users List
  Subject: Problem JNDI DataSource - no Connection on MySQL DB
 
 
  Hi,
 
  trying to connect to my MySQL DB via JNDI but I do not get a
  Connection in detail:
  Using Tomcat 4.03, Linux Suse 7.3, MySQL 3.23.14.
 
  I try to connect with this code:
  .
  .
  .
   Context initCtx = new InitialContext();
  if (initCtx == null) throw new JspException(No Context
  available for DataSource, can't get connetion);
  Context envCtx = (Context) initCtx.lookup(java:comp/env);
  if (envCtx == null) throw new SQLException(No DataSource
  availale for Connection (envCtx == null));
ds = (DataSource)envCtx.lookup(jdbc/wwa-mDB);
  if (ds == null) throw new SQLException(No DataSource
  availale for Connection (ds == null)  + ds + envCtx =  + envCtx);
 verbin = ds.getConnection();
 verbin.setReadOnly(true);
  stmt = verbin.createStatement();
  .
  .
  an the problem ist that ds == null (envCtx ==
  org.apache.naming.NamingContext@452200).
  I am wondering why I cannot connect the DB. Before I
  connectet directly like:
 
  Class.forName(org.gjt.mm.mysql.Driver).newInstance();
  String url =
  jdbc:mysql://localhost:3306/wwa-m01?user=userpassword=pwd;
 
  And it worked just fine.
 
  My web.xml-File lookes like:
  resource-ref
   description
  Resource reference to a factory for java.sql.Connection
  instances that may be used for talking to a particular
  database that is configured in the server.xml file.
/description
res-ref-namejdbc/wwa-mDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
 
 
  und the server.xml:
  Resource name=jdbc/wwa-mDB auth=Container
  type=javax.sql.DataSource/
ResourceParams name=jdbc/wwa-mDB
 
  parameternameuser/namevalueuser/value/parameter
 
  parameternamepassword/namevaluepwd/value/parameter
 
  parameternamedriverClassName/namevalueorg.gjt.mm.mysql
  .Driver/value/parameter
 
  parameternameurl/namevaluejdbc:mysql://localhost:3306/
  wwa_m01/value/parameter
/ResourceParams
 
  Can you give me any assistance on how to find out what is
  wrong with my Connection an how I can find out about that?
 
  Thanks a lot!
 
  Rainer
 

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




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




Statistic and Tomcat 4.x

2002-06-11 Thread info

Hi,

how are you guys getting user access statistics about your apps running on Tomcat?
Normaly I use Webtrends or Webanalyses. Is that possible with Tomcat? 
Can someone give comments on this?

Thanks! Rainer