RE: Tomcat has 2 webapps - confused which classes to load

2005-11-21 Thread Radhakrishnan J
Radhakrishnan J wrote: > Eclipse's Debug UI shows the breakpoints threadwise. If these executions > are happening over different threads, thats one way to tell the difference. It's not the thread that's the issue - it's which _webapp_ it's currently executing. That's what the OP cared about -

Re: Inter-webApp communication?

2005-11-21 Thread stephan
Smells like a webservice classic. You can use a webservice to do the "high level" talking. Then use Apache Axis to implement it. That gives you the freedom to choose whatever mechanism fits best for the actual connection. It would allow for a in memory transfer if you are in the same jvm or a f

RE: Help Configuring Engine/Host/Context

2005-11-21 Thread Caldarale, Charles R
> From: Scott Purcell [mailto:[EMAIL PROTECTED] > Subject: Help Configuring Engine/Host/Context > > I have one webapp that I need to configure to a DNS Entry. You do not need an extra entry; it's superfluous. You do need to name your default app ROOT (either in ROOT.war or in the ROOT director

RE: Managing concurrent high memory processes

2005-11-21 Thread Richard Mixon
BB, Depending on how many dedicated JVMs you would startup, I do not believe the overhead from creating a new JVM for each long-running task will be that bad. Now if you've got dozens, forget it. In that case you need to move to a JMS-type solution with queueing. Think about it - you've got the s

Re: Help Configuring Engine/Host/Context

2005-11-21 Thread du yitao
Try to use "localhost". 2005/11/22, Scott Purcell <[EMAIL PROTECTED]>: > > Hello, > > I am completely lost in trying to configure my Tomcat 5.5. I have read the > docs under "Context", "Engine", "Host", and am having trouble putting the > information to use. > > I have one webapp that I need to co

Help Configuring Engine/Host/Context

2005-11-21 Thread Scott Purcell
Hello, I am completely lost in trying to configure my Tomcat 5.5. I have read the docs under "Context", "Engine", "Host", and am having trouble putting the information to use. I have one webapp that I need to configure to a DNS Entry. Below is my server.xml. My DNS is www.theuniquepear.com and

Re: java.security.AccessControlException: access denied (java.security.SecurityPermission insertProvider.SunJCE)

2005-11-21 Thread Chen Jerry
Hi Rakesh, I suppose this statement is not allowed in the default sand box: Security.addProvider(new com.sun.crypto.provider.SunJCE()); Maybe you can singature your jar to expand your applet's privilege. Regards, Jerry 2005/11/21, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hi, > > > > I am ha

Inter-webApp communication?

2005-11-21 Thread JWM
I understand the architecture of webApps is that they are intended to be self-contained and not aware of other webApps in the system. However, I have two loosely-coupled webApps that periodically need to crosslink to each other. I have some relatively heavyweight objects that I would like to pass

Re: Tomcat has 2 webapps - confused which classes to load

2005-11-21 Thread Shankar Unni
Radhakrishnan J wrote: Eclipse's Debug UI shows the breakpoints threadwise. If these executions are happening over different threads, thats one way to tell the difference. It's not the thread that's the issue - it's which _webapp_ it's currently executing. That's what the OP cared about - t

Re: Symbolic Links tomcat 4.1.27

2005-11-21 Thread Luis Torres
I've done a similar setup (for what I understand) and have never ran into trouble and dont have to touch server.xml at all. I just do a /'ln -s/ ' to whatever filesystem or dir my webapps will reside and presto! the link's name is webapps of course. I just copy the manager, admin, ROOT and wha

Re: Managing concurrent high memory processes

2005-11-21 Thread Peter Lin
it is overhead, but there really aren't too many options for the case given. If the process really will take a long time, having the process happen within the tomcat using the same JVM will introduce instability. In the long run, it is going to be hard to maintain a production system with such long

Symbolic Links tomcat 4.1.27

2005-11-21 Thread McClure, Timothy J\(GE Infrastructure\)
I am have trouble getting symbolic links to work with Tomcat 4.1.27. I have a symbolic link defined for my webapp and I am allow linking for it in the server.xml. However when I do a resource lookup in my application for class directory it now fails. I also notice that a local host log file i

RE: Managing concurrent high memory processes

2005-11-21 Thread BB Commish
Thanks Richard. I do require communication back to the user so I will take a look at JMS as you suggest. My concern with spawning jvms (as I mentioned in a reply to another list member) is the additional overhead and the additional difficulty (as I perceive it anyway) of deploying to a multi-m

RE: Managing concurrent high memory processes

2005-11-21 Thread BB Commish
Thanks Wade. I agree that the bottom line is you need the resources to support the processing. But I guess my question was whether or not the clustering/load balancing provided within tomcat was an option to consider based on others' experience with it and the fact that my resource drain is iso

Re: default security w/TC4+ tips

2005-11-21 Thread David Smith
Ignoring web application code, what you say below is true. However the introduction of a new webapp introduces new potential risks that must be evaluated and reviewed. The servlet code itself can potentially read any resource available to tomcat within the system. I would recommend a combina

HTTP Status 403

2005-11-21 Thread Martin Dubuc
When a large page is displayed by Tomcat 5.5.12 and the session timeout occurs, if the user clicks a link on the present page to go to another page, because the session has timed out, Tomcat is supposed to present the login page. However, it seems like Tomcat tries to cache the previous page conten

RE: JSPs on Tomcat

2005-11-21 Thread Mike Sabroff
And make sure that the imported classes are part of some package Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 12:55 PM To: Tomcat Users List Subject: Re: JSPs on Tomcat

Re: JSPs on Tomcat

2005-11-21 Thread Mark Thomas
Milan Tomic wrote: I have problems running JSPs on Tomcat. I'm using latest release. I got compiler error that some imported classes could not be found. Where should I copy those classes? In the lib folder? Do I need to edit some configuration (xml) files also? Place the jars in the lib fold

Re: where to store SECURITY key

2005-11-21 Thread Mark Thomas
Chapoor Chapoor wrote: Now where can I store this key? and still have "good" security. Good is a relative term. You need to do a threat assessment to identify your threats and then mitigate them until the risk level reaches an acceptable level. I would be *very* surprised if this included not

RE: JSP compilation

2005-11-21 Thread Milan Tomic
Yes, they have to be part of some package. Works fine now. :) Thank you. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 7:04 PM To: Tomcat Users List Subject: RE: JSP compilation > From: Milan Tomic [mailto:[EMAIL PROTECTED] >

RE: JSP compilation

2005-11-21 Thread Caldarale, Charles R
> From: Milan Tomic [mailto:[EMAIL PROTECTED] > Subject: RE: JSP compilation > > I have created one simple class: > > public class TestClass > { >public TestClass () {} > } I believe such classes need to be part of a package, but I could be confusing that with something else. In any event,

RE: JSP compilation

2005-11-21 Thread Mike Sabroff
Try putting your class file in WEB-INF/lib/classes Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 -Original Message- From: Milan Tomic [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 11:42 AM To: 'Tomcat Users List' Subject: RE: JSP compilation Thank you.

RE: JSP compilation

2005-11-21 Thread Milan Tomic
Thank you. With your help, I found it. :) I still have a problem that I can't use my custom classes in JSPs. I am beginner with Tomcat and JSPs. I have created one simple class: public class TestClass { public TestClass () {} } and compiled it. Then I copied it (TestClass.class file) into ap

Re: Re site problems, here is server.xml

2005-11-21 Thread Hassan Schroeder
Scott Purcell wrote: > I do not understand your comments. Could you give me a link to > what part of the docs you are referring to? -- look at the entry for 'defaultHost' --

RE: Re site problems, here is server.xml

2005-11-21 Thread Caldarale, Charles R
> From: Scott Purcell [mailto:[EMAIL PROTECTED] > Subject: RE: Re site problems, here is server.xml > > I do not understand your comments. Could you give me a link > to what part of the docs you are referring to? http://tomcat.apache.org/tomcat-5.5-doc/config/index.html Read up on the three Co

java.lang.OutOfMemoryError

2005-11-21 Thread LGM
Hello List! One morning my tomcat server went down and I got the following in the logs. Can anybody tell me if the out of memory error could have anything to do with the server crashing? I'm running the application with JAVA_OPTS='-Xms512m -Xmx1500m' Thanks in advance and HAPPY THANKSGIVING. N

Re: JSP compilation

2005-11-21 Thread Tim Funk
TestMe.class is not the file created. Look in $TOMCAT_INSTALLATION/work/. It'll probably be called TestMe_jsp.class -Tim Milan Tomic wrote: I have created simple TestMe.jsp page and when I open it in Tomcat, I can see it OK. The problem is that I can't find, using WinXP WE search engine, T

RE: Re site problems, here is server.xml

2005-11-21 Thread Scott Purcell
I do not understand your comments. Could you give me a link to what part of the docs you are referring to? -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 11:00 AM To: Tomcat Users List Subject: Re: Re site problems, here is server.xml

Re: Re site problems, here is server.xml

2005-11-21 Thread Hassan Schroeder
Scott Purcell wrote: > > > unpackWARs="true" autoDeploy="true" >xmlValidation="false" xmlNamespaceAware="false"> > > > > So, what's the issue? You have a defaultHost in your Engine element that doesn't exist; add a Host element for it. Note: it's

RE: Tomcat 5.5 configure site to web problems

2005-11-21 Thread Caldarale, Charles R
> From: Scott Purcell [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.5 configure site to web problems > > This is my server.xml file: > unpackWARs="true" autoDeploy="true" >xmlValidation="false" xmlNamespaceAware="false"> > The above was not really necessary. Within

java.security.AccessControlException: access denied (java.security.SecurityPermission insertProvider.SunJCE)

2005-11-21 Thread rakesh.raja
Hi, I am having a problem in using Security(JCE) packages in an Applet. I am using IE and TomCat5.0 for deployment. The same piece of code(reproduced below) run as a Java Application in Eclipse works fine. However, when the same applet is loaded through a .jsp page in IE, the following

Re: New Tomcat install problem

2005-11-21 Thread Anthony Carlos
Sorry, Nix. I personally know about it, but I was asking the original poster of this question what his JAVA_HOME is. I know that in Mac OS X, when you install Java 1.5, the binaries are installed in a separate location than Java 1.4. Someone mentioned that the Java version might be wrong, a

Re site problems, here is server.xml

2005-11-21 Thread Scott Purcell
Here is the actual server.xml file: Server port="8005" shutdown="SHUTDOWN"> -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 10:43 AM To: Tomc

JSP compilation

2005-11-21 Thread Milan Tomic
I have created simple TestMe.jsp page and when I open it in Tomcat, I can see it OK. The problem is that I can't find, using WinXP WE search engine, TestMe.class file. Where is it? Are JSP files compiled?

Re: Tomcat 5.5 configure site to web problems

2005-11-21 Thread Hassan Schroeder
Scott Purcell wrote: > But after that, I am having more problems. Each time a user goes > to the site, they get two JSESSIONIDS, and have to click on the > first buttons two times? Uh, right. "first buttons"? Sorry, crystal ball doesn't work this early on Mondays... > with the entry in the serv

RE: Rép. : RE: Tomcat 5.0.28 : mime type

2005-11-21 Thread Caldarale, Charles R
> From: Antony GUILLOTEAU [mailto:[EMAIL PROTECTED] > Subject: Rép. : RE: Tomcat 5.0.28 : mime type > > I've found in my registery base on the > HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Content > Type topic all what I nedd (all mime type are specified). The registry entries don't seem

RE: Calling EJBs

2005-11-21 Thread Milan Tomic
Nick (and others), Do you know which mailing list is for JBoss? Thank you, Milan -Original Message- From: Duan, Nick [mailto:[EMAIL PROTECTED] Sent: Monday, November 21, 2005 4:49 PM To: Tomcat Users List Subject: RE: Calling EJBs 1. If you access an EJB app from another server, your

Tomcat 5.5 configure site to web problems

2005-11-21 Thread Scott Purcell
Hello, I am having some real problems with configuring my site to the internet. I created a site on my PC, using Tomcat 5.5, and throughout development/testing I would call the site like so: http://localhost/mySite and all was good. I purchased a DNS name from Register.com and configured my Tomc

default security w/TC4+ tips

2005-11-21 Thread Chris Pat
Hello If I have changed the default admin & manager passwords and have a personal firewall preventing anything other than http & http:8080 access, is it still possible for people to view the tomcat-users.xml file? With only those two protocols open (plus udp 53 for dns)it should be impossible.

RE: Tomcat 5.0.28 : mime type

2005-11-21 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Tomcat 5.0.28 : mime type > > You shouldn't have to add any mapping for msword (.doc) files > - that's already in conf/web.xml as downloaded. I added this > for .xls: > > > xls > application/msexcel > Oops. According to h

RE: Calling EJBs

2005-11-21 Thread Duan, Nick
1. If you access an EJB app from another server, your EJB client, in this case JSP, has to use remote component interface to access your EJB, not local interface. Make sure your EJB publishes remote interfaces. 2. You need to have JBoss generate the EJB client stub classes, or in J2EE's term, the

Rép. : RE: Tomcat 5.0.28 : mime t ype

2005-11-21 Thread Antony GUILLOTEAU
Thanks. I've found in my registery base on the HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Content Type topic all what I nedd (all mime type are specified). Antony >>> [EMAIL PROTECTED] 21/11/2005 16:26:47 >>> > From: Antony GUILLOTEAU [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.0.28

default TC4+ security and tips

2005-11-21 Thread Chris Pat
Hello If I have changed the default admin & manager passwords and have a personal firewall preventing anything other than http & http:8080 access, is it still possible for people to view the tomcat-users.xml file? With only those two protocols open (plus udp 53 for dns)it should be impossible.

RE: Tomcat 5.0.28 : mime type

2005-11-21 Thread Caldarale, Charles R
> From: Antony GUILLOTEAU [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.0.28 : mime type > > I'm using Tomcat 5.0.28 and when I try to access to word > documents, excel documents it is interpreted like binary > stream and not like the correct application (Word, Excel). > > I've declared mime-m

RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-21 Thread Ritchie Gillam
I have tried many different combinations including application/wordperfect. If I click on a .wpd file it does open WordPerfect as expected. The mime mapping behaves differently using Firefox, it asks me do I want to open the file using WordPerfect. So here is the questions What mime mapp

RE: Tomcat / LDAPS

2005-11-21 Thread Gilbert, Antoine
I tried last week to make my tomcat auth with LDAP. I installed Sun One directory for this test. Basically it's working, it authenticate user, I see on the Sun One logs the request, etc... and the user become available in request.getRemoteUser() etc..., my only problem is the mapping of roles, I

RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-21 Thread Caldarale, Charles R
> From: Ritchie Gillam [mailto:[EMAIL PROTECTED] > Subject: RE: How to see a Word or WordPerfect document in Tomcat? > > I tried with > > wpd > application/vnd.wordperfect > > > and all I get in binary code. Any suggestions? Have you tried removing the "vnd." and using

RE: Calling EJBs

2005-11-21 Thread Caldarale, Charles R
> From: Milan Tomic [mailto:[EMAIL PROTECTED] > Subject: RE: Calling EJBs > > I suppose I have to copy my JAR or my classes into some > Tomcat folder, so Tomcat could find them If you're running JBoss, you have to follow the JBoss deployment rules, not Tomcat's. The environment is quite differ

Re: New Tomcat install problem

2005-11-21 Thread Nikola Milutinovic
Anthony Carlos wrote: Just out of curiosity, what is JAVA_HOME? JAVA_HOME is an environment variable, that should contain the path to the installed JDK or JRE. Since you're using TC 5.5, you can point JAVA_HOME to a JRE (5.5 comes with Eclipse Java Compiler). Older versions had to have a J

RE: New Tomcat install problem

2005-11-21 Thread Caldarale, Charles R
> From: Terry Allen [mailto:[EMAIL PROTECTED] > Subject: Re: New Tomcat install problem > > I just reinstalled the iTools module after my changes, which > has had the result of being able to view the Tomcat homepage on my > server. You might want to try going back to the basics: remove

Re: New Tomcat install problem

2005-11-21 Thread Anthony Carlos
Just out of curiosity, what is JAVA_HOME? On Nov 21, 2005, at 4:49 AM, Nikola Milutinovic wrote: Terry Allen wrote: Anything in the logs for this new setup? Nix. Hi again, Okay, I've included the last log entries from a few logs as listed below - the other logs in that directory co

JSPs on Tomcat

2005-11-21 Thread Milan Tomic
I have problems running JSPs on Tomcat. I'm using latest release. I got compiler error that some imported classes could not be found. Where should I copy those classes? In the lib folder? Do I need to edit some configuration (xml) files also?

RE: How to see a Word or WordPerfect document in Tomcat?

2005-11-21 Thread Ritchie Gillam
How do I go about finding out the proper mime-mapping for WordPerfect or any other application? Is this a site I can access to give me this information? I tried with wpd application/vnd.wordperfect and all I get in binary code. Any suggestions? Thanks in advance. Rit

Re: Calling EJBs

2005-11-21 Thread Martin Gainty
Milan- take a look at the EJB spec 1.1 DTD specifically.. The home element contains the fully-qualified name of the enterprise bean's home interface The remote element contains the fully-qualified name of the enterprise bean's remote interface The ejb-class element contains

where to store SECURITY key

2005-11-21 Thread Chapoor Chapoor
Hi, Im about to set up a web application running Tomcat. The application will handle a simple user account information, etc. Some data will need to be encrypted before storing it into a database. I will use AES for encryption/decryption. A "password" will be used as a phrase/key. Now where can

Re: Spurious error logs when streaming image thru' a JSP combination

2005-11-21 Thread Mikolaj Rydzewski
Radhakrishnan J wrote: PS: This JSP is deployed as part of a struts application, and for certain reasons, I'd like to use an action-JSP combination to stream the image instead of simple serlvet. It would be much better to use pure servlet instead of JSP (which turns into servlet anyw

Spurious error logs when streaming image thru' a JSP combination

2005-11-21 Thread Radhakrishnan J
Flks, Herez a stack trace in the tomcat environment ( Windows 2000 / J2SE 1.4.2_09 / Tomcat 5.5.12 ). Every request processed results in this trace. However, the image gets rendered fine. Seems like the problem is because of the new line characters in the JSP. If I compact the JSP

Re: Accessing context info for other running apps?

2005-11-21 Thread andy gordon
Good Response! I add to that, that if its needed programmatically, you do this programmatically using JMX. The JMXPROXY servlet could be your guide. Martin Gainty <[EMAIL PROTECTED]> wrote: Good Afternoon check out http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html#List%20OS%20and%20J

Problem with auto recompilation of JSP

2005-11-21 Thread Marc Schmidt
Hi All, I have some trouble with auto-re-compilation of JSPs if the expanded webapp directory structure sits outside the tomcat directory strucutre. What is wrong with that? Under conf/engine/localhost I have configured a myapp-context.xml with the following content: When I start tomcat

enable log4j

2005-11-21 Thread Nehal Sangoi
Hi, I want to enable log4j logger in one of my tomcat instances. I copied "log4j-1.2.12.jar" to my webapps - war file. This means, under WEB-INF/lib, copied jar file and under WEB-INF/classes, copied log4j.properties. Later, re-sreated warfile and started my tomcat instance. log4j.properties :

Re: AW: Sync session across webapps

2005-11-21 Thread irene_hall
I have been keeping an eye on this thread because I have a similar issue which I raised under a separate thread on Friday. I note your comments re crossContext and use of context.getContext("name"). Please can you tell me the conditions under which this will NOT work ? I am attempting to do exa

AW: Sync session across webapps

2005-11-21 Thread Bernhard Slominski
Hi Mathew, this comes up every so often, so here is just the answer, which I posted some time ago: First of all the session is ALWAYS on application scope, this is not an Tomcat specific behaviour but a requirement of the Specification: "SRV.7.3 Session Scope HttpSession objects must be scoped at

Tomcat 5.0.28 : mime type

2005-11-21 Thread Antony GUILLOTEAU
I'm using Tomcat 5.0.28 and when I try to access to word documents, excel documents it is interpreted like binary stream and not like the correct application (Word, Excel). I've declared mime-mapping int the conf/web.xml file and in the web.xml file of my application. What is strange is that i

Re: New Tomcat install problem

2005-11-21 Thread Nikola Milutinovic
Terry Allen wrote: Anything in the logs for this new setup? Nix. Hi again, Okay, I've included the last log entries from a few logs as listed below - the other logs in that directory contain only information about startup notification etc... apologies if this is not the right way to p

Re: New Tomcat install problem

2005-11-21 Thread Terry Allen
Terry Allen wrote: at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613) There can be two caus

Re: New Tomcat install problem

2005-11-21 Thread Nikola Milutinovic
Terry Allen wrote: at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613) There can be two

RE: Calling EJBs

2005-11-21 Thread Milan Tomic
Sure, it it in the attachment. But, I don't understand what this XML file have to do with Tomcat and JSP compiler errors? I suppose I have to copy my JAR or my classes into some Tomcat folder, so Tomcat could find them, but I don't know which folder? I have already copied it into apache-tomcat-5.5

Sync session across webapps

2005-11-21 Thread Mathew Joseph
Hi, In my web application there are 2 webapps and single login for both. And in UI we are given links to different modules of both webapps. Actually the end user is not (should not be) aware of 2 webapps. The problem what I am facing is, If someone try to work/use continuously in one webapps an

Re: New Tomcat install problem

2005-11-21 Thread Terry Allen
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:613) There can be two causes. Either there is a