Re: How to change the SSL port

2005-09-15 Thread Jason Bainbridge
On 9/15/05, Hassan Schroeder [EMAIL PROTECTED] wrote:
 CommonGround Softworks/Phil McNamara wrote:
 
  The tomcat log does show a bind error message after my server.xml edit to
  port 443.
 
  Sep 15, 2005 10:37:07 PM org.apache.coyote.http11.Http11Protocol init
  SEVERE: Error initializing endpoint
  java.net.BindException: Permission denied:443
 
 Are you starting Tomcat as root? Doesn't look like it...

See http://www.klawitter.de/tomcat80.html for details, just do the
same but for 443 not 80.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: The process tomcat {pid 1488.0000 } is leaking handles

2005-09-13 Thread Jason Bainbridge
On 9/13/05, Wade Chandler [EMAIL PROTECTED] wrote:
 --- [EMAIL PROTECTED] wrote:
 
  I have and they put it down to being the Tomcat
  application - not much use
  at all!
  On task manager it does indicate that tomcat is at
  fault..

I'm assuming by the reference to task manager that this is running
on Windows so download filemon from http://sysinternals.com, then run
it (requires no installation) and it will instantly tell you what
files are open and hence where the problem is.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Disabling IdentityCheck (port 113)

2005-09-07 Thread Jason Bainbridge
On 9/7/05, Tim Funk [EMAIL PROTECTED] wrote:
 Odd. Are you sure its not your OS logging all incoming TCP connections? There
 is no such setting in tomcat which does this.
 
 -Tim

http://grc.com/port_113.htm

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Does Tomcat run better on Linux or Windows?

2005-08-30 Thread Jason Bainbridge
On 8/30/05, Rob Hills [EMAIL PROTECTED] wrote:
 Hi All,
 
 On 30 Aug 2005 at 18:12, Caldarale, Charles R wrote:
 
   From: Brian Cook [mailto:[EMAIL PROTECTED]
   Subject: Re: Does Tomcat run better on Linux or Windows?
  
   The only thing that comes to mind is that you have to
   reboot windows every time you need to make a change to
   the CLASSPATH, JAVA_HOME, or TOMCAT_HOME variables
 
  That's simply not true. Opening up a new instance of the command prompt
  will pick up any modified or added environment variables.  (But don't
  construe this statement as an endorsement of Windows over Linux, by any
  means.)
 
 That is correct, but many of us run Tomcat as a Service.  I've not yet
 been able to find a way of changing environment variables in Windows
 and have the OS pick up the changes and pass them to a service (no
 matter how often you stop and start the service) without rebooting.

Usually closing the Windows Services applet and reopening it does the
trick, I've found Windows picks up the environment variables at the
time a program is started so usually closing whatever program and
reopening it works.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Use port 443 as non-ssl

2005-08-22 Thread Jason Bainbridge
On 8/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Hi, I need to use the tomcat with a non - ssl connector on port 443.
 Up to now, no success. Is there a way to use the 443 in a non-ssl? Im not
 using the ssl (it is between !-- --).

I don't think browsers will let you do that, it would be a bit of a
security risk to say the least...

What is your requirement for this anyway?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Use port 443 as non-ssl

2005-08-22 Thread Jason Bainbridge
On 8/22/05, Markus Schönhaber [EMAIL PROTECTED] wrote:
 Am Montag, 22. August 2005 17:54 schrieb Jason Bainbridge:
  On 8/22/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
 wrote:
   Hi, I need to use the tomcat with a non - ssl connector on port 443.
   Up to now, no success. Is there a way to use the 443 in a non-ssl? Im not
   using the ssl (it is between !-- --).
 
  I don't think browsers will let you do that,
 
 Why shouldn't they? In fact, they do.
 
  it would be a bit of a
  security risk to say the least...
 
 Could you please explain that?

I blame monday-itis, I must have killed a few brain cells too many
over the weekend. :)

Of course that statement was wrong and justg running the standard http
connector on port 443 should be fine, of course unless you are on a
*nix based operating system where ports 1024 and below are privileged
and need one of the workarounds.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Certificates On 5.5

2005-08-10 Thread Jason Bainbridge
On 8/10/05, Scott Purcell [EMAIL PROTECTED] wrote:
 Hello,
 
 I have the need install Verisign Certificate on my Tomcat 5.5 running on XP.
 
 I am not that familiar with SSL, and was hoping someone may of done this, and 
 could give me a high-level of the complexivity.
 I would like to have this running by Friday and could use any links, help.

It is quite straight forward in the majority of cases:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: How to implement Cluster using tomcat5.0

2005-07-21 Thread Jason Bainbridge
On 7/21/05, Sridhar [EMAIL PROTECTED] wrote:
 Hi Everybody,
 
 How to implement Cluster using tomcat5.0.

Start here first:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cluster-howto.html

Then try to get it working and if you have trouble try researching the
issues a little and then if you get stumped post your questions to the
list.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: img tag's src not working for image files in a JSP in tomcat 5.5

2005-06-27 Thread Jason Bainbridge
Sounds like a browser caching issue or maybe some referrer checking
getting in the way although I don't how that would be setup in Tomcat.

Are you using SSL or have any other types of constriants in place?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

On 6/27/05, Ryan Champlin [EMAIL PROTECTED] wrote:
 All,
 
 I've read quite a few articles on this issue and tried all the solutions 
 given and none of them seem to be working.
 I'm using Netbeans 4.1 with Tomcat 5.5.  My application is using the MVC 
 patter so I have a controller that is using the request dispatcher to forward 
 a request to a JSP page.
 
 Basically I have an application at the context /Company.
 
 I have all my images in a folder called img and all my JSP's in a folder 
 called jsp.
 
 I've tried using relative paths to the image directory and the images don't 
 show up in the browser however if I look at the URL it seems right.
 I right-clicked to get properties and copied the URL:
 
 http://localhost:8085/Company/img/image.jpg
 
 If I paste that into a browser I get a 404 error from Tomcat.  However, if I 
 take off the image name and do:
 
 http://localhost:8085/Company/img
 
 I get a listing of the image files.  If I click on the link for the image 
 image.jpg it opens the file in the browser and I see the URL as:
 
 http://localhost:8085/Company/img/image.jpg
 
 which is exactly the same as what I had manually typed in.  Doesn't make any 
 sense to me as to why it works one way and not the other.  Possibly a 
 permissions issue?
 
 Can anyone shed some light on why I can't get my image files to show up in my 
 JSP pages?
 
 Thanks,
 Ryan
 
 


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



Re: Better explained of my problem with renaming a file in Tomcat

2005-06-22 Thread Jason Bainbridge
On 6/22/05, Kam Lung Leung [EMAIL PROTECTED] wrote:
 Hi,
 
 I have a servlet, RenameFile, that receives audio file via HTTP Post 

I should have read your post better and realized there was no Java
method for RenameFile as that is what I wrongly assumed... How exactly
are you ceating the directories and trying to move the file?

Are both servers running the same servlet and doing similar things?


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Location of backwards compatibility patch

2005-06-21 Thread Jason Bainbridge
On 6/21/05, Scott, Brian [EMAIL PROTECTED] wrote:
 Hello friends.  I'm curious if anyone can guide me to the Tomcat
 compatibility patch that will allow me to run Tomcat 5.5 under jdk 142_05.
 I spent some time on the jakarta site but was unable to locate the file.
 Thank you in advance.

look for a suffix of -compat on the download page right where you got 5.5 from.

I really can't see how many people can't see that along with the admin
package, maybe we should make the link blink. :P

regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Can't rename a file using renameTo()

2005-06-21 Thread Jason Bainbridge
On 6/21/05, Kam Lung Leung [EMAIL PROTECTED] wrote:
 Hi,
 
 I have a servlet, Servlet-A, that rename a file from /tmp/oldFile to 
 /someDirectory/newFile. The Servlet-A runs fine when it runs by itself in a 
 Red Hat Linux 7.2 server that has jakarta-tomcat-4.1.30 running. However, it 
 false to rename the /tmp/oldFile to /someDirectory/newFile when the Servlet-A 
 run (within the jakarta-tomcat-4.1.30) in a Red Hat Linux 7.2 server box that 
 also has jboss-3.2.1_tomcat-4.1.24 running. I thought it may be privilege 
 issue so I set the /someDirectory directory with chmod –R 777 and run 
 Tomcat as a root user. But, it is still false to rename the /tmp/oldFile file 
 to the /someDirectory/newFile.
 
 The strange thing is that the Servlet-A was able to write the oldFile to the 
 /tmp directory but can not rename the oldFile to the /someDirectory directory 
 that was allowed for writing for ALL user levels. Can this be Jboss prevented 
 the rename operation. I used the canRead and canWrite to check allowable 
 action by the File. It turns out that the Servlet-A can read and write the 
 /tmp/ oldFile. But the Servlet-A can't read or write the 
 /someDirectory/newFile.
 
 The strangest thing is that when the Servlet-A runs in a Red Hat Linux 7.2 
 server that has ONLY jakarta-tomcat-4.1.30 running, the condition of canRead 
 and canwrite are the same. Meaning that the Servlet-A was able to read, and 
 write the oldFile. But can't read, and write the newFile. However, the 
 renameTo() method returned true and the Servlet-A was able to rename the 
 /tmp/oldFile into /someDirectory/newFile.

It took me a few reads to even come close to following all that but is
it possibly that you are trying to copy a subdirectory within /tmp to
a subdirectory of /someDirectory that doesn't exist?


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com


Re: Is Tomcat is an application server ?

2005-06-21 Thread Jason Bainbridge
On 6/21/05, Anto Paul [EMAIL PROTECTED] wrote:
 On 6/21/05, David Johnson [EMAIL PROTECTED] wrote:
  To expand a bit on Richard's note ...
 
  On Tue, 2005-06-21 at 00:32 -0700, Richard Mixon (qwest) wrote:
- Remoting implies distributing your objects across the network - a
   nice feature, but not often needed. Its talked about a lot - but for
   most applications its just not needed.
 
  J2EE is a standard that encompasses a large number of standards
  services, most of which are considered optional.  JMS, for example, is
  not implemented in any commercial server directly.  Instead, you must
  purchase a messaging system such as MQ series, (generally) a JNI wrapper
  code to talk to the message service, and a JMS wrapper that goes with
  the messaging system.  This all plugs into the app server as a set of
  JAR files and a couple of native libraries.
 
  JTA is an extension that, likewise, is optional and pluggable.  From my
  exposure, it also appears to be largely an evolving standard, in the
  sense that some of the things you would expect to support JTA don't
  quite do so.
 
- Our Hibernate-based Tomcat application use Hibernate and jta.jar
   for
   transaction services and it works quite well. We have most of the
   advantages of declarative transaction demarcation.
 
  Hibernate demonstrates why EJB is an optional part of the J2EE
  specification.  It is fully reasonable, during product design and
  exploratory coding, to unplug one persistence model and replace it with
  another.  In the case of hibernate versus EJB 1 and 2, enough people did
  this that Hibernate has effectively displaced EJB's in much of the
  industry, and Hibernate is now the core of the EJB 3 specification.
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 There is no meaning in saying that one can plug in required
 services to Tomcat. My question is by design is it an application
 server ?. My opinion is that Tomcat in the shipped form is not an
 application server. At the minimum it should provide transaction and
 persistence services, method level security is also preferred.
 One can add all the above mentioned features to any servlet engine
 by deploying JAR files of the required services(JNDI,JTA,persistence
 and even EJB). So any servlet engine becomes an application server. Am
 I right ?

