Unable to accessing shared network folder

2004-08-15 Thread Joseph Samuel
Hi,
   I am running Tomact 5.0 under Windows 2000. I want
to access a shared folder in the netowrk from my jsp
page. I try giving the UNC path of the shared folder.
But tomcat is unable to see the directory. Please
help.

File sharedFolder = new File ("machine\\shared");

where "machine" is the name of the network machine,
and "shared" is a folder shared in that machine.

But sharedFolder.exists() returns false, and
sharedFolder.listFiles() returns null. 

This happens even if Tomcat is run as an application
and also when it is run as a  service. 

I can access the same shared folder directly if run a
test java program outside of tomcat.

Thanks in advance,
Jo


Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

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



RE: Where are Tomcat logs when run as service?

2004-08-22 Thread Joseph Samuel

The logs are present in the 'logs' directory of your tomcat installation. It
is stored in the file 'stdout.log' These log files are cleared each time you
restart Tomcat.

Jo


-Original Message-
From: ohaya [mailto:[EMAIL PROTECTED]
Sent: Monday, August 23, 2004 12:06 PM
To: Tomcat Users List
Subject: Where are Tomcat logs when run as service?


Hi,

Up until tonight, I've been running standalone Tomcat as an executable.
But, I installed Tomcat on another machine, this time, installing it as
a service.  I can't find anywhere where Tomcat on this new machine logs
the messages like you seen in the DOS window when you run Tomcat as an
executable.

I've checked in my .\logs directory, and watched the localhost...txt
file, but I don't seen anthing much there?

Can someone tell me where Tomcat is logging to?

Thanks,
Jim

-
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: jaring a zip file

2004-09-22 Thread Joseph Samuel

1) Extrat the zip to a temporary folder preserving the directory structure.
2) Take command propmt, go to the the above temporary folder and give the
command jar -cf myjar.jar *

rename myjar.jar as the name of the jar that you want.


-Original Message-
From: Shanti Priya [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 1:33 PM
To: Tomcat-User
Subject: jaring a zip file


Hi!!
  I have a zip file classes12.zip which i want to convert into a jar
file and copy in my $CATALINA_HOME/common/lib .
If i rename it ,it's not working properly. I have oracle 9i on my local
system and tomcat 4.1.18 is the version i am using to deploy.

Thanks & Regards,
Shanti Priya Sunkara

Location: Pune, India
Email   : [EMAIL PROTECTED]



-
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: Servlet class not found

2004-11-24 Thread Joseph Samuel

It seems that the package is not properly declared in it. Check it.


-Original Message-
From: Richard Lewis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 4:51 PM
To: [EMAIL PROTECTED]
Subject: Servlet class not found


Hello,

This is probably quite a simple question but I couldn't find an answer
in the archives:

I'm writing a servlet to perform a little search on my website. The
servlet is compiled and is in a directory structure like this:

$CATALINA_HOME/webapps/StudioSearch
   +-- index.html   (provides a form to do a test search)
   +-- WEB-INF/
+-- web.xml   (see below)
+-- classes/
 +-- uk/
  +-- ac/
   +-- uea/
+-- studios/
 +-- StudioSearch.class
 +-- StudioSearch.java

web.xml looks like this:


StudioSearch
uk.ac.uea.studios.StudioSearch


StudioSearch
/studio-search



When I visit: http://localhost:8080/StudioSearch/ I get the index page
as expected. This page has a  element where the action is
"studio-search" but when I submit this form I get the following error:

javax.servlet.ServletException: Error allocating a servlet instance
..
java.lang.NoClassDefFoundError: uk/ac/uea/studios/StudioSearch (wrong
name: StudioSearch)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)

I've checked all the spelling and case and that I'm not using '.class'
(the StudioSearch.java file isn't confusing it, is it?) but I can't seem
to make it work. (I know the servlet class itself works because I've
executed it Tomcat's ROOT webapp.)

Any ideas?

Thanks,
Richard
-- 
  Richard Lewis
  [EMAIL PROTECTED]


-
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]