Re: Multiple war files for a single webapp or context

2011-10-17 Thread Ziggy
Would the nested context approach allow access to session data from one war file to the other? Thanks On Mon, Oct 17, 2011 at 12:08 PM, Konstantin Kolinko knst.koli...@gmail.com wrote: 2011/10/17 Ziggy zigg...@gmail.com: I have an application that has the following structure

Tomcat JMX connection - Authentication failed.

2011-01-13 Thread Ziggy
Tomcat JMX connection - Authentication failed. I am having some problems setting up Tomcat for JMX. I added the following properties to CATALINA_OPTS CATALINA_OPTS=-Dcom.sun.management.jmxremote.port=18070 -Dcom.sun.management.jmxremote.password.file=$CATALINA_BASE/conf/jmxremote.password

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread Ziggy
13, 2011 at 1:20 PM, André Warnier a...@ice-sa.com wrote: Ziggy wrote: Tomcat JMX connection - Authentication failed. I am having some problems setting up Tomcat for JMX. I added the following properties to CATALINA_OPTS CATALINA_OPTS=-Dcom.sun.management.jmxremote.port=18070

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread Ziggy
the jconsole utility as a client, you will see this on the connection box. I have no idea how you supply these credentials programmatically from /your/ client, but that is what you have to find out. Ziggy wrote: Ok i am stuck now - here is the full configuration $CATALINA_BASE

Re: Tomcat JMX connection - Authentication failed.

2011-01-13 Thread Ziggy
meaning i have to provide the login credentials). On Thu, Jan 13, 2011 at 4:06 PM, Pid p...@pidster.com wrote: On 1/13/11 3:15 PM, Ziggy wrote: Aha... i didnt realise that i needed to supply the credentials from the client. I thought Tomcat would get those from the password files. Ok im

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-08 Thread Ziggy
Thanks for that - The client tool i am writing is running on the same machine as the application which is firewalled. There is no direct access to the webapp except via an AJP port which is only accessible via Apache Webserver. Thanks On Sat, Jan 8, 2011 at 4:07 PM, Konstantin Kolinko

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-07 Thread Ziggy
, Jan 7, 2011 at 12:43 AM, Pid p...@pidster.com wrote: On 1/6/11 7:33 PM, Ziggy wrote: I have gone through all the mbeans by using Jconsole but i cant find the one i need that tells me that the application is active and running. You want Catalina:type=WebModule or Catalina:type=Manager

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-07 Thread Ziggy
...@kippdata.dewrote: On 06.01.2011 21:22, Ziggy wrote: Please see my previous response re: open source tools. :) As i mentioned earlier, the project that i need to deploy this tool will not allow any open source tool without it being approved which involves a long security vetting process. I

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-07 Thread Ziggy
On Fri, Jan 7, 2011 at 11:50 AM, Ziggy zigg...@gmail.com wrote: Yes i saw this earlier and would have been very usefull if i could have used it. Unfortunately we dont deploy the manager or admin apps on the production environments. These are only available on development and Test servers. Thanks

Tomcat monitoring using JMX

2011-01-06 Thread Ziggy
Hi, I am using JMX to connect to a Tomcat instance and looking at attributes for a jdbc datasource as shown below. MBeanServerConnection conn = jmxc.getMBeanServerConnection(); ObjectName on = new

Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
I was looking at the code for the Tomcat Manager application to try and find out how it is determining whether a webapp/context is running and how many sesions are active. Looking at the code i think it uses these two methods Context.getAvailalbe() //check if available

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
sometimes report 0 even when the application is available so it is not reliable. Thanks On Thu, Jan 6, 2011 at 6:29 PM, Pid p...@pidster.com wrote: On 1/6/11 6:07 PM, Ziggy wrote: I was looking at the code for the Tomcat Manager application to try and find out how it is determining whether

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
- It will be quicker for me to produce something quicker myself than it will be to convince my boss to authorise an open source tool for a project that is not supposed to be accessed by external users. Thanks On Thu, Jan 6, 2011 at 6:58 PM, Kees Jan Koster kjkos...@gmail.com wrote: Dear Ziggy, I

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
to know which Mbean to look at. I have found the Datasource ones but not the ones related to the webapplication itsself. Thanks On Thu, Jan 6, 2011 at 7:28 PM, Mark Eggers its_toas...@yahoo.com wrote: - Original Message (edited) From: Ziggy zigg...@gmail.com To: Tomcat Users List users