I think you are getting your terms mixed up... Your arguments could be
used in regards to a full J2EE container, which Tomcat isn't on it's
own but an application server just needs to serve applications and
Tomcat certainly does that.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Differences between service startup and batch startup

2005-06-20 Thread Jason Bainbridge
On 6/20/05, John Lindley [EMAIL PROTECTED] wrote:
 I have noticed a difference between starting Tomcat 5.0.28 using the service 
 and the batch file.
 When I run startup.bat, everything seems to be running fine.  I have an ODBC 
 node defined,
 connecting to an Access database, and I have no trouble retrieving the data 
 through Tomcat.
 However, when I start Tomcat using the Windows service, Tomcat comes up 
 without any errors, but I
 cannot retrieve the data from the database.  I get the following error:
 
 
 2005-06-18 23:13:06 StandardWrapperValve[jsp]: Servlet.service() for servlet 
 jsp threw exception
 com.borland.dx.dataset.DataSetException: General error

May be you need to check the Allow interact with desktop (or
whatever it is) option on the Logon details for the Windows Service?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Webdav on Tomcat 5.0.28 fails

2005-06-16 Thread Jason Bainbridge
On 6/16/05, Padmanabhan, Sheeba [EMAIL PROTECTED] wrote:
 Hi Mark,
 
 I couldn't find any webdav servlet entry in the \conf\web.xml. Could you
 please tell me which tag exactly I should modify?

It would be \webapps\webdav\WEB-INF\web.xml

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: tomcat causes servlet malfunction???

2005-06-08 Thread Jason Bainbridge
On 6/8/05, Michael Echavez [EMAIL PROTECTED] wrote:
 Hi Everyone!
 There is a servlet i found from a book that utilizes the parameters from
 servlets but whenever i run it the browser doesnt seem to open the class
 properly and instead it only downloads the .class file. I think the problem
 here has something to do with the new Tomcat version. Can someone try
 deploying the application so that I'll be able to find out whether what the
 problem really is. Below are the codes i used:

That is using the ancient /servlet directory default servlet thingy,
the class you have needs to be packaged and then placed in
%TOMCAT_HOME%/webapps/yourwebapp/WEB-INF/classes for it to work
properly.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Funny JAR file, WAS: Class.forName() gives NoClassDefFoundError

2005-06-08 Thread Jason Bainbridge
On 6/8/05, Torsten Römer [EMAIL PROTECTED] wrote:
 Just want to follow up on this.
 
 Originally, the classes under /WEB-INF/classes were in a JAR file, which
 I put in /WEB-INF/lib, but like this I always got NoClassDefFoundError.
 
 So I thought there may be something wrong with the JAR file. I then
 zipped the classes manually and replaced the JAR file with that. And see
 there: No more NoClassDefFoundErrors.
 
 The application JAR is, like the WAR file, created by an Ant task. It
 can be opened/extracted without problems, but if I put it in Tomcat, I
 always get NoClassDefFoundError. If I zip the classes manually, it works
 just fine...
 

Sounds more like a classloader/classpath problem, NoClassDefFoundError
means it is finding multiple copies of the class.

Are you setting your system classpath as well by any chance? If you
are then you shouldn't be.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Using Jacorb through Tomcat

2005-06-07 Thread Jason Bainbridge
On 6/7/05, Adam Wynne [EMAIL PROTECTED] wrote:
 Hi,
 
 Does anyone know how to use Jacorb through Tomcat?  I read that I need
 to pass the Jacorb command line options to Tomcat at startup, but
 can't find which script to add them to.  Any advice is appreciated.  I
 am using tomcat41.

Uhm did you even look for an answer first?

http://www.jacorb.org/TomcatHowto.html

I had no idea what Jacorb was, a google found their site and a click
on the documentation link found the above.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat 5.5 in dos window

2005-06-03 Thread Jason Bainbridge
On 6/3/05, Søren Blidorf [EMAIL PROTECTED] wrote:
 Hi.
 
 Is it possible to start tomcat 5.5 i a dos window instead of as a
 service?

Download the Zip archive instead of the installer and that will have a
startup.bat that you can use just for that purpose, no idea why they
stopped including the bat files in the installer...

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat 5.X Cocoon

2005-06-03 Thread Jason Bainbridge
On 6/3/05, Omar Adobati [EMAIL PROTECTED] wrote:
 Good Morning to all,
   I need to know if anyone can run cocoon on Tomcat 5.x.
 Reading on the official site of cocoon it seems to not be possible to
 run cocoon on Tomcat 5.x. This came from the fact that I cant find an
 help in how to do this on the site.
 
 Does anyone can help me?

First Google result for Tomcat 5.5 cocoon is:
http://www.devx.com/opensource/Article/27102/1954?pf=true

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: servlet request time out ?!

2005-06-03 Thread Jason Bainbridge
On 6/3/05, Angelov, Rossen [EMAIL PROTECTED] wrote:
 I tried adding it to my .../WEB-INF/web.xml
 web-app
 
   session-config
 session-timeout45/session-timeout
   /session-config
 
   ...
 /web-app
 
 but I started getting errors when tomcat is deploying the context:
 
 Jun 3, 2005 11:51:20 AM org.apache.commons.digester.Digester error
 SEVERE: Parse Error at line 28 column 11: The content of element type
 web-app must match
 (icon?,display-name?,description?,distributable?,context-param*,filter*,fil
 ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
 g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
 curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
 l-ref*).
 org.xml.sax.SAXParseException: The content of element type web-app must
 match
 (icon?,display-name?,description?,distributable?,context-param*,filter*,fil
 ter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mappin
 g*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,se
 curity-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-loca
 l-ref*).

The session-config details need to go after the servlet-mapping's and
before the mime-mapping's in your web.xml, that is what that error is
saying, the DTD expects the elements to be in a certain order and your
order isn't correct.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Scalability issue question

2005-06-02 Thread Jason Bainbridge
On 6/2/05, Wallace, Scott [EMAIL PROTECTED] wrote:
 Currently using IIS and the ISAPI Tomcat redirect.   Would like to just
 use Tomcat instead but don't know if it can handle my static content.
 The book Apache Tomcat 5 published by WROX warns of performance issues
 with static content, but ComputerWorld just did an article about
 Weather.com running their site on multiple load balanced Tomcat servers
 servicing 18 million hits a day.
 http://www.computerworld.com/softwaretopics/os/linux/story/0,10801,92583
 ,00.html

You do realize that article is over a year old don't you? That would
be based around Tomcat 4.X and there have been leaps and bounds in
perfomance with 5.0 and 5.5 so Tomcat should fare even better than it
did back then.

However I would be surprised if weather.com were using the Apache
webserver and looking at Netcraft it looks like they are, no idea what
connectors they are using though.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: IMPORTANT NEED Tomcat Connection advice

2005-05-25 Thread Jason Bainbridge
On 5/25/05, Mladen Turk [EMAIL PROTECTED] wrote:
 Nikola Milutinovic wrote:
  [EMAIL PROTECTED] wrote:
 
 
  Then you're messing it up. HTTP has no paradigm of a session, which is
  what you need here. HTTP has a very clear request/response model. It is
  not designed to hold the HTTP channel open indefinitely and will break
  off after a timeout. Timeout is configurable both on client and server
  sides. So, you can easily get server timeout or client timeout on the
  connection. And that is definitely not good for a realtime application :-)
 
 
 Sure all that is in place, but OTOH the http keep-alive connection *can*
 be opened for several hours or days.
 HTTP/1.1 uses persistent connections by default and you must explicitly
 add the 'Connection: close' in the header.
 Without that, things like internet radio for example would be a
 pure wish :)

Do internet radio and the like actually use the HTTP protocol though?
I'm by no means an expert but I would have expected them to use their
own protocol to handle the streaming?

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat/Personal Web Server Problem

2005-05-25 Thread Jason Bainbridge
On 5/25/05, Robin Rembish [EMAIL PROTECTED] wrote:
 I had both Tomcat 4.1 and Microsoft Personal Web Server installed on my 
 laptop ( an IBM Thinkpad - Windows NT operating system). It had been several 
 months since I used Tomcat.
 
 When I started the Tomcat server and typed in localhost:8080 in the Internet 
 Explorer address window, it brought me to Personal Web Server rather than 
 bringing up the Tomcat page.
 
 I then decided to uninstall both Personal Web Server and the Java Web 
 Services Developers Pack. But after reinstalling the latter, I am getting a 
 page not found condition. (Details are below).

Is there any reason you need to use that bizarre setup and can't just
download the vanilla windows installer for Tomcat? It would save you a
lot of grief if you could do that...

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Help with Tomcat 5.5.x on redhat-release-3ES-7.4

