Re: Pls Help

2001-04-21 Thread Tan Khim Siang

Thank your response, Russell.  I appreciate that!

Khim
- Original Message -
From: Russell Hammer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, April 20, 2001 8:11 PM
Subject: Re: Pls Help


 Hi,

 My quick and dirty script for solaris is below:
 Please READ AND MODIFY prior to running!

 -R

 On Fri, Apr 20, 2001 at 05:28:07PM +0800, Tan Khim Siang wrote:
  Hi all, how are you people doing?  I am using mod_jk instead of
mod_jserv.  When I try to start apache using this command:
  apachectl startssl
 
  I have the following error:
 
  Syntax error on line 210 of /usr/local/apache/conf/httpd.conf:
  Cannot load /usr/local/apache/libexec/mod_jk.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/mod_jk.so: symbol fdatasync: referenced symbol not
found
 
 
  Does anybody know whats going on here?
 
  I am on Solaris 7
 
 
  Thank you for your time.
 
 
  Khim

 #!/bin/ksh
 MODJKSRCDIR=/usr/local/src/jakarta-tomcat-3.2.1-src/src/native/apache1.3
 APACHE_HOME=/usr/local/apache
 APXS=${APACHE_HOME}/bin/apxs
 TC_HOME=/usr/local/tomcat
 JAVA_HOME=/usr/java

 cd ${MODJKSRCDIR}
 ${APXS} -o