Re: Accessing context information remotely - Context.getAvailable() etc.

2011-01-06 Thread Ziggy
there that can do exactly what i am trying to do but sometimes there are reasons that those tools cannot be used due to the nature of some projects. On Thu, Jan 6, 2011 at 8:03 PM, Mark Eggers its_toas...@yahoo.com wrote: - Original Message (edited) From: Ziggy zigg...@gmail.com To: Tomcat

setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Ziggy
Hi guys, At the moment i have several catalina bases configured with the following directories, conf logs server webapps work The bin, lib and common directories are all still in $CATALINA_HOME. I now need to add a setenv.sh file in the bin directory but i dont want it to be used by all the

Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Ziggy
I am using Tomcat v5.5 Do you mean that for newer versions of Tomcat, if i want to move some of the scripts from $CATALINA_HOME/bin to $CATALINA_BASE/bin i will not be able to? Thanks On Tue, Nov 9, 2010 at 1:38 PM, Konstantin Kolinko knst.koli...@gmail.comwrote: 2010/11/9 Ziggy zigg

Re: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Ziggy
Hi Patrick, When you say multiple instances it could mean one of two things - Running multiple instances of Tomcat using multiple CATALINA_BASES - Running the same instance of Tomcat but with multiple virtual hosts Do you mean that you are deploying different applications (i.e different war

Re: Shutting down one instance of tomcat 6 from a listener

2010-11-09 Thread Ziggy
If you are refering to wanting to undeploy a specific application from the same instance (installation) of tomcat then there are several ways - Using Tomcat Manager - You can write an Ant script to undeploy the application On Tue, Nov 9, 2010 at 5:22 PM, Ziggy zigg...@gmail.com wrote: Hi

Re: setenv.sh in an individual tomcat catalina base

2010-11-09 Thread Ziggy
below is based on the standard catalina.sh as provided in the standard Tomcat download, but there is no guarantee that this script has not been modified (or is even used) in your particular package. Ziggy wrote: I am using Tomcat v5.5 Do you mean that for newer versions of Tomcat, if i want

Re: Malicious host is crashing my server

2010-11-07 Thread Ziggy
That number is not necessarily the IP address used to connect to your server. On Sun, Nov 7, 2010 at 6:28 PM, Assaf ass...@yahoo.com wrote: A filter to block is good. But then I would not be able to see him doing it again and then find out the issue. Assaf - Original Message

Connection Leak

2010-11-03 Thread Ziggy
Hi All, Resource name=myConn auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@10.10.10.10.:1521:mydb username=username password=password maxActive=500 maxIdle=50 maxWait=-1

Re: Connection Leak

2010-11-03 Thread Ziggy
AM, Ziggy zigg...@gmail.com wrote: Hi All, Resource name=myConn auth=Container type=javax.sql.DataSource driverClassName=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@10.10.10.10.:1521:mydb username=username password=password maxActive=500

Re: tomcat 6.0 404 error only on firefox due to backslashes?

2010-06-10 Thread Ziggy
For security purposes, Mozilla applications block links to local files (and directories) from remote files. This includes linking to files on your hard drive, on mapped network drives, and accessible via Uniform Naming

Multiple catalina bases and monitoring each instance

2010-04-23 Thread Ziggy
Hi guys, Is there a way to monitor multiple tomcat instances? I have managed to configure multiple tomcat instances using $CATALINA_BASE but i cant seem to be able to find a way to monitor the instances. I know about the tomcat manager, admin and the Tomcat Probe/lambda applications. These will

Re: Multiple catalina bases and monitoring each instance

2010-04-23 Thread Ziggy
instances. You can do a plain check for an open socket, or call Tomcat's jmx proxy over http(s) to query Tomcat's mbeans. regards, Harry 2010/4/23 Ziggy zigg...@gmail.com Hi guys, Is there a way to monitor multiple tomcat instances? I have managed to configure multiple tomcat

Re: Recommendations for Automating Deployments and then dev, qa, uat, prod testing

2010-01-24 Thread Ziggy
Continous Integration sounds like a better solution for you. Your apps will be built and tested as soon as the developer checks in their code in SVN. Have a look at http://cruisecontrol.sourceforge.net Using CruiseControl will ensure that the developers wont check-in anything with errors on it.

Re: Getting 403 (Access Denied) when running Tomcat under Eclipse

2010-01-18 Thread Ziggy
Doesnt eclipse use use a $CATALINA_BASE to run tomcat? I think the tomcat instance on eclipse is not the same as the one on $CATALINA_HOME. Look at the server project files under eclipse they will have their own configuration files. On Mon, Jan 18, 2010 at 10:43 PM, oh...@cox.net wrote: Hi, I

Re: Can't log in to Tomcat

2010-01-17 Thread Ziggy
It is possible to run multiple instances of Tomcat. When you run it within Netbeans, the instance you are running is not the instance in your $CATALINA_HOME. This is why when you made changes to the $CATALINA_HOME/conf/tomcat-users.xml file nothing happened. It just means that netbeans runs its

Re: Tomcat access is very slow

2010-01-15 Thread Ziggy
Is it slow when you try to access it directly using the IP address? On Fri, Jan 15, 2010 at 7:54 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yu, On 1/15/2010 11:28 AM, Yu Chao wrote: I’m not a very new to Tomcat \with a few

Re: java shutdown hook and classpath

2010-01-07 Thread Ziggy
Usually when i get these kind of problems i try and put the jar files in the tomcat common/lib folder to rule out class loader issues. Try and put the libraries there as all jar files in that folder will be picked up. On Thu, Jan 7, 2010 at 1:16 PM, David Wood daw...@us.ibm.com wrote: Hi and

Re: How to change effective user id on Windows

2010-01-07 Thread Ziggy
Look at http://tomcat.apache.org/tomcat-5.5-doc/windows-service-howto.htmland see the --user parameter under command line parameters. -- D On Thu, Jan 7, 2010 at 2:07 PM, Amit Agarwal ami@gmail.com wrote: Tomat on Linux starts as root to bind to port 80, and then switches effective user

Re: Location of properties file for web app in Tomcat

2009-11-19 Thread Ziggy
I had the same problem before. I didnt want to configure the location of the properties file at the tomcat instance level since i had more than one war file. What i ended up doing is add the properties file configuration on the application's context file. This meant each war file can point to its

Re: Multiple war files for the same application context.

2009-11-17 Thread Ziggy
this foo#bar.war approach and see how it will work. Thanks On Tue, Nov 17, 2009 at 3:47 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Ziggy [mailto:zigg...@gmail.com] Subject: Re: Multiple war files for the same application context. That is interesting. Is the # supposed

Re: Deployment specific configuration - best practice

2009-11-16 Thread Ziggy
Why do you need to provide a sample webapp? Usually if you post your database configuration, the exception that you are getting and the code where the exception is raised people should be able to figure out why there is a problem. :) On Mon, Nov 16, 2009 at 11:28 AM, Leon Rosenberg