2005-05-24 Thread Jason Bainbridge
On 5/24/05, Gary Zhu [EMAIL PROTECTED] wrote:
 Hi all,
 
 When trying to start tomcat 5.5.4(tried 5.5.7 and 5.5.9) on OS
 redhat-release-3ES-7.4, I always get the following error:
 '/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: syntax
 error near unexpected token `do
 '/catalina.sh: /usr/local/tomcat/bin/setclasspath.sh: line 74: `for
 i in $OSXHACK/*.jar; do
 
 Of course, all the three versions have been working fine with other
 redhat linux versions such as redhat-release-9-3.

Strange maybe RHEL3-ES-7.4 (whatever all that means) somehow does more
syntax checking than usual and enteres that IF even though it doesn't
need to and barfs it as a result so try editing setclasspath.sh and
comment out the below lines:

# OSX hack to CLASSPATH
JIKESPATH=
if [ `uname -s` = Darwin ]; then
  
OSXHACK=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Classes
  if [ -d $OSXHACK ]; then
for i in $OSXHACK/*.jar; do
  JIKESPATH=$JIKESPATH:$i
done
  fi
fi

Hopefully that will make it happy. :)

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Error on Running Perl CGI on Tomcat

2005-05-20 Thread Jason Bainbridge
On 5/20/05, Robert Kerry [EMAIL PROTECTED] wrote:
 I know this has been asked for millions of time, but I searched google
 for the entire day but did not get an answer, instead I found millions
 of ppl who have the same problem as I am. The problem is simple:
 1. The same code runs well on command line
 2. When Running on Tomcat, the html file gives such error:
 Software error:
 Can't connect to MySQL database: Can't create TCP/IP socket (10106)
 3. OS is Windows XP
 4. I am pretty sure that Tomcat, Perl interpreter, MySQL runs well seperately.
 
 I don't know what to do and since it is a joint question of 3
 softwares, I'm gonna
 send it to the three maillist and see finally if anybody could give
 correct answers to it. Thanks

Look at the very bottom post on this page:

http://sunsite.mff.cuni.cz/MIRRORS/ftp.mysql.com/doc/en/Can_not_connect_to_server.html

I would say at a guess you are running XP SP2 and that just causes
headaches when trying to do anything server related, when you run the
app from the command line you run it as you but I would say your
Tomcat is installed as a service and is running as LocalSystem so it
has trouble opening the port.

You could also try running the Tomcat service as yourself and if that
works create a special Tomcat service account.

Regards.
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat vs Apache

2005-05-18 Thread Jason Bainbridge
On 5/18/05, Chris [EMAIL PROTECTED] wrote:
  If all you're doing is serve static pages, both are equivalent.
  However, if you ever need dynamic content, either client or server
  side, for example a page whose content is extracted from a database,  or
  a form for which you need to record the values, you need some kind  of
  intelligence.
 
  For that job, Apache relies on cgi and php, while Tomcat relies on
  Servlets and JSP, both based on Java.
 
  Unless you have a good reason to switch to Apache, you should stick  to
  Tomcat.
 
 Ah, okay.  The only reason we were considering switching to Apache was
 to possibly improve the performance of our Java applet.

However the Apache Web Server may well have better performance when
serving large files, I don't believe I have seen any benchmarks
dealing with large files only smaller ones that you typically see
included in a web page like images. I would recommend at least doing
some testing by serving your applet under Apache.

Just out of curiosity what does your large applet do? From the sound
of it it was like 60mb, which is quite a large applet to say the
least...


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: website hosting

2005-05-16 Thread Jason Bainbridge
On 5/14/05, Lutz Zetzsche [EMAIL PROTECTED] wrote:
 Hi Suri,
 
 Am Samstag, 14. Mai 2005 17:05 schrieb suri.jagadish:
  How do I configure the tomcat for the default port  80 for answering
  the http request for the ip address in the net
 
 It is not recommended to run Tomcat as root. If you would configure to
 listen to port 80 instead of port 8080, you would need to run Tomcat as
 root because ports below 1024 require root privileges.

Considering the OP mentioned IIS in his post I think it is safe to
assume that he is running Tomcat on Windows so you don't need root
privileges to open port 80, although Windows Services are run under
LocalSystem by default so I recommend changing that to a more locked
down user.

Unless you have a specialized need there really isn't much reason to
put Tomcat behind Apache with mod_jk, there used to be good reason for
serving static content but with the Coyote connector Tomcat can keep
pace with Tomcat fairly well and even outpace it in some areas. The
added configuration and maintenace it introduces isn't worth it unless
you need it and if you do need it then you're going to know it before
asking.

REgards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat banner

2005-05-16 Thread Jason Bainbridge
On 5/16/05, Rick Beton [EMAIL PROTECTED] wrote:
 André Cruz wrote:
 
 Hello!
 
 Is there anyway to remove the tomcat banner that appears in the header
 of all pages served by tomcat?
 
 I don't want to disclose that information to my users.
 
 
 
 The standard webapps (ROOT, manager, admin etc) include the Tomcat
 banner.  If it's also in your own webapp, then perhaps someone put it
 there.  That's where I'd suggest you need to have a look.

I think by banner the OP was referring to the HTTP Header for Server,
which I don't believe you can change without making changes to the
source or maybe a  filter would be able to change it?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-05-12 Thread Jason Bainbridge
On 5/12/05, PAlvin [EMAIL PROTECTED] wrote:
 Removing the [R] from the RewriteRule breaks everything and no page
 is served:
 
 RewriteRule ^/$ /home.htm  **does not work**
 
 I'm curious: how does everyone else map the domain request to an
 actual page???
 
 domain.com --to-- domain.com/home.htm
 
 Everyone must be doing this, right?  What are other solutions for
 doing this?

Am I missing something here or do you just need:

welcome-file-list
welcome-fileindex.html/welcome-file
welcome-fileindex.htm/welcome-file
welcome-fileindex.jsp/welcome-file
/welcome-file-list

in your web.xml or the same thing in Apache?



-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: not installing properly

2005-05-11 Thread Jason Bainbridge
You need to install it as a Windows Service to be able to run it in
the background so checkout the service.bat file in the same directory
as startup.bat.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

On 5/11/05, Owen Corpening [EMAIL PROTECTED] wrote:
 I ran startup.bat and can access localhost:8080 but the window popped up
 never goes away, it ends with:
 May 11, 2005 9:15:26 AM org.apache.catalina.startup.Catalina start
 INFO: Server startup in 1857 ms
 
 And appears stuck there. I tried following the instructions to enable
 verbose log4j logging but never got the promised tomcat.log. I changed all
 the loglevels in C:\jakarta-tomcat\common\classes\logging.properties to
 FINEST but the verbosity appears to be unchanged.
 
 Worse: I am trying to install Tomcat as a service, embedding its
 installation inside my app, and when I run this line:
 
 C:\jakarta-tomcat\bintomcat5 //IS//Tomcat5 --DisplayName=Apache Tomcat
 5 --In
 stall=C:\jakarta-tomcat\bin\tomcat5.exe  --Jvm=auto --StartMode=jvm --Stop
 Mode
 =jvm --StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start
 --St
 opClass=org.apache.catalina.startup.Bootstrap --StopParams=stop --Classpath=
 C:\
 Program
 Files\Java\j2sdk1.4.2_07\lib\tools.jar;C:\jakarta-tomcat\bin\bootstrap.j
 ar;C:\Program Files\Microsoft SQL Server 2000 Driver For
 JDBC\lib\msbase.jar;C:\
 Program Files\Microsoft SQL Server 2000 Driver For
 JDBC\lib\mssqlserver.jar;C:\P
 rogram Files\Microsoft SQL Server 2000 Driver For
 JDBC\lib\msutil.jar --JvmMX=
 512 --LogPath=..\logs --DisplayName=Acorn Application
 Server --Description=
 Handles HTTP and Web Services Requests to Acorn
 Applications --User=HOUSTON\oco
 rpening --password=? --Startup=auto
 
 I get:
 [2005-05-11 09:19:37] [info] Service Tomcat5 name Acorn Application Server
 [2005-05-11 09:19:37] [420  service.c] [error] The specified service has
 been marked for deletion.
 [2005-05-11 09:19:37] [549  prunsrv.c] [error] Failed installing Tomcat5
 service
 [2005-05-11 09:19:37] [info] Procrun finished.
 
 Any suggestions about how to embed tomcat would be greatly appreciated.
 
 owen
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Apache+Tomcat

2005-05-10 Thread Jason Bainbridge
On 5/10/05, Praveen KUMAR [EMAIL PROTECTED] wrote:
 Hello,
 
 I am little bit confuse in following decision:
 
 Should be use
 
 1- Apache (2.0.54) + Tomcat (5.0.28) in production with tomcat listener
 (through Coyote connector) configured with mod_jk (1.2.12) with apache
 2- Or Standalone Tomcat (with their standard apache provided by tomcat)

If you need to ask this question then you should be using Apache
Tomcat standalone using the Coyote connector that comes standard.

If you have specialized needs that aren't being met by Tomcat
standaone then you might consider looking at an apache Webserver front
end.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-05 Thread Jason Bainbridge
On 5/5/05, NanFei Wang [EMAIL PROTECTED] wrote:

 ---
 If I use Tomcat-5.0.18 working in Window2000 and start by startup.bat in
 another Dos Window after log-in with administrator,
 then the test.jsp will get Y:\ exists()=true

This works as you are running Tomcat as the Administrator within the
same session that the Y: drive is mapped, it is basically running
under the same logon AND session of the logged on user.

 If I use Apache Tomcat-5.5.9 which will give web 'Service' automatically,
 (no matter if I log-in with administrator or not log-in)
 then the test.jsp will get Y:\ exists()=false;

This doesn't work as mapped drives are logon and session specific so
eve if you rant the service as Adminstrator it wouldn't work (although
in some bizarre cases it will but shouldn't be relied on).

What you need to do is run the tomcat service as a user that has
windows network privileges (and please don't use Administrator even
for development that's bad practice, create another network account to
use for Tomcat) plus that user needs access to the network share.

The version of tomcat is irrelevant it just happens that you are
running one as the logged in user and the other as windows service.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat v5.0.28 has memory leaking?

2005-05-04 Thread Jason Bainbridge
On 5/4/05, Gary Shi [EMAIL PROTECTED] wrote:
 Tomcat v5.0.28 has memory leaking Problem ?
 
 My environment:
 
 Win2000 with SP4
 
 380M Ram
 
 Intel(R)ieo
 
 2.8 GHz
 
 Tomcat v5.0.28
 
 Axia-1-2RC3
 
 JDBC Driver to SQL-Server2000
 
 We have a small web services to be hosted in Tomcat .
 
 Problem:
 
 When we send request to web services for 10 hours non-stop, we got Java
 heap out of memory.=20 Then, we set initial memory as 128M and max
 memory 256M (java -Xms128m -Xmx256 ...) After 20 hours runing I got out
 of memory and out of Java heap space. tomcat stop. Tomcat v5.0.28 has
 memory leaking Problem ? How to handle it ?

Problem is more than likely with your web application and not Tomcat,
use a profiler such as jProfiler -
http://www.ej-technologies.com/products/jprofiler/overview.html to
find the leak.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-04 Thread Jason Bainbridge
On 5/4/05, NanFei Wang [EMAIL PROTECTED] wrote:
 Hi,
 I have found the solution as follow:
 change tomcat service account:
 Control Panel  Administrative Tools  Services
 change tomcat service log on account: administrator

Uhm you don't want to do that, running any service as Administrator is
just asking for trouble.

You want a dedicated service account for tomcat, there were some posts
about the pernissions and privileges required for such an account a
while back.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat5.5.9 + jdk1.5 HTTPS

2005-05-04 Thread Jason Bainbridge
On 5/4/05, Carlos Conde [EMAIL PROTECTED] wrote:
 Hello,
 
 I'm trying to enable HTTPS with Tomcat5.5.9. Here is my connector description 
 in
 the server.xml file:
 
 Connector port=8443
minProcessors=5
maxProcessors=75
enableLookups=true
disableUploadTimeout=true
acceptCount=100
debug=0
scheme=https
secure=true
clientAuth=false
sslProtocol=TLS
keystoreFile=conf/ssl/keystore
keystorePass=/
 

Try specifying an absolute path for the keystoreFile, I'm not sure
what that is relative to and shouldn't that be .keystore anyway?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Network Disk Not Exist Under Tomcat-5.5.9

2005-05-04 Thread Jason Bainbridge
On 5/4/05, NanFei Wang [EMAIL PROTECTED] wrote:
 Dear Jason:
 You are right :
 -
 Uhm you don't want to do that, running any service as Administrator is
 just asking for trouble.
 You want a dedicated service account for tomcat, there were some posts
 about the pernissions and privileges required for such an account a
 while back.
  ---
 
 I use Apache Tomcat-5.5.9 which will give web service automatically.
 My solution can only solve the 'network disk' mapping only to some
 'shareFile' at server side .
 For the 'network disk' mapping to other 'shareFile' over the network, it is
 in failure !
 I really need to access the 'shareFile' in other computers over network in
 my Api.

Run it under an account that has network privileges and access to the
share and acces the share by using the UNC path in the format:

\\machinename\sharename

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: symlink not being completely followed

2005-05-04 Thread Jason Bainbridge
On 5/4/05, Scott Heitkamp [EMAIL PROTECTED] wrote:
 I've setup tomcat to follow a symlink to a directory outside of the webapp.  
 That part works just fine.  I can load a jsp that is linked outside the 
 webapp directory.  The problem that I am having is that Tomcat is not 
 allowing a Java Servlet to completely follow the symlink.

Do you have allowLinking set to true?

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: servlet/jps: servlet is Ok but jsp NoClassDefFoundError

2005-05-03 Thread Jason Bainbridge
On 5/3/05, Ferrari Laura [EMAIL PROTECTED] wrote:
 
 
 I am working with Tomcat 5.0
 
 In a working webapp \ondemand (with only jsp) I added a servlet.
 
 The servlet work correctly but the jsp is not able to find the
 lib/engine.jar (where the its classes are defined).

NoClassDefFoundError means that more than one matching class is found
in the classpath so your servlet's jar must contain a class that your
JSP's jar does or something related to that.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Permissioning?

2005-05-03 Thread Jason Bainbridge
It isn't even reaching tomcat, the 403 is coming from a Proxy:
squid/2.5.STABLE4, you will need to either authenticate with the
proxy or bypass it somehow in your voice gateway.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

On 5/3/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 
 Problem:
 The voice browser in a voice gateway, like BeVocal, executing a subdialog
 to save a voice message can't reach the jsp, recordingsave.jsp, deployed
 locally in Tomcat 5.0. The jsp is used to save the message locally.
 
 Solutions tried but failed:
 The following have been added in tomcat-users.xml:
   role rolename=provider/
   user username=BeVocal/2.5a VoiceXML/2.0 BVPlatform/1.8.4.rc9b
 password= fullName= roles=provider/
 
 The following mime-type for voice application has been added to the
 web.xml:
  mime-mapping
extensionvxml/extension
mime-typeapplication/voicexml+xml/mime-type
  /mime-mapping
 
 Log from Voice Browser that may help solve the problem:
 
  12:20:35.393
 Executing subdialog saveMessage
  12:20:35.409
 Fetching: recordingsave.jsp
  12:20:35.409
 HTTP request headers for recordingsave.jsp:
 Content-Type: multipart/form-data;
 boundary=137331341721227020401150525545
 User-Agent: BeVocal/2.5a VoiceXML/2.0 BVPlatform/1.8.4.rc9b
 Host: localhost:8080
 Proxy-Connection: Keep-Alive
 Content-Length: 47633
 Connection: Keep-Alive
  12:20:35.424
 HTTP response headers for recordingsave.jsp:
 HTTP/1.0 403 Forbidden
 Server: squid/2.5.STABLE4
 Mime-Version: 1.0
 Date: Fri, 29 Apr 2005 19:20:35 GMT
 Content-Type: text/html
 Content-Length: 1108
 Expires: Fri, 29 Apr 2005 19:20:35 GMT
 X-Squid-Error: ERR_ACCESS_DENIED 0
 X-Cache: MISS from bvcapxy002
 X-Cache: MISS from bvcapxy002
 Proxy-Connection: keep-alive
  12:20:35.424
 ERROR error.badfetch.http.403:
 http://localhost:8080/voiceapps/recordingsave.jsp: Forbidden
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: detecting tomcat 5.5

2005-05-03 Thread Jason Bainbridge
On 5/3/05, Jason Novotny [EMAIL PROTECTED] wrote:
 
 Hi,
 
 I'm trying to update my build script to do some conditional checking
 to see if I'm deploying my code to Tomcat 5.5 or using an older version.
 Is there something (like a particular file or directory) I can check
 reliably that would indicate that I'm using 5.5 versus an older version?

Look at %CATALINA_HOME%\bin\version.bat or version.sh depending on
whether you are on Windows or *nix, if you're on Windows and don't
have version.bat then you need to download the zipped distribution and
now thw windows installer.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: How to run tomcat without specifying a JDK location?

2005-04-29 Thread Jason Bainbridge
On 4/29/05, Lakshmi Narayanan K. [EMAIL PROTECTED] wrote:
 Hi,
 
 Yes, I was able to figure that out. But, it the following which
 puzzles me. I'd already pasted this in my initial mail, but here it is
 again:
   But the tomcat documentation available at:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html 
   states this: Java location: The installer will use the registry or
   the JAVA_HOME environment variable to determine the base path of the
   JDK or a JRE. If only a JRE (or an incorrect path) is specified,
   Tomcat will run but will be unable to compile JSP pages at runtime.
   Either all webapps will need to be precompiled (this can be easily
   done using the Tomcat deployer), or the lib\tools.jar file from a JDK
   installation must be copied to the common\lib path of the Tomcat
   installation.
 
 In light of this, how do I just tell tomcat that it isn't needed to do
 ANY JSP processing, just serve my servlets.
 
 Once again, eagerly awaiting your reply,
 
 Regards,
 
 - Lakshmi Narayanan K.
 On 4/29/05, Oto Bossert [EMAIL PROTECTED] wrote:
  Yoo,
 
  JSP are compiled at runtime and need a compiler for this purpose - JDK!

Actually that is't correct, we run JSP's that aren't pre-compiled (our
application is servlet based but we have a few utility JSP's that we
write/use for support) and still use just a JRE. I think from memory
you just need to edit one of the .bat files either catalina.bat or
setclasspath.bat if I remember correctly but I can't remember exactly
what needed to be edited and I'm not in front of one of the servers
right now.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Starting Version 5.5.7

2005-04-27 Thread Jason Bainbridge
On 4/27/05, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I just installed Tomcat version 5.5.7 on my Win XP computer and have noticed 
 there is no startup.* shutdown.* files I am used to using to boot Tomcat nor 
 anything in the start menu. What happened to these files and what do I use to 
 start Tomcat now?

the Windows Installet no longer provides the manual startup/shutdown
scripts for some reason and instead installs it as a Windows Service
if you want the scripts back you need to download the Zip.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: SSL

2005-04-27 Thread Jason Bainbridge
On 4/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 So I am new, obviously with the keytool use.. attached is the cert.txt
 file resulting from the keytool -list -v.. I changed the CSR data.. but
 the format is there... do you see anything wrong with the file?

Hazarding a guess but it looks like you created the CSR in a different
.keystore and then imported Verisign's certificate into this one as
the tomcat alias should look something like:

Alias name: tomcat
Creation date: Jan 28, 2005
Entry type: keyEntry
Certificate chain length: 4
Certificate[1]:
Owner: CN=XXX, OU=XXX, O=X, L=XX, ST=XX, C=X
Issuer: CN=
Serial number: 
Valid from: Fri Jan 28 00:00:24 GMT 2005 until: Sun Jan 28 00:00:24 GMT 2007
Certificate fingerprints:
 MD5:  XX
 SHA1: XXX

Then because that one has a chain length of 4 it has 3 other certs in
the chain, then each of those have their own aliases as well.

Your verisgn cert isn't in any chain and I'm guessing the reason is
because it's not where the CSR was generated from so you either need
to find that .keystore or do another .CSR from this or another new
.keystore and import the trusted cert you receive from that CSR.

The all important part is the .CSR needs to match with the trusted
cert you get back.
 
 -jrj
 
 Jason Bainbridge wrote:
 
 On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 
 Finially, some progress; but not exactly what I wanted... I made the F
 uppercase, stopped/started the server; now it's refusing connections.
 This is from the log file:
 
 Apr 26, 2005 2:19:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 SEVERE: Endpoint [SSL:
 
 
 
 when doing these steps:
 
 Import the Chain Certificate into you keystore
 
 keytool -import -alias root -keystore your_keystore_filename
 -trustcacerts -file filename_of_the_chain_certificate
 
 And finally import your new Certificate (It must be in X509 format):
 
 keytool -import -alias tomcat -keystore your_keystore_filename
 -trustcacerts -file your_certificate_filename
 
 Did you specify the full path names? I would backup the .keystore and
 then try again by specifying full path names to make sure.
 
 Sounds like you have an incomplete .keystore being used.
 
 
 
 
 
 
 
 Keystore type: jks
 Keystore provider: SUN
 
 Your keystore contains 2 entries
 
 Alias name: root
 Creation date: Apr 21, 2005
 Entry type: trustedCertEntry
 
 Owner: OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, 
 OU=VeriSign International Server CA - Class 3, OU=VeriSign, Inc., 
 O=VeriSign Trust Network
 Issuer: OU=Class 3 Public Primary Certification Authority, O=VeriSign, 
 Inc., C=US
 Serial number: 254b8a853842cce358f8c5ddae226ea4
 Valid from: Wed Apr 16 17:00:00 PDT 1997 until: Mon Oct 24 16:59:59 PDT 2011
 Certificate fingerprints:
  MD5:  BC:0A:51:FA:C0:F4:7F:DC:62:1C:D8:E1:15:43:4E:CC
  SHA1: C2:F0:08:7D:01:E6:86:05:3A:4D:63:3E:7E:70:D4:EF:65:C2:CC:4F
 
 ***
 ***
 
 Alias name: tomcat
 Creation date: Apr 21, 2005
 Entry type: trustedCertEntry
 
 Owner: CN=, OU=, O=, L=, ST=California, C=US
 Issuer: OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, 
 OU=VeriSign International Server CA - Class 3, OU=VeriSign, Inc., 
 O=VeriSign Trust Network
 Serial number: 46fefd812464db21ede3b8e4f39a9218
 Valid from: Wed Apr 06 17:00:00 PDT 2005 until: Fri Apr 07 16:59:59 PDT 2006
 Certificate fingerprints:
  MD5:  D3:9B:5C:E3:41:D9:6D:AD:DE:62:2B:E0:E1:74:5B:FD
  SHA1: 37:55:D7:35:82:FA:13:33:F2:45:4E:13:92:8C:73:3B:7C:11:D8:61
 
 ***
 ***
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: SSL

2005-04-27 Thread Jason Bainbridge
On 4/27/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Is a chain cert really *required*?  I see for an older selfsigned
 cert that a chain cert was not part of the keystore file.

Well for self signed no as it isn't part of a chain, the chain is
required for trusted certs to prove that it is trusted by an authority
that users trust ike Verisign as they have the ROOT verisign
ceritificate in their browser.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Why 8080 and 8443 ..?

2005-04-26 Thread Jason Bainbridge
On 4/26/05, David Whitehurst [EMAIL PROTECTED] wrote:
 Could you elaborate on what those parameters would be? A port is just a
 number. I'm trying to understand the history, but I would appreciate
 your comments on the other things required to make Tomcat production
 ready on top of just changing the Coyote connector from 8080 to 80 and
 8443 to 443?

There are lots of things you need to look at, just a few examples:

- what connectors you are going to useand what ones should be disabled
- Do you want to enable SSL and setup a redirect port?
-  What realms do you need?
- Do you need the Manager and Admin applications enabled? (Personally
I usually strip Tomcat down to the bare minimum for Production
implementations)
- Then there is performance tuning depending on the demands of your
application by modifying parameters like maxThreads, minSpareThreads,
maxSpareThreads,  acceptCount.

They are just a few off the top of my head, it's no different to
deploying the Apache webserver in Production you don't just take teh
default settings.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: SSL

2005-04-26 Thread Jason Bainbridge
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I generated a new cert request utilizing keytool, sent that to verisign,
 they returned the cert. Then I created a new keystore file, first
 importing a chaincert, then importing the new cert.  When I stop the
 server, move the keystore file in place, start the server up, I continue
 to get an expiration notice upon https request to the host.  In a
 troubleshooting effort, I moved the keystore file, stop/started the
 server and *still* get the expired notice upon https request... The
 server.xml file' SSL config points to the directory for which I have
 located the keystore file too.

Are you specifying the location of the keystore with a keystoreFile
parameter in your HTTPS connector? If not you might be dealing with
the wrong .keystore by default I think it stores it in the home
directory of the user that created it so it might be pointing to the
wrong one. Try using the keystoreFile if you aren't already.

Plus I don't think you can do it the way you did by creating the CSR
in your old .keystore and then importing it into the new one, the cert
Verisign returned needs to match up with the CSR if I understand it
correctly.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: AW: All threads (250) are currently busy

2005-04-26 Thread Jason Bainbridge
On 4/26/05, Paul Grimwood [EMAIL PROTECTED] wrote:
 This post has gone quiet, yet this is still a major problem for us in out
 live environment. Does anyone know the reason/solution (please see
 original post)? If so, please be more expansive than saying 'if you set it
 up right, it will work'.

Have their been any application changes in the same time period of
moving servers? Something that might not be releasing threads? You are
obviously hitting the maxThreads parameter in your connector but why
remains a mystery...

Also you shouldn't need to define the AJP connector if you are running
standalone, also what does your HTTPS connector look like? Are you
using HTTPS? If not try removing the redirectPort parameter from your
HTTP connector but I don't think that is affecting your current
problem.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: SSL

2005-04-26 Thread Jason Bainbridge
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Actually, I did not start with the old cert. I generated a completely
 new cert, started with the chaincert, then imported the new cert that
 verisign sent back.
 
 This is the connector tect:
 
 Factory
 className=org.apache.coyote.tomcat4.CoyoteServerSocketFactoryclientAuth=false
 protocol=TLS keystorefile=/usr/local/qmetrix/.keystore keystorePass=

Is that a copy and paste? If so you're going to first want to make
sure there are no sharp instruments around and then change
keystorefile to keystoreFile as it's case sensitive, then restart
Tomcat. With it lower case like that it will still look in the default
location and would expain the behaviour you are seeing.

However if that isn't the case then we have some more digging to do.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: SSL

2005-04-26 Thread Jason Bainbridge
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Finially, some progress; but not exactly what I wanted... I made the F
 uppercase, stopped/started the server; now it's refusing connections.
 This is from the log file:
 
 Apr 26, 2005 2:19:46 PM org.apache.tomcat.util.net.PoolTcpEndpoint
 acceptSocket
 SEVERE: Endpoint [SSL:

when doing these steps:

Import the Chain Certificate into you keystore

keytool -import -alias root -keystore your_keystore_filename
-trustcacerts -file filename_of_the_chain_certificate

And finally import your new Certificate (It must be in X509 format):

keytool -import -alias tomcat -keystore your_keystore_filename
-trustcacerts -file your_certificate_filename

Did you specify the full path names? I would backup the .keystore and
then try again by specifying full path names to make sure.

Sounds like you have an incomplete .keystore being used. 


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: SSL

2005-04-26 Thread Jason Bainbridge
On 4/26/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Is there a way to look at the contents of the keystore file?
 
 -jrj

keytool -list -v -keystore /path/to/.keystore  allcerts.txt

Should do it if I got the syntax right...

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: remote restart of tomcat 5.5.x

2005-04-26 Thread Jason Bainbridge
On 4/26/05, quentin. compson [EMAIL PROTECTED] wrote:
 i would like to be able to remote restart tomcat (maybe eventually through 
 ant)
 but i can find no doc on how to do it.

No idea how to do it with Ant but just Manage My computer,
Connect to another computer then enter the remote computer's name
and then if you have the permissions you can restart the service
there.

You would have to look at using the API behind that somehow so maybe
look at jcifs http://jcifs.samba.org and I think their jcifs-ext
project might be looking at something like remote NET STOP/NET START
commands.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: OutOfMemoryError - 100 thread limit?

2005-04-20 Thread Jason Bainbridge
On 4/20/05, LeeAnn Pultz [EMAIL PROTECTED] wrote:
 This is not a memory leak in the application - we have hooked up a profiler
 to the application and watched the actual memory usage when causing this
 issue to happen.  We have lots of memory available, are nowhere near the
 Xmx limit, and the machine has lots of memory available over and above the
 Xmx limit.
 
 In fact, I can cause the error to happen every single time, simply by
 hitting the first web page (login page) of the application - I don't have
 to log in, or do any work.  All I have to do to get the error to happen
 is hit 18-19 different instances of the web application, watch the Active
 thread count go up to 100 and tip over the tomcat.

This isn't related to the minProcessors, maxProcessors  acceptCount
settings for your connector in your server.xml by any chance?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: OutOfMemoryError - 100 thread limit?

2005-04-20 Thread Jason Bainbridge
On 4/20/05, LeeAnn Pultz [EMAIL PROTECTED] wrote:
 This was first reported when we had multiple web applications running on
 one tomcat, and a user would be logged into the site and be using the
 application fine, and then if another user started working in a new site,
 they would get the OutOfMemory error when the first tried to load the page
 of their site.  The first user would then start getting exceptions once the
 OutOfMemory error happened.

Okay silly question time... How are you setting -Xms and -Xmx ? Are
you sure they are being picked up by Tomcat?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: can't see a tomcat installation on home network

2005-04-19 Thread Jason Bainbridge
On 4/19/05, Greg Baynham [EMAIL PROTECTED] wrote:
 I've installed Tomcat on a Linux fedora box but am unable to access it from
 a windows xp home edition box.  I've found the IP address for the Linux box
 but when I type that in with the :8080 at the end of the address on the XP
 box it eventually returns that the connection was refused.

So are you trying http://192.168.2.188:8080 including the http:// part
in Internet Explorer?

Although if telnet isn't working that would seem to indicate another
problem most likely with a firewall setting somewhere.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Single Sign On Help

2005-04-18 Thread Jason Bainbridge
On 4/18/05, shyam reddy [EMAIL PROTECTED] wrote:
 
 Hi all,
 
 I have two web applications which use the same JDBCRealm. I have tested the 
 realm and it works fine. I commented out the single sign on valve in the 
 server.xml . I tested the links from one application to another. The 
 protected resources still ask for the login information. It would be really 
 helpful if someone could help me out with this. I am using tomcat 5.0.29. I 
 have checked my logs and this is the output I am getting :

Why have you sent three emails about the same thing with different
subjects? It isn't going to help you get a response, if you have more
info to add then reply to your own post and keep it within the same
thread that way you're much more likely to get a response.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: ssl-forwarding filter not working in IE 6

2005-04-15 Thread Jason Bainbridge
On 4/15/05, sudip shrestha [EMAIL PROTECTED] wrote:
 Hi : I have following code for automatic ssl-forwarding filter:

Why do it that way? Why not just add transport-guarantee's in your
web.xml and setup a redirect port for your http connector in your
server.xml?

eg. http://www.jguru.com/faq/view.jsp?EID=748030

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Re[9]: Tomcat/4.1.31 - SSL Troubles

2005-04-15 Thread Jason Bainbridge
On 4/14/05, Andrey [EMAIL PROTECTED] wrote:
 Hello,
 
 HTTPS:
 
 GET /application/index.html HTTP/1.1
 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
 application/x-shockwave-flash, application/vnd.ms-excel, 
 application/vnd.ms-powerpoint, application/msword, */*
 Accept-Language: lv
 Accept-Encoding: gzip, deflate
 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
 1.1.4322)
 Host: 62.86.16.101:8443
 Connection: Keep-Alive
 
 HTTP/1.1 302 Moved Temporarily
 Location: https://62.86.16.101:8443/
 Content-Length: 0
 Date: Thu, 14 Apr 2005 09:17:36 GMT
 Server: Apache-Coyote/1.1

