Applet does not send request to servlet

2007-01-16 Thread Teh Noranis Mohd Aris
Hi, I already solve the problem of loading my applet in the web browser. Thank you to all. Now, I'm having the problem to send request from the applet to the servlet. Attached is the AppletLogin.java (the servlet which I put in package myapp) and LoginApplet.java (the applet which I put in

HTTP response code "200 -" in access log

2007-01-16 Thread Andreas Deller
Hi I posted this unsuccessfully a week ago under 'Tomcat 4.1.30/5.0.28 empty responses - return code "200 -"', so I rephrase and shorten my question. OS: Solaris & Debian, Tomcat version 4.1.30 and 5.0.28. In the access logs, there are a number of entries with the HTTP status code "200 -". So t

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Vacuum Joe
"You might want to install the same version of Tomcat standalone, and create a comparable virtual host configuration just to see how logging works normally. Then transfer that test case to your JBoss environment and see what happens." And it turns out that one of the webapps was stomping on global

2 session variables JSESSIONID retrieved by JavaScript

2007-01-16 Thread Smith Norton
This strange thing is happening in Internet Explorer 6 I use a simple JavaScript like this to read a cookie and set it back. Ideally, it shouldn't alter the cookie value. function setCookie() { document.cookie=frmCookie.cookieString.value alert('Cookie: ' + frmCookie.cookieString

configure tomcat to ask for client certificate for particular URL only

2007-01-16 Thread Ambuj Jain
Hi, Can We configure tomcat server to allow clients who have certificates to access a particular URL, but allow all clients to access the rest of the server? Restrict the URL based on client certificate. If Yes, please send me one example configuration file. Thanks, Ambuj Jain ---

Re: Tomcat memory usage.

2007-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ayusman, Ayusman Dikshit wrote: > I wanted to know how can I specify/increase the memroy requirements for my > application or Tomcat application? If you want to give this particular application more resources than you want to share with the others, t

Tomcat memory usage.

2007-01-16 Thread Ayusman Dikshit
Hi All, I have a OS X server, running Tomcat 5.0.19. There are already three applications running but I will need one more application which is memory intensive. I wanted to know how can I specify/increase the memroy requirements for my application or Tomcat application? My new application may nee

Tomcat "working path"

2007-01-16 Thread le tortoise
Hi, Could anyone here explain to me about the use of the "working path" in Tomcat? I already tried searching in google but still could not find a good answer. In MS Windows, this "working path" can be set by using the GUI, but how to set this path in Linux? Thanks. :) -

RE: context.xml in Tomcat 6

2007-01-16 Thread Caldarale, Charles R
> From: Wojtek Kusch [mailto:[EMAIL PROTECTED] > Subject: Re: context.xml in Tomcat 6 > > If I choose this app ("unleashed") I get - 404 _The > requested resource (/unleashed/) is not available. You have no welcome file in the app's directory, nor is there any servlet-mapping in your WEB-INF/w

Re: Configurable Errors

2007-01-16 Thread James Dekker
Chris! You hit the nail on the head! Removing the .properties extension made it work! Thank you so much! You rock! -James On Jan 16, 2007, at 3:25 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Dekker wrote: m_resource = ResourceBundle.g

RE: Configurable Errors

2007-01-16 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] > Subject: Re: Configurable Errors > > ResourceBundle.getResource("errors") will get errors.properties > language and country is self-explanatory.. > > variant is either > WIN for Windows, MAC for Macintosh, and POSIX for POSIX > > The order to lo

Re: Configurable Errors

2007-01-16 Thread Martin Gainty
ResourceBundle.getResource("errors") will get errors.properties language and country is self-explanatory.. variant is either WIN for Windows, MAC for Macintosh, and POSIX for POSIX The order to locate the resources properties file on your classpath is .. a.. baseName + "_" + language1 + "_" + c