Multiple war files for the same application context.

2009-11-16 Thread Ziggy
Hi guys, Is it possible to deploy multiple war files for the same application? for example if i have an application that is accessed via http:/// www.test.com/myapp, i would usually have a single war file called myapp.war and deploy everthing in that one file. is it possible to deploy

Re: Multiple war files for the same application context.

2009-11-16 Thread Ziggy
servlet based webapps? Thanks On Mon, Nov 16, 2009 at 6:39 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Mon, Nov 16, 2009 at 10:34 AM, Ziggy zigg...@gmail.com wrote: is it possible to deploy myapp1ArticleManager.war, myapp1Forum.war etc and have them all be as part of the one

Re: Multiple war files for the same application context.

2009-11-16 Thread Ziggy
. Joe -Original Message- From: Ziggy [mailto:zigg...@gmail.com] Sent: Monday, November 16, 2009 12:35 PM To: Tomcat Users List Subject: Multiple war files for the same application context. Hi guys, Is it possible to deploy multiple war files for the same application? for example

Re: Multiple war files for the same application context.

2009-11-16 Thread Ziggy
16, 2009 at 10:51 AM, Ziggy zigg...@gmail.com wrote: I was recently looking at a CMS portal and found that the portal allowed plugins/application to be deployed as war files. The plugins themselves are portlets so not quite the type of application i am using. Is it the case that maybe