A few more things:

Can you try accessing the server by it's name instead of IP? 

Also can you try with Firefox - http://getfirefox.com and if that
works fine like I expect it will then install
http://livehttpheaders.mozdev.org/ to get the same info you have above
for MSIE.

Plus what URL are you requesting to begin with and what does your
connector in your server.xml (minus any passwords) look like?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Jason Bainbridge
On 4/13/05, Andrey [EMAIL PROTECTED] wrote:
 Hello,
 
 (j2re1.4.1_02 is installed)
 
 I've created certificate keystore as described: 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/printer/ssl-howto.html
 then i uncommented Connector element for an SSL connector i server.xml.
 
 I can connect to ssl port ... and i can see sertificate.. but when i
 accept this sertificate my browser says The page cannot be
 displayed.

Sounds like you are using Internet Explorer so the first step would be
to disable Show friendly HTTP error messages and if you are using IE
for any sort of web development testing that is one of the first
things you should do:

Tools / Internet Options, Advanced tab, then it is under the Browsing
subheading.

Then you can see the real error.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Re[2]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Jason Bainbridge
On 4/13/05, Andrey [EMAIL PROTECTED] wrote:
 Hello,
 
 Wednesday, April 13, 2005, 8:21:22 PM, you wrote:
 
  Sounds like you are using Internet Explorer so the first step would be
  to disable Show friendly HTTP error messages and if you are using IE
  for any sort of web development testing that is one of the first
  things you should do:
 
  Tools / Internet Options, Advanced tab, then it is under the Browsing
  subheading.
 
  Then you can see the real error.
 
  Regards,
 
 Same error.. and it looks like loop.

