Re: INSTALLING TOMCAT

2002-01-28 Thread Teemu Hiltunen

On Mon, 28 Jan 2002, Rafael wrote:

 While I was trying to compile jakarta-servletapi-4, I got this error message
 during the compilation...

 javadoc:
   [javadoc] Generating Javadoc
   [javadoc] Javadoc execution

 BUILD FAILED

 /root/jakarta-servletapi-4/build.xml:98: Javadoc failed:
 java.io.IOException: javadoc: not found
 

You have to modify your PATH environment variable to include your
$JAVA_HOME/bin directory.


--teemu



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: INSTALLING TOMCAT

2002-01-28 Thread Teemu Hiltunen

On Mon, 28 Jan 2002, Rafael wrote:

 This is my $JAVA_HOME: /etc/jdk1.3.1_02

 To USE ANT, you need to specify the directory /etc/jdk1.3.1_02 (in my case),
 without the last slash /.

 Changing this to another PATH will not let me use the ANT command, I did the
 ant compile and it went well, no  problems at all, but when trying to do a
 ant dist, it gives me the same problem.. :(

 What can it be?? How can this be fixed?


Okay, in your .bash_profile (or .cshrc or .tcshrc or what ever) in your
home directory you give the following (or similar):

JAVA_HOME=/etc/jdk1.3.1_02
PATH=$PATH:$JAVA_HOME/bin
export JAVA_HOME
export PATH

After this (and running in your home directory source .bash_profile) you
could try the following:

java -version

This should show the version information of your JDK. If you can't see the
version information but an error, then try to modify your PATH again. The
javadoc tool is in your /etc/jdk1.3.1_02/bin directory and therefore that
directory should be in your PATH (right?) in order to get Tomcat compiled.

Hope this helps. I'm not an expert on Linux/Unix shells.


--teemu



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: INSTALLING TOMCAT

2002-01-28 Thread Teemu Hiltunen

On Mon, 28 Jan 2002, Rafael wrote:

 Okey!!

 I finally installed JAKARTA, now I have no idea about what to do to get JSP
 working on my APACHE.

 I have the .jar library but I don't know where to use and how.

 Thank you,

 Rafael Azevedo


Please, read the documentation at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html
You should be able to find the information needed there. You could also
inspect server.xml file in your $CATALINA_HOME/conf directory. There are
examples of JSPs there. If you have your Catalina up and running you can
check how the examples work following links at
http://localhost:8080/index.html

Oh, now I noticed that APACHE up there. Then, you should read about Warp
in docs mentioned above and about mod-webapp e.g. at
http://www.ingrid.org/jajakarta/tomcat/tomcat-4.0b5/src/connectors/docs/apache-1.3.html
and in your Tomcat distribution there should be in docs directory
tomcat-apache-howto.html.


--teemu

PS. You did have the 4.0.1 version of Tomcat, right? :-)



 - Original Message -
 From: Teemu Hiltunen [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, January 28, 2002 11:52 AM
 Subject: Re: INSTALLING TOMCAT


  On Mon, 28 Jan 2002, Rafael wrote:
 
   This is my $JAVA_HOME: /etc/jdk1.3.1_02
  
   To USE ANT, you need to specify the directory /etc/jdk1.3.1_02 (in my
 case),
   without the last slash /.
  
   Changing this to another PATH will not let me use the ANT command, I did
 the
   ant compile and it went well, no  problems at all, but when trying to
 do a
   ant dist, it gives me the same problem.. :(
  
   What can it be?? How can this be fixed?
  
 
  Okay, in your .bash_profile (or .cshrc or .tcshrc or what ever) in your
  home directory you give the following (or similar):
 
  JAVA_HOME=/etc/jdk1.3.1_02
  PATH=$PATH:$JAVA_HOME/bin
  export JAVA_HOME
  export PATH
 
  After this (and running in your home directory source .bash_profile) you
  could try the following:
 
  java -version
 
  This should show the version information of your JDK. If you can't see the
  version information but an error, then try to modify your PATH again. The
  javadoc tool is in your /etc/jdk1.3.1_02/bin directory and therefore that
  directory should be in your PATH (right?) in order to get Tomcat compiled.
 
  Hope this helps. I'm not an expert on Linux/Unix shells.
 
 
  --teemu
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: INSTALLING TOMCAT - PART II

2002-01-28 Thread Teemu Hiltunen

On Mon, 28 Jan 2002, Rafael wrote:

 Okey..

 Lets start now the second part of this issue.

 I've installed TOMCAT (downloaded from
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/ and I saw on
 the documentation that I'm supposed to run the
 CATALINA_HOME/bin/./startup.sh

 Well I did it.

 and look what I got back:

 root@omega:~/jakarta-tomcat-4.0/bin# ./startup.sh
 Using CATALINA_BASE:   /root/jakarta-tomcat-4.0
 Using CATALINA_HOME:   /root/jakarta-tomcat-4.0
 Using CATALINA_TMPDIR: /root/jakarta-tomcat-4.0/temp
 Using JAVA_HOME:   /etc/jdk1.3.1_02
 root@omega:~/jakarta-tomcat-4.0/bin#

 Is it running?? How can I know?? grep tomcat doesnt show anything..

 I'm still needing help, thank you all for helping me!


Check out catalina.out in logs directory under $CATALINA_HOME. Check out
other log files there also to get hang of how Tomcat works. The files in
logs directory are created according to settings in server.xml in your
$CATALINA_HOME/conf directory.

To see whether the Tomcat is running check http://localhost:8080
You should see the Tomcat index.html page which is located in your
$CATALINA_HOME/webapps/ROOT directory.

--teemu



 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: for servlets only [tomcat] vs [apache + tomcat]

2002-01-28 Thread Teemu Hiltunen

On Mon, 28 Jan 2002, Murat Bicer wrote:

 I just want to serve servlets, I dont have any static web content.
 Performance wise can tomcat serve http requests as good as apache. Or should
 I frontend tomcat with an apache server.

 Anybody involved in such decisions ?

 Thanks
 Murat



I also would like to know about this topic. I have two server hosts in my
application, one for intranet only and the other for internet. They both
have some static web content but mainly servlets and applets. The internet
host has only couple of tunneling servlets those transfers all
requests into intranet host. For now, I'm using Apache HTTP server in both
hosts with JSDK Servletrunners. Now, I'm planning to start using Tomcat
for at least as a servlet server but I also would like to know whether I
could get rid off the Apache HTTP server and use just the Tomcat for all
web content and tunneling from internet host into intranet host.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Wrapping Java server apps into servlets under Tomcat

2002-01-28 Thread Teemu Hiltunen

Greetings!

As I have read the J2EE specifications I have found out that Web
Applications should only consist of static web content, jsps, servlets and
such, but is there any point to wrap my Java server application into a
servlet that starts up the server, maybe monitors its state, shuts it down
when needed etc.? I have tried this sort of a approach and built a simple
servlet that launches my server in its init() method. It seems to work
just fine, it can connect to database and it can sit down and wait for
client calls through a specific socket. But, if I put that server servlet
under the same Tomcat instance that serves my client servlets those
servlet apps seems not to be started at all..(server waiting for client
calls through a socket blocks the whole thing?). I put my server servlet
under a different Tomcat instance than client servlet apps and after that
everything seems to work just fine except that I keep getting some
strange behaviour with my client servlets - e.g. when trying to log in to
the system using my logger servlet it tells that a specific user id is
invalid even though it is not and it worked with the original system...

Has anyone done any similar work - wrapping server applications into
servlets? Is there some documents in the web on this topic? Any opinions?

One more thing; my client applets use JDK1.1 due to browser issues and
they communicate with my server using serialized message objects. Is it
right that if I build those serialized objects with JDK1.2/1.3/1.4 they
will not work in applets - the serialization/deserialization mechanism is
different? It seems that even if I run my server servlet under Tomcat
4.0.1 with JDK1.3.1 the client applets can handle the serialized messages
coming from the server - both objects created at runtime and objects read
from files (files are written using JDK1.1 and includes one big
serialized object each). This is not really any Tomcat issue but a Java
core issue but I was just wondering whether I can use Tomcat 4.0.1 and
Java2 or should I take an older Tomcat that works with JDK1.1.


I thank thee for any advice thy can give on these topics.


Teemu Hiltunen



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]