RE: WSDLReader:Analyzing the WSDL file failed

2005-12-28 Thread mukesh
Bob,
Thanks for your response.

If it is typo mistake then Axis must have detected it.
-Mukesh

-Original Message-
From: Bob Hall [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 28, 2005 1:56 PM
To: Tomcat Users List
Subject: Re: WSDLReader:Analyzing the WSDL file failed

Mukesh,

This may merely be a typo in your message;

http://schemas.xmlsoap.org/soap/encodin

should be:

http://schemas.xmlsoap.org/soap/encoding

- Bob


--- mukesh [EMAIL PROTECTED] wrote:

 Hi friends,
 
  
 
 I am able to access my web service
 (deployed on tomcat5.512 ,
 using axis1.3) from tomcat 4.1 using Axis1.3.
 
  
 
 But following error is coming when
 trying to call from VB using
 MSSoap Client, running IIS on WIN NT
 
  
 
 WSDLReader:Analyzing the WSDL file failed
 HRESULT=0x80004005 -
 WSDLReader:Initialization of service failed
 HRESULT=0x80004005 -
 WSDLService:Initialization of the port for service
 HungamaMWSService failed
 HRESULT=0x80004005 - WSDLPort:Analyzing the binding
 information for port
 hungamamws failed HRESULT=0x80004005 - WSDLPort:An
 operation for port
 hungamamws could not be initialized
 HRESULT=0x80004005 -
 WSDLOperation:Initializing of the input message
 failed for operation
 deliverMOMessage HRESULT=0x80004005 -
 WSDLOperation:Initialization of a
 SoapMapper for operation deliverMOMessage failed
 HRESULT=0x80004005 -
 SoapMapper:The SoapMapper for element string could
 not be created
 HRESULT=0x80004005 - SoapMapper:The schema
 definition with a targetnamespace
 of http://schemas.xmlsoap.org/soap/encodin
 
  
 
 Please advice.
 
  
 
 Regards,
 
 Muesk 
 
 





__ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/

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



tomcat-users.xml file corruption

2005-12-28 Thread Nachum, Sagi

I have been running tomcat
http://www.tek-tips.com/viewthread.cfm?qid=1169838page=1##  on
windows 2003
http://www.tek-tips.com/viewthread.cfm?qid=1169838page=1##  with no
problems until the computer
http://www.tek-tips.com/viewthread.cfm?qid=1169838page=1##  was
unexpectdly shut down (power cut).

When I restarted the computer and tried to run tomcat again it wouldn't
work.

I saw the following exception in the catalina_log:

2005-12-27 14:02:10 UserDatabaseRealm[Standalone]: Exception looking up
UserDatabase under key UserDatabase

javax.naming.NamingException: Content is not allowed in prolog.

at
org.apache.naming.NamingContext.lookup(NamingContext.java:797)

at
org.apache.naming.NamingContext.lookup(NamingContext.java:147)

at
org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java
:250)

at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1126)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:316)

at
org.apache.catalina.core.StandardService.start(StandardService.java:450)

at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2143)

at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:2
22)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

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

at
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java
:198)

at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:
260)

After inquiring a little I discovered that the tomcat-users.xml file
located at conf directory is empty.
After I replaced this file with a valid one, the problem was solved. I
saw some more messages in this and other forums that regard this
problem.
And here's my question:

I don't want to need to replace this file every time the computer
crashes unexpectedly, how can I prevent this file from being corrupted?


10x,
Sagi





__
This electronic message contains information from Verint Systems, which may be 
privileged and confidential.
The information is intended to be for the use of the individual(s)or entity 
named above.
If you are not the intended recipient, be aware that any disclosure, copying, 
distribution or use of the contents of this information is prohibited.
If you have received this electronic message in error, please notify us by 
replying to this email (1).


to upload files

2005-12-28 Thread shrinivas dole
Hello  All,
   I want to know about 'Tomcat upload server'. Does this server
help to uploas files at run time.
   if anybody knoes about it please reply back
cheers
shrinivas dole


Re: tomcat-users.xml file corruption

2005-12-28 Thread Markus Schönhaber
Nachum, Sagi wrote:
 After inquiring a little I discovered that the tomcat-users.xml file
 located at conf directory is empty.
 After I replaced this file with a valid one, the problem was solved. I
 saw some more messages in this and other forums that regard this
 problem.
 And here's my question:

 I don't want to need to replace this file every time the computer
 crashes unexpectedly, how can I prevent this file from being corrupted?

You can prevent a recent Tomcat 5.5 from writing tomcat-users.xml by setting
readonly=true
on the Resource element in server.xml where the UserDatabase is defined.

But if you can't prevent your machine from unexpectedly shutting down, wether 
or not tomcat-users.xml get destroyed might be your smallest problem.

Regards
  mks

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



upload server

2005-12-28 Thread shrinivas dole
Hello All,
   Does any one have idea about 'Tomcat Upload Server'. If
someone know about it direct me to the required linl page or help me with
the necessary document.

thanks  regards
shrinivas dole
verisoft


Re: upload server

2005-12-28 Thread Markus Schönhaber
shrinivas dole wrote:
Does any one have idea about 'Tomcat Upload Server'. If
 someone know about it direct me to the required linl page or help me with
 the necessary document.

Don't know what a 'Tomcat Upload Server' might be. But nevertheless, you might 
want to look at
http://jakarta.apache.org/commons/fileupload/
or
http://your local tomcat installation/webdav/index.html

Regards
  mks

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



Re: [ANN] Clustering broken 5.5.10-5.5.14

2005-12-28 Thread Ronald Klop

Is there any info about when an updated release is scheduled?







On Fri Dec 23 19:45:11 CET 2005 Tomcat Users List users@tomcat.apache.org 
wrote:

 I've been getting a good amount of emails regarding the clustering system 
being broken in Tomcat 5.5, so I thought I make the announcement here so that we 
can clear the air once and for all.  In tomcat 5.5.10 the underlying communication 
protocol for the clustering system changed, and not only made the release 
incompatible with any previous release, but also broke the system completely.  
This change should have never seen the codebase, but it did.  We apologize for 
this error, it has been fixed in 5.5.15, in the future, we advise developers to 
not change protocol and low level code in dot-dot releases without complete 
regression testing.  Filip   
- To 
unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL 
PROTECTED]   

How to start ant to use the webapps classpath?

2005-12-28 Thread Zsolt
Hi,

I have tomcat-5.5.12 and I copied all ant libraries (with my ones) into
/webapps/APPLICATION-NAME/WEB-INF/lib.

When I start ant using project.executeTargets(execTargets) I get class not
found exceptions and I think because ant uses the bootstrap classpath of
tomcat and not the classpath of my webapps.

How can I get ant to use the correct path?

Zsolt 




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



RE: tomcat-users.xml file corruption

2005-12-28 Thread Nachum, Sagi

Thanks,

Where should I write the readonly parameter?
here:

!-- Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase readonly=true

or maybe here:

ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
  parameter
namereadonly/name
valuetrue/value
  /parameter
/ResourceParams



Sagi