Re: Deployment of war file into a common locatiion

2009-11-16 Thread Ziggy
What exactly is the reason your team cannot access the application? It doesnt sound like its a Tomcat issue but probably something related to your network settings. Maybe the firewall? How are they accessing your system? On Mon, Nov 16, 2009 at 3:40 PM, Neil Aggarwal

Re: Deployment specific configuration - best practice

2009-11-16 Thread Ziggy
Right this thread has totally confused me now.. On Tue, Nov 17, 2009 at 12:15 AM, Mark Thomas ma...@apache.org wrote: Rainer Frey wrote: * settings in /META-INF/context.xml This one please. Tomcat will extract it on first deployment. OK that will fail but we can then edit the extracted

Re: Multiple war files for the same application context.

2009-11-16 Thread Ziggy
Hi Pid, That is interesting. Is the # supposed to be part of the filename? Thanks On Mon, Nov 16, 2009 at 8:38 PM, Pid p...@pidster.com wrote: On 16/11/2009 19:25, Ziggy wrote: Are you trying to deploy elements of a larger applications separately? Yes that is exactly what i am trying

Re: Regarding 1 Webserver Multiple Web App project

2009-11-14 Thread Ziggy
What is wrong with two domains? i.e. www.domain1.com points to webapp1 www.domain2.com points to webapp2 Both domains need to be pointing at the same IP address i.e. the IP address of where the webapps are hosted. Then just use virtual hosting using Apache or Tomcat to redirect. If you are

Re: What different between Apache and Apache Tomcat?

2009-11-14 Thread Ziggy
On Sat, Nov 14, 2009 at 2:21 PM, Peter Crowther peter.crowt...@melandra.com wrote: Many Internet sites still tell you that Tomcat is slow at serving static content such as html files, and you should put httpd in front for serving those files. This is not true for Tomcat 5.5.x and Tomcat

Re: Tomcat really need Shutdown port

2009-11-14 Thread Ziggy
If you dont configure the shutdown port how will tomcat know which instance to shutdown if you have configured mulitple tomcat instances using multiple catalina_bases?? On Sat, Nov 14, 2009 at 3:15 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: SRama

Re: Tomcat common/lib

2009-11-14 Thread Ziggy
for the help. Thanks On Fri, Nov 13, 2009 at 2:22 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ziggy, On 11/13/2009 8:15 AM, Ziggy wrote: yes i think you are right. The compiler errors are not on the Connection

Re: Tomcat really need Shutdown port

2009-11-14 Thread Ziggy
You can use netstat -a to see if the Tomcat port number is listening. On Sat, Nov 14, 2009 at 4:09 PM, SRamasamy su...@techie.com wrote: That's bad; each time the user clicks the link a new instance of Tomcat will start, all but the first of which will die due to port conflicts. Sloppy, at

Tomcat common/lib

2009-11-13 Thread Ziggy
Hi, When i deploy an application on Tomcat, i have to place the jdbc driver in the $CATALINA_HOME/common/lib folder to be able to use the JNDI facilities. This is fine but when i build the war file using ANT, it refuses to build the war file unless i have the jdbc driver in the application's

Re: Tomcat common/lib