mod_jk.so -DSOLARIS -I../jk -I${JAVA_HOME}/include -I${JAVA_HOME}/include/so
laris -lposix4 -c *.c ../jk/*.c

 cp mod_jk.so  ${APACHE_HOME}/libexec

 print "Include ${TC_HOME}/conf/mod_jk.conf-auto" 
${APACHE_HOME}/conf/httpd.conf

 sh /etc/init.d/apachectl configtest  sh /etc/init.d/apachectl restart







Re: trouble running ,,\bin\tomcat.bat

2001-04-21 Thread Martin Dengler

Marian,

This is a common problem on Win98; check out the below email and 
link for further info:

http://mikal.org/interests/java/tomcat/archive/nph/search?search=environment+space

 From: Jim Richards 
 Subject:  Re: Problems with the most Basic Hello servlet and jsp.
 Date:  Fri, 10 Nov 2000 16:53:22 +1100
C:\jakarta-tomcat\binTOMCAT.BAT start
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
 
 To fix this you'll need to edit your c:\config.sys and either add,
 or modify
 this entry
 
   SHELL=C:\COMMAND.COM C:\ /P /E:4096
 
 You've run out of environment space within your DOS shell. This will
 increase it to 4096 bytes, so when the CLASSPATH gets set, there
 is space for it.



Marian Ganuci wrote:

 Hello,
 
 
 I just downloaded Tomcat3.2.1, but I'm facing some difficulties. First of
 all, I'm using Windows 98 SE; I already have jdk1.3, and I properly set the
 JAVA_HOME and TOMCAT_HOME environment variables. I get the messages: "bad
 command or file name" messages and several "Out of environment space"
 Does anyone have an ideea?
 
 Thanks in advance
 
 Marius 




Testing my installation

2001-04-21 Thread Tan Khim Siang



Hi all, I have done the 
following:

Installed the glue for Apache and Tomcat 
(mod_jk)
Installed Tomcat 3.2.1

I am about to test and see whether the installation 
is right at all. I tried this:

http://myservername/jakarta-tomcat-3.2.1/webapps/examples/jsp/

Those appls don't seem to be working correctly for 
my case, I believe its got to do with my setup. Is this the right way to 
test the installation? Any idea anybody?


Thank you all!

Khim


Re: Testing my installation

2001-04-21 Thread skolski

Hi!

put that tomcat/webapps aprt away


http://localhost/examples

will be the way it works (or should work if your installation failed)


Sascha





Spaces in URLs?

2001-04-21 Thread Michael Carmack


Can Tomcat 3.2 not handle spaces in URLs? I've tried with both
literal spaces and the escaped %20 syntax, but neither seem 
to be recognized. There is a bug report mentioned from a while 
back in the archives, but there didn't seem to be any resolution
at the time. If this is an uresolved/unresolvable issue with
3.2, is it working in 4.0?

thanks,
m.




Exception: I don't understand

2001-04-21 Thread Sunil Chandurkar

Hello All:

I am getting following exception on calling servlet from applet.

2001-04-21 03:11:13 - Ctx( ): IOException in: R( +/MyFolder/Mytest.class+ null) 
Connection reset by peer: socket write error.

When first time i visit local site at that time its not giving an exception but when i 
visit it second time at that time only i am getting this exception. The best part is 
it doesn't affect funtionality of my applet as well as servlet. 

I am sure this is an exception from web server not from servlet. Because  I have 
written all try-catch blocks in my servlet code at appropriate places.
There is one Folder "MyFolder" in ROOT directory and HTML file calling my applet is 
placed at ROOT.

First of tell me wht this error me and when generally this occur.

thanx in advance...

/sunil












_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net



Re: Spaces in URLs?

2001-04-21 Thread Michael Carmack

On Sat, Apr 21, 2001 at 05:07:22AM -0400, Michael Carmack wrote:
 
 Can Tomcat 3.2 not handle spaces in URLs? I've tried with both
 literal spaces and the escaped %20 syntax, but neither seem 
 to be recognized. There is a bug report mentioned from a while 
 back in the archives, but there didn't seem to be any resolution
 at the time. If this is an uresolved/unresolvable issue with
 3.2, is it working in 4.0?

To follow up on my own question, I just checked out 3.3 and
everything seems to be working fine there. I suppose I can
just stick with that instead.

m.




Re: Testing my installation

2001-04-21 Thread Tan Khim Siang

Hi Sascha, thanks for the info, this don't seem to work.  Do I need to alter
some settings in the server.xml and web.xml file?
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 21, 2001 3:36 PM
Subject: Re: Testing my installation


 Hi!

 put that tomcat/webapps aprt away


 http://localhost/examples

 will be the way it works (or should work if your installation failed)


 Sascha








Re: JSP IDE

2001-04-21 Thread Marco Baringer

NetBeans

http://www.netbeans.org

 Hi ALL,
 
 
 I have a very important question for you! Please, could someone tell me
 where I can find a JSP IDE for Linux, something like Macromedia
 DreamWeaver UltraDev 4, because I got an eval version and it's amazing,
 but it's only for Windows!
 
 
 Thank you in advance,
 Evdin


-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There's a crack in everything.
It's how the light gets in.
-Isonard Cohen

 PGP signature


an installation error with mySQL

2001-04-21 Thread Park, Sung-Gu

I made my authority database on mySQL for tomcat 4.0-b4 dev.
And the user and user_pass field in the users table and
user_roles in the user_roles table are made.
There is no @localhost user though,
I got an error probably related to catalina.policy or
 the problem with database like the below?

What do I solve for it?

Thanks in advance,

Sung-Gu


P.S.: the error message is like :

Starting service Tomcat-Standalone
Apache Tomcat/4.0-b4-dev
Catalina.start: LifecycleException:  Exception opening database connection:
java
.sql.SQLException: Cannot load connection class 'java.sql.SQLException:
General e
rror: Access denied for user: '@localhost' to database 'authority''.
LifecycleException:  Exception opening database connection:
java.sql.SQLExceptio
n: Cannot load connection class 'java.sql.SQLException: General error:
Access den
ied for user: '@localhost' to database 'authority''.
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:561)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1044)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253)

at
org.apache.catalina.core.StandardService.start(StandardService.java:35
3)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:458)

at org.apache.catalina.startup.Catalina.start(Catalina.java:712)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:634)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)
- Root Cause -
java.sql.SQLException: Cannot load connection class 'java.sql.SQLException:
Gener
al error: Access denied for user: '@localhost' to database 'authority''.
at org.gjt.mm.mysql.Driver.connect(Driver.java)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:506)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:559)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1044)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253)

at
org.apache.catalina.core.StandardService.start(StandardService.java:35
3)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:458)

at org.apache.catalina.startup.Catalina.start(Catalina.java:712)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:634)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)





Re: an installation error with mySQL

2001-04-21 Thread Park, Sung-Gu

I think I solved this problem to replace the Realm part of server.xml like
this.

connectionURL="jdbc:mysql://localhost/authority"
  connectionName="test"
  connectionPassword="test"

Not using this style like...


connectionURL="jdbc:mysql://localhost/authority?user=test;password=test"


=

Question)

What case is it, when i see this message?
"HTTP Status 503 - This application is not currently available
The requested service (This application is not currently available) is not
currently available. "

What do I do for it?  Why is this happened?

Thanks in advance,

Sung-Gu


- Original Message -
From: "Park, Sung-Gu" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, April 21, 2001 8:02 PM
Subject: an installation error with mySQL


 I made my authority database on mySQL for tomcat 4.0-b4 dev.
 And the user and user_pass field in the users table and
 user_roles in the user_roles table are made.
 There is no @localhost user though,
 I got an error probably related to catalina.policy or
  the problem with database like the below?

 What do I solve for it?

 Thanks in advance,

 Sung-Gu


 P.S.: the error message is like :

 Starting service Tomcat-Standalone
 Apache Tomcat/4.0-b4-dev
 Catalina.start: LifecycleException:  Exception opening database
connection:
 java
 .sql.SQLException: Cannot load connection class 'java.sql.SQLException:
 General e
 rror: Access denied for user: '@localhost' to database 'authority''.
 LifecycleException:  Exception opening database connection:
 java.sql.SQLExceptio
 n: Cannot load connection class 'java.sql.SQLException: General error:
 Access den
 ied for user: '@localhost' to database 'authority''.
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:561)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1044)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253)

 at
 org.apache.catalina.core.StandardService.start(StandardService.java:35
 3)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:458)

 at org.apache.catalina.startup.Catalina.start(Catalina.java:712)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:634)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)
 - Root Cause -
 java.sql.SQLException: Cannot load connection class
'java.sql.SQLException:
 Gener
 al error: Access denied for user: '@localhost' to database 'authority''.
 at org.gjt.mm.mysql.Driver.connect(Driver.java)
 at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:506)
 at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:559)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1044)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253)

 at
 org.apache.catalina.core.StandardService.start(StandardService.java:35
 3)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:458)

 at org.apache.catalina.startup.Catalina.start(Catalina.java:712)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:634)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
 at java.lang.reflect.Method.invoke(Native Method)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)






RE: How to read property files?

2001-04-21 Thread Wouter Boers

Sorry to tell you that it does work.

I've tried used this on various platforms with various software deployed on
various platforms, like Jserv, Tomcat, WebLogic, Jrun on Win2000, Linux,
Solaris, HP-UX.

So it's fair to say that this contruct does work ;)

Wouter

-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: 18 April 2001 16:08
To: [EMAIL PROTECTED]
Subject: Re: How to read property files?



   InputStream is =
this.getClass().getResourceAsStream("myapp.properties");
   Properties p = new Properties();
   try {
 p.load(is);
   } catch ( java.io.IOException e ) {
 // Can't load props file
   }

 That way the properties file can be anywhere in the classpath.



Have you tried doing this from a class inside a .jar file?   I have
and it didn't work.


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 17, 2001 9:27 PM
 To: [EMAIL PROTECTED]
 Subject: How to read property files?


 I would like to put a myapp.properties file in the top level directory
 of my webapp. But I can't figure out what filepath to give the
 Properties.load() method in order to load my servlet property object.
 Can someone help me?

 Thanks

 =eas=





A latest nigtly build error with MySQL

2001-04-21 Thread Park, Sung-Gu


The error message is like :

Starting service Tomcat-Standalone
Apache Tomcat/4.0-b4-dev
Catalina.start: LifecycleException:  Exception opening database connection:
jav
a.sql.SQLException: Cannot disable AUTO_COMMIT
LifecycleException:  Exception opening database connection:
java.sql.SQLExcepti
on: Cannot disable AUTO_COMMIT
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:609)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1044)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:3
53)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:458
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:718)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:640)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)
- Root Cause -
java.sql.SQLException: Cannot disable AUTO_COMMIT
at org.gjt.mm.mysql.Connection.setAutoCommit(Connection.java:396)
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:540)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:607)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1044)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:253
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:3
53)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:458
)
at org.apache.catalina.startup.Catalina.start(Catalina.java:718)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:640)
at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:179)





Re: freeBSD

2001-04-21 Thread AC

I'm using tomcat on freeBSD with jdk 1.8 native with TYA jit, another one 
with jdk 1.2 native, still another one with linux-jdk 1.2 and I've tested 
linux jdk1.3 (classic mode only) in my test machine. No problem till now on 
all the server.
Even the jakarta.apache.org site is running freeBSD!!

andrea

At 09.18 20/04/2001 -0400, you wrote:
I've been using tomcat on freeBSD for some time now with absolutely no
problems. :)
Matt

Eric Mosley wrote:
 
 
  Is the main reason that Tomcat is not recommended on freeBSD that
  there isn't a stable jdk1.2 port at the moment?
 
  Has anybody had any experience with Tomcat on freeBSD? What jdk are
  you using and is it working well?!
 
  Eric




Tc 3.2.1 recompiles JSPs on every request, what is wrong?

2001-04-21 Thread Rinta-Korkeamäki Jari

Hi there,

I have the most strangest problem. I installed Tomcat 3.2.1 on fresh NT4
server (sp5), and Tomcat seemed to be quite slow from the beginning. Then I
noticed it was recompiling my JSPs every time they were requested. The work
directory gets stuffed up with java files, which are generated on every
request. Though, for some reason, there are only one class file for every
JSP.

I have put up three similar servers (with some hw differences) with no such
problems.  Has anybody ever experienced something like this?

Regards, Jari



AutoRefreshing of apps

2001-04-21 Thread Jeremy C

Greetings!

I have installed the Turbine Development Kit, which of course includes 
Catalina for it's web/servlet server. Under the TDKROOT/conf/server.xml 
file I have added:

Context path="" docBase="knopro4" reloadable="true"/

which I was hoping would cause my java .class files to re-load as I updated 
them with no code, however it does not. I have to shut the server down, 
then start the server. Then, my new .class files are read.

Can anyone tell me what I am doing wrong?

Thanks!

Jeremy - [EMAIL PROTECTED]




RE: Exception: I don't understand

2001-04-21 Thread William Kaufman

(Oy, this one seems to come up every week.  Maybe there should be a daily
FAQ with this item?  Plus info on how to unsubscribe?)

This is an IE problem: it requests a file, then drops the connection when it
sees from the headers that it's got an up-to-date copy in its cache.

It's not fatal, it's just annoying.  If you're tired of seeing it, you can
lower the "debug" attribute in your server.xml file.  Or, switch to another
browser.


-- Bill K.


 -Original Message-
 From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, April 21, 2001 2:11 AM
 To: [EMAIL PROTECTED]
 Subject: Exception: I don't understand
 
 
 Hello All:
 
 I am getting following exception on calling servlet from applet.
 
 2001-04-21 03:11:13 - Ctx( ): IOException in: R( 
 +/MyFolder/Mytest.class+ null) Connection reset by peer: 
 socket write error.
 
 When first time i visit local site at that time its not 
 giving an exception but when i visit it second time at that 
 time only i am getting this exception. The best part is it 
 doesn't affect funtionality of my applet as well as servlet. 
 
 I am sure this is an exception from web server not from 
 servlet. Because  I have written all try-catch blocks in my 
 servlet code at appropriate places.
 There is one Folder "MyFolder" in ROOT directory and HTML 
 file calling my applet is placed at ROOT.
 
 First of tell me wht this error me and when generally this occur.
 
 thanx in advance...
 
 /sunil
 
 
 
 
 
 
 
 
 
 
 
 
 _
 Get LifeTime Free email Visit  --- http://www.nagpurcity.net
 



please remove me from this mailing list

2001-04-21 Thread Hussam Alsawadi
undefinedDo You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices

Re: trouble running ,,\bin\tomcat.bat

2001-04-21 Thread Marian Ganuci

Martin,
Thanks a bunch
I just did so and it's working fine
- Original Message -
From: Martin Dengler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 22, 2001 12:39 AM
Subject: Re: trouble running ,,\bin\tomcat.bat


 Marian,

 This is a common problem on Win98; check out the below email and
 link for further info:


http://mikal.org/interests/java/tomcat/archive/nph/search?search=environment
+space

  From: Jim Richards
  Subject:  Re: Problems with the most Basic Hello servlet and jsp.
  Date:  Fri, 10 Nov 2000 16:53:22 +1100
 C:\jakarta-tomcat\binTOMCAT.BAT start
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 Out of environment space
 
  To fix this you'll need to edit your c:\config.sys and either add,
  or modify
  this entry
 
  SHELL=C:\COMMAND.COM C:\ /P /E:4096
 
  You've run out of environment space within your DOS shell. This will
  increase it to 4096 bytes, so when the CLASSPATH gets set, there
  is space for it.



 Marian Ganuci wrote:

  Hello,
 
 
  I just downloaded Tomcat3.2.1, but I'm facing some difficulties. First
of
  all, I'm using Windows 98 SE; I already have jdk1.3, and I properly set
the
  JAVA_HOME and TOMCAT_HOME environment variables. I get the messages:
"bad
  command or file name" messages and several "Out of environment space"
  Does anyone have an ideea?
 
  Thanks in advance
 
  Marius