-Original Message-
From: Markus Schönhaber [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 28, 2005 12:11
To: Tomcat Users List
Subject: Re: tomcat-users.xml file corruption

Nachum, Sagi wrote:
 After inquiring a little I discovered that the tomcat-users.xml file
 located at conf directory is empty.
 After I replaced this file with a valid one, the problem was solved. I
 saw some more messages in this and other forums that regard this
 problem.
 And here's my question:

 I don't want to need to replace this file every time the computer
 crashes unexpectedly, how can I prevent this file from being corrupted?

You can prevent a recent Tomcat 5.5 from writing tomcat-users.xml by setting
readonly=true
on the Resource element in server.xml where the UserDatabase is defined.

But if you can't prevent your machine from unexpectedly shutting down, wether
or not tomcat-users.xml get destroyed might be your smallest problem.

Regards
  mks

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


__
This electronic message contains information from Verint Systems, which may be 
privileged and confidential.
The information is intended to be for the use of the individual(s)or entity 
named above.
If you are not the intended recipient, be aware that any disclosure, copying, 
distribution or use of the contents of this information is prohibited.
If you have received this electronic message in error, please notify us by 
replying to this email (1).


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



Re: Please Help! Error in using Packages

2005-12-28 Thread KJ R
Usually, when you solve a problem, it's helpful to
post what the solution was, even if it was something
silly, it could possibly help someone else.

K

--- Teh Noranis Mohd Aris [EMAIL PROTECTED]
wrote:

 Dear all,
 I've already solve the problem. Thanks to all who
 had
 contributed.
 
 TEH
 
 
 --- Prasad [EMAIL PROTECTED] wrote:
 
  Teh,
  
  The web.xml looks fine to me.  Can  you confirm
 that
  you war file is 
  packaged correctly i.e
  its created with proper packages structure and
  dir/file names.
  
  Also, I was wondering why are you being asked to
  (explicitly) create a 
  context element in server.xml. Is it a TC v4.x
  requirement ?
  I have used TC 3,4 and 5 but never was I required
 to
  explicitly create a 
  context entry in server.xml for any webapp.
  
  I used more of a traditional way of dropping a war
  file into webapps/ 
  and re-starting the container and it has been
  working
  fine for me so far.
  
  Experts, any thoughts on this one ?
  
  Teh, if you are sure that the deployed WAR is sane
  then we should wait 
  for experts to provide an answer.
  
  -Prasad.
  
  Teh Noranis Mohd Aris wrote:
  
  The web.xml looks like this:
  
  ?xml version=1.0 encoding=ISO-8859-1?
  
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web
  Application 2.3//EN
 
  http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
  
  web-app
  
servlet
  servlet-nameMyFirstServlet/servlet-name
 
 

servlet-classcom.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet/servlet-class
/servlet
  
servlet-mapping
  servlet-nameMyFirstServlet/servlet-name
  url-pattern
/MyFirstServlet
  /url-pattern
/servlet-mapping
  
  /web-app
  
  I placed the web.xml in
  c:\jakarta-tomcat-4.1.31\webapps\ch03\WEB-INF
  directory.
  
  How about the server.xml file in
  c:\jakarta-tomcat-4.1.31\conf directory? The
  original
  file looks like this:
  
  .
  .
  .
  !-- Tomcat Examples Context --
  Context path=/examples
  docBase=examples
  debug=0
   reloadable=true
  crossContext=true
Logger
  className=org.apache.catalina.logger.FileLogger
  
  prefix=localhost_examples_log.
  suffix=.txt
   timestamp=true/
Ejb   name=ejb/EmplRecord
  type=Entity
  
  home=com.wombat.empl.EmployeeRecordHome

  remote=com.wombat.empl.EmployeeRecord/
  .
  .
  .
  
  Should I replace Context path=/examples to
  Context
  path=ch03 and docBase=examples to
  docBase=myfirstwebapp (the war file for
  myfirstwebapp in the
  c:\jakarta-tomcat-4.1.31\webapps\ch03 directory)?
  Thanks.
  
  TEH  
  
  --- Prasad [EMAIL PROTECTED] wrote:
  

  
  Can you post your web.xml. I think I can help
 you
  with this but only 
  after looking at your web.xml.
  I think the problem is with servlet and
  servlet-mapping in your 
  web.xml. Moreover as David said, you can find
 all
  the information in the 
  Docs.
  -Prasad.
  
  
  
  
 

-

  
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
  
  
  
  
 
 __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
  protection around 
  http://mail.yahoo.com 
  
 

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

  
  
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
   
 __ 
 Yahoo! for Good - Make a difference this year. 
 http://brand.yahoo.com/cybergivingweek2005/
 

-
 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: UDP Server app

2005-12-28 Thread KJ R
Martin and others,
Thanks for the help.  When I was running both the
server and client off my local machine, I was getting
a socketexception on the client - Address already in
use: Cannot bind which makes sense, since they were
both trying to bind to the same port.  Once I deployed
my UDPServer to a different machine, I was able send
udp datagrams successfully and process them on the
server running in Tomcat.  Now I just need to figure
out how to stop the component and close the socket.  I
have a while loop depending on a boolean which I'm
changing, but when it's blocking on the
datagramsocket.receive() it won't drop out of the
loop.  I probably need to start a thread and just end
the thread.

K

--- Martin Gainty [EMAIL PROTECTED] wrote:

 Agreed..
 To confirm that you are already connected to the
 specified ports I would encourage you to take a look
 at 
 netstat -a which will display all used ports in
 which case you can then grep for the port to
 ascertain its 'in use' status
 
 To extend on that concept..Take for instance SunOne
 which is a J2EE App Server available from Sun 
 (documentation which is available at
 http://docs-pdf.sun.com/819-1398/819-1398.pdf)
 and note that Sun One AppServer allows the
 specification of Port Range..so that if one port is
 used Sun One auto-fails over to the next port
 for that particular subsystem
 Also BEA supports Port Range scenario for the same
 reason
 You can write your own.. but if the AppServer you
 are using already supports Port Range why bother?
 Anyone else ?
 M
 
 - Original Message - 
 From: KJ R [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Tuesday, December 27, 2005 5:22 PM
 Subject: RE: UDP Server app
 
 
  Yes I know JNDI itself is not a Tomcat feature,
 but
  their CONNECTION POOL implementation IS a feature
 I'm
  interested in.  I'm not planning on writing my own
  connection pool, I like the way they've done it,
 as
  well as their price!  Tomcat also offers
 advantages in
  ease of debugging, error handling,  and
 integration
  with my development environment - Eclipse.  Also
 as
  I've stated I'm much more familiar with Tomcat
 then
  standalone java apps, so sometimes you go with
 what
  you know.
  
  That being said, I was able to create a webpage to
  initiate the start() method on my class.  It looks
  like it's probably working because when I tried to
 use
  my udp_client web app to test it, got a message
  saying the port was already in use and could not
 bind,
  so I'm getting close.  Any other suggestions?
  
  --- Caldarale, Charles R
  [EMAIL PROTECTED] wrote:
  
   From: KJ R [mailto:[EMAIL PROTECTED] 
   Subject: RE: UDP Server app
   
The main reason to run under Tomcat for me
 would
  be
   when I update the database, I'd like to use a
 JNDI
   connection pool for my dataaccess class.
  
  JNDI is not a feature of Tomcat, it's a
 capability
  of the Java execution
  environment.  Tomcat merely allows you to
 configure
  JNDI entries
  non-programmatically.  You can accomplish the
 same
  thing more simply in
  a standalone app with command line parameters.
  
  You're still subverting the purpose of Tomcat: 
 it's
  intended to handle
  web applications using HTTP in a request/response
  mode.  Your app isn't
  anything like that - you have no need of a
 Servlet
  container or any
  other form of J2EE app server.
  
   - Chuck
  
  
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL
 AND/OR
  OTHERWISE PROPRIETARY
  MATERIAL and is thus for use only by the intended
  recipient. If you
  received this in error, please contact the sender
  and delete the e-mail
  and its attachments from all computers.
  
 
 

-
  To 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: UDP Server app

2005-12-28 Thread Martin Gainty
Good Morning K and Chuck

I would suggest that when you call your Thread wait method you specify a wait 
period so your threads wont wait forever and possibly lock the process from 
responding e.g.
wait(long timeout): waits for notification or until the timeout period has 
elapsed; timeout is measured in milliseconds
check out
http://java.sun.com/docs/books/tutorial/essential/threads/waitAndNotify.html
Anyone else?

Martin-

- Original Message - 
From: KJ R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, December 28, 2005 8:57 AM
Subject: Re: UDP Server app


 Martin and others,
 Thanks for the help.  When I was running both the
 server and client off my local machine, I was getting
 a socketexception on the client - Address already in
 use: Cannot bind which makes sense, since they were
 both trying to bind to the same port.  Once I deployed
 my UDPServer to a different machine, I was able send
 udp datagrams successfully and process them on the
 server running in Tomcat.  Now I just need to figure
 out how to stop the component and close the socket.  I
 have a while loop depending on a boolean which I'm
 changing, but when it's blocking on the
 datagramsocket.receive() it won't drop out of the
 loop.  I probably need to start a thread and just end
 the thread.
 
 K
 
 --- Martin Gainty [EMAIL PROTECTED] wrote:
 
 Agreed..
 To confirm that you are already connected to the
 specified ports I would encourage you to take a look
 at 
 netstat -a which will display all used ports in
 which case you can then grep for the port to
 ascertain its 'in use' status
 
 To extend on that concept..Take for instance SunOne
 which is a J2EE App Server available from Sun 
 (documentation which is available at
 http://docs-pdf.sun.com/819-1398/819-1398.pdf)
 and note that Sun One AppServer allows the
 specification of Port Range..so that if one port is
 used Sun One auto-fails over to the next port
 for that particular subsystem
 Also BEA supports Port Range scenario for the same
 reason
 You can write your own.. but if the AppServer you
 are using already supports Port Range why bother?
 Anyone else ?
 M
 
 - Original Message - 
 From: KJ R [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Tuesday, December 27, 2005 5:22 PM
 Subject: RE: UDP Server app
 
 
  Yes I know JNDI itself is not a Tomcat feature,
 but
  their CONNECTION POOL implementation IS a feature
 I'm
  interested in.  I'm not planning on writing my own
  connection pool, I like the way they've done it,
 as
  well as their price!  Tomcat also offers
 advantages in
  ease of debugging, error handling,  and
 integration
  with my development environment - Eclipse.  Also
 as
  I've stated I'm much more familiar with Tomcat
 then
  standalone java apps, so sometimes you go with
 what
  you know.
  
  That being said, I was able to create a webpage to
  initiate the start() method on my class.  It looks
  like it's probably working because when I tried to
 use
  my udp_client web app to test it, got a message
  saying the port was already in use and could not
 bind,
  so I'm getting close.  Any other suggestions?
  
  --- Caldarale, Charles R
  [EMAIL PROTECTED] wrote:
  
   From: KJ R [mailto:[EMAIL PROTECTED] 
   Subject: RE: UDP Server app
   
The main reason to run under Tomcat for me
 would
  be
   when I update the database, I'd like to use a
 JNDI
   connection pool for my dataaccess class.
  
  JNDI is not a feature of Tomcat, it's a
 capability
  of the Java execution
  environment.  Tomcat merely allows you to
 configure
  JNDI entries
  non-programmatically.  You can accomplish the
 same
  thing more simply in
  a standalone app with command line parameters.
  
  You're still subverting the purpose of Tomcat: 
 it's
  intended to handle
  web applications using HTTP in a request/response
  mode.  Your app isn't
  anything like that - you have no need of a
 Servlet
  container or any
  other form of J2EE app server.
  
   - Chuck
  
  
  THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL
 AND/OR
  OTHERWISE PROPRIETARY
  MATERIAL and is thus for use only by the intended
  recipient. If you
  received this in error, please contact the sender
  and delete the e-mail
  and its attachments from all computers.
  
 
 

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


Deployment timed out

2005-12-28 Thread Miroslav Šulc

Hello,

I am very new to Tomcat. I use version 5.5.12. I have problem that my 
deployment is timed out after 60 seconds. I do database initialization 
during the deployment in listener class and I need to increase the 
deployment time out but I haven't found any info how to do it. I run the 
deployment from Netbeans.


Could anyone please tell me if it is possible to increase the deployment 
timeout limit and how can I do it?


Thanks in advance.

--
Miroslav Šulc


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

problem using connection pooling with Microsoft Sql Server as described in kB Article Q313173

2005-12-28 Thread Albert Farewege
I'm attempting to use the information provided in the Microsoft KB article
Q313173 {http://support.microsoft.com/kb/313173/en-us to set up connection
pooling using Tomcat 5.5. This is the most recent jdbc sql server article I
was able to locate (note reference to Tomcat 4.0 in the readme).

Q313173 article provides a zip file, which has a sample test page to confirm
the connection pool is working and a readme article with step by step
instructions. I've appended some of the readme's content below. I've also
appended the test page provided in the zip file.

I modified and confirmed (using osql) the database name, username, and
password in the resource parrameters definition for jdbc/sql2000 would
access and select data. I placed the pool.jar in the Tomcat's common\lib
folder.

I am not able to get a connection using the sample test (DataSource not
created).

I am uncertain about the correctness of the readme file's instructions.
Permutations have not been successful, and there are a few of them. I'm
equally torn between the positions the published example is always right
and the published example must be wrong. I've researched MARC, other
Microsoft kb articles.

My questions are:

In step 2 in the readme, the resource name  corresponding resource parms
name element values are different. Is this correct?

In step 2 in the readme, the references to the pool.jar file provided in the
zip file are to a package with .mspool. rather than .pool.. (Reason:
package explorer in eclipse expands them as pool). Is this correct?

In step 2 in the readme, the dsjndiname element points to another resource.
I think this is ok, but I would like confirmation.

Environment: xp home sp2, msde sql server 2000 Microsoft SQL Server  2000 -
8.00.2039 (Intel X86) May  3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft
Corporation Desktop Engine on Windows NT 5.1 (Build 2600: Service Pack 2),
Tomcat 5.5 (from select @@version query).

If everything is correct in Microsoft's zip and instructions, then I must
have missed an elementary step. I'm a novice.

Thank you for any suggestions.

===Extract Starts=
SAMPLE CONNECTION POOLMANAGER:
Files:
1. com.microsoft.jdbcx.sqlserver.SQLServerDataSource
2. com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory
3. com.microsoft.mspool.PoolDataSource
4. com.microsoft.mspool.PoolDataSourceFactory
5. com.microsoft.mspool.Pool
6. com.microsoft.mspool.Pool$ConnectionEventManager
7. com.microsoft.mspool.Pool$PoolMonitor
8. com.microsoft.mspool.PoolHandler
Configuratin Files:
1. JNDI.properties
2. pool.log
Setting up Sample connection Pool manager in Tomcat4.0:
===
1. Register DataSource. Specify the datasource class to be used and values
needed to
   initialize the DataSource class.
Example:
Resource name=jdbc/sql2000 auth=Container type=
com.microsoft.jdbcx.sqlserver.SQLServerDataSource/
ResourceParams name=jdbc/sql2000
 parameternamefactory/namevalue
com.microsoft.jdbcx.sqlserver.SQLServerDataSourceFactory/value/parameter
 parameternamedriverClassName/namevalue
com.microsoft.jdbcx.sqlserver.SQLServerDataSource/value/parameter
 parameternamedriverName/namevalueSQLServer/value/parameter
parameternamedescription/namevalueSQL Server
DataSource/value/parameter
 parameternameserverName/namevaluelocalhost/value/parameter
parameternameportNumber/namevalue1433/value/parameter
 parameternameselectMethod/namevaluecursor/value/parameter
 parameternamedatabaseName/namevaluenorthwind/value/parameter
 parameternameuser/namevalueuser/value/parameter
parameternamepassword/namevaluepassword/value/parameter
 parameternameloginTimeout/namevalue3000/value/parameter
/ResourceParams
2. Register PoolDataSource. Here we specify the pool related properties and
a reference to the DataSource
   registered in step1.
Example:
Resource name=jdbc/mspool auth=Container type=
com.microsoft.mspool.PoolDataSource/
 ResourceParams name=jdbc/mypool
 parameternamefactory/namevalue
com.microsoft.mspool.PoolDataSourceFactory/value/parameter
 parameternameclassName/namevaluecom.microsoft.mspool.PoolDataSource
/value/parameter
 
parameternamedescription/namevalueMS_SQL_Pool_DataSource/value/parameter
 parameternamepoolName/namevaluewdserverpool/value/parameter
 parameternamemaxConnections/namevalue20/value/parameter
 parameternameminConnections/namevalue1/value/parameter
 parameternamecheckEvery/namevalue2/value/parameter
 parameternameidleTimeout/namevalue50/value/parameter
 parameternamedsJndiName/namevaluejdbc/sql2000/value/parameter
/ResourceParams
===Extract End=

Here is the test page provided by Microsoft in the zip file:

===Extract Starts=
HTML
HEAD
TITLE
Test Database Connection using Sample connectionpool manager with
Microsoft's Type 4 SQL Server 2000 JDBC Driver
/TITLE
/HEAD
BODY
%@ page import=java.sql.* %
%@ page 

Re: [ANN] Clustering broken 5.5.10-5.5.14

2005-12-28 Thread Pete Lamborne

what happened with the versioning?

Before the project was handed off from Jakarta, we were at version 5.5.9 
or something...


So which version do I need to use clustering?



Ronald Klop wrote:


Is there any info about when an updated release is scheduled?







On Fri Dec 23 19:45:11 CET 2005 Tomcat Users List 
users@tomcat.apache.org wrote:


 I've been getting a good amount of emails regarding the clustering 
system being broken in Tomcat 5.5, so I thought I make the 
announcement here so that we can clear the air once and for all.  In 
tomcat 5.5.10 the underlying communication protocol for the 
clustering system changed, and not only made the release incompatible 
with any previous release, but also broke the system completely.  
This change should have never seen the codebase, but it did.  We 
apologize for this error, it has been fixed in 5.5.15, in the future, 
we advise developers to not change protocol and low level code in 
dot-dot releases without complete regression testing.  Filip   
- 
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]



Getting list of all deployed web applications

2005-12-28 Thread Dhaval Patel
Hi,

  Is there a way by which you can list of all web applications deployed? I know 
that if you go to
manager webapp, you will see list of deployed applications. I want to achieve 
the same
functionality but using jsp pages. 

  I tried to understand the source of manager webapp but I could not find one 
thing. How do you
get catalina.host object? Once I get the host, I can use the list(...) method of
ManagerServlet.java into jsp page and thus can able to retrieve the list of 
deployed webapps
(hopefully !! Correct me if I am wrong or suggest me something better). This is 
not for any
production ready environment but for my own learning purpose.

  Thanks for your help.

Regards,
D




__ 
Yahoo! for Good - Make a difference this year. 
http://brand.yahoo.com/cybergivingweek2005/

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



Apache version

2005-12-28 Thread Franklin Phan

I'm running Tomcat on Windows XP Pro.  I'm trying to set up PHP.  How do I tell 
which Apache version I'm running?


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



RE: Apache version

2005-12-28 Thread Charles Baker
You may not be running apache. Installing tomcat does not install
apache. Did you install apache?


Charles H. Baker
O: 864.422.5349 C: 864.201.8456
[EMAIL PROTECTED] 
There's nothing wrong with getting a steady paycheck, unless it
interferes with your ability to earn what you're worth. There's the rub.
It usually does. -- T Harv Eker

-Original Message-
From: Franklin Phan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 28, 2005 3:13 PM
To: Tomcat Users List
Subject: Apache version

I'm running Tomcat on Windows XP Pro.  I'm trying to set up PHP.  How do
I tell which Apache version I'm running?


-
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: [ANN] Clustering broken 5.5.10-5.5.14

2005-12-28 Thread Martin Gainty
Good Afternoon Pete-
Peter Rossbach has registered a bug about Tomcat Clustering under Windows 
XP(specifically version 5.5.9)
The Cluster patch is available here
http://issues.apache.org/bugzilla/show_bug.cgi?id=34389
Anyone else?
Martin-

- Original Message - 
From: Pete Lamborne [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, December 28, 2005 2:01 PM
Subject: Re: [ANN] Clustering broken 5.5.10-5.5.14


 what happened with the versioning?
 
 Before the project was handed off from Jakarta, we were at version 5.5.9 
 or something...
 
 So which version do I need to use clustering?
 
 
 
 Ronald Klop wrote:
 
 Is there any info about when an updated release is scheduled?




 On Fri Dec 23 19:45:11 CET 2005 Tomcat Users List 
 users@tomcat.apache.org wrote:

  I've been getting a good amount of emails regarding the clustering 
 system being broken in Tomcat 5.5, so I thought I make the 
 announcement here so that we can clear the air once and for all.  In 
 tomcat 5.5.10 the underlying communication protocol for the 
 clustering system changed, and not only made the release incompatible 
 with any previous release, but also broke the system completely.  
 This change should have never seen the codebase, but it did.  We 
 apologize for this error, it has been fixed in 5.5.15, in the future, 
 we advise developers to not change protocol and low level code in 
 dot-dot releases without complete regression testing.  Filip   
 - 
 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: Apache version

2005-12-28 Thread Wade Chandler
--- Franklin Phan [EMAIL PROTECTED]
wrote:

 I'm running Tomcat on Windows XP Pro.  I'm trying to
 set up PHP.  How do I tell which Apache version I'm
 running?
 
 

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

If you are only running Tomcat then you are not
running the Apache httpd web server.  The tomcat
version is usually available  by simply looking at the
directory name, and you can run PHP using the servlet
they provide...see their docs.  If you want to install
the actual Apache web server you need to see:
http://httpd.apache.org

If you have httpd already installed then go to your
bin directory for the installation from the command
line and type:
httpd -v

Which will cause it to print the version and exit.

Wade

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



Re: Apache version

2005-12-28 Thread Franklin Phan

Oh.  Probably not.  Do I need to install Apache to run PHP?


Charles Baker wrote:

You may not be running apache. Installing tomcat does not install
apache. Did you install apache?


Charles H. Baker
O: 864.422.5349 C: 864.201.8456
[EMAIL PROTECTED] 
There's nothing wrong with getting a steady paycheck, unless it

interferes with your ability to earn what you're worth. There's the rub.
It usually does. -- T Harv Eker

-Original Message-
From: Franklin Phan [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 28, 2005 3:13 PM

To: Tomcat Users List
Subject: Apache version

I'm running Tomcat on Windows XP Pro.  I'm trying to set up PHP.  How do
I tell which Apache version I'm running?


-
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: Apache version

2005-12-28 Thread Wade Chandler
--- Franklin Phan [EMAIL PROTECTED]
wrote:

 Oh.  Probably not.  Do I need to install Apache to
 run PHP?
 
 
 Charles Baker wrote:
  You may not be running apache. Installing tomcat
 does not install
  apache. Did you install apache?
  
  
  Charles H. Baker
  O: 864.422.5349 C: 864.201.8456
  [EMAIL PROTECTED] 
  There's nothing wrong with getting a steady
 paycheck, unless it
  interferes with your ability to earn what you're
 worth. There's the rub.
  It usually does. -- T Harv Eker
  
  -Original Message-
  From: Franklin Phan
 [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, December 28, 2005 3:13 PM
  To: Tomcat Users List
  Subject: Apache version
  
  I'm running Tomcat on Windows XP Pro.  I'm trying
 to set up PHP.  How do
  I tell which Apache version I'm running?
  
  
 

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

No the PHP documentation will show you two ways to run
PHP.  Either using a servlet and using something like
tomcat or using apache (httpd).

For setting up in Tomcat you can probably see:
http://us2.php.net/manual/en/ref.java.php#java.servlet

Wade

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



Re: How to start ant to use the webapps classpath?

2005-12-28 Thread Balint Domokos
Hi,

did you try 
project.setCoreLoader(YourServletClass.class.getClassLoader());
?

Regards,
Balint

On Wed, 2005-12-28 at 14:01 +0100, Zsolt wrote:
 Hi,
 
 I have tomcat-5.5.12 and I copied all ant libraries (with my ones) into
 /webapps/APPLICATION-NAME/WEB-INF/lib.
 
 When I start ant using project.executeTargets(execTargets) I get class not
 found exceptions and I think because ant uses the bootstrap classpath of
 tomcat and not the classpath of my webapps.
 
 How can I get ant to use the correct path?
 
 Zsolt 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
-- 
Balint Domokos [EMAIL PROTECTED]


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



Re: Apache version

2005-12-28 Thread Martin Gainty

Good Afternoon Franklin-
Running PHP on Apache would be like putting a Yugo engine in a McLaren
..ok if your users demand sluggish performance from their webapp server
Martin-
- Original Message - 
From: Franklin Phan [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, December 28, 2005 3:24 PM
Subject: Re: Apache version


 Oh.  Probably not.  Do I need to install Apache to run PHP?
 
 
 Charles Baker wrote:
 You may not be running apache. Installing tomcat does not install
 apache. Did you install apache?
 
 
 Charles H. Baker
 O: 864.422.5349 C: 864.201.8456
 [EMAIL PROTECTED] 
 There's nothing wrong with getting a steady paycheck, unless it
 interferes with your ability to earn what you're worth. There's the rub.
 It usually does. -- T Harv Eker
 
 -Original Message-
 From: Franklin Phan [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, December 28, 2005 3:13 PM
 To: Tomcat Users List
 Subject: Apache version
 
 I'm running Tomcat on Windows XP Pro.  I'm trying to set up PHP.  How do
 I tell which Apache version I'm running?
 
 
 -
 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: java.lang.OutOfMemoryError: PermGen space

2005-12-28 Thread Rodrigo Ruiz
I guess it does not. Such an action should be considered a responsibility of
the web application.

Anyway, you could suggest this in the Tomcat bug list as a new feature.
Surely, it will not hurt ;-D

Regards,
Rodrigo Ruiz

On 12/23/05, Durfee, Bernard [EMAIL PROTECTED] wrote:

 Does Tomcat call releaseAll() when a web-app is undeployed?

 Bernie




Re: does Tomcat support optional packages?

2005-12-28 Thread Marina

Mark,
Thanks for the clarification!

I still have the same problem with extension not found
though. I checked in the code you pointed me to which
attributes are required and added them to both shared
JAR's MANIFEST.MF and to my Web app's MANIFEST.MF. I
placed all shared jars into the $TOMCAT/shared/lib
dir.
Here is an example of the MANIFEST.MF of a shared jar:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.2
Created-By: yGuard Bytecode Obfuscator 1.0.1
Extension-Name: epcis-apiJAR
Specification-Version: 1.0
Implementation-Version: 2726
Implementation-Vendor-Id: com.connecterra

And here is how I reference it in the Web App's
MANIFEST.MF (an exerpt):

Manifest-Version: 1.0
Extension-List: edgeserverDependency
epcis-apiDependency jaxb-apiDependency
jaxb-implDependency jaxb-libsDependency
jaxb-xjcDependency relaxngDatatypeDependency
xsdlibDependency
edgeserverDependency-Extension-Name: edgeserverJAR
edgeserverDependency-Specification-Version: 2.0.0
edgeserverDependency-Implementation-Version: 2741
edgeserverDependency-Implementation-Vendor-Id:
com.connecterra
epcis-apiDependency-Extension-Name: epcis-apiJAR
epcis-apiDependency-Specification-Version: 1.0
epcis-apiDependency-Implementation-Version: 2726
epcis-apiDependency-Implementation-Vendor-Id:
com.connecterra


Yet, when I start TOmcat, I'm getting the following
error:
Dec 28, 2005 3:26:46 PM
org.apache.catalina.util.ExtensionValidator
validateManifestResources
INFO: ExtensionValidator[/rftagaware-2.0.0-tomcat][Web
Application Manifest]: Required extension
epcis-apiJAR not found.

Am I missing something here?

Thanks for your help!
MArina

--- Mark Thomas [EMAIL PROTECTED] wrote:

 Marina wrote:
 
  Does anybody know whether this optional package
  support exists in Tomcat, or maybe I'm doing
 something
  wrong ?
 
 It is there but the compatibility checking is too
 strict at the
 moment. See

http://issues.apache.org/bugzilla/show_bug.cgi?id=37854
 for more info. In summary it affects tc4 and tc5 and
 tomcat requires
 all optional attributes to be present in all
 relevant manifests.
 
 For more detail, take a look at the relevant source
 at

http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/util/Extension.java
 and search for isCompatibleWith
 
 The tc4 code is the same.
 
 Mark
 
 

-
 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: Apache version

2005-12-28 Thread Wade Chandler
--- Martin Gainty [EMAIL PROTECTED] wrote:

 
 Good Afternoon Franklin-
 Running PHP on Apache would be like putting a Yugo
 engine in a McLaren
 ..ok if your users demand sluggish performance from
 their webapp server
 Martin-
 - Original Message - 
 From: Franklin Phan [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, December 28, 2005 3:24 PM
 Subject: Re: Apache version
 
 
  Oh.  Probably not.  Do I need to install Apache to
 run PHP?
  
  
  Charles Baker wrote:
  You may not be running apache. Installing tomcat
 does not install
  apache. Did you install apache?
  
  
  Charles H. Baker
  O: 864.422.5349 C: 864.201.8456
  [EMAIL PROTECTED] 
  There's nothing wrong with getting a steady
 paycheck, unless it
  interferes with your ability to earn what you're
 worth. There's the rub.
  It usually does. -- T Harv Eker
  
  -Original Message-
  From: Franklin Phan
 [mailto:[EMAIL PROTECTED] 
  Sent: Wednesday, December 28, 2005 3:13 PM
  To: Tomcat Users List
  Subject: Apache version
  
  I'm running Tomcat on Windows XP Pro.  I'm trying
 to set up PHP.  How do
  I tell which Apache version I'm running?
  

Not sure I'm following where you're going with this. 
I've run plenty of PHP applications on Apache Httpd
and never had any issues (Do you mean he should be
using IIS?).  Definitely off topic for the list, but
come on.

Wade

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



Re: Getting list of all deployed web applications

2005-12-28 Thread Martin Gainty
If I'm not mistaken its an environment variable which can be obtained via 
java.lang.System.getEnv(HTTP_HOST);
Take a look at
http://java.sun.com/j2se/1.5.0/docs/api/

Martin-
- Original Message - 
From: Dhaval Patel [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, December 28, 2005 3:11 PM
Subject: Getting list of all deployed web applications


 Hi,
 
  Is there a way by which you can list of all web applications deployed? I 
 know that if you go to
 manager webapp, you will see list of deployed applications. I want to achieve 
 the same
 functionality but using jsp pages. 
 
  I tried to understand the source of manager webapp but I could not find one 
 thing. How do you
 get catalina.host object? Once I get the host, I can use the list(...) method 
 of
 ManagerServlet.java into jsp page and thus can able to retrieve the list of 
 deployed webapps
 (hopefully !! Correct me if I am wrong or suggest me something better). This 
 is not for any
 production ready environment but for my own learning purpose.
 
  Thanks for your help.
 
 Regards,
 D
 
 
 
 
 __ 
 Yahoo! for Good - Make a difference this year. 
 http://brand.yahoo.com/cybergivingweek2005/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


JVM Memory allocation

2005-12-28 Thread Shah, Bharat
Good afternoon,

I am a new Tomcat user.  The Tomcat version installed on my server is 5.0.25.  
It is running on Windows 2000 and started as a Windows service.
Though I have the following parameters specified in the Windows registry, it is 
running with a default 64M as observed from the Server Status screen.

JVM Option Count2
JVM Option Number 0 -Xms256m
JVM Option Number 1 -Xmx1024m

Can someone help me find out why my server is defaulting to 64M and how to 
change it?

Thanks,


Bharat 





I 


*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*



Re: Getting list of all deployed web applications

2005-12-28 Thread Dhaval Patel
Hi Martin,

  Thanks for reply but I am looking at something different. System.getEnv(...) 
returns string
which it supposed to. The method is for retriving environment variables (which 
are loaded from
properties file, etc. while starting an application-tomcat)

  The host that I am talking about is org.apache.catalina.Host object. If you 
have tomcat 5.5.12
source, take a look at ManagerServlet.java . It has method called list(...) 
which is used to
retrive list of deployed webapps. For your reading, it is as follows:

protected void list(...) 
{
  org.apache.catalina.Host myHost = ?? 
  Container[] contexts = myHost.findChildren();
  for (int i = 0; i  contexts.length; i++) 
  {
Context context = (Context) contexts[i];
if (context != null ) 
{
//display context to page as link
}
  }
}

  Also one request to tomcat experts. If you know any other way of finding the 
list of depolyed
web applications, please let me know

  Thanks.

Regards,
Dhaval

--- Martin Gainty [EMAIL PROTECTED] wrote:

 If I'm not mistaken its an environment variable which can be obtained via
 java.lang.System.getEnv(HTTP_HOST);
 Take a look at
 http://java.sun.com/j2se/1.5.0/docs/api/
 
 Martin-
 - Original Message - 
 From: Dhaval Patel [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Wednesday, December 28, 2005 3:11 PM
 Subject: Getting list of all deployed web applications
 
 
  Hi,
  
   Is there a way by which you can list of all web applications deployed? I 
  know that if you go
 to
  manager webapp, you will see list of deployed applications. I want to 
  achieve the same
  functionality but using jsp pages. 
  
   I tried to understand the source of manager webapp but I could not find 
  one thing. How do you
  get catalina.host object? Once I get the host, I can use the list(...) 
  method of
  ManagerServlet.java into jsp page and thus can able to retrieve the list of 
  deployed webapps
  (hopefully !! Correct me if I am wrong or suggest me something better). 
  This is not for any
  production ready environment but for my own learning purpose.
  
   Thanks for your help.
  
  Regards,
  D
  
  
  
  
  __ 
  Yahoo! for Good - Make a difference this year. 
  http://brand.yahoo.com/cybergivingweek2005/
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 




__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


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



Re: JVM Memory allocation

2005-12-28 Thread Dwayne A. Ghant

1. Look in you tomcat-home/bin directory.
2. Look for a file called   service.bat
3. Look for a line that reads something like %EXECUTABLE% 
//US//%SERVICE_NAME% ++JvmOptions 
-Djava.io.tmpdir=%CATALINA_BASE%\temp --JvmMs 128 --JvmMx 256.


Change your memory listed in step 3.



Shah, Bharat wrote:


Good afternoon,

I am a new Tomcat user.  The Tomcat version installed on my server is 5.0.25.  
It is running on Windows 2000 and started as a Windows service.
Though I have the following parameters specified in the Windows registry, it is 
running with a default 64M as observed from the Server Status screen.

JVM Option Count2
JVM Option Number 0 -Xms256m
JVM Option Number 1 -Xmx1024m

Can someone help me find out why my server is defaulting to 64M and how to 
change it?

Thanks,


Bharat 






I 



*
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*


 




--
Dwayne A. Ghant
Application Developer
Temple University
215.204.3467
[EMAIL PROTECTED]


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



Re: Getting list of all deployed web applications

2005-12-28 Thread Martin Gainty
Hello Dhaval

Did you try
Host myHost = (Host)context.getParent()?
Anyone else?

Martin-
-- Original Message - 
From: Dhaval Patel [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org; Martin Gainty [EMAIL 
PROTECTED]
Sent: Wednesday, December 28, 2005 5:21 PM
Subject: Re: Getting list of all deployed web applications


 Hi Martin,
 
  Thanks for reply but I am looking at something different. System.getEnv(...) 
 returns string
 which it supposed to. The method is for retriving environment variables 
 (which are loaded from
 properties file, etc. while starting an application-tomcat)
 
  The host that I am talking about is org.apache.catalina.Host object. If 
 you have tomcat 5.5.12
 source, take a look at ManagerServlet.java . It has method called list(...) 
 which is used to
 retrive list of deployed webapps. For your reading, it is as follows:
 
 protected void list(...) 
 {
  org.apache.catalina.Host myHost = ?? 
  Container[] contexts = myHost.findChildren();
  for (int i = 0; i  contexts.length; i++) 
  {
Context context = (Context) contexts[i];
if (context != null ) 
{
 //display context to page as link
}
  }
 }
 
  Also one request to tomcat experts. If you know any other way of finding the 
 list of depolyed
 web applications, please let me know
 
  Thanks.
 
 Regards,
 Dhaval
 
 --- Martin Gainty [EMAIL PROTECTED] wrote:
 
 If I'm not mistaken its an environment variable which can be obtained via
 java.lang.System.getEnv(HTTP_HOST);
 Take a look at
 http://java.sun.com/j2se/1.5.0/docs/api/
 
 Martin-
 - Original Message - 
 From: Dhaval Patel [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Wednesday, December 28, 2005 3:11 PM
 Subject: Getting list of all deployed web applications
 
 
  Hi,
  
   Is there a way by which you can list of all web applications deployed? I 
  know that if you go
 to
  manager webapp, you will see list of deployed applications. I want to 
  achieve the same
  functionality but using jsp pages. 
  
   I tried to understand the source of manager webapp but I could not find 
  one thing. How do you
  get catalina.host object? Once I get the host, I can use the list(...) 
  method of
  ManagerServlet.java into jsp page and thus can able to retrieve the list 
  of deployed webapps
  (hopefully !! Correct me if I am wrong or suggest me something better). 
  This is not for any
  production ready environment but for my own learning purpose.
  
   Thanks for your help.
  
  Regards,
  D
  
  
  
  
  __ 
  Yahoo! for Good - Make a difference this year. 
  http://brand.yahoo.com/cybergivingweek2005/
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 
 
 __ 
 Yahoo! DSL - Something to write home about. 
 Just $16.99/mo. or less. 
 dsl.yahoo.com 
 


log4j setup in tomcat 5.0

2005-12-28 Thread bana lakshmi narayana reddy
Hi,
   I need small help. for setup a log4j in tomcat 5.0
  i have done the following steps
  1). copied log4j.jar into CATALINA_HOME/common/lib
2). copied log4j.properties file into CATALINA_HOME/common/classes 
  still i am not able done a setup. Is there anything is missed in my setup 
process... please help me
  regards,
reddy





-
Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, 
whatever.

Re: does Tomcat support optional packages?

2005-12-28 Thread Mark Thomas
Marina wrote:
 Mark,
 Thanks for the clarification!
 
 I still have the same problem with extension not found
 though. I checked in the code you pointed me to which
 attributes are required and added them to both shared
 JAR's MANIFEST.MF and to my Web app's MANIFEST.MF. I
 placed all shared jars into the $TOMCAT/shared/lib
 dir.

snip

 Am I missing something here?

Yep. The extensions are a JRE/JDK feature rather than a Tomcat
feature.
http://java.sun.com/j2se/1.3/docs/guide/extensions/extensions.html has
a good overview (I don't think much changed for 1.4 or 5.0). The
extensions are expected to be found in $JAVA_HOME/lib/ext in a JRE or
$JAVA_HOME/jre/lib/ext for an SDK.

Options are:
1. Use $TOMCAT/shared/lib and just remove all of the extension stuff
from the manifests
2. Placed your shared jars in the right directory in your JRE/JDK as
appropriate.

Mark


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



Re: Please Help! Error in using Packages

2005-12-28 Thread Teh Noranis Mohd Aris
Actually, it's only a small matter. I accessed the url
from the browser by not following the correct path as
in the url-pattern in web.xml file. That's why I got
the error message 404 where the path is not available.

TEH 

--- KJ R [EMAIL PROTECTED] wrote:

 Usually, when you solve a problem, it's helpful to
 post what the solution was, even if it was something
 silly, it could possibly help someone else.
 
 K
 
 --- Teh Noranis Mohd Aris [EMAIL PROTECTED]
 wrote:
 
  Dear all,
  I've already solve the problem. Thanks to all who
  had
  contributed.
  
  TEH
  
  
  --- Prasad [EMAIL PROTECTED] wrote:
  
   Teh,
   
   The web.xml looks fine to me.  Can  you confirm
  that
   you war file is 
   packaged correctly i.e
   its created with proper packages structure and
   dir/file names.
   
   Also, I was wondering why are you being asked to
   (explicitly) create a 
   context element in server.xml. Is it a TC v4.x
   requirement ?
   I have used TC 3,4 and 5 but never was I
 required
  to
   explicitly create a 
   context entry in server.xml for any webapp.
   
   I used more of a traditional way of dropping a
 war
   file into webapps/ 
   and re-starting the container and it has been
   working
   fine for me so far.
   
   Experts, any thoughts on this one ?
   
   Teh, if you are sure that the deployed WAR is
 sane
   then we should wait 
   for experts to provide an answer.
   
   -Prasad.
   
   Teh Noranis Mohd Aris wrote:
   
   The web.xml looks like this:
   
   ?xml version=1.0 encoding=ISO-8859-1?
   
   !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web
   Application 2.3//EN
  
   http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
   
   web-app
   
 servlet
   servlet-nameMyFirstServlet/servlet-name
  
  
 

servlet-classcom.wrox.projsp.ch03.myfirstwebapp.MyFirstServlet/servlet-class
 /servlet
   
 servlet-mapping
   servlet-nameMyFirstServlet/servlet-name
   url-pattern
 /MyFirstServlet
   /url-pattern
 /servlet-mapping
   
   /web-app
   
   I placed the web.xml in
   c:\jakarta-tomcat-4.1.31\webapps\ch03\WEB-INF
   directory.
   
   How about the server.xml file in
   c:\jakarta-tomcat-4.1.31\conf directory? The
   original
   file looks like this:
   
   .
   .
   .
   !-- Tomcat Examples Context --
   Context path=/examples
   docBase=examples
   debug=0
reloadable=true
   crossContext=true
 Logger
  
 className=org.apache.catalina.logger.FileLogger
   
   prefix=localhost_examples_log.
   suffix=.txt
  timestamp=true/
 Ejb   name=ejb/EmplRecord
   type=Entity
   
   home=com.wombat.empl.EmployeeRecordHome
 
   remote=com.wombat.empl.EmployeeRecord/
   .
   .
   .
   
   Should I replace Context path=/examples to
   Context
   path=ch03 and docBase=examples to
   docBase=myfirstwebapp (the war file for
   myfirstwebapp in the
   c:\jakarta-tomcat-4.1.31\webapps\ch03
 directory)?
   Thanks.
   
   TEH  
   
   --- Prasad [EMAIL PROTECTED] wrote:
   
 
   
   Can you post your web.xml. I think I can help
  you
   with this but only 
   after looking at your web.xml.
   I think the problem is with servlet and
   servlet-mapping in your 
   web.xml. Moreover as David said, you can find
  all
   the information in the 
   Docs.
   -Prasad.
   
   
   
   
  
 

-
 
   
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
   
   
   
   
  
 
 __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
   protection around 
   http://mail.yahoo.com 
   
  
 

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

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
  
  
  
  __ 
 
=== message truncated ===




__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 


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



HELP: How to configure username, password for JDBC/Oracle based Tomcat's session persistence

2005-12-28 Thread Edmon Begoli
Can someone please share the configuration file (context.xml) for
Tomcat 5.5and how did you configure
username password for connectionURL for Oracle thin driver.

As you know Store element does not define separate attributes for
username/password so you need to somehow embed them in the
connectionURL.

--
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


How to download a soft-link file in Tomcat 4.1.23?

2005-12-28 Thread zhang chao
I want to download a file in my home directory -- /home/kartwall/outfile 
but, this directory is not in my web-application directory -- 
/opt/easycluster/interface is my web application's root directory.


So, I make a new directory named mapoutfile under 
/opt/easycluster/interface and construct a soft-link which points to the 
file I want. The command is:


ln -s /home/kartwall/outfile /opt/easycluster/interface/mapoutfile/outfile

But I found that I cannot download this soft-link file when I input the 
URL: http://192.168.0.2:8080/easycluster/mapoutfile/outfile, Tomcat said 
this resource is unavailable. (My web-context is /easycluster)


Can anybody help me? Thanks for any suggestions.

_
免费下载 MSN Explorer:   http://explorer.msn.com/lccn/  



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



Session persistence - unique index violated

2005-12-28 Thread Edmon Begoli
Hi,

When I enable JDBC session persistence I get
ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (
JDBCStore.java:791) - SQL Error java.sql.SQLException: ORA-1: unique
constraint (APP_NAME) violated

I followed the instructions to add APP_NAME as a key, but when I look at
what is being produced it seems to me that APP_NAME
is not a primary key by no means.

What should be done about this? Change primary key to SESSION_ID or
composite of SESSION_ID and APP_NAME?

--
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


Problem with Cache

2005-12-28 Thread RITWICK
Hi, 
  I have redirected a page through
   
  response.sendRedirect(../frame.html) 
   
  command.
 Every time the servlet is called it updates the file.html  is redirected 
to it.But the problem is the browser shows the file.html from its cache 
everytime. Though the file gets updated the output can be viwed correctly only 
when it is refreshed.I've tried to clear the cache with :
   
  response.setHeader(Pragma, no-cache);
  response.setHeader(Cache-Control, no-cache);
  response.setDateHeader(Expires, 0); 
   
  but without avail. 
 I'm using jakarta-tomcat-4.1.27. Apparently it doesnt seem that it is a 
tomcat problem, but at the same time, for a trial run it was tested on 
jakarta-tomcat-5.0.27  the results were fine! Now is there any rectification 
measures u can suggest so that it can be viewed under jakarta-tomcat-4.1.27
  ritw
   
  Note: I'm using mozilla firefox with jakarta-tomcat-4.1.27. 

Send instant messages to your online friends http://in.messenger.yahoo.com 

Re: Problem with Cache

2005-12-28 Thread Pete Lamborne

tack a random number on the url.

String myURL = ../frame.html;
myURL += ? + Math.rand();

response.sendRedirect(myURL)

The headers wouldn't help cachebust a static html file, you'll have to do it 
this way.

HTH
pete






RITWICK wrote:

Hi, 
 I have redirected a page through
  
 response.sendRedirect(../frame.html) 
  
 command.

Every time the servlet is called it updates the file.html  is redirected 
to it.But the problem is the browser shows the file.html from its cache everytime. 
Though the file gets updated the output can be viwed correctly only when it is 
refreshed.I've tried to clear the cache with :
  
 response.setHeader(Pragma, no-cache);

 response.setHeader(Cache-Control, no-cache);
 response.setDateHeader(Expires, 0); 
  
 but without avail. 
I'm using jakarta-tomcat-4.1.27. Apparently it doesnt seem that it is a tomcat problem, but at the same time, for a trial run it was tested on jakarta-tomcat-5.0.27  the results were fine! Now is there any rectification measures u can suggest so that it can be viewed under jakarta-tomcat-4.1.27

 ritw
  
 Note: I'm using mozilla firefox with jakarta-tomcat-4.1.27. 

Send instant messages to your online friends http://in.messenger.yahoo.com 
 



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



Re: Problem with Cache

2005-12-28 Thread RITWICK
   I,ve done it using:
   
  String myURL = ../frame.html;
myURL += ? + Math.random();
response.sendRedirect(myURL);
   
  the url's are also changed with different random tags.But the problem stll 
exists very much.
 I've thought an alternative to stram the file to the browser through 
Filestram setting the mimetype.Howver its just a thought.
 Howver it would be better if the solution was less laborious than the one 
which I thought
  Thanx

 Ritwick
   

Send instant messages to your online friends http://in.messenger.yahoo.com 

RE: How to start ant to use the webapps classpath?

2005-12-28 Thread Zsolt
Yes I tried it but it didn't help.

-Original Message-
From: Balint Domokos [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 28, 2005 9:41 PM
To: Tomcat Users List
Subject: Re: How to start ant to use the webapps classpath?

Hi,

did you try
project.setCoreLoader(YourServletClass.class.getClassLoader());
?

Regards,
Balint

On Wed, 2005-12-28 at 14:01 +0100, Zsolt wrote:
 Hi,

 I have tomcat-5.5.12 and I copied all ant libraries (with my ones) into
 /webapps/APPLICATION-NAME/WEB-INF/lib.

 When I start ant using project.executeTargets(execTargets) I get class
not
 found exceptions and I think because ant uses the bootstrap classpath of
 tomcat and not the classpath of my webapps.

 How can I get ant to use the correct path?

 Zsolt




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

--
Balint Domokos [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]