RE: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Caldarale, Charles R
> From: Vacuum Joe [mailto:[EMAIL PROTECTED] > Subject: Re: No logging (or System.out) when I activate virtual hosts > > Does anyone have any ideas on this? This whole thing is > basically not usable for real work if exceptions are silently > dropped, which is what is happening. Surely someon

RE: tomahawk and Error listenerStart

2007-01-16 Thread Caldarale, Charles R
> From: Wojtek Kusch [mailto:[EMAIL PROTECTED] > Subject: tomahawk and Error listenerStart > > SCHWERWIEGEND: Context [/JSFMyApp] startup failed due to > previous errors > 17.01.2007 00:03:50 org.apache.catalina.startup.HostConfig > deployDescriptor > > What can I do? Find out what the "previ

Re: SocketTimeout/TC ignoring parameter in server.xml (Bug 40401 and 38485) ?

2007-01-16 Thread Mark Thomas
Toadie wrote: > Any idea which version of TC those are fixed in? http://tomcat.apache.org/tomcat-5.5-doc/changelog.html Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: Cannot create JDBC driver

2007-01-16 Thread Martin Gainty
Ray- You will need to supply JDBC parameters as in this example Realm specification in server.xml M- --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to wh

SocketTimeout/TC ignoring parameter in server.xml (Bug 40401 and 38485) ?

2007-01-16 Thread Toadie
There are 2 bugs (40401 and 38485 ) both dealt with Tomcat ignoring server parameter set in server.xml. Both are marked as either fixed or duplicate of the other one. They are bugged in version 5.5.14 and 5.5.15. Any idea which version of TC those are fixed in? I am using 5.5.17 and am still s

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Hassan Schroeder
On 1/16/07, Vacuum Joe <[EMAIL PROTECTED]> wrote: I also asked on a JBoss forum and they thought it's Tomcat. heh. :-) ... will set up test cases and trace the whole thing, You might want to install the same version of Tomcat standalone, and create a comparable virtual host configuration j

RE: Cannot create JDBC driver

2007-01-16 Thread Ray Madigan
Well, I have to apologize, I was unsure of how much information on the setup environment was needed? I deploy the application from a war file. When I delete the war file from the webapps directory and leave only the previously extracted directory the servlet can create the DataSource. If I leav

RE: How to enable log4 for use with Tomcat?

2007-01-16 Thread Lisa
Specifying the location of the log4j.xml file in CATALINA_OPTS is ignored. It will only pick it up from the classes/ directory. Ideally I would like to put it under the conf/ directory but am having no such luck. I got it to work sort of. I can not get fileappenders to work. I am trying to lo

Re: Setting/changing authorization header in Tomcat 5.*

2007-01-16 Thread Mark Thomas
Eugeny N Dzhurinsky wrote: > Hello! > > Could somebody please advice what is a best way to implement a valve class, > which will just add custom authorization header if request matches some > conditions? If you want to add a header then something like this should work but I haven't tested it at a

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Vacuum Joe
"When will you get the idea to take this to a JBoss list??? Logging in Tomcat works absolutely fine with virtual hosts in standalone mode, right out of the box." I also asked on a JBoss forum and they thought it's Tomcat. Right now I'm going through the JBoss deployer code, and will set up test

Re: Configurable Errors

2007-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, James Dekker wrote: > m_resource = ResourceBundle.getBundle("error.properties"); When you use ResourceBundle.getBundle, you don't put the ".properties" extension on the file. You need to change this line of code to this: m_resource =

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Hassan Schroeder
On 1/16/07, Vacuum Joe <[EMAIL PROTECTED]> wrote: Does anyone have any ideas on this? This whole thing is basically not usable for real work if exceptions are silently dropped, which is what is happening. Surely someone has implemented some kind of log system that works in Tomcat? When will

tomahawk and Error listenerStart

2007-01-16 Thread Wojtek Kusch
Hi All! If I include tomahawk 1.1.3.jar in my application library (add external jar to my app), then start tomcat 6, I get following error: Error listenerStart 17.01.2007 00:03:50 org.apache.catalina.core.StandardContext start SCHWERWIEGEND: Context [/JSFMyApp] startup failed due to pre

RE: Configurable Errors

2007-01-16 Thread Robert Harper
In my servlet, I load a properties file that is in my [context_path]/classes directory with the following line of code m_resource = ResourceBundle.getBundle( "ctimpact", Locale.getDefault() ); This works fine for me. You could try removing the ".properties" part of the file name. The API may be a

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Vacuum Joe
Does anyone have any ideas on this? This whole thing is basically not usable for real work if exceptions are silently dropped, which is what is happening. Surely someone has implemented some kind of log system that works in Tomcat? Or at least there's a way to dump exceptions to System.out or

Re: Configurable Errors

2007-01-16 Thread James Dekker
Dear Mr. Harper, Thank you for the response! I set the path inside the ActionError constructor as follows: public ActionError() { m_resource = ResourceBundle.getBundle("/error.properties"); } I thought the "/" meant the root directory inside CATALINA_HOME/WEB-INF/classes/. Since, my er

RE: Configurable Errors

2007-01-16 Thread Robert Harper
It looks like it is looking for it in the root of either the machine or CATALINA_HOME. Resolve the path correctly and you'll probably find your problem. You didn't provide the path so the loader assumes the root. Robert S. Harper Senior Engineer Information Access Technology, Inc. 1100 East 6600 S

Configurable Errors

2007-01-16 Thread James Dekker
Hello there, I am creating a configurable errors file which gets loaded as a properties file from an init servlet: import java.io.IOException; import java.util.Properties; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; public class ErrorInitServlet extends HttpSe

RE: Cannot create JDBC driver

2007-01-16 Thread Caldarale, Charles R
> From: Ray Madigan [mailto:[EMAIL PROTECTED] > Subject: RE: Cannot create JDBC driver > > An interesting twist to the situation is that if I delete > the war file in webapps the Exception does not occur and > the application works. What war file? You did not mention any in the first message.

RE: Cannot create JDBC driver

2007-01-16 Thread Ray Madigan
An interesting twist to the situation is that if I delete the war file in webapps the Exception does not occur and the application works. Also, the context.xml is not copied, so I suspect it doesn't need to be. What causes the application to operate differently when the war file is present then w

Apache mod_jk memory leak?

2007-01-16 Thread JNeuhoff
We are running an Apache 2.0.54 , mod_jk 1.2.10 and Tomcat 5.5.17 on a Windows 2003 server box, average web traffic to Tomcat is about 10 to 20 concurrent HTTP sessions (idle session timeout 15 minutes). After a weekend of sudden heavy web traffic with up to 150 simultaneous HTTP sessions we exper

Re: context.xml in Tomcat 6

2007-01-16 Thread Wojtek Kusch
please contact the sender and delete the e-mail and its attachments from all computers. ----- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROT

Cannot create JDBC driver

2007-01-16 Thread Ray Madigan
I have beat my head against this one long enough. I am hoping someone can help. I cant get past the error message SQLException: Cannot create JDBC driver of class ' ' for connect url 'null' I am using tomcat 5.5.17 and I am attempting to get a JDBC connection in a servlet using the instructions

Re: Watching a directory for new files

2007-01-16 Thread robert lazarski
You can use just one thread just fine. Timer does have some drawbacks. Here's an example: ScheduledExecutorService ses = Executors.newSingleThreadScheduledExecutor(); // Do pings, starting now, with a 2 second delay ScheduledFuture ping = ses.scheduleWithFixedDelay(new PingTask

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
Thanks for the suggestion. I don't need the extra capabilities or multiple threads for this app because of its simplicity and relatively low traffic rate, but I'll keep it in mind if I need to handle more traffic later on. Dave robert lazarski wrote: If you are using java 5 or higher, con

RE: context.xml in Tomcat 6

2007-01-16 Thread Caldarale, Charles R
> From: Wojtek Kusch [mailto:[EMAIL PROTECTED] > Subject: Re: context.xml in Tomcat 6 > > unpackWARs="true" > autoDeploy="false" deployOnStartup="false" > xmlValidation="false" xmlNamespaceAware="false"> The above looks fine. > My manager.xml in "tomcat 6.0

Re: Watching a directory for new files

2007-01-16 Thread robert lazarski
If you are using java 5 or higher, consider using ScheduledThreadPoolExecutor which is generally considered a replacement for Timer. Robert On 1/16/07, David Kerber <[EMAIL PROTECTED]> wrote: The javax.management.Timer class was rather more complex than I liked for the simple stuff I needed, bu

Re: context.xml in Tomcat 6

2007-01-16 Thread Rashmi Rubdi
nd its attachments from all computers. > > ----- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PRO

Re: context.xml in Tomcat 6

2007-01-16 Thread Wojtek Kusch
tact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
The javax.management.Timer class was rather more complex than I liked for the simple stuff I needed, but while digging into it, I discovered the java.util.Timer class, which works great and is easy to implement, so thanks for putting me on the Timer track! Dave David Kerber wrote: Mikolaj

RE: context.xml in Tomcat 6

2007-01-16 Thread Caldarale, Charles R
> From: Wojtek Kusch [mailto:[EMAIL PROTECTED] > Subject: context.xml in Tomcat 6 > > in Tomcat 5.x I had my context-file in directory > conf/catalina/localhost The same location is also correct for Tomcat 6, except it's "Catalina", not "catalina" (case sensitive). >

RE: tomcat in the embedded device

2007-01-16 Thread Vamshidhar Palkonda
thanks for the response. Space is not a problem on the device. The device will be running Linux. One other reason is why I am thinking of tomcat is I am familiar with Java but not C,C++. We are starting from the scratch. And there are not many developers right now. Since the infrastructure that

context.xml in Tomcat 6

2007-01-16 Thread Wojtek Kusch
Hi All, in Tomcat 5.x I had my context-file in directory conf/catalina/localhost and in my server.xml autoDeploy="false" deployOnStartup="false". My context-file ((for example uleashed.xml for unleashed-web-application): type="javax.sql.DataSource"/> driverClassName sun

RE: conecting tomcat 5.5.17 to IIS 6

2007-01-16 Thread Tor Langehaug
Try seeing if you can find an old copy of the ISAPI redirect installer. If you can't find one by google, let me know. I had a heck of a time with getting IIS 5 and the redirect to work. The installer for whatever reason seemed to do the trick for me. Also, make sure that you physically restart

Fwd: PLEASE HELP A JSF ROOKIE: Adding data to a table in Netbeans 5.5 Visual Web Pack

2007-01-16 Thread llekann
Note: forwarded message attached. lekan - We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list.--- Begin Message --- Hi! In Swing, to create and populate a JTable is simple: new JTable(Object[][] data

RE: conecting tomcat 5.5.17 to IIS 6

2007-01-16 Thread Garner, Shawn
Yes, I've read those and followed the instructions. It works fine when I went back to JK-1.2.15 but I could not get it to work with JK-1.2.20. The only difference is I replaced the 1.2.20 isapi_redirect.dll with the JK-1.2.15 dll version. Shawn -Original Message- From: reno [mailto:[

Re: shut out IP-adresses / subnets

2007-01-16 Thread Tim Funk
http://tomcat.apache.org/faq/security.html#restrict -Tim [EMAIL PROTECTED] wrote: Hello list, I'm unsing Tomcat 5.5 in a intranet environment. Is it possible to shut out special IP adresses or subnets by Tomcat configuration? A Address specified on this 'blacklist' should not get ANY response

Re: conecting tomcat 5.5.17 to IIS 6

2007-01-16 Thread reno
have you read this and follow all the steps: http://tomcat.apache.org/connectors-doc/reference/iis.html > I'm not trying to be a spammer but nobody has responded yet. > > Has anyone got JK-1.2.20 to work with IIS 6? > > I went back to version 1.2.15 and it works now but the developers tell > me

RE: [OT] different version of java

2007-01-16 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED] > Subject: Re: [OT] different version of java > > I think you are running two different installations which > share server/libs :-) The procedure Chris describes is documented in RUNNING.txt under Advanced Configuration - Multiple Tomcat Instance

MySQL JNDI resource

2007-01-16 Thread Hampson, Christopher (EXP)
Hi, I have a JNDI connection to a MySQL database, a new thread is started every n seconds which queries a web service and then returns with the response time or a timeout. Each of these threads has a connection to the database. If the server is responding very slowly or indeed not responding at al

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
Mikolaj Rydzewski wrote: David Kerber wrote: Thanks for the suggestion. One question about this technique: can I run the directory check loop directly in the contextInitialized event of the Listener, or is it mandatory to create a new thread? You can't make an infinite (almost) loop durin

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
Caldarale, Charles R wrote: From: Tim Funk [mailto:[EMAIL PROTECTED] Subject: Re: Watching a directory for new files Various operating system allow hooks to do be notified when items in the filesystem change. But since we're using java - thats not the case here Tomcat does have the ca

Re: [OT] different version of java

2007-01-16 Thread Leon Rosenberg
On 1/16/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: > If you run two tomcat instances, from same location, at same time you > will run into various troubles I think Peter Crowther hit the nail on the head: we are

Re: [OT] different version of java

2007-01-16 Thread David Delbecq
En l'instant précis du 01/16/07 16:26, Christopher Schultz s'exprimait dans toute sa noblesse: > > > I think Peter Crowther hit the nail on the head: we are being imprecise > in our terminology. > > I've been talking about a single installation (i.e. only one binary copy > of Tomcat) but using seve

RE: Watching a directory for new files

2007-01-16 Thread Caldarale, Charles R
> From: Tim Funk [mailto:[EMAIL PROTECTED] > Subject: Re: Watching a directory for new files > > Various operating system allow hooks to do be notified when > items in the filesystem change. But since we're using java > - thats not the case here Tomcat does have the capability of specifying on

Re: Watching a directory for new files

2007-01-16 Thread Mikolaj Rydzewski
David Kerber wrote: Thanks for the suggestion. One question about this technique: can I run the directory check loop directly in the contextInitialized event of the Listener, or is it mandatory to create a new thread? You can't make an infinite (almost) loop during processing an event. Using

Re: [OT] different version of java

2007-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Delbecq wrote: > If you run two tomcat instances, from same location, at same time you > will run into various troubles I think Peter Crowther hit the nail on the head: we are being imprecise in our terminology. I've been talking about

RE: shut out IP-adresses / subnets

2007-01-16 Thread Peter Crowther
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Is it possible to shut out > special IP adresses or subnets by Tomcat configuration? Yes, using a filter. But... > A Address specified > on this 'blacklist' should not get ANY response from Tomcat. > Is this possible and if, how? That is *n

Re: Watching a directory for new files

2007-01-16 Thread David Kerber
Thanks for the suggestion. One question about this technique: can I run the directory check loop directly in the contextInitialized event of the Listener, or is it mandatory to create a new thread? Dave Tim Funk wrote: Various operating system allow hooks to do be notified when items in t

Re: shut out IP-adresses / subnets

2007-01-16 Thread EDMOND KEMOKAI
You can implement a filter to check all request to your app before processing. But if you don't want an IP address to access your app then I assume you don't want that IP address accessing anything on the OS you're running. If you have access to the OS running your app in this case it better to us

shut out IP-adresses / subnets

2007-01-16 Thread news
Hello list, I'm unsing Tomcat 5.5 in a intranet environment. Is it possible to shut out special IP adresses or subnets by Tomcat configuration? A Address specified on this 'blacklist' should not get ANY response from Tomcat. Is this possible and if, how? Thanks, Jan -

Re: different version of java

2007-01-16 Thread Leon Rosenberg
Well, not until you distribute your conf directory, because otherwise they'd be listening to the same port. But if start with such complicating things, why not just copy the installation? I mean hd-space is cheap. leon On 1/16/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP S

Re: different version of java

2007-01-16 Thread David Delbecq
If you run two tomcat instances, from same location, at same time you will run into various troubles 1) The second VM will have problems binding to ports, as the first one will already have claimed the port. You can argue to use different config, but then it's 2 different installations. 2) Compili

Re: Issue with Changing sessionid values -- please help...

2007-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kim, Kim Albee wrote: > We are not doing URL rewriting with sessionid, it's saving as a > cookie. Okay. > Not sure how the sessionid is determined ... by Tomcat or Apache Tomcat generates the sessions and therefore their ids as well. > we have mul

AW: AW: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-16 Thread Andy.Scherzinger
Hi Filip, I understand that I will just change the session in a way the delta manager will replicate everything. But is there no other Manager I can use which just replicates the complete session and not just the changed data (like the DeltaManager does)?! I couldn't find a Manager which repli

Re: different version of java

2007-01-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, Leon Rosenberg wrote: > yes, but you can't run them both at the same time. Uh... you /can/ run two VMs are the same time from the same Tomcat installation, and they do not have to be the same version of VM. - -chris -BEGIN PGP SIGNATURE--

Re: Watching a directory for new files

2007-01-16 Thread Tim Funk
Various operating system allow hooks to do be notified when items in the filesystem change. But since we're using java - thats not the case here so you need to something generic such as the following: Create a new ServletContextListener - this will run once one webapp loading. Have this spawn

Re: AW: Tomcat 5.5 Cluster: Session Replication before sending the response

2007-01-16 Thread Filip Hanik - Dev Lists
even with this method, you are not managing the sessions, you're just making sure that everything gets replicated, so doing this, you are not changing the session manager. remember, the code below would be inserted into a filter or a valve Filip [EMAIL PROTECTED] wrote: Hi Filip, Thanks for

Re: Tomcat 6 Clustering with StaticMembers

2007-01-16 Thread Filip Hanik - Dev Lists
on the servers that is running tomcat you need to match with so for the member that listens to 51077, you need to configure the port="51077" also to avoid conflict, you might want to turn on the membership, which I think I forgot to add in a flag for, I'll do that right now. Filip Mike Pr

conecting tomcat 5.5.17 to IIS 6

2007-01-16 Thread Garner, Shawn
I'm not trying to be a spammer but nobody has responded yet. Has anyone got JK-1.2.20 to work with IIS 6? I went back to version 1.2.15 and it works now but the developers tell me it's not a bug and many people have configured it succesfully with 1.2.20. I'd like to know how to get it to work

Watching a directory for new files

2007-01-16 Thread David Kerber
Hi, Tomcatters - I have a working application to which I need to add a new function, where I need to watch a networked directory (not on the local tomcat server machine) for newly-appearing files, which I will then process. I need to have this done at intervals not exceeding about two minutes

Problem running tomcat with war file, deployed with eclipse and s pring

2007-01-16 Thread SOF - Dragone Jose Luis
Please , I need help ! Problem running tomcat with war file, deployed with eclipse and spring ( additional INFO: JAVA_HOME = C:\Program Files\Java\jre1.5.0_09 CLASSPATH = C:\Program Files\EasyEclipse Desktop Java 1.0.2\jre\lib;C:\Program Files\EasyEclipse Desktop Java 1.0.2\jre\j

RE: HTTP Error 505

2007-01-16 Thread Jeanna Geier
Just an FYI: Sent the laptop with the user last night and talked to him this morning and he hasn't had any issues with it since correcting the URL issue, so that appears to have fixed the issue in its entirety... I just did a quick test on my desktop and changed the URL on some of the icons in the

Re: Cannot load applet on web browser

2007-01-16 Thread Teh Noranis Mohd Aris
Yes, you are correct Mr. David Smith, I was just about to tell this matter. I did not put the LoginApplet.class in the WEB-INF. I choose to use html in the servlet because I would like to upgrade the previous system that was written in cgi. For the moment, I plan to use servlet and will upgrade

Re: Adding a virtual host in Tomcat 5.5

2007-01-16 Thread David Smith
First thing to realize is this is not like setting up PHP. JSPs aren't meant to live on their own like what you've setup below. Consider pointing your tomcat virtual host to /home/username/webapps. Then create a folder /home/username named ROOT (case is important here) and place your .jsp file

Re: Help loading XML config file via Init Servlet

2007-01-16 Thread David Smith
I think you are really after this.class.getResourceAsStream( "org/coffeebreak/config/attributes-config.xml" ) ; which would use the classloader to locate your xml file in WEB-INF/classes or your jar file and return an InputStream to it. --David James Dekker wrote: > Robert, > > The problem with

Re: Cannot load applet on web browser

2007-01-16 Thread David Smith
I reread the original post and I don't think you are all that far off in your setup. I'll recap a little here just to be sure I'm reading it right: Servlet is located at WEB-INF/classes/AppletLogin.class (I would recommend this be in an official package) Applet is located at myapp/applets/LoginAp

Re: Cannot load applet on web browser

2007-01-16 Thread Teh Noranis Mohd Aris
Thank you for the reply. I already created the LoginApplet.html and embed the LoginApplet.class. Where should I put the files in the tomcat directory? Where should I put the JSP files? How about the WEB-INF file? Please help me! I'm really short of time! Thank you so much. Yours Sincerely,

RE: tomcat in the embedded device

2007-01-16 Thread Peter Crowther
> From: Vamshidhar Palkonda [mailto:[EMAIL PROTECTED] > Today, all the embedded devices like VPN, Firewall devices > have a cli, httpd and configd daemons. These are all control > pane daemons. They are all in C/C++. > > Now I want to use tomcat in place of httpd and confid. First > is it a go

partial GET requests consuming entire thread pool

2007-01-16 Thread Roger Keays
Hi there, I'm running tc-5.5.16 and am having a problem with certain clients consuming large numbers of ajp threads which are never released. I can see from the httpd logs that these clients are all Windows machines and each thread is being used to return a 16-64Kb portion of the files they a

Re: Cannot load applet on web browser

2007-01-16 Thread Zack Grafton
I totally agree with Vacuum Joe on his point at getting familiar with Tomcat. As well, I believe the applet tag is considered deprecated with most of the newer versions of Java. There is a program in the bin folder under your Java installation directory called HtmlConverter. This program wil

Setting/changing authorization header in Tomcat 5.*

2007-01-16 Thread Eugeny N Dzhurinsky
Hello! Could somebody please advice what is a best way to implement a valve class, which will just add custom authorization header if request matches some conditions? I looked at org.apache.catalina.Request interface and found there is a method /** * Set the authorization credentials sent wit