2009-11-13 Thread Ziggy
Excellent thanks. Im only beginning to use ANT so im learning it. Thanks On Fri, Nov 13, 2009 at 8:08 AM, Mikolaj Rydzewski m...@ceti.pl wrote: Ziggy wrote: When i deploy an application on Tomcat, i have to place the jdbc driver in the $CATALINA_HOME/common/lib folder to be able to use

Multiple tomcat instances

2009-11-13 Thread Ziggy
Hi, I have set up multiple Tomcat instances using the multiple CATALINA_BASE approach. Everything works fine but i have two issues that i need clarification on. I am currently using Tomcat 5.5 1. When i have created the new folders that $CATALINA_BASE will point to, which files do i need to copy

Re: Tomcat common/lib

2009-11-13 Thread Ziggy
Rydzewski m...@ceti.pl wrote: Ziggy wrote: when i build the war file using ANT, it refuses to build the war file unless i have the jdbc driver in the application's WEB-INF/lib folder Do you use any driver specific calls in your code? Since you use JNDI, you should rely only on DataSource

Re: Tomcat common/lib

2009-11-13 Thread Ziggy
Thats interesting.. let me try it again and see the exact compile error that is raised. On Fri, Nov 13, 2009 at 9:18 AM, Mikolaj Rydzewski m...@ceti.pl wrote: Ziggy wrote: No i dont have driver specific code. But something like this raises compilation errors as the jar file that includes

Re: Tomcat common/lib

2009-11-13 Thread Ziggy
for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. On Fri, Nov 13, 2009 at 12:28 PM, Ziggy zigg...@gmail.com wrote: Thats interesting.. let me try it again and see the exact compile error

Deploying and building a war file

2009-11-09 Thread Ziggy
Hi all, I've got a query on the way web applications are deployed. I have an application that has several jsp files and serlvets that are in WEB-INF/classes. When i deploy the application all i do is do a checkout on CVS, make the changes, rebuild the war using ANT and redeploy manually. This

Re: Deploying and building a war file

2009-11-09 Thread Ziggy
, and it is automatically re-compiled re-deployed to the running server. At worst, you only need to hit a refresh button. It makes life much simpler, and the syntax-directed editor saves me from many stupidities. --Ken On Nov 9, 2009, at 7:04 AM, Ziggy wrote: Hi all, I've got a query on the way web

Re: Trying to set up tomcat

2009-11-07 Thread Ziggy
What exactly is the problem? On 11/7/09, paul8 pau...@hotmail.co.uk wrote: Hi I am trying to set up Tomcat on ubuntu, I have unziped and changed the classpath(i think) i go in to the bin folder of tomcat and run catalina.sh using terminal and get the following

Re: Adding a new webapps directory

2009-10-18 Thread Ziggy
Can't this not be achieved by using a different CATALINA_BASE? On 10/17/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Marco Rocco [mailto:mr8...@gmail.com] Subject: Re: Adding a new webapps directory at http://127.0.0.1:8080/ServletExample i get blank page. Any way this is

Can a JNDI resource be in a webapp's lib folder

2009-10-15 Thread Ziggy
I am trying to set up a JNDI resource of an Oracle database connection. I have set the connection details in my application's context file in $CATALINA_BASE/webapps/myapp/META-INF/context.xml I put the jdbc driver in $CATALINA_BASE/common/lib and everything works fine. The problem is i dont want

Re: Re Directing tomcat console out put to log files

2009-10-10 Thread Ziggy
Hi vijay Your comments are not really helpfull and are rude. Just because something has been updated it does not mean that you have to use the latest version.. There could be a million reasons why someone decides to stick with an older version of an application. Upgrading just for the sake of it

Re: Re Directing tomcat console out put to log files

2009-10-10 Thread Ziggy
Sorry vijay my comments were directed at Andre On 10/10/09, Ziggy zigg...@gmail.com wrote: Hi vijay Your comments are not really helpfull and are rude. Just because something has been updated it does not mean that you have to use the latest version.. There could be a million reasons why

Re: Re Directing tomcat console out put to log files