Do you have any other web servers running on the same machine? MSIE
gets confused when you access say IIS on https://mymachine and then
access Tomcat on http://mymachine:8443 and produces the behaviour you
describe.

Try installing iehttpheaders and monitor the requests and responses:
http://www.blunck.info/iehttpheaders.html

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Re[6]: Tomcat/4.1.31 - SSL Troubles

2005-04-13 Thread Jason Bainbridge
On 4/13/05, Andrey [EMAIL PROTECTED] wrote:

 GET / HTTP/1.1
 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
 application/x-shockwave-flash, application/vnd.ms-excel, 
 application/vnd.ms-powerpoint, application/msword, */*
 Accept-Language: lv
 Accept-Encoding: gzip, deflate
 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
 1.1.4322)
 Host: 62.86.16.101
 Connection: Keep-Alive
 
 HTTP/1.1 302 Moved Temporarily
 Location: https://62.86.16.101/index.jsp
 Content-Length: 0
 Date: Wed, 13 Apr 2005 19:38:50 GMT
 Server: Apache-Coyote/1.1

Well so far that is normal, what isn't normal is that the browser
isn't sending another GET request for https://62.86.16.101/index.jsp
what happens if you request that URL directly?

Hang on you know what is happening? I bet HTTP/1.1 isn't enabled in
the browser, I had the exact same problem the other day...

Tools / Internet Options, Advanced, HTTP/1.1 Settings: enable both of
those for some reason the Proxy one still seems to effect things even
when you tell IE to not use the proxy for the site you are accessing.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: How do I restrict access to webapps applications from browser users?

2005-04-13 Thread Jason Bainbridge
On 4/13/05, Ikonne, Ike [EMAIL PROTECTED] wrote:
 Hi Darryl,
 
 Thanks, I thought there was another way to do it other than setting up
 security constraints and making users to get the signon page that is
 associated with this.
 

Maybe you need to describe what you are actually trying to achieve by
this setup.

Are you trying to make it so the content can only be streamed from a
JSP/servlet and not accessed directly via the web? (Often done for
images and confidential stuff like documents etc)

or

Are you trying to lock certain users out of certain directories?

If you are trying to protect static content you might be best off
using Apache and utilising .htaccess files but it all depends what you
are trying to do...

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: class path

2005-04-12 Thread Jason Bainbridge
On Apr 12, 2005 3:39 PM, S M [EMAIL PROTECTED] wrote:
 sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as 
 mentioned and yes it shows me the CLASSPATH as listed below
.;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_HOME%\lib\j2ee.jar;
  where ;C:\javacode had the source code.

Have you explicityly set CATALINA_HOME as well? Does it have spaces in
it? If so surround it with double quotes or move it to a path with no
spaces. I don't think having servlet.jar and j2ee.jar in the same
classpath is a good idea either.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: How can I access a web app only from 443 in Tomcat 5

2005-04-12 Thread Jason Bainbridge
On 4/12/05, Lorenzo Jiménez [EMAIL PROTECTED] wrote:
 Hi,
 
 I am trying to make my webapp to only be available thru port 443 in Tomcat 5.
 
 Can I do it in context.xml or need a further config on server.xml or web.xml?
 

Well you can either disable the non HTTPS connector in your server.xml
all together or add transport-guarantee's to your web-xml and then set
a redirectPort on your non HTTPS connector so it redirects to the
HTTPS port.

I'd give you an example but I'm at home and don't have easy access to
the servers at work, a quick google should turn up the syntax though.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Any comments on the reliability of Tomcat 5.5's HTTPS implementation?

2005-04-08 Thread Jason Bainbridge
n Apr 8, 2005 9:57 AM, Richard Mundell [EMAIL PROTECTED] wrote:
 

 We're planning to update to Tomcat 5.5 and take Apache, mod_jk and mod_ssl
 completely out of the equation, ie:
 
Servlets on Tomcat 5.5 -- [HTTPS] -- Internet Explorer
 
 So far in my test environment this environment seems far more reliable and
 also quicker (presumably because there's less server software between my
 Java code and the user's browser).
 
 Does anyone on this list have any experience with this configuration? I'm
 interested in comments of its reliability.

We recently switched to Tomcat 5.5.4 (most recent when we commenced
testing) in one of our production environments as we previously had
Jrun + IIS (SSL + Integrated Authentication on IIS) and that setup was
performing VERY poorly over high latency links like satellite due to
Jrun's lack of HTTP/1.1 so unfortunately I can't compare to an Apache
+ Tomcat setup but I can say though having SSL in Tomcat, along with
jCIFS for the windows authentication and turning compression on has
given us huge performance increases.

As I had to implement a pilot of Tomcat on our current Production box
I had to stick with the JRE we had there (1.4.1_02) and use the
compatibility JARs, the application is a legacy servlet based one that
accesses an Oracle database and so could be written better for
performance reasons but under Tomcat we could still put it under a
load of 300 concurrent users without it breaking a sweat where with
the previous configuration it would struggle with 150.

That Tomcat server is actually more responsive when accessed from
across the Atlantic than a local Jrun + IIS server we have, so I have
been quite impressed with it and so has the client! I haven't had any
complaints on reliability to date, JCIFS was giving us problems due to
some DC's switching to 2003 forcing us to setup pre-authentication but
other than that it continuously performs quite well.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Commenting out the WarpConnector part in server.xml

2005-04-08 Thread Jason Bainbridge
On Apr 8, 2005 11:21 AM, Anoop kumar V [EMAIL PROTECTED] wrote:
 When i comment out this block in server.xml
 
 !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache

Probably due to the nested comment tags, which is a no no, try just
temporarily cutting that whole block out instead or remove the nested
comments.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: tomcat as Windows service - access to resources

2005-04-07 Thread Jason Bainbridge
On Apr 7, 2005 10:59 AM, Jiang, Peiyun [EMAIL PROTECTED] wrote:
 I did a test using \\computer\dir\mydir instead of a mapping G:. I still have 
 the same behavior.

Silly question but did you escape your backslashes? What errors are
you getting? More details would help.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: tomcat as Windows service - access to resources

2005-04-07 Thread Jason Bainbridge
On Apr 7, 2005 11:11 AM, Jiang, Peiyun [EMAIL PROTECTED] wrote:
 I escaped them. It's working if tomcat started from a script. The servlet 
 cannot see the directory as a java File.
 Testing for file.exist() returns false.

So your path within your servlet looks like:

computer\\dir\\mydir

(Note the four back slashes at the beginning)?

And this is while the service is running under the user account? IS
the User Account a domain account?

Again posting details will help a lot, posting a snippet of code isn't
that hard.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Can you use Tomcat when you are not on line?

2005-04-07 Thread Jason Bainbridge
On Apr 6, 2005 10:44 AM, Walter Lee [EMAIL PROTECTED] wrote:
 I have Tomcat installed on W2K and it says it is installed correctly. When I 
 try the examples it tells me that I must be on line.  If I am using 
 localhost:8080 why does it need to be on line?
 

This is just Internet Explorer being tempermental, as other posters
have suggested either just use Firefox - http://getfirefox.com or just
play around with checking and unchecking File / work Offline in
Internet Explorer in between page refreshes. Eventually it will work.

I think this was only a problem with older versions of IE though.

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: error-page in web.xml and cache-control

2005-04-06 Thread Jason Bainbridge
On Apr 6, 2005 5:01 AM, Pawson, David [EMAIL PROTECTED] wrote:

 Hence I'm looking for a means of trapping that error for either
 a re-direct, or to an error page. HTTP 1.1 seems not to class
 that as an error, hence I'm looking for another way to access that
 'bad' state.

I don't think you can do anything about that, I don't think a request
even hits the server for it, install ieHttpHeaders (google it) and
monitor the request/response headers to see what is going on but I'm
fairly sure you won't see anything hitting the server from that back
button press.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat + Apache Web Server

2005-04-06 Thread Jason Bainbridge
On Apr 6, 2005 11:20 AM, Mike Millson [EMAIL PROTECTED] wrote:

 Every web application can benefit from compressing and caching static
 resources. It decreases the number of connections your server must
 handle. To not have caching, I think, is to ignore a best practice. Or
 at the very least ignore the opportunity to improve the user experience
 with faster response times. It's not that hard to integrate Apache w/
 Tomcat, and I still benefits to this approach that standalone Tomcat
 does not offer.

Well the Coyote connector for one definitely has compression available
and compresses content nicely, even dynamic content. I'm not sure of
the specifics of the caching mechanisms used internally to Tomcat but
it achieves caching nicely giving 304 not modified responses where
applicable and often the browser will cache the static content so a
request isn't even made.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: java.library.path - DLL - Domino

2005-04-06 Thread Jason Bainbridge
On Apr 6, 2005 3:33 PM, Durfee, Bernard [EMAIL PROTECTED] wrote:
 I am trying to use the native library for connecting to Domino from a
 servlet. I was under the impression that the DLL needed to be in the
 path specified by the java.library.path system property. However, this
 does not seem to work.

Try manually registering the DLL:

regsvr32 D:\Lotus\Domino\nlsxbe.dll

REgards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: java.library.path - DLL - Domino

2005-04-06 Thread Jason Bainbridge
On Apr 6, 2005 3:53 PM, Durfee, Bernard [EMAIL PROTECTED] wrote:
 No dice. It just seems that a call to System.loadLibrary() is not using
 the 'java.library.path', otherwise how could it possibly not see the
 DLL?
 
 Bernard Durfee

Next try adding the Domino's executable directory to the system PATH,
the problem is likely down further in the stack trace and not related
to the Java side of things.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Tomcat taking 125 seconds to launch

2005-04-04 Thread Jason Bainbridge
On Apr 4, 2005 10:46 AM, Michael Mehrle [EMAIL PROTECTED] wrote:
 
 You guys might be on to something - on my development machine it's taking
 only 25 seconds or so (identical code, tomcat version, and mysql
 installation). Question is: how do I fix a possible DNS lookup problem?
 

Check your /etc/hosts file you should have something like:

 127.0.0.1 http://127.0.0.1 www.yourdomain.com
http://www.yourdomain.comlocalhost

I've also heard of smilar problems related to IPv6 but can't recall what 
they were.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com


Ampersand in an init-praram in web.xml

2005-03-30 Thread Jason Bainbridge
I need to specify a password that has an ampersand in it for an
init-param in my applications web.xml when specifying the password of
a service account of course with it being XML it complains about the
ampersand so when you use it's entity reference amp; then that
doesn't work for the password.

Is there anyway around this that anyone knows other than changing the
password (the account is used all over for various things so changing
the password isn't straightforward)? It is for pre-authentication for
JCIFS if anyone is wondering but posted here as it is more of a Tomcat
question.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Where to download the Compatibility Package for running Tomcat 5.5 with 1.4 jdk?

2005-03-29 Thread Jason Bainbridge
On Tue, 29 Mar 2005 08:15:33 -0800 (PST), David [EMAIL PROTECTED] wrote:
 Dear Members,
 
 On the documentation there is a comment about downloading the Compatibility 
 Package in order to run Tomcat 5.5 under 1.4.x version. I don't see such 
 package on the download section.
 
 Do you have any idea where to find such package?

http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi

Is it really that hard to see the -compat download there?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Applyihg patch to Jakarta-tomcat-5.5.8

2005-03-28 Thread Jason Bainbridge
On Mon, 28 Mar 2005 12:19:37 -0800, biranchi rout [EMAIL PROTECTED] wrote:
 Hi All,
   I am trying to install tomcat 5.5.8 to my Linux 9.0
 According to installation procedure I should apply patch
 jakarta-tomcat-5.5.8-compat.tar to the file jakarta-tomcat-5.5.8
 (after untaring from  jakarta-tomcat-5.5.8.tar.gz)
 
 Does anybody know how to do it.

Patch isn't quite the right term, just untar
jakarta-tomcat-5.5.8-compat.tar the same as you did
jakarta-tomcat-5.5.8.tar.gz except you don't need to decompress it so
just use:

tar -xvf  jakarta-tomcat-5.5.8-compat.tar

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Pragma: No-cache being added on one server but not another

2005-03-25 Thread Jason Bainbridge
This isn't the usual problem of trying to force a browser to not cache
an object but actually the opposite, on one of our servers every
request for a particular image is coming back everytime with:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Wed, 31 Dec 1969 18:00:00 CST
ETag: W/177-104881299
Last-Modified: Fri, 28 Mar 2003 00:56:30 GMT
Content-Type: image/gif
Content-Length: 1083
Date: Fri, 25 Mar 2005 14:55:08 GMT

and on another server the first request for the same image:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
ETag: W/1083-104881299
Last-Modified: Fri, 28 Mar 2003 00:56:30 GMT
Content-Type: image/gif
Content-Length: 1083
Date: Fri, 25 Mar 2005 14:57:08 GMT

With subsequent requests returning the expected:

HTTP/1.1 304 Not Modified
Server: Apache-Coyote/1.1
Date: Fri, 25 Mar 2005 14:57:20 GMT

On the server with the no-cache headers being returned I have been
tasked with locking it down so I have removed all of the example
applications, the manager application and everything else we don't use
plus I am running the Windows Service under an account that started
with no permissions that I added the required permissions to by
various means like using filemon and regmon while tomcat was running.

Have I inadvertently removed or disabled something that would force
the adding of all the no-cache headers?  Where ere they coming from? 
There are three there that I believe shouldn't be there:

Pragma: No-cache
Cache-Control: no-cache
Expires: Wed, 31 Dec 1969 18:00:00 CST

Any insight would be much appreciated!

Cheers,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Problem with Tomcat Upgrade 4.0 to 5.5

2005-03-25 Thread Jason Bainbridge
On Fri, 25 Mar 2005 09:08:15 -0500, Beau Hebert
[EMAIL PROTECTED] wrote:
 Hello -

 exception:
 javax.servlet.ServletException: javax/mail/Message
 
 root cause:
 java.lang.NoClassDefFoundError: javax/mail/Message
 
 I'm not sure, but it seems that the compiler (or is it the container?) can't 
 find the class. My CLASSPATH is the following:
 
 .;C:\tomcat5\common\lib\servlet-api.jar;C:\tomcat5\common\lib\jsp-api.jar;c:\jdk\bin;c:\jdk\lib\tools.jar;

Let Tomcat take care of setting the classpath don't set it yourself,
it is finding your class but more than one and getting confused as a
result.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Redirect from one SSL port to another

2005-03-25 Thread Jason Bainbridge
On Thu, 24 Mar 2005 23:54:21 -0500, Parsons Technical Services
[EMAIL PROTECTED] wrote:
 Jason,
 
 To get the port redirect to work requires a constraint on your transport for
 the requested material.
 
 See:
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html

Thanks, but I've already set that up fine for the port 80 to 443
redirect, I was just trying to see if there was a way to do something
similar to redirect from one https port (8443) to the one on 443 but
it doesn't look like there is a way to do that easily in Tomcat.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Pragma: No-cache being added on one server but not another

2005-03-25 Thread Jason Bainbridge
Got a little bit further to this after discovering Tomcat adds those
Headers whenever the resources are within a Security constriant, which
they are in this case to force SSL with the below:

security-constraint
web-resource-collection
   url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
   transport-guaranteeCONFIDENTIAL/transport-guarantee
/user-data-constraint
/security-constraint

Now is there anyway to disable the adding of the no-cache headers in
this situation?


On Fri, 25 Mar 2005 09:04:10 -0600, Jason Bainbridge
[EMAIL PROTECTED] wrote:
 This isn't the usual problem of trying to force a browser to not cache
 an object but actually the opposite, on one of our servers every
 request for a particular image is coming back everytime with:
 
 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 Pragma: No-cache
 Cache-Control: no-cache
 Expires: Wed, 31 Dec 1969 18:00:00 CST
 ETag: W/177-104881299
 Last-Modified: Fri, 28 Mar 2003 00:56:30 GMT
 Content-Type: image/gif
 Content-Length: 1083
 Date: Fri, 25 Mar 2005 14:55:08 GMT
 
 and on another server the first request for the same image:
 
 HTTP/1.1 200 OK
 Server: Apache-Coyote/1.1
 ETag: W/1083-104881299
 Last-Modified: Fri, 28 Mar 2003 00:56:30 GMT
 Content-Type: image/gif
 Content-Length: 1083
 Date: Fri, 25 Mar 2005 14:57:08 GMT
 
 With subsequent requests returning the expected:
 
 HTTP/1.1 304 Not Modified
 Server: Apache-Coyote/1.1
 Date: Fri, 25 Mar 2005 14:57:20 GMT
 
 On the server with the no-cache headers being returned I have been
 tasked with locking it down so I have removed all of the example
 applications, the manager application and everything else we don't use
 plus I am running the Windows Service under an account that started
 with no permissions that I added the required permissions to by
 various means like using filemon and regmon while tomcat was running.
 
 Have I inadvertently removed or disabled something that would force
 the adding of all the no-cache headers?  Where ere they coming from?
 There are three there that I believe shouldn't be there:
 
 Pragma: No-cache
 Cache-Control: no-cache
 Expires: Wed, 31 Dec 1969 18:00:00 CST
 
 Any insight would be much appreciated!
 
 Cheers,
 --
 Jason Bainbridge
 http://kde.org - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: How to prioritize WEB-INF\lib jar files loading order

2005-03-25 Thread Jason Bainbridge
On Fri, 25 Mar 2005 18:02:49 +0100, Etienne Klajnerman
[EMAIL PROTECTED] wrote:
 Hi all,
 
 Is there a possibility to assign to Tomcat class loader priority in the way
 it loads the jar in WEB-INF\lib?
 
 My application uses axis.jar in WEB-INF\lib.
 
 However, some classes from axis.jar had had to be rewritten (i.e. Calendar
 serializer and deserializer).

Wouldn't it be a lot easier just to replace the calsses in axis.jar
that were rewritten? Afterall a .jar is just an archive.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Pragma: No-cache being added on one server but not another

2005-03-25 Thread Jason Bainbridge
On Fri, 25 Mar 2005 10:24:25 -0600, Jason Bainbridge
[EMAIL PROTECTED] wrote:
 Got a little bit further to this after discovering Tomcat adds those
 Headers whenever the resources are within a Security constriant, which
 they are in this case to force SSL with the below:
 
 security-constraint
 web-resource-collection
url-pattern/*/url-pattern
 /web-resource-collection
 user-data-constraint
transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 /security-constraint
 
 Now is there anyway to disable the adding of the no-cache headers in
 this situation?

I ended up working around this defining multiple security constraints
just for the servlets that are called so if a user tries to go in
through any of the normal entry points with http it will stil redirect
to https but the static content isn't within the security-constraint
and hence Tomcat will allow it to be cached on the client side. This
means they can request the static content without it being redirected
to https but that isn't a concern as none of the statis stuff is
confidential.

This was one big gotcha for me and we only detected it jsut before
going live next week so I was under a bit of pressure to fix it so
hopefully if anyone has a similar problem in the future they can find
this in the archives to explain what is happening.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: launching windowed program with Runtime#exec() under Tomcat 5.0

2005-03-25 Thread Jason Bainbridge
How are you running Tomcat? As a service?  Try running it via
startup.bat so it uses your credentials and then trying.

Also try checking Allow service to interact with desktop if you are
running the service as Localsystem (although I wouldn't recommend
doing that for Production use, I'd create an account with the
permissions you need and use that instead)

Regards,
Jason


On Fri, 25 Mar 2005 12:51:22 -0500, Steve-O Steve Butcher
[EMAIL PROTECTED] wrote:
 I've been looking through the archives and reading the posts regarding
 Tomcat and Runtime#exec(). Almost everything I've read about
 Runtime#exec() points to the javaworld article on the pitfalls of
 Runtime#exec(). However, most of the examples seem to be for commands
 or shell scripts where some kind of interaction with the command line
 is desired.
 
 The problem I'm having is with launching a windowed program, VLC,
 (http://www.videolan.org/)
 
 I'm running Tomcat 5.0 (NOT as a service), JDK 1.4.2_07, W2KPro, VLC
 0.8.1
 
 On the command line, the following works fine (VLC launches and the
 stream plays).
 
   C:\Program Files\VideoLAN\VLC\vlc.exe --extraintf=rc
 --rc-host=127.0.0.1:9066 --rc-quiet rtsp://192.168.0.66/;
 :sout=#duplicate{dst=display}
 
 basically, the command line options tell VLC to open a simple interface
 for remote control, open an input stream over rtsp and send the output
 to the display. More complicated outputs (files, transcodings, streams)
 can be constructed.
 
 Then I build that into a class:
 
   public class Launcher {
public static main( String[] args) throws Exception {
 new Launcher().play();
}
 
public void play() throws Exception {
 String command = \C:\\Program
 Files\\VideoLAN\\VLC\\vlc.exe\ --extraintf=rc --rc-host=127.0.0.1:9066
 --rc-quiet \rtsp://192.168.0.66/\; :sout=#duplicate{dst=display};
 Runtime.getRuntime().exec( command);
}
   }
 
 and invoked it from the command line:
 
  java Launcher
 
 and *that* works fine (VLC launches and the stream plays) which leads
 me to believe that there is nothing wrong with using Runtime#exec() in
 this particular instance AND the command is fine.
 
 HOWEVER, if I call the very same code in main() above from a JSP:
 
 %
 new Launcher().play();
 %
 
 VLC launches but hangs with an End Program dialog.
 
 IF I replace the command string with:
 
 command = notepad.exe;
 
 Notepad launches just fine, directly from the code AND from a JSP which
 leads me to believe it is not a permission problem under Tomcat.
 
 I've even gone so far as to create a BAT file with the same command and
 launch it using:
 
 command = cmd.exe /C C:\\path\\to\\file\\vlc;
 
 and that works on the command line, directly in the code but NOT via
 JSP.
 
 I'm nearing my wits ends so if someone out there ever figured out a
 similar problem or has a suggestion, I'd appreciate it.
 
 Thanks in advance,
 Steve
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: launching windowed program with Runtime#exec() under Tomcat 5.0

2005-03-25 Thread Jason Bainbridge
On Fri, 25 Mar 2005 13:14:45 -0500, Steve-O Steve Butcher
[EMAIL PROTECTED] wrote:
 Dear Jason,
 
 Thank you for the reply.
 
 I'm not running Tomcat as a service. Originally, I was running it as a
 service and I even checked Allow service to interact with desktop.
 After that failed, I tried running it simply using start.bat.

Would help if I learned to read... Just for curiosity try downloading
filemon from sysinternals.com to see if you do have some weird sort of
pernisions problem.

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: launching windowed program with Runtime#exec() under Tomcat 5.0

2005-03-25 Thread Jason Bainbridge
On Fri, 25 Mar 2005 19:31:48 +0100, Markus Schönhaber
[EMAIL PROTECTED] wrote:
 Am Freitag, 25. März 2005 18:51 schrieb Steve Butcher:

 Does vlc produce any output on stdout/stderr? If it does, it may stop when the
 output-buffer fills up. So you have to read Process#getOutputStream() to make
 it continue.

that makes more sense! It's been a while since I've played with this
stuff... Below is a snippet of code I used in a spellchecker
application that you can look at for ideas:

try

{   



String osName = System.getProperty(os.name );

//System.out.println(OS Name:  + osName);

String[] cmd = new String[3];

 

if( osName.equals( Windows NT ) | osName.equals( Windows 2000 ))

{

cmd[0] = cmd.exe ;

cmd[1] = /C ;

cmd[2] = aspell -a;

}

else if( osName.equals( Windows 95 ) )

{

cmd[0] = command.com ;

cmd[1] = /C ;

cmd[2] =aspell -a;

}



Runtime rt = Runtime.getRuntime();

System.out.println(Execing  + cmd[0] +   + cmd[1]

   +   + cmd[2]);

Process proc = rt.exec(cmd);

 

PrintWriter stdin = new
PrintWriter(proc.getOutputStream(), true);

stdin.write(spellCheck);

//System.out.println(spellCheck);

//stdin.write(26);

stdin.close();



InputStreamReader isr = new
InputStreamReader(proc.getInputStream());

BufferedReader br = new BufferedReader(isr);

String line=null;

int i = 0;

try {

while ( (line = br.readLine()) != null) {

if (line.equals(*)){

aSuggWords[i] = correct;

}else{

aSuggWords[i] = line;

}

//out.println(line + br);

returnString = returnString + br + line;

i++;

}

} catch (IOException ioe)

  {

ioe.printStackTrace();  

  }

proc.destroy();

Regards,


-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Installing Tomcat service: Unable to manually insert values for JvmMx and JvmMs in registry

2005-03-25 Thread Jason Bainbridge
On Sat, 26 Mar 2005 07:30:23 +0530, Lakshmi Narayanan K.
[EMAIL PROTECTED] wrote:
 Hello All,
 
 I am currently using Tomcat 5.0.28 coupled with JK2 connector to talk
 to Apache 2.0.48.
 
 I am encountering a problem similar to as reported in the following link:
  http://issues.apache.org/bugzilla/show_bug.cgi?id=32063 
 
 I am in a position where I *CANNOT* access the GUI based Tomcat
 configurator for setting the values of JvmMx and JvmMx. So my only
 way out is to use the tomcat command line utility to modify the Tomcat
 parameters.
 
 However, on the same lines as both Sigal and Ilona have
 faced (in the above mentioned bugzilla link), the values of JvmMs and
 JvmMx that get set (as shown in the registry under
 HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Procrun
 2.0\OvTomcatA\Parameters\Java) are always set to 0 irrespective of whatever
 value i set.

Why don't you just set them via regedit? I'm not in front of any of my
wrk boxes right now and I can't be bothered remoting in to get the
entries you need to edit but it is pretty straight forward.

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: jsp imports

2005-03-24 Thread Jason Bainbridge
On Thu, 24 Mar 2005 08:58:48 -, Pawson, David
[EMAIL PROTECTED] wrote:
 
 
 -Original Message-
 From: Darek Czarkowski
 
 I am not sure if this is relevant but, is session data a
 full name of the package?
 I would expect to see something like com.packagename.sessionData
 
 As I've been told, I need to wrap it in a package... or in my case
 I'm going to re-write 3 jsp's in Java, its easier.

Just out of curiosity why is that easier? Adding a package statement
to a Java class, changing your import statements and creating the
package directory structure isn't exactly difficult and could probably
be quite easily done by a search and replace of the source files, plus
it would be more standards compliant and make it easier for someone
else to maintain if they need to.

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Redirect from one SSL port to another

2005-03-24 Thread Jason Bainbridge
Currently we are running a pilot of Tomcat (alongside Jrun+IIS) where
Tomcat is on port 8443 using https and IIS is on port 443. We are
getting close to moving Tomcat into Production use disabling IIS +
Jrun and are looking at ways to easily redirect users from 8443 to 443
so the users of the pilot don't have to change URL's within email
notifications they have received from the system.

At first I thought setting an additional Connector port for 8443 with
a redirectPort to 443 was a good idea but if you don't add in all the
addtional SSL stuff it won't respons to https requests and if you do
add in the SSL stuff then the redirectPort doesn't get used and it
just sticks to 8443.

Does anyone know of an easy way to do this within Tomcat? I'm thinking
I might have to setup a separate Tomcat instance listening on port
8443 and setup redirects there but then again I could be missing
something obvious.

Cheers,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: ugly urls

2005-03-23 Thread Jason Bainbridge
On Wed, 23 Mar 2005 16:47:19 +, Didier McGillis
[EMAIL PROTECTED] wrote:
 Hi everyone
 
 I wanted to see if in JSP or Tomcat there was an easy way to transform ugly
 urls into pretty urls.  So taking category.jsp?catid=12type=2 and changing
 it to category/catid/12/type/2?

Best way would be to put Apache (Webserver) in front of tomcat and
then use mod_rewrite rules.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: configure loggers

2005-03-23 Thread Jason Bainbridge
On Wed, 23 Mar 2005 13:29:12 -0500, Juan Manuel Soler Rincón
[EMAIL PROTECTED] wrote:
 Hi
 
 I`ve been searching about logging level of the server(tomcat), and i can`t 
 find
 a way to logging the request in the same way of apache:
 
 200.118.108.230 - - [16/Jan/2005:20:42:53 -0500] GET /Archivos/Trabajo.doc.
 HTTP/1.1 200 81920
 
 I need to log the option(GET, POST, HEAD), the file requested, and the 
 response
 code from the server, the only one thing that i found was the verbosity level 
 of
 the logger, but any of the levels show the information that i need.

 Uncomment:

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs  prefix=localhost_access_log. suffix=.txt
 pattern=common resolveHosts=false/

In your server.xml.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: How does Tomcat interact with filesystem file permissions

2005-03-23 Thread Jason Bainbridge
On Wed, 23 Mar 2005 20:38:31 -0500, Brian J. Sayatovic
[EMAIL PROTECTED] wrote:
 So is all file access from the DefaultServlet performed as the Local
 System account?

Sure is and running any service like Tomcat as LocalSystem is a bad
idea, you should create either a domain or local account (some
companies prefer domain accounts as it is easier to manage) that
only has the bare necessity of permissions to run Tomcat. I just went
through this exercise myself and still need to document exactly what I
did as I couldn't find any online resources about it.

I have never used or heard of Tagisj JAAS though but that does sound
like something that would be worthwhile looking into.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Best way to monitor new version announcements?

2005-03-22 Thread Jason Bainbridge
I'm currently playing the IP compliance game with Tomcat and have
jumped through all their hoops so far but just now need to implement a
process of monitoring annoucements of new versions so we can assess
whether we need to upgrade or not.

Currently that involves me reading tomcat-user but that isn't going to
be acceptable and is actually quite cumbersome to do especially just
to wade through to find announcements (that isn't what I do but others
in the company would). I saw there is a general Jakarta announcement
list at http://mail-archives.eu.apache.org/mod_mbox/jakarta-announcements/
but that doesn't seem to include Tomcat announcements even though it
seems the perfect place for it.

Does anyone have any recommendations on how to accomplish what I am
after apart from having someone vist http://jakarta.apache.org/tomcat
every X days to check? I guess I could write a screen scraper that did
that and monitored for new versions but that seems a little extreme to
do something simple.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Problem with Tomcat caching old pages that it shouldn't

2005-03-16 Thread Jason Bainbridge
On Wed, 16 Mar 2005 14:45:07 + (GMT), Asfand Qazi
[EMAIL PROTECTED] wrote:
 Hi,
 
 Basically here's my problem: I make a jsp page that works correctly.
 OK.  Then, I make a fault in it that shows a compile error page -
 also fine.
 
 The problem is, when I reload it a second time, Tomcat serves me the
 old compiled JSP scriptlet, instead of giving me the compile error
 message again!
 
 I have to wait 5 seconds for the correct error page to be displayed.
 If I click on refresh in less than 5 seconds after the previous
 refresh, it gives me the old compiled page without the errors in it.

Try adding:

init-param
param-namemodificationTestInterval/param-name
param-value0/param-value
 /init-param

to your definition of the JSP servlet in %TOMCAT_HOM#%\conf\web.xml

By default it is 4 seconds but I'm not sure why the compile would fail
once and then start  working again...

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



{OT] Re: Jumping in and out of JSP

2005-03-15 Thread Jason Bainbridge
On Tue, 15 Mar 2005 10:27:21 -0600, Charles P. Killmer
[EMAIL PROTECTED] wrote:
 Is it possible to do something like the following?  I have as much code
 as I want in Java classes.  This is just to make modifying the UI
 easier.
 
 %!
 public String test() {
 %
 test2
 %!
 }
 %
 %=test()%

Yes it is and one of the reaons using JSP's instead of just Servlets
is attractive.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: {OT] Re: Jumping in and out of JSP

2005-03-15 Thread Jason Bainbridge
On Tue, 15 Mar 2005 12:13:53 -0600, Charles P. Killmer
[EMAIL PROTECTED] wrote:
 Maybe I wasn't clear.  The code that I pasted below is throwing all
 sorts of errors.  Assuming that something like this can be done.  Why
 does my code throw errors?

Obvious question... but what errors? On closer inspection your code
doesn't look right and I can't exatly see what you are trying to do so
try reading through some tutorials like
http://java.sun.com/products/jsp/html/jspbasics.fm3.html first and
then come back with some more pointed questions.

Cheers,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Configuration Problem in Tomcat for HTTPS

2005-03-14 Thread Jason Bainbridge
On Mon, 14 Mar 2005 12:04:55 -0800 (PST), suryadevara dushyanth
[EMAIL PROTECTED] wrote:
 No I am not getting any errors in logs.

Where exactly is your .keystore? You are best putting it somewhere
simple and then referencing it with the parameter keystoreFile in the
connector for the SSL.

As a previous poster stated the default place for the .keystore to be
created and looked for by tomcat is in a user's home directory so say
for example if you were running it as a service under LocalSystem
(something you shouldn't do for security reasons) then LocalSystem
wouldn't find the .keystore.

Following those tutorials has always worked first go for me so
carefully step through what is written there and see if you forgot
something.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Usint getRemoteUser() method

2005-03-09 Thread Jason Bainbridge
On Wed, 9 Mar 2005 22:04:17 +0530, Amrish Bharatiya [EMAIL PROTECTED] wrote:
 Hi All,
 
 I am using Tomacat server. I want to authenticate a client making the
 request to this server. I have deployed my server on an Intranet and
 want to use Window's Domain Authentication.
 
 When i use request.getRemoteUser() method to get the user name it
 returns null. when i looked into its help, it says that this method
 returns null if the user is not authenticated. How can i authenticate
 this user?

http://jcifs.samba.org

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: Usint getRemoteUser() method

2005-03-09 Thread Jason Bainbridge
On Wed, 9 Mar 2005 16:46:08 -, Allistair Crossley
[EMAIL PROTECTED] wrote:
 Or easier is to use IIS and then turn tomcatAuthentication off. Read my blog 
 at www.adcworks.com/blogs to see how to do this. IIS can pass your NTLM value 
 to Tomcat happily without jCIFs.

I disagree, setting up IIS is un-ncessary evil and setting up jcifs is
a LOT easier than all those hoops you need to jump through for IIS,
just drop in the .jar file, add a few parameters to your web.xml and
you're up and running. to go the IIS route you end up with another
webserver to maintain and I'm guessing most people dealing with Tomcat
aren't going to have IIS experience to begin with and then you have to
get the connector working between IIS  Jrun.

A lot more work than just dropping in a .jar file and adding a few
parameters to your web.xml.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



Re: 5.5.7 service.bat popup: Overlapped I/O Operation is in progress; NonAlpha 46

2005-03-09 Thread Jason Bainbridge
On Wed, 9 Mar 2005 10:30:23 -0600, J Malcolm [EMAIL PROTECTED] wrote:
 On Windows Server 2003, when I run service.bat I get a popup with the
 message: Overlapped I/O Operation is in progress;  NonAlpha 46
 
 I can run service.bat on the 5.0 installation and add/remove the service
 with no problem.  But it will not install 5.5.7 service.
 
 Did Tomcat start using a new port (46?) or something in 5.5?
 
 Suggestions?

Sounds like something DCOM permissions related, no idea why it would
work in 5.0 and not 5.5, have you got a restrictive set of permissions
in place at all? Some articles I read recommended running:

gpupdate /force

to refresh the loal groups and policies from the Active Directory but
it would be strange if that was your problem. Possibly the
installation of services has changed in Tomcat to effect the
credentials used to install the service somehow?

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



  1   2   3   4   >