CLOBs, Connection Pooling, Help!

2008-04-17 Thread Brian Munroe
Ok, I've searched and searched, but I cannot figure out the answer. I am using Tomcat container provided connection pooling; connecting to an Oracle XE server and I need to insert a CLOB. It would appear that doing this task is dependent upon which RDBMS vendor you're working with? Can anyone

IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Brian Munroe
Ok, here is a weird one. I don't believe it is related to Tomcat specifically, but I'd like to tap the community and see if someone else has ever experienced this issue. I am troubleshooting an app, which was originally designed using Firefox. Now that we are testing with IE (IE 6 and 7), we

Re: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Brian Munroe
On Fri, Mar 28, 2008 at 10:27 AM, Frank W. Zammetti [EMAIL PROTECTED] wrote: My first guess (and that's all it is, a guess!) is that you're trying to insert something coming from the client into a SQL query and for whatever reason it's being transmitted differently from IE than FF and is

Re: [OT] RE: IE causes an ORA-00936 error, but not Firefox?

2008-03-28 Thread Brian Munroe
[snip very helpful suggestions] Holy crap guys! This is awesome, I've never had this much response from the users@ (and be it an off-topic too!) Once I get the code in hand, that's when the fun will begin! thanks everyone -- brian

Re: Displaying jsp pages without specifying the port 8080

2008-03-18 Thread Brian Munroe
On Tue, Mar 18, 2008 at 9:45 AM, Murat Birben [EMAIL PROTECTED] wrote: My server OS is centos and I've apache 2.2 and tomcat6 installed on my machine. I can display my php pages as abc.xyz.com and display my jsp pages on LAN as abc.xyz.com:8080/asd but my jsp pages cannot be display from

Re: Displaying jsp pages without specifying the port 8080

2008-03-18 Thread Brian Munroe
On Tue, Mar 18, 2008 at 9:58 AM, Murat Birben [EMAIL PROTECTED] wrote: tcp0 0 :::8080 :::* LISTEN Ok, that's good, it can listen on all IPs Now, do you know if you are running SELinux or if your firewall is configured as Peter suggested?

Re: beginer question abt JSP with Tomcat

2007-09-13 Thread Brian Munroe
On 9/11/07, Hassan Schroeder [EMAIL PROTECTED] wrote: ?? On my Mac (OS X.4.10) $JAVA_HOME is: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0 Hi everyone. I don't mean to cloud the discussion with a possible non-issue, but for fun, I just tried defining my JAVA_HOME as you

Re: beginer question abt JSP with Tomcat

2007-09-13 Thread Brian Munroe
Oops, I stand corrected, as I see further along in the thread that JAVA_HOME is pointing to where I suggested. See I knew I shouldn't have jumped in here! :) -- brian On 9/13/07, Brian Munroe [EMAIL PROTECTED] wrote: On 9/11/07, Hassan Schroeder [EMAIL PROTECTED] wrote: ?? On my Mac (OS

Re: [OT] context-param vs env-entry. Ready? Fight!

2007-09-07 Thread Brian Munroe
On 9/6/07, Christopher Schultz [EMAIL PROTECTED] wrote: Finally Martin Fowler said dependency injection, and nobody ever had to worry about programs making any kind of sense ever again. And it was Good (for hourly contractors!) That's it, I'm going back to Perl CGI application development!

Garbage Collection and Class unloading

2007-09-06 Thread Brian Munroe
Can someone explain a little bit about classloading really quick? Let me preface this with: I am maintaining an application which I did not develop. Looking at the WEB-INF/lib directory, it has around 76 different jar files, some actually used in the application, some (well, most) not. They

Re: context-param vs env-entry. Ready? Fight!

2007-09-06 Thread Brian Munroe
On 9/6/07, Lionel Crine [EMAIL PROTECTED] wrote: Of course, you ll have to define the JNDI variable in a different way. But most important, you'll don't have to change your java classes because the JNDI tree will stay the same. Yep, that is what I am pushing for (JNDI) -- brian

Re: Garbage Collection and Class unloading

2007-09-06 Thread Brian Munroe
On 9/6/07, David Smith [EMAIL PROTECTED] wrote: I'd think your best bet is to clean out all the dead in-house code and then thin out the dependencies until it stops building. If nothing else, refactor your code to pair down the multiple versions of libraries. Oh, don't you worry, me and

Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/1/07, Brian Munroe [EMAIL PROTECTED] wrote: On 9/1/07, Hassan Schroeder [EMAIL PROTECTED] wrote: If you're talking about TC6, there is no common/lib or shared/lib; $CATALINA_HOME/lib is correct... Oh crap, I was going off my 5.5 install! Hassan: Ok, lend me a hand here, besides

Re: Please help...

2007-09-02 Thread Brian Munroe
Mike, just an FYI: This morning I tried my little 'hello, world' recipe on Tomcat 6; aside from having to place the driver jar file in $CATALINA/lib, everything else works the same. Hope it helps you -- brian - To start a new

Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/2/07, Hassan Schroeder [EMAIL PROTECTED] wrote: To be honest, I can't find any other documentation on that -- what alternative values might be, or their effect. And I just gave it a quick try with no setting and LambdaProbe's data sources page shows a blank for Auth -- but accessing

Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/2/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: The auth attribute is the equivalent of res-auth element inside a web.xml resource-ref setting, as defined in the servlet spec. The valid values are Application or Container. Chuck: So I guess I should probably read the Realm

Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/2/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: Not really. The Realm configuration documents how clients login to applications, not how Tomcat (or your app) login to external resources. The Security Manager describes how to place limits on what application code can do within

Re: Please help...

2007-09-02 Thread Brian Munroe
On 9/2/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: Correct. It appears that Container is the default, but setting it explicitly certainly won't hurt. Gotcha, thanks. -- brian - To start a new topic, e-mail:

Re: Please help...

2007-09-01 Thread Brian Munroe
On 8/31/07, Mike Cronin [EMAIL PROTECTED] wrote: I am having a problem setting up a connection-pool via JNDI on Tomcat 6.0.14 utilizing Oracle 10g. Currently I have a Resource for my DataSource referenced within a Context element within the server.xml file. The classes12.jar file which

Re: Please help...

2007-09-01 Thread Brian Munroe
On 9/1/07, Hassan Schroeder [EMAIL PROTECTED] wrote: If you're talking about TC6, there is no common/lib or shared/lib; $CATALINA_HOME/lib is correct... Oh crap, I was going off my 5.5 install! Thanks! -- brian - To start

Re: context-param vs env-entry. Ready? Fight!

2007-08-31 Thread Brian Munroe
On 8/31/07, Tim Funk [EMAIL PROTECTED] wrote: Do you really want code that has nothing to do with the servlet api dependent on ServletContext? Plugging in a new jndi lookup for testing is much easier. Forgive my ignorance here, but do you mean, say, in a bean? That doesn't inherit the

Re: Downloaded 4.1.36 but says version is 4.1.35?

2007-08-31 Thread Brian Munroe
On 8/31/07, tk-2506 [EMAIL PROTECTED] wrote: Any idea what's going on??? The developers forgot to bump the sub version number in build.properties? Do you really need to use the 4.x series?! -- brian - To start a new topic,

Re: Announce List?

2007-08-30 Thread Brian Munroe
On 8/30/07, Mark Thomas [EMAIL PROTECTED] wrote: [snip] Brian McArdle wrote: [snip] There is also Apache Announce? Granted it isn't Tomcat specific, but it is lower traffic then dev or users. http://www.apache.org/foundation/mailinglists.html -- brian

context-param vs env-entry. Ready? Fight!

2007-08-30 Thread Brian Munroe
I just started to help maintain an application that I didn't originally develop. It is using context-param elements and getInitParameter() to access application configuration items in web.xml. I have always used env-entry elements and JNDI to store and read these items, respectively.

Re: Tomcat not starting properly.

2007-08-29 Thread Brian Munroe
On 8/29/07, David Smith [EMAIL PROTECTED] wrote: able to find the endorsed directory, you should probably get a new copy of the jars from your .tar.gz or .zip download and replace the jars. Who knows what else is wrong. My vote is for just get a fresh copy of Tomcat. -- brian

Re: Unable to get a basic install working...

2007-08-29 Thread Brian Munroe
On 8/28/07, Hristian [EMAIL PROTECTED] wrote: I'm having the same problem, none of these ports are busy. First I tried on it's Windows Server 2003 OS, it had this problem, then we deleted the Win Server and installed Windows XP. I have no idea... Are you still having the problem on XP?

Re: Unable to get a basic install working...

2007-08-29 Thread Brian Munroe
On 8/29/07, Hristian [EMAIL PROTECTED] wrote: How could this be if the port if shows as free on netstat? Misinterpretation of netstat output? Don't take that the wrong way, I'm just trying to be helpful. Can you send the output to the mailing list? I'd follow Sonal's suggestion, because

Re: [OT] CLASSPATH (was Tomcat not starting properly)

2007-08-29 Thread Brian Munroe
On 8/29/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: The biggest problem with CLASSPATH is that it tends to be set and then forgotten, causing classloading problems during subsequent Java executions. The resulting confusion (especially if it involves the wrong version of a class,

Re: Unable to get a basic install working...

2007-08-29 Thread Brian Munroe
On 8/29/07, David Smith [EMAIL PROTECTED] wrote: One other thought and I don't know how possible this is but it's there for your consideration. Would you happen to have a connector defined with the same port number as the shutdown port def.? It wouldn't be bound until tomcat starts and then

Re: [OT] CLASSPATH (was Tomcat not starting properly)

2007-08-29 Thread Brian Munroe
On 8/29/07, Christopher Schultz [EMAIL PROTECTED] wrote: The CLASSPATH environment variable is certainly not ignored by Tomcat. Here's part of the startup script from TC 5.5: # Add on extra jar files to CLASSPATH if [ -n $JSSE_HOME ]; then

Re: Tomcat (javac)compilation arguments

2007-08-28 Thread Brian Munroe
On 8/27/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: I'm really curious about one thing: if the OP has a 64-bit environment, why is he being so stingy with heap space? In the OP, what I found interesting was that the default heap size wasn't enough to start Tomcat? According to SUN,

Re: Tomcat (javac)compilation arguments

2007-08-27 Thread Brian Munroe
On 8/27/07, Manivannan Palanichamy [EMAIL PROTECTED] wrote: My problem is: I am trying to install java tomcat on a server (redhat linux, 64 bit), which runs on shared memory. I need to limit down java start up memory, by passing arguments like $javac -J -Xmx118m $java -Xmx118m so that the

Re: Tomcat (javac)compilation arguments

2007-08-26 Thread Brian Munroe
On 8/25/07, Manivannan Palanichamy [EMAIL PROTECTED] wrote: I need to pass javac (compilation) arguments to tomcat. Just as JAVA_OPTS is there for jvm arguments, is there any env var/ other ways to pass arguments to javac of tomcat? Hum, 'javac of tomcat' - Do you mean the JSP Compiler, or

org.apache.catalina.ant.ReloadTask and JSP caching

2007-08-26 Thread Brian Munroe
I am experiencing an annoying (but not show-stopping) issue while trying to use the Catalina ReloadTask Ant task. I am currently using Ant 1.7, JDK 1.5 (OS X) and Tomcat 5.5.23. Whenever I make a modification to a JSP, I usually do an 'ant reload' to push the changes to the build/ directory and

Re: org.apache.catalina.ant.ReloadTask and JSP caching

2007-08-26 Thread Brian Munroe
On 8/26/07, Brian Munroe [EMAIL PROTECTED] wrote: I am experiencing an annoying (but not show-stopping) issue while trying to use the Catalina ReloadTask Ant task. Ok, I think I've isolated the problem, and it has nothing to do with the ReloadTask. More in regards to the DeployTask

Re: Refresh JSP in Tomcat 5.5

2007-08-26 Thread Brian Munroe
On 8/26/07, hezjing [EMAIL PROTECTED] wrote: Hi! If I understood the comment in web.xml correctly, by default, the JspServlet is initialized with the following parameters development=true modificationTestInterval=4 Aren't this sufficient to reload the JSP after 4 seconds the JSP is

Re: Refresh JSP in Tomcat 5.5

2007-08-26 Thread Brian Munroe
BTW, with the configuration I showed below, the JSP does not get translated to a *.java file until I first access the page. On 8/26/07, Brian Munroe [EMAIL PROTECTED] wrote: On 8/26/07, hezjing [EMAIL PROTECTED] wrote: Hi! If I understood the comment in web.xml correctly, by default

AJP talking TLS or SSL

2007-08-20 Thread Brian Munroe
I am well aware after STW that the 2 best suggestions for securing traffic between Apache httpd and Tomcat over AJP (either using mod_jk_proxy or mod_jk), is: 1. Use either IPSec, stunnel, etc. 2. Don't use AJP and proxy https between Tomcat and Apache. Any other options? I'd really like to

Re: SSL on Windows Vista with Tomcat 5.0.28 not working

2007-08-20 Thread Brian Munroe
On 8/20/07, Mark Thomas [EMAIL PROTECTED] wrote: Looks like time to start looking at the network traffic to figure out what is going wrong. Either that, or my guess is Vista is being helpful and not allowing sites with self-signed or untrusted SSL certificates to pass through to the user.

Re: AJP talking TLS or SSL

2007-08-20 Thread Brian Munroe
On 8/20/07, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: autossh, but that would fall under your tunneling category. I think those are only options, I can't think of anything else yep, unfortunately. Thanks anyways. I will probably just end up using IPSec. -- brian

Re: SSL on Windows Vista with Tomcat 5.0.28 not working

2007-08-20 Thread Brian Munroe
On 8/20/07, Brian Munroe [EMAIL PROTECTED] wrote: There might be some security settings you may need to tweak. What those are, I have no Idea. Or after a Google search, because I was curious, IE7 doesn't like SHA-1: http://blogs.atlassian.com/developer/2007/06/ie7_on_vista_and_ssl.html

Re: Has getParameterNames been updated to use Generics?

2007-08-18 Thread Brian Munroe
On 8/17/07, Bill Barker [EMAIL PROTECTED] wrote: This is on the list of things for the Servlet 3.0 spec (http://www.jcp.org/en/jsr/detail?id=315), but that means you will have to wait for Tomcat 7.0.x to get the fix. All of the Servlet 2.x specs specify a non-generic Enumeration for this

Re: Unable to get a basic install working...

2007-08-17 Thread Brian Munroe
On 8/17/07, Lizard Lizard [EMAIL PROTECTED] wrote: I am sure more information is needed to diagnose this problem, and I will happily provide it. Thank you for any support you can offer. 2 things to check. 1. Do the tomcat logs tell you anything? Located in Tomcat install directory/logs

Re: Unable to get a basic install working...

2007-08-17 Thread Brian Munroe
On 8/17/07, Lizard Lizard [EMAIL PROTECTED] wrote: SEVERE: StandardServer.await: create[8005]: java.net.BindException: Address already in use: JVM_Bind It claims the address is already in use, but netstat shows nothing on that address. Stopping the apache server itself did not change this.

Re: Off-Topic - Linux questions

2007-08-17 Thread Brian Munroe
On 8/17/07, Vigorito, Nicholas E. [EMAIL PROTECTED] wrote: - If the suid bit is set for the owner of a directory (looks like drws when shown via ls -l) what does that mean? I can find what it means for a file but not a directory. Here is a much better explanation then I would be able to

Re: Fixed! Re: Unable to get a basic install working

2007-08-17 Thread Brian Munroe
On 8/17/07, Lizard Lizard [EMAIL PROTECTED] wrote: I found the problem. Something else was listening on port 8005. I changed it to 8006 in the XML config file and all worked smoothly from then on. Thank you for your help; without netstat, I'd never have managed to puzzle this out. Ok, great

Has getParameterNames been updated to use Generics?

2007-08-16 Thread Brian Munroe
This is more of a Servlet API question, but pertains to Tomcat nonetheless. I am using Tomcat 5.5.23 with JDK 1.6. I am having a problem with Generics and request.getParameterNames(). I keep getting a unchecked cast warning (just a warning, but still). I was going to just use the

Re: Embedding XML documents as children of the context-param element

2007-08-16 Thread Brian Munroe
On 8/16/07, Robert Segal [EMAIL PROTECTED] wrote: So as an alternative I know the second method will work but was curious if anyone has tried the first method. I doubt the 1st method is valid, since you are basically inventing new deployment descriptor elements, and I know for sure that

Re: Embedding XML documents as children of the context-param element

2007-08-16 Thread Brian Munroe
On 8/16/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: The ServletContext.getRealPath() call will fail if the webapp is in an unexpanded .war or running on a platform without a normal file system (e.g., a mobile phone). Better to use ServletContext.getResourceAsStream(), which will

Classloading Question

2007-07-31 Thread Brian Munroe
I am connecting my application to a Oracle XE database and I am having a weird issue with classloading. According to the classloading documentation [1] I should be placing the Oracle JDBC jar file ojdbc14.jar in $CATALINA_HOME/shared/lib, but when I do that, my application throws a Cannot load

Re: Classloading Question

2007-07-31 Thread Brian Munroe
On 7/31/07, Propes, Barry L [EMAIL PROTECTED] wrote: What version of TC are you using? I wouldn't put the jar file there, no! I am using 5.5.23. Wouldn't put it where? shared/lib? Try in %TC HOME%\common\lib, whereever that is. I did, and it works, but from my understanding of the

Re: Classloading Question

2007-07-31 Thread Brian Munroe
On 7/31/07, Caldarale, Charles R [EMAIL PROTECTED] wrote: Look here for details: http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.h tml Heh, II was wondering about that. I just gleamed that and found this gem: Drivers for older Oracle versions may be distributed as

Re: Apache to Tomcat via JK on different machines --- 503 / socket errno=60

2006-07-20 Thread Brian Munroe
On 7/20/06, Blah2006 [EMAIL PROTECTED] wrote: MACHINE 2: - Microsoft Windows XP Professional, Version 2002, Service Pack 2 [Tue Jul 18 16:33:33 2006] [info] jk_open_socket::jk_connect.c (444): connect to 1.2.3.4:8009 failed with errno=60 I think erno=60 is a timeout error code. Are you

Re: Increase Heapsize

2006-07-19 Thread Brian Munroe
On 7/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No Vignette why? are you in a similar situation? if so how did you go about increasing heapsize and what appserver are you using Well, luckily our system isn't heavily loaded, we bumped it to -Xms1024 -Xmx1024 and everything is working

Re: Alias' and the like

2006-07-12 Thread Brian Munroe
On 7/12/06, Martin Gainty [EMAIL PROTECTED] wrote: This solution works if you're front-ending with Apache- I have seen CGI/Perl do this to specifically route incoming requests to CGI/Perl site 1 to their folder (and consequent access to site2 to Tomcat) Do you have any configuration file

Re: Alias' and the like

2006-07-12 Thread Brian Munroe
On 7/12/06, Martin Gainty [EMAIL PROTECTED] wrote: I'm about done with this thread, but I just gotta send one more e.g. httpd.conf VirtualHost * ServerName /usr/local/tomcat/dev/webapps/bmtest/admin ServerAlias admin1 ... /VirtualHost ServerAlias is for setting

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Brian Munroe
On 7/3/06, Rainer Jung [EMAIL PROTECTED] wrote: version 1.2.16 of the Apache Tomcat mod_jk web server connector has been tagged. This version contains numerous bug fixes and some new improvements over our last release 1.2.15. Please test and share your experience. If no critical bugs will be

Re: mod_jk 1.2.16 release candidate: ready to test

2006-07-11 Thread Brian Munroe
On 7/11/06, Richard Mixon [EMAIL PROTECTED] wrote: Thanks to all those who replied with respect to the orginal thread. Please do not hijack and existing thread. Start a new thread. You have thoroughly mucked up this thread on mod_jk 1.2.16 rele4ase candidate: ready to test. Richard, I was

Re: Tomcat manager URL configuration for 2 tomcat instances, Apache + mod_jk

2006-07-10 Thread Brian Munroe
(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) thanks -- brian On 7/8/06, Brian Munroe [EMAIL PROTECTED] wrote: I am trying to set up an environment that has both a Tomcat 5.5.17 and a Tomcat 5.0.28 instance running, accessed via Apache 2.0.58 + mod_jk. Can anyone recommend a URL

Re: Tomcat manager URL configuration for 2 tomcat instances, Apache + mod_jk

2006-07-10 Thread Brian Munroe
On 7/10/06, David Smith [EMAIL PROTECTED] wrote: No, that won't work. Copying jar files from server/lib will cause classloader problems. There is a simpler way: 1. Rename manager.xml in conf/Catalina/localhost to manager-5028.xml 2. Change the path attribute in manager-5028.xml to

Re: problem accessing the webpages using specific hostname

2006-07-10 Thread Brian Munroe
On 7/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes, I could ping xyz.ab.edu from my pc, but not xyz.ab.edu:8181 (8181 is the port number on which tomcat is receiving requests). If I use telnet localhost 8181 from xyz.ab.edu, it lets me in... but telnet xyz.ab.edu 8181 doesnt work.

Re: problem accessing the webpages using specific hostname

2006-07-10 Thread Brian Munroe
On 7/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am using Suse Linux 9.0 and I might be behind a firewall. I will try to see if I can open up this port. Also if you do a 'netstat -a | grep -i listen' as root, it may show you what is running on which ports. If you see anything like:

Re: ApacheConfig returns ClassCastException for mod_jk

2006-07-09 Thread Brian Munroe
On 7/9/06, Mr Alireza Fattahi [EMAIL PROTECTED] wrote: Hi, We want to configure tomcat 5.5.17 with mod_jk and change server.xml as below: Engine name=Catalina defaultHost=localhost className=org.apache.jk.config.ApacheConfig The above was mentioned at

Tomcat manager URL configuration for 2 tomcat instances, Apache + mod_jk

2006-07-08 Thread Brian Munroe
I am trying to set up an environment that has both a Tomcat 5.5.17 and a Tomcat 5.0.28 instance running, accessed via Apache 2.0.58 + mod_jk. Can anyone recommend a URL layout to access the different Tomcat managers? My current configuration looks like this In httpd.conf -

Re: Executing Manager Commands With Ant and SSL

2006-03-02 Thread Brian Munroe
On 3/1/06, ash ag [EMAIL PROTECTED] wrote: BUILD FAILED /opt/Ant/apache-ant-1.6.1/build.xml:47: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException : No trusted certificate found Total time: 0 seconds How can i configure the certificate in this case. Are you

Re: Tomcat make error

2005-10-31 Thread Brian Munroe
On Oct 31, 2005, at 7:19 AM, Goverts IV, Paul wrote: I am having problems compiling connector for Tomcat 5.5.12 and apache2 on Solaris 10. I am compiling using gcc 3.4.3 (supplied with solaris 10) and I am building the connector for the apache2 that is supplied with solaris 10. Here is the