2009-10-10 Thread Ziggy
Have a look at this page http://tomcat.apache.org/tomcat-4.1-doc/config/logger.html On Sat, Oct 10, 2009 at 11:12 AM, Ziggy zigg...@gmail.com wrote: Sorry vijay my comments were directed at Andre On 10/10/09, Ziggy zigg...@gmail.com wrote: Hi vijay Your comments are not really helpfull

jar file loading priority

2009-10-10 Thread Ziggy
Hi all, Could someone please clarify this for me as i have always wondered about it but couldnt find any usefull information. Given the following directories $JAVA_HOME/jdk/lib/ $JAVA_HOME/jdk/jre/lib/ $JAVA_HOME/jdk/jre/lib/ext $TOMCAT_HOME/common/lib $CATALINA_BASE/common/lib

Re: Re Directing tomcat console out put to log files

2009-10-09 Thread Ziggy
all output for System.out statements should by default go to the tomcat log file which is in $CATALINA_HOME/logs/catalina.out Is anything getting written to that file? On 10/9/09, VijayKS ksvijay...@gmail.com wrote: Hi I m using Tomcat 4.1. I try to redirect System.out to log files, but

Re: Help management access

2009-10-04 Thread Ziggy
I can't access the tomcat Management system That can mean a million things. What exactly happens when you try to access the manager? On Sun, Oct 4, 2009 at 4:57 PM, Jared Southern jaredsouth...@hotmail.comwrote: Hi all, I installed Apache Tomcat Version 6.0.20 I can't access the tomcat

Re: php 5 and tomcat 6

2009-09-24 Thread Ziggy
Have a look at liferay portlets... They allow you to run php portlets from inside a j2ee container like tomcat.. www.liferay.com On 9/24/09, Tommy Pham tommy...@yahoo.com wrote: - Original Message From: Hassan Schroeder hassan.schroe...@gmail.com To: Tomcat Users List

Re: Can't access Tomcat from outside the LAN

2009-09-15 Thread Ziggy
If you have more than one pc on ur network then you have to configure your gateway(I.e router) so that all requests that use port 8080 should be forwarded to the pc that has tomcat installed. On 9/15/09, Jonathan Soons jso...@juilliard.edu wrote: Tom, Do you have a default gateway? If you can

Re: Database Connection Pooling initialization with dbcp

2009-09-09 Thread Ziggy
Im not an expert on this but i thought that the pool will cache connections that you have created. Maybe someone can clarify this. Have a look at this http://onjava.com/pub/a/onjava/2006/04/19/database-connection-pooling-with-tomcat.html?page=2 On Wed, Sep 9, 2009 at 9:01 AM, Chris Wiley

Re: How to install an updated third party SSL certificate for B2B transactions

2009-09-09 Thread Ziggy
On 9/8/09, Peter Crowther peter.crowt...@melandra.com wrote: 2009/9/8 David Uctaa duc...@gmail.com I have inherited a Tomcat 5.5 installation running on Windows XP. There are processes on this box which do server-to-server connections with a third party via HTTPS over SSL. We have

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Ziggy
I noticed that you mention that you are using the community version of the Java runtime environment which i think is what you get when you do an apt-get. I have never honestly been able to use this version of the JVM successfully. I had a similar problem recently where i was running an

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Ziggy
of installed java. On Thu, Sep 3, 2009 at 10:19 AM, Ziggy zigg...@gmail.com wrote: What do you get when you run java -version? I think the linux distributions include the open jdk version see http://openjdk.java.net/ On Thu, Sep 3, 2009 at 3:13 PM, Caldarale, Charles R chuck.caldar

Re: 100% usage and hanging on startup of Spring/Hibernate app in Tomcat 5.5 on Ubuntu 7

2009-09-03 Thread Ziggy
What do you get when you run java -version? I think the linux distributions include the open jdk version see http://openjdk.java.net/ On Thu, Sep 3, 2009 at 3:13 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Bradley Wagner [mailto:bradley.wag...@hannonhill.com]

Re: dbcp error with java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource

2008-10-10 Thread Ziggy
(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) [/code] Thanks On Thu, Oct 9, 2008 at 5:53 PM, Ziggy [EMAIL PROTECTED] wrote: Hi, I originally only had it on $TOMCAT_HOME/common/lib but it didnt

Re: dbcp error with java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource

2008-10-10 Thread Ziggy
] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ziggy, Ziggy wrote: The problem i am getting now is that i still cannot cast the class properly to get the underlying connection. Your best bet is to use standard JDBC API calls instead of trying to use Oracle's proprietary APIs. You

dbcp error with java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource

2008-10-09 Thread Ziggy
Hi All, I am using jdbc to connect to an oracle database but having a bit of a problem. Here is some details Jdbc driver - Type 4 App server - Tomcat 5.5 Oracle Version - 10g I have placed the jdbc driver on both the following directories [code] $TOMCAT_HOME/common/lib/

Re: dbcp error with java.lang.ClassCastException: org.apache.tomcat.dbcp.dbcp.PoolingDataSource

2008-10-09 Thread Ziggy
, Charles R [EMAIL PROTECTED] wrote: From: Ziggy [mailto:[EMAIL PROTECTED] Sent: 2008 October 09, Thursday 11:12 org.apache.tomcat.dbcp.dbcp.PoolingDataSource I have placed the jdbc driver on both the following directories [code] $TOMCAT_HOME/common/lib/ $APPLICATION_ROOT_DIR/WEB-INF

Re: context.xml in META-INF

2008-10-09 Thread Ziggy
Please ingnore this. There was a typo in the filename thats why it wasnt working. Thanks On Thu, Oct 9, 2008 at 5:17 PM, Ziggy [EMAIL PROTECTED] wrote: Hi all, I have the following datasource definition in my /META-INF/context.xml Resource name=jdbc/testdb auth=Container

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
No mate that was the full stack trace. Thanks On Wed, Oct 1, 2008 at 7:02 PM, David Smith [EMAIL PROTECTED] wrote: Seems like such a generic error would have a root cause. Was there anything more to the stack trace? --David Ziggy O wrote: Hi, I am trying to connect to an oracle

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
should be javax.sql.Datasource, not oracle.jdbc.pool.OracleDataSource. --David Ziggy O wrote: No mate that was the full stack trace. Thanks On Wed, Oct 1, 2008 at 7:02 PM, David Smith [EMAIL PROTECTED] wrote: Seems like such a generic error would have a root cause

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
that netbeans is including some libraries that are not available on the Unix environment when i run it on the desktop? On Thu, Oct 2, 2008 at 1:48 PM, Ziggy O [EMAIL PROTECTED] wrote: Hi, The tomcat version on my Desktop is 5.5.27 and the Tomcat version on the Unix environment is 5.5.23. Could the above

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
/Catalina/localhost. Also you might want to check all the places in your webapp that references a file and be sure the names match in case to what's on disk. --David Ziggy O wrote: Hi, The tomcat version on my Desktop is 5.5.27 and the Tomcat version on the Unix environment is 5.5.23

javax.naming.NamingException: Cannot create resource instance

2008-10-01 Thread Ziggy O
on the windows environment but not in the Unix environment. I check all the libraries and everything under common/lib is the same for both environments. Thanks Edited by: ziggy on Oct 1, 2008 3:48 PM Edited by: ziggy on Oct 1, 2008 3:50 PM

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-01 Thread Ziggy O
I forgot to mention that i am using Tomcat 5.5 on both the windows and unix environment. Thanks. On Wed, Oct 1, 2008 at 5:54 PM, Ziggy O [EMAIL PROTECTED] wrote: Hi, I am trying to connect to an oracle database but cant seem to get the jdbc connection to work. I am developing

Re: jdbc driver fails with tomcat

2008-09-26 Thread Ziggy O
Hi, When i debug the code, it doesnt get to the point where i am initialising the OracleCallableStatement object. It failed just after the initialisation of the ArrayDescriptor object. I have tried to change it to use CallableStatement and im now getting another error. Here is how i've changed