[OT] EJB QL: using findBy with a legacy class

2004-06-20 Thread Jens Skripczynski
Hi,

I have a Problem using find with a serializeable CMP field.
(and hope someone here can give me a hint).
---
I'm using J2EE 1.3.1 Sun RI and ran into this problem:

I have a serializeable class as a CMP Field (Permission) and 
want to Do a findByPermission EJB query. (example code below).

Things I have checked:
- The dependant class in Serializeable (EJB SPEC 2.0 10.3.3)
  and has a new 'equals' method
- find Parameter is of the same class as CMP field as required for the
  = operator (SPEC 2.0 11.2.10)

- EJB QL Statement 
SELECT OBJECT(perm) FROM PermissionSchema as perm
WHERE perm.permission = ?1
- EJB QL Statement 

But still the RI Deployment Tool complains (while generating SQL):

Invalid type of expression (perm.permission = ?1)


Any Ideas ??



--- Java example code ---
public abstract class PermissionBean implements EntityBean{

   public abstract void setPermission(Permission perm);
   public abstract Permission getPermission();

   [...]
}

public interface PermissionHomeLocal extends EJBLocalHome {

   [...]

   public PermissionLocal findByPermission(Permission permission) 
  throws FinderException;

}

public class Permission implements Serializable {
   public final static Permission CREATE_USER = new Permission(Create User, Allows 
User Creation);

   final private String name;
   final private String description;


   private Permission (final String name, final String description){
  this.name = name;
  this.description = description;
   }

   public String getName() { return this.name; }

   public String getDescription() { return this.description; }

   public boolean equals(Object obj) {
  if (obj instanceof Permission) {
 Permission perm = (Permission) obj;
 return this.name.equals(perm.getName());
  } 
  return false;
   }
}
--- Java example code ---

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

They say if you play the Windows 2000 CD backward, you can hear satanic words.
Oh, thats nothing. If you play it forward it installs Windows 2000 


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



Re: Tomcat does not compiles my .jsp!

2004-06-24 Thread David Smith
Take a look at your log files for around the time you try to access the 
jsps.  Seems to me there has to be some info related to this error.  
Does the .java file get created in the work directory tree at all?  Also 
check the volume your work directory is on -- is there enough space and 
have you run fsck on it recently?

The last time I experienced what you saw, it was r/w permissions on the 
work directory for user tomcat.  I couldn't see the error until I su'd 
into the tomcat user account and tried to write a file.  Obviously your 
situation is different somehow.

Good luck.  That's all my ideas.
--David
Cyberjobe wrote:
No, my work dir is ok.
And... if I use the Ant the .jsp will compile. (make a _jsp.java file)
What more can I do?
Thanks,
Cyberjobe
- Original Message - 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, June 24, 2004 9:18 AM
Subject: Re: Tomcat does not compiles my .jsp!

 

I'm fairly sure the problem is tomcat is having some trouble writing to 
the work directory when it writes your jsp as a java class.  Quick test:

su tomcat (if done from root, no password required)
cd /usr/local/jakarta-tomcat-5.0.25/work
vi testfile.txt
type some junk and try to write the file.
If this fails, you have your problem.  Exit the su session and take a 
look at file permissions on the work directory.  Be sure tomcat owns it 
and has write access.  I'd recommend tomcat user and group have full 
permissions (rw, x for directories), others have nothing.

--David
   


-
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: startup error

2004-06-28 Thread FRANCOIS Dufour
try to add  java_home environement variable pointing to your jdk instalation 
directory
(drive leter:\folder that\ hold your jdk)
then add catalina_home  pointing to your tomcat folder
(drive leter:\folder that\ hold your tomcat container
should work im running 4.0 on my server it runs prety well here

[EMAIL PROTECTED]
administrateur http://entre-nous.qc.tc


From: Mendo, Anthony J. [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Subject: startup error
Date: Mon, 28 Jun 2004 11:23:11 -0700
I am new to Tomcat and need some help just getting started.
The error I am getting is:
The CATALINA_HOME environment variable is not defined correctly...
In the RUNNING.txt file states:
There are two techniques by which Tomcat 4.0 can be started:
* Via an environment variable:
  - Set an environment variable CATALINA_HOME to the path of the directory
into which you have installed Tomcat 4.0.
  - Execute the shell command:
  %CATALINA_HOME%\bin\startup (Windows)
* By modifying your current working directory:
  - Execute the following shell commands:
  cd %CATALINA_HOME%\bin  (Windows)
  startup (Windows)
But where am I suppost to point?
my install is:
c:\tomcat
thanks in advance
AJ
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
MSN Messenger : discutez en direct avec vos amis !  
http://messenger.fr.msn.ca/

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


Re: need mod_jk2

2004-06-29 Thread Mark Lowe
Try downloading this and untar  it in /usr/libexec/apache2
It might work for you, it does for me. Same one that i blogged.
http://homepage.mac.com/melowe/mod_jk2.so.tar.gz
 Apache/2.0.49 (Unix) mod_jk2/2.0.5-dev
OSX 10.3
Mark
On 29 Jun 2004, at 23:28, Mark Lowe wrote:
Samual..
I guess we can see if the one I've compiled on a mac will work with  
your stuff. It might work, its does on the box i compiled it on.

I'll put it some where you can get to it.
Mark
On 29 Jun 2004, at 20:29, Samuel V. Green III wrote:
I can't seem to find a binary version of the module and am having  
issues attempting to build from source.

Has anybody built this module from source for Mac OS 10.3?
I'm using the example from this site:   
http://homepage.mac.com/melowe/iblog/B141099555/C760077128/ 
E1326304651/

and when I get to:
cd jakarta-tomcat-connectors/jk/native2
I'm getting an error:  i.e.,  -bash: ./configure: No such file or  
directory

Any ideas?
Thanks,
Samuel.
-
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]

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


Wrong Source-Codes for jakarta-tomcat-connectors-jk-1.2-src-curr ent.tar.gz ?

2004-07-22 Thread Nagel, Andre
Hello everyone!

Last time mailed I Had problems with 
jakarta-tomcat-connectors-jk-1.2-src-current.tar.gz, and I still have.

I told you I found out that there ist a ':' too much in Makefile.in for the connector.
I removed it, and then make works little better, but ends up with followig error:
make: Fatal error: Command failed for target `mod_jk.lo'

I did a 
-- # ls -la
 in /jk/native/apache-1.3/, and got following line:
-- -rw-r--r--   1 root other214 Jul 22 12:46 mod_jk.loT
I had to 
-- # mv mod_jk.loT mod_jk.lo 
and after redoing 
-- # make

it works somewhat better until this line (it still works!):
-- (cd .libs  rm -f mod_jk.la  ln -s ../mod_jk.la mod_jk.la)

but ends again with a different error in the next output lines on screen:
-- /usr/local/bin/libtool --mode=install cp  `pwd`/mod_jk.so
-- libtool: install: you must specify a destination
-- Try `libtool --help --mode=install' for more information.
-- *** Error code 1
-- make: Fatal error: Command failed for target `mod_jk.so'
-- # 

I am doing this compiling on solaris8 SPARC, with Apache 1.3.31, Tomcat 4.1.30 and 
java version 1.4.1_02

So, finally, here is my Question:
Am I Doing sth. wrong, or did the developers just put damaged code on the website?
(I downloaded it several times to reduce the chance of corruting code while 
downloading...)

Did someone have any similar problem, or may it be that I just did make a big mistake?
 
Thank each one in advance!

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



RE: TC 5.0.27 startup problem

2004-07-23 Thread STOCKHOLM, Raymond
You definitively have a process using 8080 :
either a tomcat process, still running, or another program (oracle,...)
Check all your current process, or simply reboot.


-Message d'origine-
De : Paul Wallace [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 23 juillet 2004 08:40
À : Tomcat Users List
Objet : TC 5.0.27 startup problem


Hi,
A seemingly simple one, but not for I! I am trying to setup the
above version of TC on Win XP. My JAVA_HOME is set as an environment
variable, and in the top of my startup.bat I am setting CATALINA_HOME:

rem $Id: startup.bat,v 1.6 2004/05/27 18:25:11 yoavs Exp $
rem

---
set CATALINA_HOME=C:\dev\jakarta-tomcat-5.0.27
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%

When running this file from the command prompt I get:

23/07/2004 16:14:25 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.
j
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)

I immediately looked at what was using port 8080 (nothing to my
knowledge) and this was confirmed. I ran netstat which confirmed that
port 8080 was not in use.
TC appears to have started, but http://localhost:8080 (with
numerous stacktraces (above)) is showing a 404. Am I illegally setting
CATALINA_HOME?

Thanks

Paul.





-
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: TC 5.0.27 startup problem

2004-07-23 Thread Paul Wallace
Hi  thanks,
A reboot sorted it. Netstat is not a reliable means to check what ports are 
being used by which app then?

Regards

Paul.

You definitively have a process using 8080 :
either a tomcat process, still running, or another program (oracle,...)
Check all your current process, or simply reboot.


-Message d'origine-
De : Paul Wallace [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 23 juillet 2004 08:40
À : Tomcat Users List
Objet : TC 5.0.27 startup problem


Hi,
A seemingly simple one, but not for I! I am trying to setup the
above version of TC on Win XP. My JAVA_HOME is set as an environment
variable, and in the top of my startup.bat I am setting CATALINA_HOME:

rem $Id: startup.bat,v 1.6 2004/05/27 18:25:11 yoavs Exp $
rem

---
set CATALINA_HOME=C:\dev\jakarta-tomcat-5.0.27
rem Guess CATALINA_HOME if not defined
set CURRENT_DIR=%cd%

When running this file from the command prompt I get:

23/07/2004 16:14:25 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use: JVM_Bind:8080
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.
j
at
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)

I immediately looked at what was using port 8080 (nothing to my
knowledge) and this was confirmed. I ran netstat which confirmed that
port 8080 was not in use.
TC appears to have started, but http://localhost:8080 (with
numerous stacktraces (above)) is showing a 404. Am I illegally setting
CATALINA_HOME?

Thanks

Paul.





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




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



RE: TLS-Enabled Connector Prevents Startup

2004-09-07 Thread Shapira, Yoav

Hi,
Thanks for posting your solution.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Igor Zlatkovic [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 07, 2004 2:00 PM
To: Tomcat Users List
Subject: Re: TLS-Enabled Connector Prevents Startup

I have found the solution and will share it here incase someone
encounters a similar problem in the future.

The solution is:

  # cd /dev
  # mv random random-old
  # ln -s urandom random

however bizarre that may sound. It seems that the recent Linux kernel
update wasn't up to Tomcat's liking. For whatever the reason, Tomcat's
initialising of the TLS connector blocks in a read from /dev/random,
always. Ensuring that it reads from /dev/urandom instead makes it happy
again.

Although I haven't had anything to try with, I assume that every Java
program was affected by this, not only Tomcat. I am also aware of the
fact that this kind of solution is far from perfect, but it is a way
through until I find something else.

Thanks to everyone for answers and suggestions.

Ciao,
Igor

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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: TLS-Enabled Connector Prevents Startup

2004-09-08 Thread Endre Stølsvik
On Tue, 7 Sep 2004, Igor Zlatkovic wrote:

| I have found the solution and will share it here incase someone
| encounters a similar problem in the future.
|
| The solution is:
|
|   # cd /dev
|   # mv random random-old
|   # ln -s urandom random
|
| however bizarre that may sound. It seems that the recent Linux kernel
| update wasn't up to Tomcat's liking. For whatever the reason, Tomcat's
| initialising of the TLS connector blocks in a read from /dev/random,
| always. Ensuring that it reads from /dev/urandom instead makes it happy
| again.

( Nothing very valuable in the following, really, I've just had the exact
same situation with a SecureRandom in my application that I seeded with
/dev/random.. )

/dev/random has an entropy pool that may get depleted, in which case
it'll block till it has gotten more bits of entropy. I've experienced that
on a server standing in a corner, w/o keyboard or other direct human
input, this might take forever (for example, it doesn't use ethernet
traffic, as this can become non-random at times..)

I guess the TLS Connector (where is that?) uses /dev/random for its
initialization for its instance of a java.security.SecureRandom. However,
I believe that on new VMs the default initialization (default == no
seeding on creation) of SecureRandom is pretty good, utilizing the OS's
native random mechanisms. I think that 1.3 has been like this on windows
for some time, while maybe 1.4 fixed this for Linux?
  However, if the linux-default init uses /dev/random (instead of
urandom), then this might be the problem? The TLS Connector might be
changed to use a configurable source for randomness for seeding, e.g.
either a file, or default init.

Endre


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



RE: Tomcat vs BEA Weblogic?

2004-09-19 Thread epyonne
JBOSS is as good as any EJB container out there on the market, if not
better. The only different is support. You have to pay BEA a small fortune
for support and they will help you every step of the way. On the other hand,
if you use JBOSS, you are pretty much on your own. Although you can hire the
JBOSS consulting team to assist you, but you have to have a team of
developers/admin in-house who are very knowledgeable and know what they are
doing.

Hope this helps.



-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 19, 2004 6:32 PM
To: Tomcat Users List
Subject: Tomcat vs BEA Weblogic?

I am taking over a project that's running on Weblogic 8.1 SP3 today.. They
are only using 
the jsp-container and it is time to renew the support agreement with BEA.
So I was just wondering, is it worth it? Or is Tomcat as good as WL or maybe
better? Does 
WL have features that is missing in Tomcat? When the time comes to use EJB,
is JBoss as 
good as/better than WL?

So basically, I would like some advice on why I should/shouldn't continue
with Weblogic? :)



Regards,

BTJ
-- 

---
Bjørn T Johansen
[EMAIL PROTECTED]


---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange
Satanic messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows

---

-
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: Tomcat vs BEA Weblogic?

2004-09-19 Thread John Najarian
I have to agree with epyonne.  JBoss has lousy documentation
 doesn't have good support.  Tomcat is a very fine JSP/Servlet
container.  There isn't anything it can't do.

-Original Message-
From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] 
Sent: Sunday, September 19, 2004 4:32 PM
To: Tomcat Users List
Subject: Tomcat vs BEA Weblogic?

I am taking over a project that's running on Weblogic 8.1 SP3 today.. They
are only using 
the jsp-container and it is time to renew the support agreement with BEA.
So I was just wondering, is it worth it? Or is Tomcat as good as WL or maybe
better? Does 
WL have features that is missing in Tomcat? When the time comes to use EJB,
is JBoss as 
good as/better than WL?

So basically, I would like some advice on why I should/shouldn't continue
with Weblogic? :)



Regards,

BTJ
-- 

---
Bjørn T Johansen
[EMAIL PROTECTED]


---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange
Satanic messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows

---

-
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: Running Tomcat from jsvc

2004-10-26 Thread Kevin Offet
Hi,
to help cut through the apparent confusion, all you need to do is:
1) change ownership (recursively) of your tomcat install dir to ( if 
your user account that will run tomcat is called for example tomrunner 
) tomrunner.tomrunner.

2) change to that user and decompress and build jsvc (in the 
${tomcat.installdir}/bin dir) according to the straightforward 
instructions included.

3) change ownership of the resulting jsvc binary to root.root (root 
initially runs jsvc which then changes the user to your tomrunner)

4) build yourself a decent startup/shutdown script appropriate to your 
distro and your preferences.

Read The Fine Manual at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html

for all that you'll need to know. jsvc -help will also spit out it's 
allowed parameters that you can play with.

5) go have fun building web-apps. ;-)
Kevin
[EMAIL PROTECTED] wrote:
Wolfgang Hackl wrote:
Hi Volkmar,
did you check the file system permissions of your $CATALINA_HOME 
directory? As I can see from my installations, server.xml has read and 
write permissions exclusively for its owner. My conclusion is that the 
directory must belong to the user, will run the service (wwwrun says 
your Tomcat5.sh).

Hi Wolfgang,
I got everything in /opt/jakarta-tomcat-5.0.28 owned by root:root.
So you mean, I should change all files in the conf subdirectory to be 
owned by wwwrun? Or is it better/safer to just make those files world 
readable/writeable and leaving them owned by root:root?

When, during installation of Tomcat should I have changed the ownership 
or permissions of which files? I've installed Tomcat using
  cd /opt
  sudo tar xzf /tmp/jakarta-tomcat-5.0.28.tar.gz
so that I got everything owned by root:root.

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


RE: setting up CVS dev environment

2004-01-05 Thread Filip Hanik
I just do 

cvs co jakarta-tomcat-5
cd jakarta-tomcat-5
(edit build.properties.default if you wish)
ant checkout
ant download
ant dist



and that is it

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 10:39 AM
To: Tomcat Users List
Subject: RE: setting up CVS dev environment



Howdy,

I followed the instructions for setting up a CVS environment using my
fedora linux system found at
http://jakarta.apache.org/site/cvsindex.html, and after checking out
the
jakarta-tomcat-5 module and reading the BUILDING.txt file, I found that
it is much easier to get the file :
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/build.xml and just
typing in 'ant', assuming you have ant installed.

Should this be documented anywhere?  Are the tomcat docs in CVS where
this can be updated?

This is documented already:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/building.html.

PS.  Is there a TODO page anywhere for tomcat 5, I would like to
start
dabbling in the source code, and try to help out.

Run an open issues report for tomcat 5 in bugzilla.

Yoav Shapira



This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for 
the individual(s) to whom it is addressed, and may not be saved, 
copied, printed, disclosed or used by anyone else.  If you are not 
the(an) intended recipient, please immediately delete this e-mail 
from your computer system and notify the sender.  Thank you.


-
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: TC5 won't start on Xeon

2004-01-19 Thread Ben Souther
No, I meant javac.  This checks for two things at once.

1.) that the env variable is set.
2.) that indeed the full j2sdk was installed and not just a jre ;-)




On Monday 19 January 2004 07:31 am, K. Harvatis wrote:
 You mean \java, and not \javac :)

 Program path, JAVA_HOME and java in general (1.3) are ok. What puzzles me
 is that the window:
 - closes anyway
 - closes at light speed!




 Kostas Harvatis
 -
 National Center for Social Research - Directorate of Research Support
 www.ekke.gr


 - Original Message -
 From: Ben Souther [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Monday, January 19, 2004 2:31 PM
 Subject: Re: TC5 won't start on Xeon

  Just to get the dumb questions out of the way
 
  Did you test that JAVA_HOME is set properly?
  Type:
  %JAVA_HOME%/bin/javac
 
  If you get a file or program not found error then it's not.
 
  On Monday 19 January 2004 07:25 am, K. Harvatis wrote:
   No change - window closes as soon as I hit enter...
  
In Catalina.bat replace the below line with
   
 set _EXECJAVA=start Tomcat %_RUNJAVA%
   
With
   
 set _EXECJAVA= %_RUNJAVA%
   
Then cd to the bin directory and type
Catalina start

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

-- 
Ben Souther
F.W. Davison  Company, Inc.



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



Re: TC5 won't start on Xeon

2004-01-19 Thread Ben Souther
Does TC5 run on 1.3?

As far as I know it was compiled on 1.4x.


On Monday 19 January 2004 07:36 am, Ben Souther wrote:
 No, I meant javac.  This checks for two things at once.

 1.) that the env variable is set.
 2.) that indeed the full j2sdk was installed and not just a jre ;-)

 On Monday 19 January 2004 07:31 am, K. Harvatis wrote:
  You mean \java, and not \javac :)
 
  Program path, JAVA_HOME and java in general (1.3) are ok. What puzzles me
  is that the window:
  - closes anyway
  - closes at light speed!
 
 
 
 
  Kostas Harvatis
  -
  National Center for Social Research - Directorate of Research Support
  www.ekke.gr
 
 
  - Original Message -
  From: Ben Souther [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Monday, January 19, 2004 2:31 PM
  Subject: Re: TC5 won't start on Xeon
 
   Just to get the dumb questions out of the way
  
   Did you test that JAVA_HOME is set properly?
   Type:
   %JAVA_HOME%/bin/javac
  
   If you get a file or program not found error then it's not.
  
   On Monday 19 January 2004 07:25 am, K. Harvatis wrote:
No change - window closes as soon as I hit enter...
   
 In Catalina.bat replace the below line with

  set _EXECJAVA=start Tomcat %_RUNJAVA%

 With

  set _EXECJAVA= %_RUNJAVA%

 Then cd to the bin directory and type
 Catalina start
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison  Company, Inc.



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



Re: TC5 won't start on Xeon

2004-01-19 Thread Ben Souther
Just checked. TC5 does run on 1.3.1


On Monday 19 January 2004 07:39 am, Ben Souther wrote:
 Does TC5 run on 1.3?

 As far as I know it was compiled on 1.4x.

 On Monday 19 January 2004 07:36 am, Ben Souther wrote:
  No, I meant javac.  This checks for two things at once.
 
  1.) that the env variable is set.
  2.) that indeed the full j2sdk was installed and not just a jre ;-)
 
  On Monday 19 January 2004 07:31 am, K. Harvatis wrote:
   You mean \java, and not \javac :)
  
   Program path, JAVA_HOME and java in general (1.3) are ok. What puzzles
   me is that the window:
   - closes anyway
   - closes at light speed!
  
  
  
  
   Kostas Harvatis
   -
   National Center for Social Research - Directorate of Research Support
   www.ekke.gr
  
  
   - Original Message -
   From: Ben Souther [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Monday, January 19, 2004 2:31 PM
   Subject: Re: TC5 won't start on Xeon
  
Just to get the dumb questions out of the way
   
Did you test that JAVA_HOME is set properly?
Type:
%JAVA_HOME%/bin/javac
   
If you get a file or program not found error then it's not.
   
On Monday 19 January 2004 07:25 am, K. Harvatis wrote:
 No change - window closes as soon as I hit enter...

  In Catalina.bat replace the below line with
 
   set _EXECJAVA=start Tomcat %_RUNJAVA%
 
  With
 
   set _EXECJAVA= %_RUNJAVA%
 
  Then cd to the bin directory and type
  Catalina start
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison  Company, Inc.



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



Re: TOMCAT and JNI problem...

2004-01-26 Thread J.Pablo M
Did you try to startup Tomcat with the same script, without using your 
library, in order to check if the script works right?
YES I start up the tomcat with the same script to test other 
applications that doesn't  work with JNI and everything goes fine.

Pablo  Vidal




From: Giuseppe Briotti [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: TOMCAT and JNI problem... Date: Mon, 26 Jan 2004 17:29:02 
+0100 (CET)

 Then I made a script to start the tomcat with the LD_LIBRARY_PATH
 environment variable set up:
 -
 #!/bin/sh
 export JAVA_HOME=/opt/java
 export CATALINA_HOME=/usr/local/jakarta-tomcat
 export PATH=${JAVA_HOME}/bin:${PATH}
 export JAVA_PATH=${JAVA_HOME}
 # path to load the libhtd.so shared library
 export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/myuser/lib

 cd /usr/local/jakarta-tomcat/bin
 sh startup.sh
 -

Did you try to startup Tomcat with the same script, without using your 
library, in order to check if the script works right?

Sometimes I had such error when I forgot to set JAVA_HOME or CATALINA_HOME 
properly :-)))

G

--

Giuseppe Briotti
[EMAIL PROTECTED]
Alme Sol, curru nitido diem qui
promis et celas aliusque et idem
nasceris, possis nihil urbe Roma
visere maius.
 (Orazio)


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Las mejores tiendas, los precios mas bajos, entregas en todo el mundo, 
YupiMSN Compras: http://latam.msn.com/compras/

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


Problem With 3rd Party App Running Under Tomcat 4.1.29

2004-01-27 Thread Michael Duffy
I'm having a problem with a 3rd party app running
under Tomcat 4.1.29 on a Windows 2000 server and Sun's

JDK 1.4.1.

The 3rd party app has been running just fine for
months under Tomcat 4.0.6, which they included in
their install CD with JRE 1.4.1.

I asked them if we could move the app to run under
Tomcat 4.1.29, so they provided instructions on how to
accomplish this.

I installed Tomcat 4.1.29 as a Windows service using
an install script that I've been successful with many
times before.  Tomcat 4.1.29 runs fine.  I can log in
as manager and run all the servlet and JSP examples. 
(That's a key point.)  I've got JAVA_HOME,
CATALINA_HOME, and TOMCAT_HOME environment variables
set properly.  These values are identical to the ones
used in the service install script.

Now when I try to invoke the 3rd party app running
under Tomcat 4.1.29, I get this exception:

java.lang.RuntimeException: No compiler found in your
classpath. Make sure you added 'tools.jar'

Cocoon is looking for com.sun.tools.javac.Main and not
finding it.  But tools.jar is right there in
JAVA_HOME/lib, as it should be.

Why am I getting this exception?  Why does the 3rd
party app not see tools.jar?  Wouldn't the example
JSPs fail to compile if tools.jar were not visible? 
Thanks - MOD


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



Re: Problem With 3rd Party App Running Under Tomcat 4.1.29

2004-01-28 Thread Michael Duffy

Problem solved.  Just add tools.jar to the classpath
for the service and all is well.  (d'oh!) 

I didn't expect it, because Tomcat itself wasn't
complaining.  - MOD


--- Michael Duffy [EMAIL PROTECTED] wrote:
 I'm having a problem with a 3rd party app running
 under Tomcat 4.1.29 on a Windows 2000 server and
 Sun's
 
 JDK 1.4.1.
 
 The 3rd party app has been running just fine for
 months under Tomcat 4.0.6, which they included in
 their install CD with JRE 1.4.1.
 
 I asked them if we could move the app to run under
 Tomcat 4.1.29, so they provided instructions on how
 to
 accomplish this.
 
 I installed Tomcat 4.1.29 as a Windows service using
 an install script that I've been successful with
 many
 times before.  Tomcat 4.1.29 runs fine.  I can log
 in
 as manager and run all the servlet and JSP examples.
 
 (That's a key point.)  I've got JAVA_HOME,
 CATALINA_HOME, and TOMCAT_HOME environment variables
 set properly.  These values are identical to the
 ones
 used in the service install script.
 
 Now when I try to invoke the 3rd party app running
 under Tomcat 4.1.29, I get this exception:
 
 java.lang.RuntimeException: No compiler found in
 your
 classpath. Make sure you added 'tools.jar'
 
 Cocoon is looking for com.sun.tools.javac.Main and
 not
 finding it.  But tools.jar is right there in
 JAVA_HOME/lib, as it should be.
 
 Why am I getting this exception?  Why does the 3rd
 party app not see tools.jar?  Wouldn't the example
 JSPs fail to compile if tools.jar were not visible? 
 Thanks - MOD
 
 
 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free web site building tool.
 Try it!
 http://webhosting.yahoo.com/ps/sb/
 

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

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



Question about webapp deployment or re-deployment

2004-02-03 Thread Tom . Williams





Hi!  I've got Tomat 4.1 .29 and Tomcat 5.0.18 up and running on a Windows
2000 server to test a webapp we're developing as well as learn some of the
environmental issues that might impact our app when we deploy it in
production environments.

Currently, we use ant to build a war file that is then used to install the
webapp via the Tomcat Manager web interface.We upload the war directly
with the Manager and it deploys the webapp.Then I stop the webapp and
update web.xml to configure some data sources and some servlet mappings and
restart Tomcat and the webapp.  I'm working with Tomcat 4.1.29 when doing
this.   That works fine and my webapp runs just fine.   Now, when I make
changes to the webapp that I need to get installed, I'm not sure how to
upgrade (effectively) the running webapp.   I've been removing it and
re-deploying it but that results in the web.xml changes being lost.

I can't guarantee ant will be installed on the target server, so I'm trying
to develop an installation and upgrade process that doesn't involve ant.
When we install our webapp in a production environment, we'll most likely
have a pre-built war on a CD that we install from.

I've been reading a TON of great info on re-deploying webapps but they all
seem to involve running ant to handle the re-deployment.Will I be
forced to use ant or is there another way to 'upgrade' or re-deploy an
existing running webapp?

I will be working on procedures for Tomcat 4.1.29 and Tomcat 5.0.18 as I
think they handle re-deployment differently, but I'm not sure.

Thanks in advance for your time and help.

Peace

Tom


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



RE: $JAVA_HOME error

2004-02-04 Thread Filip Hanik \(lists\)
do

export JAVA_HOME=/usr/java/j2re1.4.2_03
export PATH=$JAVA_HOME/bin:$PATH
cd jakarta-tomcat-4.1.29/bin/
chmod +x startup.sh
./startup.sh


Filip




-Original Message-
From: Tony Sutton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 3:14 PM
To: [EMAIL PROTECTED]
Subject: $JAVA_HOME error


Hi there,

I'm new to using jakart.

I'm trying to get jakart v4.1.29 to run under Mandrake 9.1

I have downloaded and installed JRE from Sun, version 1.4.2_03. The
installation went well. Here's the output from my Linux box:

[EMAIL PROTECTED] tony]$ which java
/usr/java/j2re1.4.2_03/bin/java
[EMAIL PROTECTED] tony]$ echo $JAVA_HOME
/usr/java/j2re1.4.2_03
[EMAIL PROTECTED] tony]$

OK so far.

However, I tried to start jakart by going to the  jakarta-tomcat-4.1.29/bin/
directory and typed in:

sh startup.sh

I get this error message:

[EMAIL PROTECTED] bin]$ sh startup.sh
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
[EMAIL PROTECTED] bin]$

I can't figure out what I am doing wrong. I have tried googling for it, but
it came back very little.

Does anyone know why I am getting this error message?

Thanks,

Tony Sutton




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.577 / Virus Database: 366 - Release Date: 2/3/2004


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



RE: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share

2004-02-10 Thread Anthony Gray
you should be able to compile from the mod_jk2 source using the following 
method :
- cd jk2source/jk/native2/
- ./configure --with-apxs2=path to apxs in the apache2 dir 
--with-apache=path to apache2
(ie ./configure --with-apxs2=/usr/local/apache2/bin/apxs 
--with-apache=/usr/local/apache)
- make
- you should then find the mod_jk2.so in jk2 source/jk/build/jk2/apache2/

I was able to use the following method successfully for apache2 (built from 
source), tomcat 4 and 5, and mod_jk2 (source).

Anthony



From: Phupha Punyapotasakul [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 
4.1.xx, please share
Date: Wed, 11 Feb 2004 11:26:37 +0700

I've spent so much time to compile mod_jk2 but not success. Is it possible
to download build version from internet ? Please tell me where to download.
My Machine
===
Linux RH9 + Tomcat4.1.27 (Apache Httpd is bundle with RH9)
I can't compile because, httpd on RH9 don't have apxs2

Thank you for advance.
Phupha
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get less junk mail with ninemsn Premium. Click here  
http://ninemsn.com.au/premium/landing.asp

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


RE: Does anyone have successfully build mod_jk2 on RH9 with Tomcat 4.1.xx, please share

2004-02-11 Thread David Smith
I use Mandrake and it's not too far off of RH as far as package 
structure.  Did you install the apache2-devel package?  I believe 
that's needed to get apxs on your system.  I built mod_jk with apxs 
on my Mandrake 9.2 system no problem.

--David

you should be able to compile from the mod_jk2 source using the 
following method :
- cd jk2source/jk/native2/
- ./configure --with-apxs2=path to apxs in the apache2 dir 
--with-apache=path to apache2
(ie ./configure --with-apxs2=/usr/local/apache2/bin/apxs 
--with-apache=/usr/local/apache)
- make
- you should then find the mod_jk2.so in jk2 source/jk/build/jk2/apache2/

I was able to use the following method successfully for apache2 
(built from source), tomcat 4 and 5, and mod_jk2 (source).

Anthony


From: Phupha Punyapotasakul [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Does anyone have successfully build mod_jk2 on RH9 with 
Tomcat 4.1.xx, please share
Date: Wed, 11 Feb 2004 11:26:37 +0700

I've spent so much time to compile mod_jk2 but not success. Is it possible
to download build version from internet ? Please tell me where to download.
My Machine
===
Linux RH9 + Tomcat4.1.27 (Apache Httpd is bundle with RH9)
I can't compile because, httpd on RH9 don't have apxs2

Thank you for advance.
Phupha
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get less junk mail with ninemsn Premium. Click here 
http://ninemsn.com.au/premium/landing.asp

-
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: mod_jk

2004-03-06 Thread Mark Eggers
Chris,

Here's how I've compiled mod_jk on Linux (Redhat 9 and
Fedora Core 1).

   1.  Download source
   2. Uncompress it and extract the tar file.
   3. cd to 
  jakarta-tomcat-connectors-jk-1.2.n-src/jk/native
   4. chmod u+x configure
   5. Run configure with:

./configure \
--with-apxs=apache-root-directory/bin/apxs \
--with-java-home=java-root-directory \
--with-jni

For example:

  ./configure --with-apxs=/home/apache/bin/apxs \
  --with-java-home=/usr/java \
  --with-jni
  
   6. If you use Apache 1.3 with SSL (mod_ssl), you 
  will need to add the following to your configure

  command: --enable-EAPI

For example:

  ./configure --with-apxs=/home/apache/bin/apxs \
  --with-java-home=/usr/java \
  --with-jni \
  --enable-EAPI
  
   7. Run make
   8. The .so files will be in the appropriate 
  subdirectories:
  * apache-1.3 - mod_jk for apache 1.3.x
  * apache-2.0 - mod_jk for apache 2.0.x
  * iis - mod_jk for iis
  * jni - jkjni (if selected during configure)
  * netscape - mod_jk for netscape server
  * domino - mod_jk for domino server
   9. Copy those to files to 
  apache-root-directory/modules with the proper 
  permissions.
  10. Configure and restart both Tomcat and the Apache

  web server.

HTH

/mde/

__
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com

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



OT Ann: North East Conference on MVC Frameworks and Struts in 3 weeks:

2004-03-07 Thread Vic Cekvenich
Most people already know what MVC is, once you know what it is, here is 
the next step. Presenting will be the popular frameworks and components 
in use by 8 speakers:

-Ted Husted  Author  Struts Chains/2.0  the dominant framework in 
use, from Ziff Davis, to Apple Store to most large commercial sites.
Husted.com

-Rod Johnson  Author  EJB/Spring
springFrameWork.com
-Christophe Coenraets  Flex-MacroMedia  - back to rich UI w/SOA 
(Great blog entry on Struts + Flex)
markMe.com/cc

-Howard Lewis Ship  Author  HiveMind (SOA, IOC, AOP)   commonly 
referred to as the next big thing
javaTapestry.blogspot.com

-Clinton Begin  DAO/iBatis/SQLMaps  the best DAO layer
imo, used by Spring, jPetStore, basicPortal, etc.
-Matt Raible  Author  displayTag/strutsMenu  (displayTag is my 
favorite J2EE component)
Raibledesigns.com

-Jason Carreira  WebWork 2
freeroller.net/page/jCarreira
- Vic Cekvenich  Author  basicPortal (J2EZ  easy and simple to 
customize application for membership, portal, cms, community, store, 
etc. using bestPractices for large, profitable commercial sites. )

+ more
You will get a CD mailed to you once you register.
April 3rd from 8AM to 7PM in NYC at nyhotel.com, next to MSG. Advertised 
in JDJ, NY Times, etc. My guess is that you wont find half as many good 
sessions at Suns Java One.
It $99 to register now at baseBeans.com, in a few day's price keeps 
going up.



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


Re: Is it possible to use a parameter other than JSESSIONID to maintain session?

2005-03-01 Thread Tim Funk
1) Checkout the source
2) issue the command
cd {tomcat src base}
find . -name '*.java' | xargs grep -i jsessionid
This will tell you all the placed jsessionid is used.
-Tim
Garth Patil wrote:
Changing the name in Globals.java seems to partially work. Now, in
order to have Tomcat just use that value, and not try to rewrite it
(or expect it in a specific format), I need to find where in the code
Tomcat looks up that parameter, and where it rewrites it to the URL.
Can anyone familiar with the code point me in the right direction?
Thanks again,
Garth

You *might* be able to recompile tomcat with only changing:
jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/Globals.java
-Tim
Garth Patil [EMAIL PROTECTED] wrote:
Hi,
I'm currently working on a server application using Tomcat, and I've
run into a snag. The clients for the application are custom HTTP
clients (a provider's custom client that won't be changing on our
behalf) that do not have the ability to persist the JSESSIONID in the
request. However, there is already a unique parameter (let's call it
CUSTOMPARAM) that they do send with every POST to us.  I still want to
use Tomcat's sessioning, but I need it to do two things:
1. Use the CUSTOMPARAM as the unique session parameter.
2. Not rewrite the parameter in the response, leaving that control to
my application.
Is there a way to just tell Tomcat in the configuration that I want it
to use a different parameter to identify the session, and that I don't
need it to rewrite it in my response? I've been through the docs, a
book on Tomcat 5, and the mailing list archives, and I haven't been
able to find anything.
Thanks,
Garth

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


Strange WAR file creation error

2005-03-02 Thread Douglass Turner
Hello,

I am trying to create a WAR file of the following directoy:
duglaDataModel/
duglaDataModel/DataController.as
duglaDataModel/duglaDataModel.mxml
duglaDataModel/Employee.as
duglaDataModel/employees.xml
duglaDataModel/locations.xml
duglaDataModel/WEB-INF/
duglaDataModel/WEB-INF/classes/
duglaDataModel/WEB-INF/web.xml

So I cd to duglaDataModel and type: 
jar cvf c:\downloads\duglaDataModel .war .

But this fails with and exception:
added manifest
adding: DataController.as(in = 958) (out= 452)(deflated 52%)
adding: duglaDataModel.mxml(in = 2378) (out= 637)(deflated 73%)
adding: Employee.as(in = 391) (out= 210)(deflated 46%)
adding: employees.xml(in = 468) (out= 154)(deflated 67%)
adding: locations.xml(in = 225) (out= 80)(deflated 64%)
adding: WEB-INF/(in = 0) (out= 0)(stored 0%)
adding: WEB-INF/classes/(in = 0) (out= 0)(stored 0%)
adding: WEB-INF/web.xmljava.util.zip.ZipException: attempt to write
past end of STORED entry
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:264)
at sun.tools.jar.Main.addFile(Main.java:614)
at sun.tools.jar.Main.create(Main.java:412)
at sun.tools.jar.Main.run(Main.java:142)
at sun.tools.jar.Main.main(Main.java:903)


Why? Note, as far as I can tell the directory is just fine since I can
copy it into webapps and the application works. I just can't WAR'ize
the directory. Any ideas?

Thanks,
Douglass Turner
email: douglass_dot_turner_at_gmail_dot_com

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



RE: Limit catalina.out size

2005-03-29 Thread Michael Cornell
I would imagine that tomcat is logging using commons-logging, and that by
default it is outputting to Catalina.out

A suggested solution would be to include for example log4j.jar with a
log4j.properties in the classpath which should control how this log is
produced (consoleAppender output seems to go to Catalina.out)

Saying that, I too have problems not writing to Catalina.out in redhat linux
es3 with tomcat 5.0.25.  Maybe there is a general solution that someone who
has more intricate knowledge of how tomcat logs has??


/michael

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: 29 March 2005 16:11
To: Tomcat Users List
Subject: Re: Limit catalina.out size

There shouldn't be anything going to standard output (Unless your code is 
writing to System.out)

An overly simple way to rotate logs in unix ...
cd $tomcat_log_dir
cp -f catalina.out catalina.out.`date +%Y.%m.%d`
cat /dev/null  catalina.out

-Tim

Jimmy Ray wrote:
 Running on HPUX...SDK 1.4.2...the standard output is
 going to catlaina.out.  Is it possible to change the
 logger settings reduce the size of the catalina.out
 file and perform circular logging?  If so where are
 these settings?
 
 Regards,
 
 Jimmy Ray

-
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: Container Managed Security?

2005-04-09 Thread Gurumoorthy
Use LDAP Based authentication ... I have this working very nicely only our
servers
Read JNDI Realm topic of tomcat
Gurus
- Original Message -
From: Bjørn T Johansen [EMAIL PROTECTED]
To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Thursday, April 07, 2005 7:05 AM
Subject: Container Managed Security?


 I have a small question... I am used to providing my own authentication
system when
 developing web systems, but I am now looking into providing container
based security
 instead. But when writing authentication myself, I have full control and
can put
 differenf information that I need into the session scope. How do I do this
using
 Tomcat's FORM-based authentication? Is there some listener I can hook onto
or similar?


 Regards,

 BTJ
 --
 --
-
 Bjørn T Johansen

 [EMAIL PROTECTED]
 --
-
 Someone wrote:
 I understand that if you play a Windows CD backwards you hear strange
Satanic messages
 To which someone replied:
 It's even worse than that; play it forwards and it installs Windows
 --
-

 -
 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: Container Managed Security?

2005-04-09 Thread Bjørn T Johansen
That doesn't help with my problem, does it? I need to create a session object 
when
a user logs in, is this possible?

BTJ

Gurumoorthy wrote:
 Use LDAP Based authentication ... I have this working very nicely only our
 servers
 Read JNDI Realm topic of tomcat
 Gurus
 - Original Message -
 From: Bjørn T Johansen [EMAIL PROTECTED]
 To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
 Sent: Thursday, April 07, 2005 7:05 AM
 Subject: Container Managed Security?
 
 
 
I have a small question... I am used to providing my own authentication
 
 system when
 
developing web systems, but I am now looking into providing container
 
 based security
 
instead. But when writing authentication myself, I have full control and
 
 can put
 
differenf information that I need into the session scope. How do I do this
 
 using
 
Tomcat's FORM-based authentication? Is there some listener I can hook onto
 
 or similar?
 

Regards,

BTJ
--
--
 
 -
 
Bjørn T Johansen

[EMAIL PROTECTED]
--
 
 -
 
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange
 
 Satanic messages
 
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
--
 
 -
 
-
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]
 

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



RE: Multiple tomcat instances

2005-04-15 Thread Peter Crowther
 From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
 Is it possible to run multiple instances of tomcat on the same server,
 for example to support production and test environments ?

Yes.  I run up to four on this machine - two (one 4.1, one 5.0) are
running as I type this.

Here's a Windows script that works (give or take the HOME path) for
Tomcat 4 and 5.0 - untested on 5.5, but I can't see why it should fail.
The UNIX equivalent is pretty obvious.  Check out CATALINA_HOME - where
Tomcat is installed - versus CATALINA_BASE - where this instance stores
its files.  Note the JAVA_OPTS for increased stack and heap sizes, too;
this line is optional.

C:\cattery is where I store the data for the four instances.

-- snip --
set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
set CATALINA_BASE=c:\cattery\instance1
set JAVA_OPTS=-Xms64m -Xmx256m
cd %CATALINA_HOME%\bin
startup
-- snip --

Under CATALINA_BASE for each instance, you'll need conf, logs, temp,
webapps, and work directories.  The easiest way to create these is to
copy them from CATALINA_HOME.  You'll then need to modify
conf/server.xml to make sure each instance is running on its own ports -
don't forget to change the shutdown port!

Good luck, yell if you have any problems getting this to work.

- Peter

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



Re: Multiple tomcat instances

2005-04-15 Thread Anto Paul
On 4/15/05, Peter Crowther [EMAIL PROTECTED] wrote:
  From: Kelly, Steve [mailto:[EMAIL PROTECTED]
  Is it possible to run multiple instances of tomcat on the same server,
  for example to support production and test environments ?
 
 Yes.  I run up to four on this machine - two (one 4.1, one 5.0) are
 running as I type this.
 
 Here's a Windows script that works (give or take the HOME path) for
 Tomcat 4 and 5.0 - untested on 5.5, but I can't see why it should fail.
 The UNIX equivalent is pretty obvious.  Check out CATALINA_HOME - where
 Tomcat is installed - versus CATALINA_BASE - where this instance stores
 its files.  Note the JAVA_OPTS for increased stack and heap sizes, too;
 this line is optional.
 
 C:\cattery is where I store the data for the four instances.
 
 -- snip --
 set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
 set CATALINA_BASE=c:\cattery\instance1
 set JAVA_OPTS=-Xms64m -Xmx256m
 cd %CATALINA_HOME%\bin
 startup
 -- snip --
 
 Under CATALINA_BASE for each instance, you'll need conf, logs, temp,
 webapps, and work directories.  The easiest way to create these is to
 copy them from CATALINA_HOME.  You'll then need to modify
 conf/server.xml to make sure each instance is running on its own ports -
 don't forget to change the shutdown port!
 
 Good luck, yell if you have any problems getting this to work.
 
- Peter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

If you have more than one IP address you can run more than one
instances on same machine on same port but different IP addresses. You
have to specify the IP address in the address attribute of
Connector/ element.

-- 
Anto Paul

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



RE: Multiple tomcat instances

2005-04-15 Thread Fritz Schneider
Another option which uses fewer resources but doesn't provide quite the same
degree of isolation is to run two hosts in the same Catalina service. If
your DNS maps www.mydomain.com and test.mydomain.com to the same IP address,
they can share the same ports. Each one can have its own logs, Servlet
mappings, and set of apps.

Fritz

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 15, 2005 2:55 AM
To: Tomcat Users List
Subject: RE: Multiple tomcat instances

 From: Kelly, Steve [mailto:[EMAIL PROTECTED] 
 Is it possible to run multiple instances of tomcat on the same server,
 for example to support production and test environments ?

Yes.  I run up to four on this machine - two (one 4.1, one 5.0) are
running as I type this.

Here's a Windows script that works (give or take the HOME path) for
Tomcat 4 and 5.0 - untested on 5.5, but I can't see why it should fail.
The UNIX equivalent is pretty obvious.  Check out CATALINA_HOME - where
Tomcat is installed - versus CATALINA_BASE - where this instance stores
its files.  Note the JAVA_OPTS for increased stack and heap sizes, too;
this line is optional.

C:\cattery is where I store the data for the four instances.

-- snip --
set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
set CATALINA_BASE=c:\cattery\instance1
set JAVA_OPTS=-Xms64m -Xmx256m
cd %CATALINA_HOME%\bin
startup
-- snip --

Under CATALINA_BASE for each instance, you'll need conf, logs, temp,
webapps, and work directories.  The easiest way to create these is to
copy them from CATALINA_HOME.  You'll then need to modify
conf/server.xml to make sure each instance is running on its own ports -
don't forget to change the shutdown port!

Good luck, yell if you have any problems getting this to work.

- Peter

-
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: SSL on multiple IP addreses?

2005-05-12 Thread Trung Nguyen
You can configure multiple IP adresses on a single NIC and add new IP/domain 
name to the server.xml

To configure multiple IP address on a single NIC on Linux (RHEL):
1.  cd /etc/sysconfig/network-scripts
2.  Make a copy of ifcfg-eth0 to ifcfg-eth0:0
3.  Edit ifcfg-eth0:0 and change DEVICE to eth0:0 and change the IPADDR to new 
IP

You can do this as many as you want by increase the last number by 1.

Hope this help.
Trung




-Original Message-
From: David Wall [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 12, 2005 1:31 PM
To: Tomcat Users List
Subject: Re: SSL on multiple IP addreses?


How will you configure multiple IP addresses on a single NIC?  Normally, 
you have one NIC per IP address.  You will need to use two keystores for 
each system, and configure the keystores as you normally would under the 
SSL connector.  I'm not sure how to configure the CoyoteConnector so 
that it will listen on a particular IP address, but the docs no doubt 
explain how.

Good luck...


Paul Singleton wrote:

 I'm trying to set up several SSL-enabled virtual hosts
 under Tomcat 5.5.9 (Linux), each on a different IP address
 (all via the same NIC).

 I think I need a separate certificate (self-signed is OK)
 for each, but cannot see how to associate them...

 Do I have to create separate keystores? or is there a
 neater way?

 Paul Singleton
 Jambusters Ltd



-
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: Setting up the Admin Tool

2005-05-14 Thread Lutz Zetzsche
Hi Philip,

Am Samstag, 14. Mai 2005 14:38 schrieb Philip Cote:
 I'm having a hard time getting the admin tool up and running on
 Tomcat 5.5.7 on Fedora Core Linux.  When I try to link to it from the
 localhost root page, I get a messge telling me I need to install the
 admin package.  Very well.  I go off to download the admin tool and
 use file roller to unzip the thing.  Now I have a file
 jakarta-tomcat-5.5.7-admin.tar-1 sitting in {CATALINA_HOME}/webapps
 directory.  Any ideas?

As far as I remember, it works this way:

1. Download jakarta-tomcat-5.5.7-admin.tar to any directory where you 
would like to keep it, i.e. /tmp/.

2. Change to the $CATALINA_HOME directory:
 cd $CATALINA_HOME

3. Untar the file from there, i.e. /tmp/:
 tar xvfz /tmp/jakarta-tomcat-5.5.7-admin.tar

4. Open $CATALINA_HOME/conf/tomcat-users.xml;
 add there the role admin;
 assign this role to an existing user.

5. Restart Tomcat.

6. Go to the Admin login page and log-in with the user from 4.

That's it.


Best wishes

Lutz


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



Fwd: Re: How to change the SSL port

2005-09-16 Thread CommonGround Softworks/Phil McNamara
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

Reworked to post to the list:

Thanks Jason,
I did a trial start of Tomcat as root to pin down if the failure to bind 
to 443 as a priviliged port was the problem.  Seems so.  The tomcat log 
now shows it can't find the keystore -- expected since that file is 
stashed in the normal starting user directory and tomcat didn't know 
where to find it when started as root. Log doesn't show a failure to bind 
to 443. So some progress

I looked over info in the link above and compiled jsvc OK.  Am unable to 
start Tomcat as a daemon though per the script referenced

cd $CATALINA_HOME

./bin/jsvc \ -user $TOMCAT_USER \ -cp ./bin/bootstrap.jar \ -outfile 
./logs/catalina.out \ -errfile ./logs/catalina.err \
-Djava.endorsed.dirs=./common/endorsed \ -Dcatalina.home=$CATALINA_HOME 
\
-Djava.io.tmpdir=$CATALINA_TMPDIR \ 
org.apache.catalina.startup.Bootstrap start

I'll have to do some tinkering. 

the catalina.err file shows the following:

jsvc error: Cannot continue
dyld: ./bin/jsvc dead lock (dyld operation attempted in a thread already 
doing a dyld operation)
jsvc error: Service did not exit cleanly


Thoughts?
phil



Phil McNamara
CommonGround Softworks Inc.
[EMAIL PROTECTED]
http://www.commongrnd.com



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



Re: newbie: Sample autoexec.bat, pls?

2001-06-17 Thread Luba Powell

Not a problem.  Here it is.

Essential DOS Commands and Concepts
Backup Files
Change the Default Drive
CHDIR (CD) Change Directory Command
COPY Command
DIR (Directory) Command
ERASE Command
File-Naming Conventions
FORMAT Command
MKDIR (MD) Make Directory Command
Rebooting the computer (Ctrl-Alt-Del)
RENAME (REN) Command
RMDIR (RD) Remove Directory Command
Stop Execution (Ctrl-Break)
Introduction
DOS (an acronym for Disk Operation System) is a tool which allows you to
control the operation of the IBM PC. DOS is software which was written to
control hardware. IDRISI, Atlas*GIS, Microstation, AutoCAD, CPS/PC, and
ARC/INFO are, in turn, application software which run under DOS. By this we
mean that, although IDRISI, Atlas*GIS, Microstation, AutoCAD, CPS/PC, and
ARC/INFO were written to accomplish a single task or application (in this
case manipulation of spatially related data), they must use DOS to pursue
its work.
DOS can be used for a wide range of tasks far beyond the requirements of
this class. You will be able to manage well if you master only a small
subset of DOS commands and functions. These relate almost exclusively to
file and directory management and are introduced in this handout.

This tip sheet assumes that you have learned how to turn on the PCs as they
are configured in room 230 and that you have familiarized yourself with
their keyboards (no small task in itself). It also assumes that you
understand the meaning of the concept of a file and the elements of a file
specification (drive, filename, and extension). The microcomputers you will
be using are equipped with two floppy disk drives. The A-drive is the 3.5
(1.44MB) drive and the B-drive is the 5.25 (360KB) drive. The
microcomputers also contain a C-drive, a hard disk drive of 130MB or 200MB
capacity.

You will quickly find that the best way to learn how to use a computer is
through experimentation. That is, once you have learned a command, try some
variations until they don't work, then start over. Often there are five or
six ways for you to accomplish a particular task. Usually, I will introduce
you to only one, leaving it up to you to discover the rest. Don't hesitate
to consult the DOS Reference Manual; copies can be found on the bookcase in
room 230. Finally, don't be unduly disturbed by error messages. With
computers, one of the best ways to learn is by making mistakes.

Most of the common DOS commands you need to use for this class (copy,
rename, delete) are available to you in Windows through the Filemanager
icon. And, since you can move back and forth between DOS and Windows, it
doesn't matter which option you employ. Some commands are faster in invoke
in Windows, some in DOS. If you haven't worked with Windows previously, go
to the Windows tutorials in the help area.


Backup Files
It is possible to lose files by mistake, although the more you practice the
less likely it becomes. For your own peace of mind, it is good practice to
make backup copies of your most valuable files on a separate diskette. Store
your backup disk in a safe place and don't carry it through a metal
detector. Use the COPY command to create the backup.
There is no need to backup every file you create, only the ones in which
you've invested much work. Also, prune your backup diskette every week or
two using the ERASE command. Backup files which have been made redundant by
subsequent additions will simply create clutter on your backup diskette. An
effective file naming convention is essential to keeping track of your
backups.


Change the Default Drive
To change the default drive, simply type the letter of the your choice. The
new default will be listed in subsequent DOS prompts.
Example:


C A: [enter]
Changes the default drive from C to A.
A C: [enter]
Changes the default drive from A to C.
[enter] means that you must press the Enter Key before the format command
will execute. [Enter] is required after any DOS command, it is assumed in
all commands found below.

CHDIR (CD) Change Directory Command
Once you have located the directory you want, you may move from directory to
directory using the CD command (change directory)
Example:


C cd furniture
Moves you to the directory called 'FURNITURE'
C cd \furniture\chairs
Moves you to the directory called 'CHAIRS' under the directory called
'FURNITURE'.
C cd ..
Moves you up one level in the path.
C cd \
Takes you back to the root directory (c: in this case).
COPY Command
The COPY command can be used both to copy files from disk to disk or to
create a second copy of a file on a single disk. (There are many more uses
of the COPY command, but only the basic operation is discussed here.)
Example:


C copy c:kermit.exe a:
Copies the file 'KERMIT.EXE' from the C drive to the A drive and gives it
the same name.
C copy a:brazil1.dat b:\south\brazil2.dat
Creates a copy of 'BRAZIL1.DAT' from drive A on drive B, putting it in the
'SOUTH' subdirectory and renaming it 'BRAZIL2.DAT'.
The key to use this command correctly

Re: Problem building mod_jk2 on Freebsd 4.8-RELEASE

2003-09-07 Thread Luke Vanderfluit
Hi Dean,

I have the same Apache and Tomcat versions on Redhat 9.

I'm not sure if setup is the same but what I did was a lot shorter and
worked, no probs,
first you need the jk2 connectors file

jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

untar it somewhere, then cd to the jk/native2 directory

and do:
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-tomcat41=/usr/local/tomcat/jakarta-tomcat-4.1.27 \
--with-apache2-lib=/usr/local/apache2/lib \
--with-apr-lib=/usr/local/apache2/lib --with-jni 

then
make,

then
cp build/jk2/apache2/mod_jk2.so /usr/local/apache2/modules/
cp build/jk2/apache2/jkjni.so /usr/local/apache2/modules/

then 
##
from tomcat-docs/jk2/jk2/confighowto.html
#
Minimum configuration is the simplest one to make the JK2 working. The
used channel will be socket, and lot of options are used by default.
Both the Tomcat and web server are on the same computer.

jk2.properties:


# The default port is 8009 but you can use another one
# channelSocket.port=8019
That is all needed on the Tomcat side to configure the JK2. 

workers2.properties:


# Define the communication channel 
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
tomcatId=localhost:8009

# Map the Tomcat examples webapp to the Web server uri space
[uri:/examples/*]
info=Map the whole webapp

Start the Tomcat and Web server and browse to the
http://localhost/examples/
###

for me that worked
hope this helps,

kind regards,
Luke


On Mon, 2003-09-01 at 16:13, Dean Searle wrote:
 Hello All!
 
 I am new to this mailing list and somewhat new to Apache and Tomcat. I
 recently have rebuilt my server from the ground up and need to rebuild
 mod_jk2.
 
 Here is what I have so far:
 
 Freebsd 4.8 Release
 Apache 2.0.47
 Tomcat 4.1.27
 Ant 1.5.4
 JDK 1.4.1p3_3
 
 I was following the instructions outline in the book called Tomcat: The
 Definitive Guide by O'Reilly:
 
 ---BEGIN SNIPPET---
 
 
 1. Download a new source code release of jakarta-tomcat-connectors from
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release.
 
 2. Unpack the archive and change directory into the new
 jakarta-tomcat-connectors source directory:
 # gunzip jakarta-tomcat-connectors-4.1.24-src.tar.gz
 # tar xvf jakarta-tomcat-connectors-4.1.24-src.tar
 # cd jakarta-tomcat-connectors-4.1.24-src
 
 3. Make sure that your PATH environment variable points to the bin/
 directory of the latest release of Apache Ant. Download Ant
 from http://ant.apache.org and add $ANT_HOME/bin to your PATH if you
 haven't already:
 # PATH=$PATH:/usr/local/apache-ant-1.5.2
 # export PATH
 # which ant
 /usr/local/apache-ant-1.5.2/bin/ant
 
 4. Make sure that your JAVA_HOME environment variable is set and points
 to your JDK:
 # JAVA_HOME=/usr/local/jdk1.3.1_02
 # export JAVA_HOME
 # echo $JAVA_HOME
 /usr/local/jdk1.3.1_02
 
 5. Create a usable copy of the util/build.properties file:
 # cp util/build.properties.sample util/build.properties
 
 6. Create a usable copy of the jk/build.properties file:
 # cp jk/build.properties.sample jk/build.properties
 
 7. Edit the new jk/build.properties file, changing only the lines that
 apply to the Tomcat and Apache httpd versions that you have
 and want to use. For example, if you have Tomcat 4.1 and Apache httpd 2,
 change the following lines to point to where yours
 are installed (leave everything else in this file alone):
 tomcat41.home=/usr/local/jakarta-tomcat-4.1.24
 apache2.home=/usr/local/apache2
 
 8. Create a usable copy of the coyote/build.properties file:
 # cp coyote/build.properties.sample coyote/build.properties
 
 9. Edit the new coyote/build.properties file, changing the value of
 catalina.home to point to your Tomcat installation directory:
 catalina.home=/usr/local/jakarta-tomcat-4.1.24
 
 10. Run ant from the top level of the jakarta-tomcat-connectors source
 directory to build mod_jk2 and the Java side of the
 connector:
 # cd /usr/local/jakarta-tomcat-connectors-4.1.24-src
 # ant
 
 11. If you're building on Linux, copy the linux headers into the root of
 the JDK's include directory (this will allow you to avoid a
 known build problem with mod_jk2 and Linux):
 # cd $JAVA_HOME/include
 # cp linux/* .
 
 12. Build mod_jk2 by calling the native build target from within the jk
 directory:
 # cd jk
 # ant native
 
 ---END SNIPPET---
 
 When I ran ant native here is the response I get:
 
 fbsd2# ant native
 Buildfile: build.xml
 
 jkant:
 [mkdir] Created dir:
 /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/class
 es
 [mkdir] Created dir:
 /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/class
 es/META-INF
 [mkdir] Created dir:
 /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/lib
 [javac] Compiling 17 source files to
 /usr/ports/distfiles/jakarta-tomcat-connectors-4.1.27-src/jk/build/class
 es
  [copy] Copying 1 file to
 /usr/ports/distfiles/jakarta-tomcat

Support Information Regarding - CD-Key Issues

2005-02-03 Thread support
Thank you for emailing Blizzard Entertainments Technical Support Department. In 
order to provide you with greater assistance, we have developed an automated 
reply system which evaluates your message and generates a detailed response 
towards it. 

Please read through this message as our automated reply system has helped many 
of our customers. If the response given below does not assist you or it is not 
relevant towards your message, please reply back to this email and a live 
technician will respond to you as soon as possible.


==
Support Information Regarding - CD-Key Issues:
==

For information regarding your CD-Key, please check out our web site on CD-Key 
issues: 
Diablo II - (http://www.blizzard.com/support/?id=mdt000p)
Warcraft II Battle.net Edition - (http://www.blizzard.com/support/?id=mwb000p)
StarCraft - (http://www.blizzard.com/support/?id=msc000p)
Warcraft III - (http://www.blizzard.com/support/?id=mwr000p)

Blizzard employees will not ask for your CD-Key unless you are contacting us 
about problems specific to your CD-Key (Blizzard employees on Battle.net have a 
Blizzard logo or a blue cape and plate mail, depending on the game title).

If you are inquiring about your World of Warcraft Authentication Key, please go 
to our Billing Support site at 
(http://www.blizzard.com/support/wowBilling/?id=mbl000p#43).


Again, if the response given above has not assisted you or it was not relevant 
towards your message, please reply back to this email and a live technician 
will respond to you as soon as possible.

Best Regards,
Blizzard Support Team
http://www.blizzard.com/support
Blizzard Entertainment

If you respond to this email, please attach all previous messages and files 
relating to this issue.

-Original Message-
From: tomcat-user@jakarta.apache.org
Sent: 2/3/2005 3:44:40 PM
To: tomcat-user@jakarta.apache.org; [EMAIL PROTECTED]
Subject: IsUserInRole Question

Here is my web.xml and server.xml.  Thank you for your help!

?xml version=1.0 encoding=ISO-8859-1?

web-app
display-nameNtlmHttpAuthExample/display-name
descriptionNtlmHttpAuthExample/description

  servlet
servlet-nameNtlmHttpAuthExample/servlet-name
servlet-classNtlmHttpAuthExample/servlet-class
  /servlet
servlet-mapping
   
servlet-nameNtlmHttpAuthExample/servlet-name
   
url-pattern/servlet/NtlmHttpAuthExample/url-pattern
/servlet-mapping

filter
filter-nameNtlmHttpFilter/filter-name
   
filter-classjcifs.http.NtlmHttpFilter/filter-class

init-param
   
param-namejcifs.http.domainController/param-name
param-valuecurry/param-value
/init-param

/filter

filter-mapping
filter-nameNtlmHttpFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

/web-app



___ server.xml_

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
 parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
 which may contain one or more Service
instances.  The Server
 listens for a shutdown command on the indicated port.

 Note:  A Server is not itself a Container, so you may not
 define subcomponents such as Valves or Loggers at this level.
 --

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g.
Valves/Realms) by 
   including your own mbean-descriptor file(s), and setting the 
   descriptors attribute to point to a ';'
seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g.
descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue
type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
   
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

  !-- A Service is a collection of one or more Connectors that share
   a single Container (and therefore the web applications visible
   within that Container).  Normally

RE: JK2 unixsocket: Can't create apr

2002-11-13 Thread Brzezinski, Paul J
Original post came from Tomcat Users, replying/cross-posting...



: -Original Message-
: From: Costin Manolache [mailto:cmanolache;yahoo.com] 
: Sent: Wednesday, November 13, 2002 3:16 PM
: To: Tomcat Developers List
: Subject: RE: JK2 unixsocket: Can't create apr
: 
: 
: Very weird. 
: 
: Are you using the latest commons-logging.jar ? JDK1.4 or 1.3 
: ? Do you have log4j ?

Yes -- *I* get this error on 4.1.12/5.0 on Solaris 8, hopefully Robert
Williams can provide details about his specfic config:


I have:

j2sdk1.4.1
commons-logging-1.0.2
jakarta-log4j-1.2.6

Tried this against:
jakarta-tomcat-4.1.12
jakarta-tomcat-4.1.12-LE-jdk14
jakarta-tomcat-5

I get the same error -- can't create apr...

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
 at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)

: The problem seems releated to class loading ( as usual :-).

Yeah, but how do we work-around it or solve it permanently.  I've tried
massaging the catalina.sh startup script to include commons-logging.jar in
CLASSPATH that gets passed to the JVM at startup.

I've put commons-logging.jar in $CATALINA_HOME/server/lib even though
commons-logging-api.jar exists there.

I see in the -LE-jdk14 that there's a log4j.rename-to-jar.  What's the
confidence level that this will resolve this problem?

Is this a problem on other platforms?

Is this NOT a problem on Linux?

: Costin
: 
: 
: Brzezinski, Paul J wrote:
: 
:  I wonder if a better question is:
:  
:  Is anyone using the ChannelUnix (AF_UNIX socket) connector on any 
:  platform?
:  
:  On what platforms is the ChannelUnix (AF_UNIX socket) connector 
:  actually known to function?
:  
:  
:  
:  : -Original Message-
:  : From: Robert Williams [mailto:rcw1;pacbell.net]
:  : Sent: Wednesday, November 13, 2002 1:05 PM
:  : To: Tomcat User
:  : Subject: JK2 unixsocket: Can't create apr
:  :
:  : 
:  : Hi all,
:  : I am trying to implement the unixsocket on JK2. While the
:  : channelSocket
:  : works fine I was hoping to get the speed benefits of a
:  : unixsocket. I am
:  : using the example setups in the JK2 documentation. And since
:  : it seems to
:  : be looking for  the LogFactory I have made sure that
:  : commons-logging-api.jar  was in the Tomcat common/lib and I
:  : also put it
:  : in java/jre/lib/ext as well. All to no avail. I am 
: stumped. I haven't
:  : been able to find anything in the list or on google 
: addressing this
:  : problem. Some docs regarding channelSocket say disable 
: apr for this
:  : error but apparently unixsocket won't work without apr
:  : enabled. Any help
:  : would be appreciated.
:  : Thanks Robert
:  : 
:  : jakarta-tomcat-4.1.12
:  : jakarta-tomcat-connectors-4.1.12
:  : Apache/2.0.43
:  : Solaris 9
:  : 
:  : Nov 13, 2002 9:29:04 AM org.apache.jk.server.JkMain newHandler
:  : SEVERE: Can't create apr
:  : java.lang.NoClassDefFoundError: 
: org/apache/commons/logging/LogFactory
:  : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
:  : at java.lang.Class.forName0(Native Method)
:  : at java.lang.Class.forName(Class.java:130)
:  : at org.apache.jk.server.JkMain.newHandler(JkMain.java:494)
:  : at org.apache.jk.server.JkMain.start(JkMain.java:316)
:  : at
:  : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.jav
:  : 
:  : workers2.properties
:  : 
:  : [shm]
:  : file=${serverRoot}/logs/shm.file
:  : size=1048576
:  : 
:  : # Example unixsocket channel.
:  : [channel.un:unixsocket]
:  : file=/usr/local/tomcat/work/jk2.socket
:  : 
:  : # define the worker
:  : [ajp13:unixsocket]
:  : channel=channel.un:unixsocket
:  : 
:  : # Uri mapping
:  : [uri:/examples/*]
:  : worker=ajp13:unixsocket
:  : 
:  : jk2.properties
:  : # list of needed handlers.
:  : handler.list=apr,channelUnix,request
:  : 
:  : # Location of the socket.
:  : channelUnix.file=${jkHome}/work/jk2.socket
:  : 
:  : # Dynamic library
:  : apr.NativeSo=${jkHome}/lib/jkjni.so
:  : 
:  : jk2.properties.save
:  : #AUTOMATICALLY GENERATED
:  : #Wed Nov 13 09:38:33 PST 2002
:  : handler.list=apr,channelUnix,request
:  : secure=false
:  : soTimeout=2
:  : port=8009
:  : jkHome=/usr/local/jakarta-tomcat-4.1.12
:  : maxThreads=75
:  : backlog=10
:  : apr.NativeSo=${jkHome}/lib/jkjni.so
:  : timeout=2
:  : channelUnix.file=${jkHome}/work/jk2.socket
:  : tcpNoDelay=true
:  : 
:  : 
:  : Build Apache
:  : ./configure --with-mpm=worker --enable-so --enable-layout=Apache
:  : --enable-module=most --enable-mods-shared=most
:  : make
:  : make install
:  : 
:  : Build jk2 Conector
:  : cd ${conector.home}/jk/native2
:  : sh ./buildconf.sh
:  : 
:  : cp  /usr/java/include/solaris to /usr/java/include/
:  : 
:  : CPPFLAGS=-DBSD_COMP  ./configure \
:  : --with-apxs2=/usr/local/apache2/bin/apxs \
:  : --with-tomcat41=/usr/local/tomcat \
:  : --with-java-home=${JAVA_HOME} \
:  : --with-java-platform=2 \
:  : --with-jni
:  : 
:  : make CPPFLAGS=-DBSD_COMP

RE: JK2 unixsocket: Can't create apr

2002-11-13 Thread Brzezinski, Paul J



: -Original Message-
: From: Costin Manolache [mailto:cmanolache;yahoo.com] 
: Sent: Wednesday, November 13, 2002 3:16 PM
: To: Tomcat Developers List
: Subject: RE: JK2 unixsocket: Can't create apr
: 
: 
: Very weird. 
: 
: Are you using the latest commons-logging.jar ? JDK1.4 or 1.3 
: ? Do you have log4j ?

Do I need a .properties file or .xml file log4j or Apr?

With log4j in $CATALINA_HOME/server/lib:

This is the $CATALINA_HOME/logs/catalina.out:

Exception during startup processing
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/apache/log4j/Layout
at
org.apache.commons.logging.impl.Log4jFactory.getInstance(Log4jFactory
.java:153)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:281)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400)
at org.apache.commons.digester.Digester.init(Digester.java:345)
at org.apache.catalina.startup.Catalina.createStartDigester(Unknown
Sour
ce)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
... 5 more

: The problem seems releated to class loading ( as usual :-).
: 
: Costin
: 
: 
: Brzezinski, Paul J wrote:
: 
:  I wonder if a better question is:
:  
:  Is anyone using the ChannelUnix (AF_UNIX socket) connector on any 
:  platform?
:  
:  On what platforms is the ChannelUnix (AF_UNIX socket) connector 
:  actually known to function?
:  
:  
:  
:  : -Original Message-
:  : From: Robert Williams [mailto:rcw1;pacbell.net]
:  : Sent: Wednesday, November 13, 2002 1:05 PM
:  : To: Tomcat User
:  : Subject: JK2 unixsocket: Can't create apr
:  :
:  : 
:  : Hi all,
:  : I am trying to implement the unixsocket on JK2. While the
:  : channelSocket
:  : works fine I was hoping to get the speed benefits of a
:  : unixsocket. I am
:  : using the example setups in the JK2 documentation. And since
:  : it seems to
:  : be looking for  the LogFactory I have made sure that
:  : commons-logging-api.jar  was in the Tomcat common/lib and I
:  : also put it
:  : in java/jre/lib/ext as well. All to no avail. I am 
: stumped. I haven't
:  : been able to find anything in the list or on google 
: addressing this
:  : problem. Some docs regarding channelSocket say disable 
: apr for this
:  : error but apparently unixsocket won't work without apr
:  : enabled. Any help
:  : would be appreciated.
:  : Thanks Robert
:  : 
:  : jakarta-tomcat-4.1.12
:  : jakarta-tomcat-connectors-4.1.12
:  : Apache/2.0.43
:  : Solaris 9
:  : 
:  : Nov 13, 2002 9:29:04 AM org.apache.jk.server.JkMain newHandler
:  : SEVERE: Can't create apr
:  : java.lang.NoClassDefFoundError: 
: org/apache/commons/logging/LogFactory
:  : at org.apache.jk.apr.AprImpl.clinit(AprImpl.java:340)
:  : at java.lang.Class.forName0(Native Method)
:  : at java.lang.Class.forName(Class.java:130)
:  : at org.apache.jk.server.JkMain.newHandler(JkMain.java:494)
:  : at org.apache.jk.server.JkMain.start(JkMain.java:316)
:  : at
:  : org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.jav
:  : 
:  : workers2.properties
:  : 
:  : [shm]
:  : file=${serverRoot}/logs/shm.file
:  : size=1048576
:  : 
:  : # Example unixsocket channel.
:  : [channel.un:unixsocket]
:  : file=/usr/local/tomcat/work/jk2.socket
:  : 
:  : # define the worker
:  : [ajp13:unixsocket]
:  : channel=channel.un:unixsocket
:  : 
:  : # Uri mapping
:  : [uri:/examples/*]
:  : worker=ajp13:unixsocket
:  : 
:  : jk2.properties
:  : # list of needed handlers.
:  : handler.list=apr,channelUnix,request
:  : 
:  : # Location of the socket.
:  : channelUnix.file=${jkHome}/work/jk2.socket
:  : 
:  : # Dynamic library
:  : apr.NativeSo=${jkHome}/lib/jkjni.so
:  : 
:  : jk2.properties.save
:  : #AUTOMATICALLY GENERATED
:  : #Wed Nov 13 09:38:33 PST 2002
:  : handler.list=apr,channelUnix,request
:  : secure=false
:  : soTimeout=2
:  : port=8009
:  : jkHome=/usr/local/jakarta-tomcat-4.1.12
:  : maxThreads=75
:  : backlog=10
:  : apr.NativeSo=${jkHome}/lib/jkjni.so
:  : timeout=2
:  : channelUnix.file=${jkHome}/work/jk2.socket
:  : tcpNoDelay=true
:  : 
:  : 
:  : Build Apache
:  : ./configure --with-mpm=worker --enable-so --enable-layout=Apache
:  : --enable-module=most --enable-mods-shared=most
:  : make
:  : make install
:  : 
:  : Build jk2 Conector
:  : cd ${conector.home}/jk/native2
:  : sh ./buildconf.sh
:  : 
:  : cp

Re: Connect Java Profiler to Tomcat

2002-08-19 Thread Steinar Bang

 Zhenxin wang [EMAIL PROTECTED]:

 I used OptimizeIt, which has special script for Tomcat 4. Follow the
 instructions from OptimizeIt to modify the script to suit your
 environment, it should be easy to gt it working.

I've aquired a test license from Borland, but haven't been able to get
it working yet.

Platform: Intel PIII, RedHat 7.2, Blackdown JDK 1.3.1_01-fcs, tomcat 3.3

Both the JDK and tomcat were installed from RPMs.

What I've done is to:
cd /var/tomcat/
mkdir bin
cd bin
ln -s /usr/bin/tomcat tomcat.sh
and then run the wizard in Tools/Application server integration.

The wizard created the files
/var/tomcat/bin/oi_filter.oif
/var/tomcat/bin/tomcat3_OI.sh

I've then stopped the running daemon with
/etc/init.d/tomcat
and started the script /var/tomcat/bin/tomcat3_OI.sh.

The script outputs some text and then terminates.  After the
script has terminated no tomcat process is running.  The
output by the script, is:

# /var/tomcat/bin/tomcat3_OI.sh
/usr/java/jdk1.3.1_01/bin/java 
-Xbootclasspath/a:/usr/local/OptimizeitSuiteDemo/lib/oibcp.jar  -classpath 
/var/tomcat/lib/tomcat.jar:/usr/local/OptimizeitSuiteDemo/lib/optit.jar:/usr/java/jdk1.3.1_01/lib/tools.jar:
 -Dtomcat.home=/var/tomcat -DGCOPSIZE=5 intuitive.audit.GenericAudit 
org.apache.tomcat.startup.Main start
OptimizeIt Profiler 4.11 build 449 Audit System.
(c) 1997, 1998, 1999, 2000, 2001 Borland.
Port is 1470
Using 5MB for GC operation pool
OptimizeIt generic Audit System. [Hotspot runtime detected]
EmbededTomcat: Init time 1066
EmbededTomcat: Startup time 0
#

The generated tomcat3_OI.sh script is appended to the end of this message.

All hints, tips, and guesses appreciated!

Thanx


- Steinar


-wizard generated tomcat start script tomcat3_OI.sh--
#!/bin/sh


# This script allows to start Jakarta Tomcat 3.1, 3.2 and 3.3 with Optimizeit  #
# tools. It should be completed before use.#
# Use this script to start Tomcat with the Optimizeit Audit System selected#
# with the Audit System Selector (OptIt_Dir/oiselector program). #
# Refer to the tutorial for Tomcat 3 for more information. #
# (tutorials are located under OptIt_Dir/tutorials)  #


# This entry contains the directory where you installed Tomcat
# (Ex: /home/jay/jakarta-tomcat-3.3)
TOMCAT_HOME=/var/tomcat

#This entry contains the path to the OptimizeIt directory
# (Ex: /home/ted/OptimizeitSuite4.1)
OPTIT_HOME=/usr/local/OptimizeitSuiteDemo

# This entry contains the path to the directory of the vm that you want to use
# (Ex: /home/ted/jdk1.3.1)
JAVA_HOME=/usr/java/jdk1.3.1_01

# Enter any required extra java classpath at this entry
JAVA_CLASSPATH=

# Add any extra java arguments at this entry
# (such as -D java properties used by 3rd party products)
JAVA_ARGS=

# Increase the GCOP value if you get some GCOP buffer too small errors
# with the Profiler (size is in Mb)
GCOPSIZE=5

# ** You should not have to modify anything below this line **
# -

if [ ! -d $JAVA_HOME ] ; then
echo The JAVA_HOME specified $JAVA_HOME does not exists.
echo Make sure to specify a correct JAVA_HOME in the tomcat3_OI.sh script.
exit
fi

if [ -f $JAVA_HOME/bin/java ]
then
JAVA=$JAVA_HOME/bin/java
elif [ -f $JAVA_HOME/bin/jre ]
then
JAVA=$JAVA_HOME/bin/jre
else
echo No java or jre found under the directory $JAVA_HOME
echo Make sure to specify a correct JAVA_HOME in the tomcat3_OI.sh script.
exit
fi

if [ ! -f $OPTIT_HOME/lib/optit.jar ] ; then
echo Cannot find the OptimizeIt library optit.jar under the directory $OPTIT_HOME
echo Make sure to specify a correct OPTIT_HOME in the tomcat3_OI.sh script.
exit
fi
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:-.}:${OPTIT_HOME}/lib
export LD_LIBRARY_PATH
OI_PATH=$PATH
export OI_PATH

if [ -z $AUDIT ] ; then
AUDIT=`$OPTIT_HOME/runtime/bin/jre -classpath 
$OPTIT_HOME/runtime/lib/rt.jar:$OPTIT_HOME/lib/optit.jar 
intuitive.optit.fileop.JavaTester $JAVA 2 /dev/null`
fi

# Always use native threads
JAVATHREADS=-native -DOPTITTHR=native

case $AUDIT in
11) COMMAND=$JAVA $JAVATHREADS -noclassgc -Djava.compiler=NONE -DAUDIT=11
JAVACP=$JAVA_HOME/lib/classes.zip:$OPTIT_HOME/lib/optit.jar;;
118pr) COMMAND=$JAVA $JAVATHREADS -noclassgc -Djava.compiler=NONE -DAUDIT=118pr
JAVACP=$JAVA_HOME/lib/classes.zip:$OPTIT_HOME/lib/optit.jar;;
12) COMMAND=$JAVA $JAVATHREADS -Xrunoii -Xnoclassgc -Djava.compiler=NONE -DAUDIT=12
JAVACP=$OPTIT_HOME/lib/optit.jar:$JAVA_HOME/lib/tools.jar ;;
JNI) COMMAND=$JAVA -Xrunoii -DAUDIT=jni
JAVACP=$OPTIT_HOME/lib/optit.jar:$JAVA_HOME/lib/tools.jar ;;
*) echo Virtual machine not recognized, using default settings...
COMMAND=$JAVA -Xrunoii -DAUDIT=jni
JAVACP

Re: NIGHTMARE

2002-04-08 Thread todd tredeau

I have been playing with another open source project, Chiki... It is an 
extreme programming project. I have been very impressed so far with 
this. I have thought, of being able to have a web site, where anyone 
could enter / create / edit content, along the lines of These tips and 
documentation issues... perhaps, if there is enough interest we could 
begin with a few topics, ie: Step by step install / config by plaform, 
tips, QA, etc... I created a site linked to my Open Source support 
site, wiserlabz http://chiki.wiserlabz.com It is really pretty 
awsome so far, with more to come.. Revision Control is build in, which 
will help... take a look, give it try, or install it and try it 
yourself. There are a few quirks with it handling some tags, etc... 
but it's getting there, and pretty awsome, providing a cool, interactive 
editing environment.

todd
http://www.wiserlabz.com
collaborative effort to promote Novell and Open Source solutions

Harry Keller wrote:

For many of us, this is hardly a laughing matter.  Yes, installation is very
easy.  However, proper deployment is very difficult.  You'd like apache to
handle the non-jsp stuff and pass the jsp to tomcat.  You'd like apache and
tomcat to start up properly upon reboot.  You may wish to invoke some of the
very rich capabilities of tomcat.

I spent several days deploying tomcat.  It works, but I'm not sure why.  If
I really understood what I was doing, I would be happy to write it down for
others.

Deploying tomcat is *not* Java.  It is a complex set of configuration files
within separate products.  I have been working with Unix since 1980 and with
Java since its inception.  I almost gave up on tomcat.  Something needs to
be done to make tomcat more accessible, but I can't say what.

I still can't get tomcat to use beans properly.

Harry

- Original Message -
From: Martin Mauri [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 8:40 AM
Subject: Re: NIGHTMARE


Hahahaha! Yes.

- Original Message -
From: Timlin, Bob [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 12:38 PM
Subject: RE: NIGHTMARE


Let's see.  The following is a nightmare
1.  unzip tomcat
2.  cd $TOMCAT_HOME/bin (unix/linux) or cd %TOMCAT_HOME%\bin (windows)
3.  startup.sh (unix/linux)  or startup (windows)





-Original Message-
From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 8:31 AM
To: Tomcat Users List
Subject: Re: NIGHTMARE

Williams Mark L DLPC a Ýcrit :

Would you all quit this? It's silly to generate so much email in

defense

of

a product we're all working with. If someone doesn't like it, so be

it.

BTW,

our correspondent may already be off the group, which could mean that

we're

all just reading our own flames. Can we return to matters of

substance,

please?

Mark

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

Yep yu're right.

I would have think about a shrinky Troll...

Not even good enough to go ahaed.

Let's have some better conversation, boys !

Jean-Luc :O)




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



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






OT: Changing runlevel in Linux, was Re: apache tomcat as services under Linux

2001-06-26 Thread Antoni Reus

Hi,

You can change the runlevel editing the /etc/inittab file,
you should put it at runlevel 3. It is not necesary to remove
GNOME.

- Original Message -
From: Pier Paolo Bortone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 9:16 AM
Subject: Re: apache  tomcat as services under Linux


 Grazie Antoni,
 you are right. The last night, after several tests, I have found that
Linux
 was running on runlevel 5, then I have moved my links on run level 5.

 Now I want remove the GNOME installation to access to Linux via telnet
only.

 I want uninstall GNOME and modify the runlevel via xterm.

 Do you know where I can find informations about?

 Thanks for your time.

 - Original Message -
 From: Antoni Reus [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 26, 2001 9:27 AM
 Subject: Re: apache  tomcat as services under Linux


  Hi,
 
  The scripts should be named apache ant tomcat and should be
  in  /etc/rc.d/init.d/
 
  then you should make a symbolic link to them in /etc/rc.d/rc3.d/
  in the case that you start your box in the runlevel 3 (note that if when
 you
  start your box it runs the X windows you are in run level 5, and you
 should
  change rc3.d/ for rc5.d/. The links should be called S96tomcat and
  S97apache (I was wrong in my first post, yes tomcat should be run
first).
 
  Saludos,
  -- Antoni Reus
 
  - Original Message -
  From: Pier Paolo Bortone [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, June 22, 2001 5:29 PM
  Subject: Re: apache  tomcat as services under Linux
 
 
   OK,
   I have created 2 different scripts, one for apache and one for tomcat.
  These
   scripts works fine if I call them manualli: ./S97apache start or
  ./S96tomcat
   start or ./K15
   But if I restart Linux, when it is up both the tomcat and apache
 processes
   are not up.
   I have tried to examine the /var/log/boot.log but I don't found
nothing
   about.
  
   Why??
   :-(((
   Pier Paolo.
   - Original Message -
   From: Antoni Reus [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, June 20, 2001 4:47 PM
   Subject: Re: apache  tomcat as services under Linux
  
  
Hi,
   
You should create a script with something like
and put it on  /etc/rc.d/init.d/
   
 cut here---
#!/bin/sh
   
# Set this as you have it in your sistem
APACHE_HOME=/usr/local/apache
TOMCAT_HOME=/usr/local/jakarta/tomcat
   
# Test apachectl
if [ ! -x $APACHE_HOME/bin/apachectl ]
then
echo apachectl not found
exit
fi
   
# Test tomcat.sh
if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
then
   echo tomcat not found
   exit
fi
   
case $1 in
start)
## Start services
$APACHE_HOME/bin/apachectl start
$TOMCAT_HOME/bin/startup.sh
;;
stop)
$TOMCAT_HOME/bin/shutdown.sh
$APACHE_HOME/bin/apachectl stop
;;
esac
-cut here --
   
name it apache-tomcat and give it execution permissions
with
chmod u+x  apache-tomcat
   
Then with control-panel you can link it to the run-level 3
or you can make it directly with
   
# Start in run level 3
cd /etc/rc.d/rc3.d
ln -s ../init.d/apache-tomcat S99apache-tomcat
   
# Stop
cd ../rc0.d
ln -s ../init.d/apache-tomcat K11apache-tomcat
   
   
Saludos,
   
-- Antoni Reus
   
- Original Message -
From: Pier Paolo Bortone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 2:15 PM
Subject: apache  tomcat as services under Linux
   
   
Hi,
I need to start to use apache   tomcat in a production environment,
  thus
   I
need to start them as services.
   
I'm using RedHat 7.1, someone knows which scripts I have to put in
  rc3.d.
   
Thanks for your time.
   
Pier Paolo.
   
  





Re: apache tomcat as services under Linux

2001-06-27 Thread Mark Muffett

I've done something similar to get tomcat starting / stopping automatically
under SuSE Linux.

The basics work, but I think I have a CLASSPATH problem that stops me using
JDBC authentication if I start tomcat this way (stopping then re-starting
manually fixes it).  I haven't had time to look much at it yet - but has
anyone else seen anything like it?

Mark

- Original Message -
From: Dmitri Colebatch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Antoni Reus [EMAIL PROTECTED]
Sent: Tuesday, June 26, 2001 11:11 PM
Subject: Re: apache  tomcat as services under Linux


 if you want to use redhat's system an easier way to do it would be to use
 chkconfig which will do all this for you (once you have the
 /etc/rc.d/init.d/tomcat and apache scripts).

 cheers
 dim

 On Tue, 26 Jun 2001 17:27, Antoni Reus wrote:
  Hi,
 
  The scripts should be named apache ant tomcat and should be
  in  /etc/rc.d/init.d/
 
  then you should make a symbolic link to them in /etc/rc.d/rc3.d/
  in the case that you start your box in the runlevel 3 (note that if when
  you start your box it runs the X windows you are in run level 5, and you
  should change rc3.d/ for rc5.d/. The links should be called S96tomcat
and
  S97apache (I was wrong in my first post, yes tomcat should be run
first).
 
  Saludos,
  -- Antoni Reus
 
  - Original Message -
  From: Pier Paolo Bortone [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, June 22, 2001 5:29 PM
  Subject: Re: apache  tomcat as services under Linux
 
   OK,
   I have created 2 different scripts, one for apache and one for tomcat.
 
  These
 
   scripts works fine if I call them manualli: ./S97apache start or
 
  ./S96tomcat
 
   start or ./K15
   But if I restart Linux, when it is up both the tomcat and apache
   processes are not up.
   I have tried to examine the /var/log/boot.log but I don't found
nothing
   about.
  
   Why??
  
   :-(((
  
   Pier Paolo.
   - Original Message -
   From: Antoni Reus [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, June 20, 2001 4:47 PM
   Subject: Re: apache  tomcat as services under Linux
  
Hi,
   
You should create a script with something like
and put it on  /etc/rc.d/init.d/
   
 cut here---
#!/bin/sh
   
# Set this as you have it in your sistem
APACHE_HOME=/usr/local/apache
TOMCAT_HOME=/usr/local/jakarta/tomcat
   
# Test apachectl
if [ ! -x $APACHE_HOME/bin/apachectl ]
then
echo apachectl not found
exit
fi
   
# Test tomcat.sh
if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ]
then
   echo tomcat not found
   exit
fi
   
case $1 in
start)
## Start services
$APACHE_HOME/bin/apachectl start
$TOMCAT_HOME/bin/startup.sh
;;
stop)
$TOMCAT_HOME/bin/shutdown.sh
$APACHE_HOME/bin/apachectl stop
;;
esac
-cut here --
   
name it apache-tomcat and give it execution permissions
with
chmod u+x  apache-tomcat
   
Then with control-panel you can link it to the run-level 3
or you can make it directly with
   
# Start in run level 3
cd /etc/rc.d/rc3.d
ln -s ../init.d/apache-tomcat S99apache-tomcat
   
# Stop
cd ../rc0.d
ln -s ../init.d/apache-tomcat K11apache-tomcat
   
   
Saludos,
   
-- Antoni Reus
   
- Original Message -
From: Pier Paolo Bortone [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 20, 2001 2:15 PM
Subject: apache  tomcat as services under Linux
   
   
Hi,
I need to start to use apache   tomcat in a production environment,
 
  thus
 
   I
  
need to start them as services.
   
I'm using RedHat 7.1, someone knows which scripts I have to put in
 
  rc3.d.
 
Thanks for your time.
   
Pier Paolo.





RE: mod_jk.so installation tar.gz...

2001-02-22 Thread Adam Fowler

Hi,

I picked up the source RPM for tomcat3.2.1.

I've been checking in the startup script and I saw that JAVA_HOME is being
set to /usr/IBMJava2-13. I was wondering if there is any particular reason
for this or if it is fine to change it to the standard path for Sun's JDK
1.3 for Mandrake? (/usr/java/jdk1.3)

I'll setup a dependency for sun's jdk1.3 too.

I also noticed that in tomcat.logrotate the name of the logfile has jserv in
it, not jk.

If the above are stupid things then send me a e-slap.

I found the updated RPM-HOWTO at http://www.oswg.org/oswg so I should be ok
making them.

Gimme a week (don't you DARE update the source! 8o) )

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:35 AM
To: [EMAIL PROTECTED]
Subject: RE: mod_jk.so installation tar.gz...


Did you notice that there is existing RPM for tomcat modules,
mod_jk and mod_jserv ?

http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3-m1/rpms/

I'd really like you to rebuild the SRPMS, tag the release with mdk and
provide the SRPMS / RPMS back to Mandrake users...

La prise de conscience de votre propre ignorance est un grand pas vers la
connaissance.
-- Benjamin Disraeli


-Original Message-
From: Adam Fowler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 11:34 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: mod_jk.so installation tar.gz...


Hi,

This kind of trouble! 8o) :-

[root@willow RPM]# rpm -ba SPECS/mod_jk-apache1.3-1mdk.spec
File /usr/src/RPM/SOURCES is smaller than 4 bytes
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.14373
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf mod_jk.so-tomcat3.2.1
+ tar -xf /usr/src/RPM/SOURCES
tar: /usr/src/RPM/SOURCES: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
Bad exit status from /var/tmp/rpm-tmp.14373 (%prep)
[root@willow RPM]#

I'd be greatful for some help, the RPM-Howto doesn;t help much.

Oh, and your e-mail address is appearing as [EMAIL PROTECTED]!
(apart from the reply-to, obviously)

Regards + thanks,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Peter B. West
Sent: Monday, February 19, 2001 10:42 PM
To: [EMAIL PROTECTED]
Subject: Re: mod_jk.so installation tar.gz...


Adam Fowler wrote:

 I'm trying to make an RPM but am having trouble building it.
Any hints?

What kind of trouble?

Peter
--
Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
"Lord, to whom shall we go?"

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



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


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



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




Building mod_jk on AIX 4.3.3

2002-09-12 Thread Dibyendu Majumdar

I recently built mod_jk on AIX 4.3.3, and would like to share my experience
with you in the hope that it may be useful to some of you.

I used the following tool-set/platform:

gcc 2.95.2
gmake 3.79
automake 1.6
autoconf 1.53
m4 1.4
libtool 1.4.2
apache 1.3.26
jakarta tomcat 4.1.10
jakarta tomcat connectors 4.1.10
jakarta ant 1.4.1
java 1.3.0
perl 5.005_003
AIX 4.3.3

1. In my first attempt, I was unable to build mod_jk.so. As I investigated,
I discovered the following reason for it.

The build process invoked cc rather than gcc, even though gcc was in the
path first. I worked around this problem by creating a symbolic link called
cc to gcc.

2. I ran ant native from the jk sub-directory. However, this failed
eventually because my Java installation didnot have the JNI bits.

To ensure that I build only mod_jk and nothing else, I changed the build.xml
file in jk/native, as follows:

project name=jk_native default=apache13 basedir=.

The build then failed trying to build native2. So I commented out the line
in jk/build.xml that builds native2 as follows:

!-- It's better to call it directly with individual tags --
target name=native depends=jkant,detect,report 
ant  dir=native antfile=build.xml  /
!-- ant  dir=native2 antfile=build.xml  / --
/target

This time the build was successful. However, I could not find any mod_jk.so.
Instead, I found two files - libmod_jk.a, and mod_jk.la in
jk/build/jk/apache13 sub-directory. I also found the following files in the
jk/build/jk/apache13/.libs sub-directory :
libmod_jk.a
libmod_jk.exp
libmod_jk.so.0
mod_jk.la
mod_jk.lai

I manually copied libmod_jk.so.0 to apache/libexec/mod_jk.so, and tried
running (after appropriate changes to httpd.conf):

apachectl configtest

I got a coredmp as follows:

33 terptech[]/teur/cre/erptech/wrk/dibyendu/apache/bin: apachectl configtest
/teur/cre/erptech/wrk/dibyendu/apache/bin/apachectl[145]: 35908 Segmentation
fault(coredump)

At this point, I gave up on this approach and tried another route.

3. My next attempt was to build mod_jk using configure/make combination.
After a number of false starts (due to problems in my installation of
libtool and automake), I was able to execute following:

cd jk/native
./buildconf.sh
./configure --with-apxs=$APACHE_HOME/bin/apxs
make

The build succeeded but, I could find no mod_jk.so. When I looked in
jk/native/apache-1.3 sub-directory, I found:

libjk.a
libjk.la
libjk.module
libmod_jk.a
mod_jk.c
mod_jk.dsp
mod_jk.la
mod_jk.lo
mod_jk.o

At this point, I gave up this approach as well, and decided to try another.

4. My final attempt succeeded and this is what I did.

I decided to build mod_jk.so directly using apxs and bypass the make/ant
tools. I decided this because I found that the real problem was in libtool
which was broken and didnot know how to build shared libraries on AIX.
Hence, it was just not able to build mod_jk.so.

My first attempt was as follows:

cd jk/native/common
$APACHE_HOME/bin/apxs -c -o mod_jk.so -I. *.c ../apache-1.3/mod_jk.c

This failed to compile two files which appeared to be related to jni. I
removed these two files (jk_jni_worker.c  jk_jni_worker.h), and tried again.
This time, the link failed with errors. Apparently, the AIX linker expected
a .exp file containing a list of exported functions. Since I didnot have
this, I decided to try the following linker options:
-bexpall -berok -bnogc

I added these options to apxs, as follows:

my $CFG_LDFLAGS_SHLIB =
q(-bexpall -berok -bnogc -H512 -T512 -bhalt:4 -bM:SRE -b
noentry -bI:/teur/cre/erptech/wrk/dibyendu/apache/libexec/httpd.exp -lc); #
subs
tituted via Makefile.tmpl

I ran the apxs command again. It succeeded and finally built mod_jk.so.

I have tested mod_jk.so with the example servlets in tomcat - so far its
worked okay without any problems.

Regards
Dibyendu








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




[OT] Sys-admin book pointers (was: RE: ? java.net.BindException: Address already in use)

2002-09-25 Thread Turner, John


There are all sorts of books out there.  I would recommend Essential System
Administration from O'Reilly (I think it is in the 3rd or 4th edition by
now, mine is pretty old).  It isn't specific to a particular OS.  Other than
that, I would say the Red Hat Linux Bible is pretty good (ISBN: 0764536303)
for Linux.  I'm sure there are many other good books out there...I learned
through trial and error many years ago, so haven't had much need for a
general sys-admin overview book.

The best thing to do, in my opinion, is knock together a cheap PC and put
Linux on it and learn by doing.  You shouldn't need to spend more than $200,
if that.  A 300-600MHz chip, 128MB RAM, 4-10GB disk, a basic video card, a
basic CD-ROM (preferably bootable) and a network card and you are good to
go.  Many companies are throwing away PCs with those specs, and they're
available online in auctions and such for $100 or less.  Add in CD-ROM media
for your OS of choice from CheapBytes (www.cheapbytes.com) for $3-$4 or
download it yourself and you are golden.  

John


 -Original Message-
 From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, September 24, 2002 10:25 PM
 To: Tomcat Users List
 Subject: Re: ? java.net.BindException: Address already in use
 
 
 Thanks - I really appreciate it. Can you recommend a good 
 Linux book to get
 me started on this?
 I'm obviously out of my element here and feel really stupid.
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, September 24, 2002 12:37 PM
 Subject: RE: ? java.net.BindException: Address already in use
 
 
 
 From a command prompt:
 
 man ps (manual pages for the ps command, ps = process status)
 man netstat (manual pages for the netstat command, netstat = 
 network status,
 including ports)
 
 Also:
 
 ps -ef --cols=300 |grep java |more (tells you all tomcat 
 processes running)
 
 If tomcat is shutdown, but java processes are still present 
 in the output of
 the ps command, then Tomcat is hung.  At that point, you'll 
 need to use the
 kill command to kill Tomcat, but you'll need to be root to do 
 it (man kill).
 You would use the output of the ps command to get the process 
 ID (PID) of
 the java process where the parent process ID (PPID) is 1.  If 
 there are
 other developers/tomcat processes on this box, you will have 
 to be very
 careful not to trash whatever it is they are doing.
 
 John
 
  -Original Message-
  From: Bill Blackmon [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, September 24, 2002 12:23 PM
  To: Tomcat Users List
  Subject: Re: ? java.net.BindException: Address already in use
 
 
  The host machine is Linux, don't know which flavor. I have no
  idea how how
  to:
  
  Look if there are tomcat processes runing.
  Look at the state of the ports.
  Look who owns the ports.
  
  from the SSH connection I have.
 
  Thanks,
  Bill
 
 
 
  - Original Message -
  From: Ralph Einfeldt [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Sent: Tuesday, September 24, 2002 12:04 PM
  Subject: AW: ? java.net.BindException: Address already in use
 
 
  There are this options:
  - at least one thread isn't dying so there is still
a tomcat instance running
  - the time between the end of tomcat and
the restart was to short. So that the soccets have
not closed completly.
  - you have a port conflict.
 
  Look if there are tomcat processes runing.
  Look at the state of the ports.
  Look who owns the ports.
 
  If you wan't more help on how to achieve this
  you have to supply your operating system as the
  tools that answer this question are very different.
 
  (For linux and other unik like systems is ps, netstat, lsof)
 
   -Ursprüngliche Nachricht-
   Von: Bill Blackmon [mailto:[EMAIL PROTECTED]]
   Gesendet: Dienstag, 24. September 2002 17:44
   An: TOMCAT USERS GROUP
   Betreff: ? java.net.BindException: Address already in use
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: Using daemontools to supervise Tomcat

2002-10-11 Thread Ben Ricker

On Fri, 2002-10-11 at 12:48, camccuk wrote:
 --- Ben Ricker [EMAIL PROTECTED] wrote:

 I'b be interested to see that Ben - one of the problems I had trying something
 similar was that when tomcat gets swapped out, it appears on the process list
 as [java] and there is *no way* to my knowledge (or that of the various usenet
 groups/lists etc that I pestered) of getting back the command line to see which
 instance of the JVM you are dealing with - this was a problem for me on a
 machine running at least two JVMs.

Actually there is. I use a -Dafoo to give the process a unique
identifier. This sets a marker on the process but does nothing for the
JVM itself. To find a process ID, I would use 'pgrep -f foo' and the PID
is returned (this is on Unix, btw). Also , when you do the '-Dafoo' as
the first arg to the JVM, it appears in 'ps -ef'.

Here is how I do it: I setup the java command line like so:

/usr/local/jdk/bin/java \
-Da=Ftp \
-cp $PROP_DIR:$EXT_INT_JAR:$NET_COMPONENTS_JAR:$LOG4J_JAR \
com.usrx.extinterface.ftp.FTPService $PROPERTIES_FILES \
 $LOG_FILE 21

Then I do this:

pgrep -fn  Ftp  $PIDFILE

Technically, you do not need the 'n', as that denotes the newest
process. You can get by with just the -f.

Finally, I run the following script through cron every minute. The
variables should be self-explanatory. For security reasons, I cannot
divulge the whole setup. Basically, this snippet below monitors 7 JVMs
and if they are not running, restarts them. It has worked flawlessly for
a long time.

-Begin Snippet--

for i in $*
do
eval BASEDIR=$`echo BASEDIR_$i`
eval PIDFILE=$BASEDIR/$`echo PIDFILE_$i`
eval PNAME=$`echo PNAME_$i`
eval CHECKFILE=$BASEDIR/$`echo CHECKFILE_$i`
eval START=$BASEDIR/$`echo START_$i`

if [ -f $PIDFILE ] ; then
PID=`cat $PIDFILE`
if [ x$PID != x ]  kill -0 $PID 2/dev/null ; then
STATUS=$PNAME ($PID) running
RUNNING=1
else
STATUS=$PNAME ($PID?) NOT running
RUNNING=0
fi
else
STATUS=$PNAME (no pid file) NOT running
RUNNING=0
fi

if [ $RUNNING = 0 ]; then
if [ -f $CHECKFILE ] ; then
if [ `cat $CHECKFILE` = 0 ] ; then
echo $STATUS - restart failed. | mail -s $PNAME alert $RECIPIENTS
logger -p local0.crit -t pidmonitor.sh $STATUS: restart failed.
echo 1  $CHECKFILE
fi
cd $BASEDIR
$START start
else
echo $STATUS - will attempt to start. | mail -s $PNAME alert 
$RECIPIENTS
logger -p local0.crit -t pidmonitor.sh $STATUS: attempting to start.
touch $CHECKFILE
echo 0  $CHECKFILE
cd $BASEDIR
$START start
fi
else
if [ -f $CHECKFILE ] ; then
/bin/rm $CHECKFILE
echo $STATUS | mail -s $PNAME alert $RECIPIENTS
logger -p local0.crit -t pidmonitor.sh $STATUS
fi
fi
done

--End Snippet--


 I had to use fghack already to stop supervise trying to start tomcat dozens of
 time but I still couldn't get multilog to work and supervise seemed to act
 weirdly afterwards (although svstat worked ok and svscan got into a confused
 state trying to start the run script in the logging subdirectory - something
 supervise won't do for me)

You will have to use fghack because java does not act like a daemon
usually does. A daemon usually puts itself into the background after
executing. Java does not. That is what fghack does. Unfortunately, as
the web site for daemontools says, if you use fghack, it will disable
your ability to use svc and will make all the other commands pretty
useless. Daemontools works great with daemons that act like daemons; it
works like hell with programs that don't.

-- 
Ben Ricker [EMAIL PROTECTED]
Wellinx.com


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




Re: How do you get a C:\ prompt in Windows XP?

2002-12-18 Thread Thom Park

Hi,

not sure what you're trying to do.

If you're trying to get to C:\, you have to do it in two steps:

1. set your default device to c:  

C:

2. set your directory to the top level  \:

cd \

you should now be in the C:\ directory

If you're simply trying to get a command prompt,
then just use start-run and enter cmd.exe
for an XP command window or
start-run and enter command.com for a DOS prompt.

-T


Ronin Quigley wrote:

Thanks for your tips.  When I type C:\  I get the following message 'C:\' is
not recognised as an internal or external command, operable program or batch
file.
Any other suggestions?



Rocket

- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Thursday, December 19, 2002 12:13 AM
Subject: RE: Help needed to run Tomcat 4.1.12


 

Agreedavoid spaces in pathnames if you can.

As an aside, there is no reason to switch directories to start Tomcat.
   

You
 

can do so by typing something like c:\tomcat\bin\startup.bat from any
command prompt in Windows.

John


-Original Message-
From: Paul Yunusov [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 7:04 PM
To: Tomcat Users List
Subject: Re: Help needed to run Tomcat 4.1.12

On Wednesday 18 December 2002 06:27 pm, Ronin Quigley wrote:
   

I am running Windows XP and have done the following:
 a.. Installed Jave SDK and set the path variable to
stemRoot%\System32\Wbem;C:Java\bin; b.. Downloaded release version
 

4.1.12
 

of Tomcat
 c.. Set the variable JAVA HOME=C:\JAVA
 d.. Set the variable CATALINA_HOME= C:\TOMCAT\JAKARTA-TOMCAT 4.1.12
 e.. Tested  the above by doing the ECHO test and they were fine.
The command prompt in Windows XP automatically defaults to C:\Documents
 

and
   

Settings\Go For It Web Design, how do I get a C:\ prompt? And once I
 

get
 

a
   

C:\ prompt can I start it by the following?

C:\
cd tomcat\jakarta-tomcat 4.1.12\bin
startup.bat

Any help would be much appreciated.

Rocket
 

To change the working directory to C: type C:\ and press enter in the
command
prompt (if my memory doesn't betray me - my Windows days are long gone).
Your
steps to start tomcat seem be correct but paths and names in the
   

description
 

of environment variables are a mess (JAVA_HOME should have  the _,
SystemRoot instead of stemRoot, C: must be followed by a \ in paths,
there is a - instead of a space between jakarta-tomcat and 4.1.12 in
the standard distribution, at least on Linux). I attribute this chaos to
fast
typing but I'd double check if I were you. My Windows experience taught me
to
avoid spaces in paths also.
HTH,
Paul

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


--
To unsubscribe, e-mail:
   

mailto:[EMAIL PROTECTED]
 

For additional commands, e-mail:
   

mailto:[EMAIL PROTECTED]
 



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

 


--
My friend, you would not tell with such high zest
To children ardent for some desperate glory,
The old Lie: Dulce et decorum est 
Pro patria mori. -- Wilfred Owen (1893-1918)

http://www.etsu.edu/english/muse/owen.htm

--
Borland -- Enabling a new digital world where our customers
have the freedom of choice to develop, deploy, and integrate
applications across the enterprise and  the Internet.
http://www.borland.com

This e-mail, and any attachments thereto, is intended only
for use by the addressee(s) named herein and may contain
legally privileged and/or confidential information.  If you
are not the intended recipient of this e-mail, you are hereby
notified that any dissemination, distribution or copying of
this e-mail, and any attachments thereto, is strictly prohibited.
If you have received this e-mail in error, please immediately
and permanently delete the original and any copy of any e-mail
and any printout thereof.




RE: Problem building Tomcat Connector mod_jk2.so

2003-07-30 Thread Jørgen Nørgaard
Hi Clive,

my best idea is to try building the mod_jk2 the way I did, using 
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz:

after unpacking:
cd jk/native2/
./configure --with-apxs2=/usr/sbin/apxs2-prefork
make jk2-build-apxs
that left me the mod_jk2.so in the secret .libs directory.

Might work for you also.

How far do yo get this way?

I am on SuSE 8.1 java 1.4.1 apache2.0.46 and tomcat 4.1.24 though I 
suppose that should not matter too much.

Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version of
apache2. So i don't know what it is happening. the box is built freshly. any
IDEA? this is what i use to build apache2
$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --enab
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enable
-shared=proxy
I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!
Cheers,
Clive
-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so
Hello,

Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).


That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork
select the proper apxs2 for your mpm model.

A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so
Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.
I am useing RedHat 9
I have installed:
openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26
automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr/
l
ocal/tomcat --with-java-home=/usr/local/java
#make
__
__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__
I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o
but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/
-
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]


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Problem building Tomcat Connector mod_jk2.so

2003-07-31 Thread Clive Luk
Hi Jorgen, John and Patrick,

Thanks for all your advice. I have tried all the suggestioin given. But
still no luck. I even try to re-compile apache. still the same. I have also,
remove the rpm automake, autoconf and compile and install from source. still
the same.

But one the I found is the could be a problem of something else. When I
re-compile apache. I found that it doesn't create any .so file at all under
$APACHE_HOME/modules. Could anyone tell me why I can't create any of those
.so file? Am I missing something? Thanks in advance.

Cheers,
Clive

-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:59 PM
To: Tomcat Users List
Subject: RE: Problem building Tomcat Connector mod_jk2.so


Hi Clive,

my best idea is to try building the mod_jk2 the way I did, using
jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz:

after unpacking:
cd jk/native2/
./configure --with-apxs2=/usr/sbin/apxs2-prefork
make jk2-build-apxs

that left me the mod_jk2.so in the secret .libs directory.

Might work for you also.

How far do yo get this way?

I am on SuSE 8.1 java 1.4.1 apache2.0.46 and tomcat 4.1.24 though I
suppose that should not matter too much.

Hi Jorgen,

i have been searching all the location. but still couldn't find it. I am
using the apxs that is from apache2.0.47. i didn't use the redhat version
of
apache2. So i don't know what it is happening. the box is built freshly.
any
IDEA? this is what i use to build apache2

$
./configure --enable-ssl --with-ssl=/usr/local/ssl --enable-module=so --ena
b
le-module=vhost_alias --enable-module=proxy --enable-module=rewrite --enabl
e
-shared=proxy

I have already spent a whole day trying to build mod_jk2.so. just can't get
through. HELP!

Cheers,
Clive

-Original Message-
From: Jørgen Nørgaard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 30 July 2003 7:33 PM
To: Tomcat Users List
Subject: Re: Problem building Tomcat Connector mod_jk2.so


Hello,


Building the connectors are a bit of a struggle, the documentation is
inconsistent and (very) sparse. Which is a pitty because
apache/tomcat are great (and tomcat 3 was so easy to build connectors
for).



That said, I managed to build a mod_jk2 connector using configure in
cd jk/native2/ like:
./configure --with-apxs2=/usr/sbin/apxs2-prefork

select the proper apxs2 for your mpm model.


A bit of searching located the module in some hidden location:
jk/native2/server/apache2/.libs/mod_jk2.so


Could this be the same for you btw?



At 19:16 +1000 30/07/03, Clive Luk wrote:
Hi all,

I am new to the list. Has anybody had problem building mod_jk2.so. I have
no
error message on building mod_jk2.so. But after i finished the following
steps. I counldn't find and *.so file.

I am useing RedHat 9
I have installed:

openssl-0.9.7b
libtool-1.5
httpd-2.0.47
j2sdk-1_4_2-linux-i586.bin
jakarta-tomcat-4.1.26

automake, autoconf, libtool are under /usr/bin

_steps I used to build mod_jk2.so_

#./buildconf.sh
#./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-tomcat41=/usr
/
l
ocal/tomcat --with-java-home=/usr/local/java
#make
__

__after make command__
#ls ../build/jk2/apache2/*.so
ls: ../build/jk2/apache2/*.so: No such file or directory
__

I can only see *.lo and *.o and

../build/jk2/apache2/mod_jk2.a
../build/jk2/apache2/mod_jk2.la
../build/jk2/apache2/mod_jk2.lo
../build/jk2/apache2/mod_jk2.o

but not mod_jk2.so

PLEASE HELP. I have tried so may different version...

Cheers,
Clive


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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/

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


--
/jørgen nørgaard
SmartTV A/S
[EMAIL PROTECTED]
Phone: +45 3332 5770
http://smarttv.dk/

-
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: Thanks to John and Geralyn

2003-06-01 Thread Michenaud Laurent
here how i do to build mod_jk2 :

First, i download this package :
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.24/src/jakarta-tomcat-connectors-4.1.24-src.tar.gz

untar then,

cd jk/native2
chmod u+x buildconf.sh
./buildconf.sh
./configure --with-java-home=/u/java --with-apxs2=/u/httpd/bin/apxs
--with-tomcat41=/u/tomcat --with-pcre --with-PACKAGE=yes

Then, i edit the file : server/apache2/Makefile
and i get off the -g option from the line :
EXTRA_CFLAGS= -g -O2 -pthread

Then :
make
cd ../build/jk2/apache2/
cp mod_jk2.so apache directory/modules

That's all !

 Hi john and geralyn, thanks for the warmly and prompt reply. I think now
 at
 least i know what is going on.However, i'm still unsure of the following
 things:

 1) Based on John wonderful's Howto, i think you are using both mod_jk.so
 and
 mod_jk-2.0.43.so. I was wondering is it a typo or this should be the way.
 Kind of confused here when i saw version appearing on it.

 2) I had tried downloading mod_jk2 source connector from jakarta website
 but
 i have problem building the connectors. I tried to build by first
 modifying
 the workers.properties to suits my configuration and then followed by
 invoking 'ant' command on it. It gave me this error, saying
 /usr/local/tomcat-jk2-connector/coyote/ not found. My check with the
 folder is that there isn't such a folder named coyote. What should be the
 proper way to build mod-jk2? or can i just use the binary version
 available
 on apache website which is meant for apache 2.0.42, wherelse i'm using
 2.0.46?

 Regards,
 Joe


 - Original Message -
 From: Geralyn M Hollerman [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, May 30, 2003 8:56 PM
 Subject: Re: Need Help in clearing my doubts


 Joe wrote:
  According to one of the mail which I have received, I saw him putting
  this in apache : httpd.conf:
 
  ===
  ===JkWorkersFile
  /home/gmh2441/uPortal/Tomcat_4-0-4/conf/workers.properties
JkLogFile /home/gmh2441/uPortal/Tomcat_4-0-4/logs/mod_jk.log
JkLogLevel debug
JkOptions +ForwardDirectories
Alias /examples /home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples
Directory /home/gmh2441/uPortal/Tomcat_4-0-4/webapps/examples
  Options Indexes FollowSymLinks
/Directory
Location /examples/WEB-INF/
  AllowOverride None
  deny from all
/Location
  ===
  === 
  I tried putting the same thing into my httpd.conf, and now accessing
 the
  example folder on port 80 works!.

 Joe,
 'gmh2441' is me! That was an effort of mine, based on something I'd read
 - I've been to John Turner's site and tried his HOW-TO, but since we
 weren't using the exact same versions, I wasn't sure whether it would
 work or not. What I have read since, in an Apache-Tomcat book at a local
 bookstore, was that I needed that Directory entry in there. It works
 for you? That's GREAT! It didn't for me - but then again, there may've
 been something else unintended in there - I'll have to look again. I can
 get static files to display, but I can't get .jsps or .class files to
 execute - I see from my apache log that every request gets a 400 (bad
 request) response.


  My question is :
 
  1) Based on the above config, it is asking apache to 're-direct' this
  folder to the tomcat container and thus run on it. In that case, is
  apache pushing all the jobs to tomcat instead?. What if some of the
  files in this folder contains some html and is tomcat or apache
  processing it??

 I think there was a JkMount directive after all that - I believe that
 would decide which files go to Apache and which to Tomcat.

  2) Secondly, if I were to have more folders which I need to publish on
  the web, does it mean that I have to add or of it on this config file
 in
  order for it to work?

 Try this URL for the answer to this - it's a sample mod_jk.conf file
 from John Turner.

 http://www.johnturner.come/howto/mod_jk_conf.html

 Basically, if I understand your question right, the answer is yes.

  3) I would appreciate if there are some kind soul could give me some
 URL
  on how to utilize apache tomcat to process both static and jsp
 content.

 Well, for starters, John Turner's site (http://www.johnturner.com) was
 excellent; there were some answers at the apache site
 (http://jakarta.apache.org/tomcat/); some more good advice at
 http://www.serverwatch.com/tutorials; and at
 http://www.oreillynet.com/pub/a/onjava/2002/11/20/tomcat.html. There was
 also something I found useful, about mod_jk2, at
 http://www.pubbitch.org/jboss/mod_jk2.html. But the main thing I found
 was that about every site I went to, I had to REALLY look around to find
 what I needed - and more often than not, I had to settle for a partial
 answer to any question I had.

 HTH!

 --
 Lynn Hollerman

Re: SSL client authentication with tomcat 4.1.24

2003-06-10 Thread Mario Ivankovits
You have to import the root CA into the java cacerts keystore

Assuming a windows-java installation in C:\j2sdk the location is:
C:\j2sdk\jre\lib\security\cacerts

using

 cd C:\j2sdk\jre\lib\security
 keytool -import -keystore cacerts -storepass changeit -file
the-root-ca.cer

did the job for me.

Mario
- Original Message - 
From: Duma Rolando [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 9:24 AM
Subject: Re: SSL client authentication with tomcat 4.1.24


 I'm still having trouble with my setup.
 These are my keystore entries:

 Tipo keystore: jks
 Provider keystore: SUN

 Il keystore contiene 3 entry

 scai, 10-giu-2003, keyEntry,
 Impronta digitale certificato (MD5):
 D5:FC:34:5E:12:03:CD:29:84:18:C9:4C:33:07:6C:5D
 _dgripbmo, 10-giu-2003, trustedCertEntry,
 Impronta digitale certificato (MD5):
 F5:ED:E9:B2:D9:71:F9:B6:6F:E9:39:27:4D:0A:A4:F7
 dumarolando, 10-giu-2003, trustedCertEntry,
 Impronta digitale certificato (MD5):
 E6:8D:22:29:5C:33:20:52:10:75:6A:8E:5D:03:4C:B3

 The second item is the CA certificate that signs my personal certificate,
 the last is my personal certificate present also in my IE Personal
 certificates tab.If nothing is missing and the browser still pops up an
 empty personal certificate list, maybe there is a problem with the
 cryptographic providers or with the encription algorithms used?
 As a note my personal certificate is stored on a Gemplus smartcard
connected
 with a USB reader all works fine if I connect to an Apache server with
 mod_ssl.

 - Original Message -
 From: Bill Barker [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, June 07, 2003 5:33 AM
 Subject: Re: SSL client authentication with tomcat 4.1.24


  I believe that the Sun 1.4 JVM ships with the certs for Verisign and
 Thawte
  (to verify this, search the java.sun.com site).  To allow OpenExchange
  signed certs, you need to get the signing cert (not hard), and import it
  into cacerts.
 
  Mario Ivankovits [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   For me, it looks like some certificates cant be read by tomcat/ssl.
  
   So, my Thawte FreeMail Member certificate works, but the certificate
   generated by SuSE OpenExchange wont work.
  
   I havent figured out what the difference could be for now.
  
   Mario
  
   - Original Message -
   From: Duma Rolando [EMAIL PROTECTED]
   To: Tomcat Users List [EMAIL PROTECTED]
   Sent: Friday, June 06, 2003 1:40 PM
   Subject: Re: SSL client authentication with tomcat 4.1.24
  
  
I have already imported my certificate.This is correctly showed if I
   connect
to an apache + mod-ssl server with SSLVerifyClient require
 directive,
  so
   I
think the problem belongs to Tomcat SSL implementation or its
   configuration.
That's why I'm looking for people with positive experience on this
 kind
  of
setup.
   
   
- Original Message -
From: Bodycombe, Andrew [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 12:58 PM
Subject: RE: SSL client authentication with tomcat 4.1.24
   
   
 You need to import your personal certificate into your browser.

 In IE:
 Select 'Internet Options' from the Tools Menu
 Select the Content tab
 Press the certificates button

 This takes you to the screen showing all your certificates
 Select the 'Personal' tab
 Press Import to import your certificate

 Andy

 -Original Message-
 From: Duma Rolando [mailto:[EMAIL PROTECTED]
 Sent: 06 June 2003 11:31
 To: Tomcat Mailing List
 Subject: SSL client authentication with tomcat 4.1.24


 Is there anyone that have a running tomcat 4.1.24 standalone
server
  with
SSL
 and clientAuth=true?
 My current config doesn't work ( i.e. Internet Explorer doesn't
  display
   my
 personal certificate, Mozilla displays an error message ).I tried
 with
only
 one SSL connector on port 443 and with also an http connector on
 port
  80
 without success.I would like to know if I'm wasting time or there
 are
 success stories about this in this community.


   
  -
 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]
   
   
  
 -
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: SSL client authentication with tomcat 4.1.24

2003-06-10 Thread Duma Rolando
It works, thanks a lot for your help.

- Original Message -
From: Mario Ivankovits [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 9:36 AM
Subject: Re: SSL client authentication with tomcat 4.1.24


 You have to import the root CA into the java cacerts keystore

 Assuming a windows-java installation in C:\j2sdk the location is:
 C:\j2sdk\jre\lib\security\cacerts

 using

  cd C:\j2sdk\jre\lib\security
  keytool -import -keystore cacerts -storepass changeit -file
 the-root-ca.cer

 did the job for me.

 Mario
 - Original Message -
 From: Duma Rolando [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Tuesday, June 10, 2003 9:24 AM
 Subject: Re: SSL client authentication with tomcat 4.1.24


  I'm still having trouble with my setup.
  These are my keystore entries:
 
  Tipo keystore: jks
  Provider keystore: SUN
 
  Il keystore contiene 3 entry
 
  scai, 10-giu-2003, keyEntry,
  Impronta digitale certificato (MD5):
  D5:FC:34:5E:12:03:CD:29:84:18:C9:4C:33:07:6C:5D
  _dgripbmo, 10-giu-2003, trustedCertEntry,
  Impronta digitale certificato (MD5):
  F5:ED:E9:B2:D9:71:F9:B6:6F:E9:39:27:4D:0A:A4:F7
  dumarolando, 10-giu-2003, trustedCertEntry,
  Impronta digitale certificato (MD5):
  E6:8D:22:29:5C:33:20:52:10:75:6A:8E:5D:03:4C:B3
 
  The second item is the CA certificate that signs my personal
certificate,
  the last is my personal certificate present also in my IE Personal
  certificates tab.If nothing is missing and the browser still pops up an
  empty personal certificate list, maybe there is a problem with the
  cryptographic providers or with the encription algorithms used?
  As a note my personal certificate is stored on a Gemplus smartcard
 connected
  with a USB reader all works fine if I connect to an Apache server with
  mod_ssl.
 
  - Original Message -
  From: Bill Barker [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Saturday, June 07, 2003 5:33 AM
  Subject: Re: SSL client authentication with tomcat 4.1.24
 
 
   I believe that the Sun 1.4 JVM ships with the certs for Verisign and
  Thawte
   (to verify this, search the java.sun.com site).  To allow OpenExchange
   signed certs, you need to get the signing cert (not hard), and import
it
   into cacerts.
  
   Mario Ivankovits [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
For me, it looks like some certificates cant be read by tomcat/ssl.
   
So, my Thawte FreeMail Member certificate works, but the certificate
generated by SuSE OpenExchange wont work.
   
I havent figured out what the difference could be for now.
   
Mario
   
- Original Message -
From: Duma Rolando [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 1:40 PM
Subject: Re: SSL client authentication with tomcat 4.1.24
   
   
 I have already imported my certificate.This is correctly showed if
I
connect
 to an apache + mod-ssl server with SSLVerifyClient require
  directive,
   so
I
 think the problem belongs to Tomcat SSL implementation or its
configuration.
 That's why I'm looking for people with positive experience on this
  kind
   of
 setup.


 - Original Message -
 From: Bodycombe, Andrew [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Friday, June 06, 2003 12:58 PM
 Subject: RE: SSL client authentication with tomcat 4.1.24


  You need to import your personal certificate into your browser.
 
  In IE:
  Select 'Internet Options' from the Tools Menu
  Select the Content tab
  Press the certificates button
 
  This takes you to the screen showing all your certificates
  Select the 'Personal' tab
  Press Import to import your certificate
 
  Andy
 
  -Original Message-
  From: Duma Rolando [mailto:[EMAIL PROTECTED]
  Sent: 06 June 2003 11:31
  To: Tomcat Mailing List
  Subject: SSL client authentication with tomcat 4.1.24
 
 
  Is there anyone that have a running tomcat 4.1.24 standalone
 server
   with
 SSL
  and clientAuth=true?
  My current config doesn't work ( i.e. Internet Explorer doesn't
   display
my
  personal certificate, Mozilla displays an error message ).I
tried
  with
 only
  one SSL connector on port 443 and with also an http connector on
  port
   80
  without success.I would like to know if I'm wasting time or
there
  are
  success stories about this in this community.
 
 

   -
  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: mod_jk2 build error

2004-04-02 Thread Yiannis Mavroukakis
SImple :) don't follow the instructions. 
Do a ./configure --help to get the options you need (--with-apxs2 --with-jni
--with-pcre and related java/tomcat options) then do a straight make and
manually copy the binary to your web server's module location.

-Original Message-
From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED]
Sent: 02 April 2004 05:42
To: [EMAIL PROTECTED]
Subject: mod_jk2 build error


Hi,

I am trying to build the latest release of the JK2 connector:
jakarta-tomcat-connectors-jk2-2.0.4-src. I'm running Red Hat Linux 9.0,
Apache
httpd-2.0.49 and Tomcat jakarta-tomcat-5.0.19.

I follow the directions in
jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/BUILD.txt

cd jakarta-tomcat-connectors/jk/native2
./configure --with-apxs2=/your/path/to/apxs
make
cd ../build/jk2/apache2
apxs -n jk2 -i mod_jk2.so

but the make fails with the following:

libtool: install: warning: remember to run `libtool --finish
/usr/local/apache2/modules'
/bin/cp ../../../build/jk2/apache2//usr/local/apache2/modules/mod_jk2.so
../../../build/jk2/apache2/mod_jk2.so
/bin/cp: cannot stat
`../../../build/jk2/apache2//usr/local/apache2/modules/mod_jk2.so': No such
file or directory
make[1]: *** [../../../build/jk2/apache2/mod_jk2.so] Error 1
make[1]: Leaving directory
`/usr2/download/jk/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server
/apache2'
make: *** [jk2-build] Error 1

The ./configure step ends with the following:
checking for rm... /bin/rm
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
no apxs given
need to check for Perl first, apxs depends on it...
checking for perl... /usr/bin/perl
building connector for apache-2.0
checking checking for apache13.. not provided
checking checking for apache20.. not provided
checking checking for iis.. not provided
checking checking for iPlanet.. not provided
checking for tomcat33 location... not provided
checking for tomcat40 location... not provided
checking for tomcat41 location... not provided
configure: creating ./config.status
config.status: creating Makefile
config.status: creating server/apache13/Makefile
config.status: creating server/apache13/Makefile.apxs
config.status: creating server/apache2/Makefile
config.status: creating server/apache2/Makefile.apxs
config.status: creating ../build.properties
config.status: creating scripts/build/unix/dummy
config.status: executing depfiles commands

I didn't have any problems with the previous JK2 version.  Can anyone give
me a
hint on how to resolve this?

Thanks much,
-Tom


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.


Note:__
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Jaguar Freight Services and any of its subsidiaries
each reserve the right to monitor all e-mail communications through its
networks.
Any views expressed in this message are those of the individual sender,
except where the message states otherwise and the sender is authorized
to state them to be the views of any such entity.

This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs.

RE: mod_jk2 build error

2004-04-02 Thread Thomas D. Zeimet
Thanks for your help!!!  The problem was the options for where the apache2
source was located:

  --with-apache2=
  --with-apache2-include=
  --with-apache2-lib=

-Tom

--- Yiannis Mavroukakis [EMAIL PROTECTED] wrote:
 SImple :) don't follow the instructions. 
 Do a ./configure --help to get the options you need (--with-apxs2 --with-jni
 --with-pcre and related java/tomcat options) then do a straight make and
 manually copy the binary to your web server's module location.
 
 -Original Message-
 From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED]
 Sent: 02 April 2004 05:42
 To: [EMAIL PROTECTED]
 Subject: mod_jk2 build error
 
 
 Hi,
 
 I am trying to build the latest release of the JK2 connector:
 jakarta-tomcat-connectors-jk2-2.0.4-src. I'm running Red Hat Linux 9.0,
 Apache
 httpd-2.0.49 and Tomcat jakarta-tomcat-5.0.19.
 
 I follow the directions in
 jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/BUILD.txt
 
 cd jakarta-tomcat-connectors/jk/native2
 ./configure --with-apxs2=/your/path/to/apxs
 make
 cd ../build/jk2/apache2
 apxs -n jk2 -i mod_jk2.so
 
 but the make fails with the following:
 
 libtool: install: warning: remember to run `libtool --finish
 /usr/local/apache2/modules'
 /bin/cp ../../../build/jk2/apache2//usr/local/apache2/modules/mod_jk2.so
 ../../../build/jk2/apache2/mod_jk2.so
 /bin/cp: cannot stat
 `../../../build/jk2/apache2//usr/local/apache2/modules/mod_jk2.so': No such
 file or directory
 make[1]: *** [../../../build/jk2/apache2/mod_jk2.so] Error 1
 make[1]: Leaving directory
 `/usr2/download/jk/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server
 /apache2'
 make: *** [jk2-build] Error 1
 
 The ./configure step ends with the following:
 checking for rm... /bin/rm
 checking for grep... /bin/grep
 checking for echo... /bin/echo
 checking for sed... /bin/sed
 checking for cp... /bin/cp
 checking for mkdir... /bin/mkdir
 no apxs given
 need to check for Perl first, apxs depends on it...
 checking for perl... /usr/bin/perl
 building connector for apache-2.0
 checking checking for apache13.. not provided
 checking checking for apache20.. not provided
 checking checking for iis.. not provided
 checking checking for iPlanet.. not provided
 checking for tomcat33 location... not provided
 checking for tomcat40 location... not provided
 checking for tomcat41 location... not provided
 configure: creating ./config.status
 config.status: creating Makefile
 config.status: creating server/apache13/Makefile
 config.status: creating server/apache13/Makefile.apxs
 config.status: creating server/apache2/Makefile
 config.status: creating server/apache2/Makefile.apxs
 config.status: creating ../build.properties
 config.status: creating scripts/build/unix/dummy
 config.status: executing depfiles commands
 
 I didn't have any problems with the previous JK2 version.  Can anyone give
 me a
 hint on how to resolve this?
 
 Thanks much,
 -Tom
 
 
 __
 Do you Yahoo!?
 Yahoo! Small Business $15K Web Design Giveaway 
 http://promotions.yahoo.com/design_giveaway/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.
 
 
 Note:__
 This message is for the named person's use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or lost by any mistransmission.
 If you receive this message in error, please immediately delete it and
 all copies of it from your system, destroy any hard copies of it and
 notify the sender. You must not, directly or indirectly, use, disclose,
 distribute, print, or copy any part of this message if you are not the
 intended recipient. Jaguar Freight Services and any of its subsidiaries
 each reserve the right to monitor all e-mail communications through its
 networks.
 Any views expressed in this message are those of the individual sender,
 except where the message states otherwise and the sender is authorized
 to state them to be the views of any such entity.
 
 This e-mail has been scanned for all viruses by Star Internet. The
 service is powered by MessageLabs.


__
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/

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



Re: (newbie q) Connector vs running standalone Tomcat as root

2004-05-06 Thread Parsons Technical Services
commons daemon

three machines
two TAOLinux  Tomcat 5.0.19
one RH9 Tomcat 4.1.29

Working fine.

For overkill here is a write-up I did for another poster.

How To set up RH9 and clones to start automatically and use port 80 with a
non root user.

If you have not created the user that you plan to specify in the script then
do this first.

Follow the directions under Tomcat setup located at:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/setup.html

This will create the executable needed by the script to start Tomcat.

If you followed the directions you will find the file jsvc in
$CATALINA_HOME/bin

In the$CATALINA_HOME/bin/jsvc-src/native directory there is a file named
Tomcat.sh or if you have the non Alpha package both a Tomcat.sh and
Tomcat5.sh

For this How To we are using TC5.

I renamed my file to tomcat to match the other files in init.d

#cp $CATALINA_HOME/bin/jsvc-src/native/Tomcat5.sh /etc/init.d/tomcat

#cd /etc/init.d

#vi tomcat   OR your editor of choice

Now edit the file to contain the proper environment setting for your
machine. When you are done it will look something like this:

# Adapt the following lines to your configuration
JAVA_HOME=/tomcat/java
CATALINA_HOME=/tomcat/tc5
DAEMON_HOME=/tomcat/tc5/bin
TOMCAT_USER=tomcat
TMP_DIR=/var/tmp
CATALINA_OPTS=
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

case $1 in
  start)
#
# Start Tomcat
#
$DAEMON_HOME/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Djava.io.tmpdir=$TMP_DIR \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '1' \
$CATALINA_OPTS \
-cp $CLASSPATH \
-Xms256m \
-Xmx384m \
org.apache.catalina.startup.Bootstrap
#
# To get a verbose JVM
#-verbose \
# To get a debug of jsvc.
#-debug \
;;

  stop)
#
# Stop Tomcat
#
PID=`cat /var/run/jsvc.pid`
kill $PID
;;

  *)
echo Usage tomcat start/stop
exit 1;;
esac

This is for an install of Tomcat 5 to the directory of /tomcat/tc5
The java home dir is /tomcat/java
If you followed the install directions your jsvc executable(DAEMON_HOME)
will be in /tomcat/tc5/bin ($CATALINA_HOME/bin) if not then do a search for
jsvc.

If you do not have the Tomcat5 version then change the line:

 org.apache.catalina.startup.BootstrapService

to this:

org.apache.catalina.startup.Bootstrap

I have added two setting for my memory:

-Xms256m \
-Xmx384m \

There are other way to set this in the file but mine works for me so I left
it alone. Set the values to meet your needs or delete if you plan to run the
default.

Now while you are still in the init.d directory
#./tomcat start
tomcat should start up and if you do a ps -ax you will see jsvc listed.

If you do then it's all down hill from here.

#cd /etc/rc3.d
#ln -s ../init.d/tomcat /etc/rc3.d/S15tomcat
#ln -s ../init.d/tomcat /etc/rc4.d/S15tomcat
#ln -s ../init.d/tomcat /etc/rc5.d/S15tomcat

Now to make life a little easier

#ln -s /etc/init.d/tomcat /usr/sbin/tomcat

Now from any prompt enter #tomcat stop or #tomcat start to stop/start
tomcat.

Just a note: The httpd starts at S15 also. If you are running both Tomcat
and Apache set this to either 16 to start it after Apache or 14 to start it
before Apache. I only run Tomcat so I used 15.

And just to let those who don't know only files that are named SXXsomething,
where XX is a two digit number that indicates the starting order of the
files, are started.

 The file with a KXXxx are not started. And yes that is an upper case S
or it will be ignored.

Good luck and watch for typos.

Doug
www.parsonstechnical.com


- Original Message - 
From: Barnet Wagman [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, May 06, 2004 4:45 PM
Subject: (newbie q) Connector vs running standalone Tomcat as root


 I'd like to hear people's opinions on the best way to have Tomcat
 accessible via standard ports (80 and 443).

 As I understand it, under Linux (and other unixes), ports  1000 must be
 run as root.  I've also read that there are some difficulties running
 Tomcat as root.  I gather that the alternative is to run Tomcat via a
 connector from Apache.

 I have no particular need to run Apache - nearly everything on the site
 I'm putting together requires Tomcat.  Is running Tomcat as a root
 process really impossible and/or problematic (under Linux)?  Are there
 any other downsides to running Tomcat as a standalone server?

 Thanks

 bw


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



Auto-Confirmation

2003-08-22 Thread Quest Software
Thank you for submitting your request to Quest Software Technical Support.  We are 
unable to process your request because our records indicate that you are not 
registered for Technical Support.

To register, logon to our Supportlink web site http://www.quest.com/support , and  
self-register from the web.  Or, you can phone Quest at one of the numbers below to 
register.

Once you have registered, you can submit your request within Supportlink, by email at 
[EMAIL PROTECTED], by phone at one of the numbers below.

Please do not reply to this email.

If this is an URGENT matter please contact Quest Technical Support via telephone at 
one of the numbers listed below.

Thank you,

Quest Software Technical Support
www.quest.com/support

Quest Software Technical Support - Canada   902.442.5700
Quest Software Technical Support - United Kingdom  44.1628.601007
Quest Software Technical Support - United States  949.754.8000
  Original Message
  From: Jim Chase [mailto:[EMAIL PROTECTED]
  Sent: Fri, 22 Aug 2003 13:15:26 -0700 (PDT)
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: Quickly get Tomcat running with Apache on Solaris?
  
  Bingo. 
  
  I must admint I doubted you John. But you were right.
  I untarred it with GNU tar and it worked immediately.
  
  Thanks!
  
  Jim
  
  
  --- John Turner [EMAIL PROTECTED] wrote:
   
   Don't use Solaris tar to unpack GNU software.  GNU
   software requires GNU 
   tar.  GNU tar and Solaris tar are incompatible.
   
   Tomcat is a Java application.  A binary Java
   application is a binary for 
   ALL operating systems, there are no distinctions.
   
   Did you download and install the JDK?
   
   The easiest way to get Tomcat running on Solaris is:
   
   1. download and install the JDK
   2. set JAVA_HOME to the location of the JDK from
   step #1
   3. download the Tomcat binary
   4. unpack it to /usr/local
   5. set CATALINA_HOME to location of Tomcat
   (something like 
   /usr/local/jakarta-tomcat-4.1.27 or
   /usr/local/tomcat if you're clever 
   and used ln to link /usr/local/tomcat to
   /usr/local/jakarta-tomcat-4.1.27)
   6. execute $CATALINA_HOME/bin/startup.sh
   7. view http://localhost:8080
   
   John
   
   Jim Chase wrote:
   
Solaris 9 has Apache and Tomcat loaded by default.
   I
got Apache running but Tomcat needed more work. So
   I
tried to download it from Jakarta at:

   
  
  http://apache.oregonstate.edu/jakarta/tomcat-4/binaries/

I gunzipped it and un-tarred it. Then I did what
   it
said to do in the docs...

* Unpack the binary distribution into a convenient
location so that the
 distribution resides in its own directory
(conventionally named
 jakarta-tomcat-4.0).  For the purposes of the
remainder of this document,
 the symbolic name ${catalina.home} is used to
   refer
to the full
 pathname of the release directory.


(2) Start Up Tomcat 4.0

There are two techniques by which Tomcat 4.0 can
   be
started:

* Via an environment variable:
 - Set an environment variable CATALINA_HOME to
   the
path of the directory
   into which you have installed Tomcat 4.0.
 - Execute the shell command:

 %CATALINA_HOME%\bin\startup
   (Windows)

 $CATALINA_HOME/bin/startup.sh  
   (Unix)

* By modifying your current working directory:
 - Execute the following shell commands:

 cd %CATALINA_HOME%\bin 
   (Windows)
 startup
   (Windows)

 cd $CATALINA_HOME/bin  
   (Unix)
 ./startup.sh   
   (Unix)


NOW - It won't run. I'm not even sure it was a
   Solaris
Binary.

This is what I get in the catalina.out file:

$ cat catalina.out
Exception in thread main
java.lang.NoClassDefFoundError:
org/apache/catalina/startup/Bootstrap

Whats the easiest way to get Tomcat running with
Apache on Solaris 9? 

Thanks!

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site
   design software
http://sitebuilder.yahoo.com

   
  
  -
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]
   
  
  
  __
  Do you Yahoo!?
  Yahoo! SiteBuilder - Free, easy-to-use web site design software
  http://sitebuilder.yahoo.com
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Login Password for Tomcat Web Server Administration Screen

2003-11-10 Thread Ben Souther
If you created the directory and the files under the same user that tomcat is 
running, then tomcat should have sufficient privileges to access the files. 
You can always double check by running tomcat as root.

To test the symlink, cd to the directory that contains the symlink and type:
ls ROOT (assuming that the name of the symlink is ROOT).
You should see the contents of the directory to which the link is pointing.

Have you checked the log files for errors?


On Monday 10 November 2003 01:57 pm, VISHAL SAXENA wrote:
 I restarted Tomcat number of times. I will do it again as well!
 Now, How do I know that user that tomcat is running under, have permissions
 to access that
 directory? I mean, I am a user say dspace. I installed DSpace and even
 the Tomcat as dspace user. I did specify symlink from Tomcat webapp to
 DSpace jsp directory. While looged in solaris machine, As a dspace user,
 I can visit any of the file that lies in this jsp directory. I can also
 start and shutdown Tomcat. And I am not surprised as I installed both of
 these  as a dspace user.
 However to the outer world, when I try to access these file (from browser
 through internet), How do i know, who is going to access it. And how can I
 make sure that anybody can see it through a URL, if access is a problem?

 How can I test symlink?
 I am sorry to ask so many questions as I am fairly new to Solaris and quite
 unexperienced with Tomcat.
 Regards
 ~Vishal


 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 10, 2003 1:54 PM
 To: Tomcat Users List
 Subject: Re: Login  Password for Tomcat Web Server Administration
 Screen


 Did you restart tomcat after making the symlink?
 Does the user that tomcat is running under have permissions to access that
 directory?

 Did you test your symlink?

 On Monday 10 November 2003 01:37 pm, VISHAL SAXENA wrote:
  Cool !
 
  Now I am facing another problem:
 
  bash-2.05$ cd /home/vsaxena/jakarta-tomcat-5.0.12/webapps/ROOT : is my

 Root

  directory of Tomcat.
 
  However since I want to run DSpace application on Tomcat, so as per the
  documentation of DSpace -
  Connect the DSpace webapps up to Tomcat. With many Web applications, the
  convention is to put everything associated with the application under
  Tomcat's directory. Since DSpace has many extra components, we instead
  use symlinks. Go to the webapps directory in Tomcat, and make these
  symlinks:
 
  So I have Root pointing to jsp directory of DSpace:
 
  ROOT - /home/vsaxena/dspace_Install/dspace-1.1/jsp
 
  Problem is that now if i try to look at
  http://agate.mit.edu:8080/home.jsp I get page cannot be found error (HTTP
  400-Bad request). It says The page you are looking for might have been
  removed, had its name changed, or is temporarily unavailable
 
  I verified home.jsp lies in the

 /home/vsaxena/dspace_Install/dspace-1.1/jsp

  directory.
  What might be the problem? How can I access this jsp.
  Please note that I installed Tomcat and DSpace as the same user.
 
  I will appreciate any suggestion or solution in this regard.
  Thanks and Regards
  ~Vishal
 
  -Original Message-
  From: Tim Funk [mailto:[EMAIL PROTECTED]
  Sent: Monday, November 10, 2003 1:10 PM
  To: Tomcat Users List
  Subject: Re: Login  Password for Tomcat Web Server Administration
  Screen
 
 
  http://jakarta.apache.org/tomcat/faq/security.html#login
 
  -Tim
 
  VISHAL SAXENA wrote:
   On the TOMCAT web server asministration screen, I am being asked to

 enter

   user name and password. I was just wondering when i could have given

 this

   username and password.
   I installed Tomcat, PostGRESql, DSapce and Ant. I configured all these
   and in that process I entered information at several places,. I am kind
   of
 
  lost
 
   about what i have to enter on this screen.
   ~Vishal
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ben Souther
F.W. Davison  Company, Inc.



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



RE: Installation problem

2003-11-19 Thread Wendell Holmes
To test that you've correctly set the paths, open a command window and type
'cd %java_home%'.  This should put you in the java home dir.  Then try 'cd
%catalina_home%.  If this puts you in the Tomcat home dir, you're good so
far.  Now, type 'catalina run'.  This should start tomcat in the same
window, and if it still fails to start, you'll have a trace to look at for
further clues.

Wendell


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 12:03 PM
To: [EMAIL PROTECTED]
Subject: RE: Installation problem


How are you starting Tomcat? You maybe should try setting the variables
globally via Windows Environment settings (on Windows XP, right-click on My
Computer, select Properties, Advanced tab, Environment Variables button).
Add entries under System variables for CATALINA_HOME and JAVA_HOME here and
then try starting tomcat. It may not be picking up your environment variable
changes and thus won't start. Not sure if Tomcat 5 supports it, but you
could also try running the Set commands then starting tomcat manually by
running tomcat 5.0/bin/startup...

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 19, 2003 2:02 PM
To: Tomcat Users List
Subject: RE: Installation problem


Hi angelina,

Tried as told.

set the path in the older windows way, but still finding the same flickering
window.

if i type manually
http://127.0.0.1:8080/;
i get page cannot be displayed message.

Dont know what to do. 

Hoping to recover from this problem

Please help.

Thanks in anticipation

 
 Sometimes we've had problems with older Tomcats on Windows because of 
 the space in the path name for your environment variable. I'd bet it'd 
 help here too.
 
 Try doing it the old Windows way, like this:
 
 c:\Set CATALINA_HOME=C:\Progra~1\Apache~1\Tomcat~1.0
 c:\Set JAVA_HOME=C:\Progra~1\j2sdk_nb\j2sdk1.4.2
 
 BTW, you can double-check these from a Windows command
 prompt by running dir /X.
 
 Good luck!
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 19, 2003 1:30 PM
 To: Tomcat Users List
 Subject: Re: Installation problem
 
 
 Hi Harry,
 
 Did as told.
 
 c:\Set CATALINA_HOME=C:\Program Files\Apache Software 
 Foundation\Tomcat 5.0
 
 c:\Set JAVA_HOME=C:\Program Files\j2sdk_nb\j2sdk1.4.2
 
 Still i am getting this flickering screen.
 
 Please tell me how to solve this problem.
 
 Thanks in anticipation
 
  
  Hello
  
   I changed that path name to
   
   C:\Program Files\j2sdk_nb\j2sdk1.4.2
  
  If you are talking about your $PATH system environment variable, the  
  setting should be:
  
  C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin
  
   Til now , I didnt try to create any path for JAVA_HOME AND 
   CATALINA_HOME, do i have to do that?
  
  You need both. JAVA_HOME should be:
  
  C:\Program Files\j2sdk_nb\j2sdk1.4.2
  
  CATALINA_HOME should be the root-installation folder for Tomcat,  
  wherever it is - analogous to JAVA_HOME.
  
  Good luck!
  
  Harry Mantheakis
  London, UK
  
  
   I uninstalled and reinstalled tomcat still
   experiencing the same flickering window error.
   
   While installing tomcat during the JVM path selection
   the default path listed was
   
   C:\Program Files\Oracle\jre\1.1.7
   
   I changed that path name to
   
   C:\Program Files\j2sdk_nb\j2sdk1.4.2
   
   Til now , I didnt try to create any path for JAVA_HOME AND 
   CATALINA_HOME, do i have to do that?
   
   Your help is most appreciated..
   
   Thanks in anticipation.
   
   bfn
   
   Try uninstalling, and then re-installing Tomcat.  It
  should then   pick up your J2SDK install path.  If
  this doesn't work, then try  
 ÊTALINA_HOME%\bin\catalina run
  ,  and post the error messages on the list for more
  help. 
   [EMAIL PROTECTED] wrote in message
   news:[EMAIL PROTECTED]
   Sorry to bother you with this elementary question.
  But being a   neebie I am finding difficulties in installing  
  tomcat 5.0 
   1. I ran the installation file for installing the
  tomcat  5.0.
   2. Then I ran the j2sdk setup file , since tomcat
  was asking for a   JVM. 3.
   i. Now, i clicked the Start Tomcat icon the
  windows  key + Program files + Apache tomcat. I find
  a window  disappearing as soon as it appears.
   
   ii. I tried again by running the catalina.bat or
  startup.exe file   icon in the bin folder of tomcat. Again  , 
  i find the disappearing window.
   
   iii. Even if i run that file in the command prompt i
  am  getting the same response.
   
   I also need to know as to how I could allow a friend
  access my   files via the browser. i.e where should i make  
  the appropriate modifications to allow him to view my  files. 
   
   Your help will be most appreciated.
   
   Thanks for your help inanticipation
  
  
 
 
 --
  --- To unsubscribe, e-mail:
 [EMAIL PROTECTED] For additional
  commands

Vedr.: RE: Vedr.: service installer for TC5

2003-12-12 Thread Thomas Nybro Bolding
Hi Jacob,
I guess not really as I simply installed Tomcat out-of-the box thus 
letting the Tomcat installation take care of the windows service.
Afterwards I tried without succes to change to server jvm whereby I 
learned it used my public JRE. So far I havent been able to find any 
documentation of the windows registry settings which have changed quite a 
bit since 4.1.27 :-(

As I also have struggled somewhat with JK2 under NT I have ordered a clean 
Windows 2000 installation hoping this might ease things a bit. I will give 
my old NT box a last shot and will post any findings if succesfull. Based 
on my previous track record I wouldt hope to much though...

/Thomas




Jacob Lund [EMAIL PROTECTED]
12-12-03 13:43
Besvar venligst til Tomcat Users List

 
Til:'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Vedr.:  RE: Vedr.: service installer for TC5

Hi Thomas!

OK, now I am getting closer! I am using windows and I also need to use a 
JRE
in a specific location! In this case I have the JRE placed in the tomcat
directory!

I have made following .bat file in the tomcat directory:

set RUNTIME_MODULE=%CD%\jre
set ServerPath=%CD%

bin\tomcat.exe //IS//Serv  --Description Slide Server --ImagePath
%ServerPath%\bin\bootstrap.jar --StartupClass
org.apache.catalina.startup.Bootstrap;main;start --ShutdownClass
org.apache.catalina.startup.Bootstrap;main;stop --Java
%RUNTIME_MODULE%\bin\server\jvm.dll --StartupClass
org.apache.catalina.startup.Bootstrap;main;start --Install
%ServerPath%\bin\tomcat.exe --StdOutputFile %ServerPath%\logs\stdout.txt
--StdErrorFile %ServerPath%\logs\stderr.txt --JavaOptions -Xrs 
--WorkingPath
%ServerPath%

This works fine when I run tomcat //TS//Serv, but the service fails and
there does not seem to bee any log information available!

Is this the same problem that you have?

/Jacob

-Original Message-
From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] 
Sent: 12. december 2003 11:25
To: Tomcat Users List
Subject: Vedr.: service installer for TC5

Having been through the installation process for 5.0.16 a few times by now 

I can assure it is pretty self explanatory.
Ensure you have j2sdk installed and a JAVA_HOME variable set.

Im still strugling trying to get Tomcat not to use the public JRE though 
but this may be NT specific???
I have had some problems with JK2 and NT and therefore recommend 
Windows2000 if you as I must use M$.

/Thomas




Jacob Lund [EMAIL PROTECTED]
12-12-03 11:16
Besvar venligst til Tomcat Users List

 
Til:[EMAIL PROTECTED]
cc: 
Vedr.:  service installer for TC5

I am sorry if this is a stupid question - but I cannot find any
documentation on how to use the tomcat.exe service installer included in
tomcat 5.0.16.

Thanks
/Jacob


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





FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig 
information.
Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst
informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder 
vi
dig slette e-mailen i dit system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er
fri for virus og andre fejl, som kan paavirke computeren eller 
it-systemet,
hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi
paatager os ikke noget ansvar for tab og skade, som er opstaaet i
forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you
have received this message by mistake, please inform the sender of the
mistake by sending a reply, then delete the message from your system 
without
making, distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from
viruses and other errors that might affect the computer or IT system where
it is received and read, the recipient opens the message at his or her own
risk. We assume no responsibility for any loss or damage arising from the
receipt or use of this message.
/FONT



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





RE: Vedr.: RE: Vedr.: service installer for TC5

2003-12-12 Thread Jacob Lund
Have a look in registry at location:

HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat Service
Manager

I am pretty sure that you will have to do the service installation yourself
or change the one installed by tomcat! Try to put the batch program I made
into a .bat file at execute it in your tomcat directory and copy the jre to
the tomcat directory too! It is close but not there yet! :-)

/Jacob

-Original Message-
From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] 
Sent: 12. december 2003 15:14
To: Tomcat Users List
Subject: Vedr.: RE: Vedr.: service installer for TC5

Hi Jacob,
I guess not really as I simply installed Tomcat out-of-the box thus 
letting the Tomcat installation take care of the windows service.
Afterwards I tried without succes to change to server jvm whereby I 
learned it used my public JRE. So far I havent been able to find any 
documentation of the windows registry settings which have changed quite a 
bit since 4.1.27 :-(

As I also have struggled somewhat with JK2 under NT I have ordered a clean 
Windows 2000 installation hoping this might ease things a bit. I will give 
my old NT box a last shot and will post any findings if succesfull. Based 
on my previous track record I wouldt hope to much though...

/Thomas




Jacob Lund [EMAIL PROTECTED]
12-12-03 13:43
Besvar venligst til Tomcat Users List

 
Til:'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Vedr.:  RE: Vedr.: service installer for TC5

Hi Thomas!

OK, now I am getting closer! I am using windows and I also need to use a 
JRE
in a specific location! In this case I have the JRE placed in the tomcat
directory!

I have made following .bat file in the tomcat directory:

set RUNTIME_MODULE=%CD%\jre
set ServerPath=%CD%

bin\tomcat.exe //IS//Serv  --Description Slide Server --ImagePath
%ServerPath%\bin\bootstrap.jar --StartupClass
org.apache.catalina.startup.Bootstrap;main;start --ShutdownClass
org.apache.catalina.startup.Bootstrap;main;stop --Java
%RUNTIME_MODULE%\bin\server\jvm.dll --StartupClass
org.apache.catalina.startup.Bootstrap;main;start --Install
%ServerPath%\bin\tomcat.exe --StdOutputFile %ServerPath%\logs\stdout.txt
--StdErrorFile %ServerPath%\logs\stderr.txt --JavaOptions -Xrs 
--WorkingPath
%ServerPath%

This works fine when I run tomcat //TS//Serv, but the service fails and
there does not seem to bee any log information available!

Is this the same problem that you have?

/Jacob

-Original Message-
From: Thomas Nybro Bolding [mailto:[EMAIL PROTECTED] 
Sent: 12. december 2003 11:25
To: Tomcat Users List
Subject: Vedr.: service installer for TC5

Having been through the installation process for 5.0.16 a few times by now 

I can assure it is pretty self explanatory.
Ensure you have j2sdk installed and a JAVA_HOME variable set.

Im still strugling trying to get Tomcat not to use the public JRE though 
but this may be NT specific???
I have had some problems with JK2 and NT and therefore recommend 
Windows2000 if you as I must use M$.

/Thomas




Jacob Lund [EMAIL PROTECTED]
12-12-03 11:16
Besvar venligst til Tomcat Users List

 
Til:[EMAIL PROTECTED]
cc: 
Vedr.:  service installer for TC5

I am sorry if this is a stupid question - but I cannot find any
documentation on how to use the tomcat.exe service installer included in
tomcat 5.0.16.

Thanks
/Jacob


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





FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig 
information.
Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst
informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder 
vi
dig slette e-mailen i dit system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er
fri for virus og andre fejl, som kan paavirke computeren eller 
it-systemet,
hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi
paatager os ikke noget ansvar for tab og skade, som er opstaaet i
forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you
have received this message by mistake, please inform the sender of the
mistake by sending a reply, then delete the message from your system 
without
making, distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from
viruses and other errors that might affect the computer or IT system where
it is received and read, the recipient opens the message at his or her own
risk. We assume no responsibility for any loss or damage arising from the
receipt or use of this message.
/FONT



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

Re: RE: hide source of a page -- Ref #[1M5bh1ZAo41sUre]

2004-11-08 Thread referrals

Dear Derek Clarkson [EMAIL PROTECTED],

Thank you for contacting the Juno Help Center.

Please be advised that this is an automated response aimed at assisting you 
with some common issues. If your concern is not addressed, please write back to 
us with the complete details of your query.

Also note that, to answer any query regarding your referral status, we would 
require the Juno e-mail ID of either party - the referrer (member who referred 
the new member to Juno) and the referee (new member who signed up for Juno). 
Please ensure that you enclose these details in your reply.

Best regards,
Juno Customer Care

---
Frequently Asked Questions:

1. I want to refer my friend to Juno. Please send a Juno disk to his address.

2. I referred a member/members to Juno, when will I receive my referral check?

3. The e-mail address I entered for my referrer is incorrect. Can I change it? 
If so, how?

4. I referred my friend to Juno Free Internet service. Am I eligible for 
referral bonus?

5. What are rules of the Juno Tell-A-Friend Program?

---
Answers

1. I want to refer my friend to Juno. Please send a Juno disk to his address.

To have the CD-ROM mailed to your friend:

1.Open Juno
2.From Help menu select Give Juno to a friend.
3.Click on Yes! Give my friend Juno software
4.Click on the radio button next to Send my friend a Juno CD-ROM and fill 
in all the required information.

You can enter up to ten names and addresses per month to have software sent to 
your friends and family.

If you have access to the World Wide Web, you can also go to our Web site, 
http://dl.www.juno.com/ordercd_new.html?campaign=juorder where you can request 
a copy of the software by mail or enter addresses for your friends and family.

2. I referred a member/members to Juno, when will I receive my referral check?

If the new member remains with Juno premium service for a period of 90 
consecutive days from date of signup, the referrer will receive via U.S. mail a 
check for the amount specified at http://www.juno.com/refer/.

Please allow two to four weeks for delivery of the check after the new member 
has completed 90 consecutive days with Juno Premium service. The check will be 
mailed to the address specified in the referrer's Member Profile.


3. The e-mail address I entered for my referrer is incorrect. Can I change it? 
If so, how?

Please visit our My Account pages, located at http://account.juno.com, and 
click on `Refer-A-Friend Program' to change the e-mail address of your 
referring member. Please note that you have fifteen days after the date of your 
original signup to change the address. Changes will not be accepted after that 
time.


4. I referred my friend to Juno Free Internet service. Am I eligible for 
referral bonus?

According to our referral policy - In order for the referring member to be 
eligible for the cash payment, the new member must register for the 
then-current Juno premium flat rate plan. Hence, if you referred a member to 
Juno Free Internet service, you will not be eligible to claim the referral 
bonus.


5. What are rules of the Juno Tell-A-Friend Program?


The official rules of the Juno Tell-A-Friend Program are listed below:

1. Any Juno member may refer a new member to Juno Premium service in order to 
take part in this program.

2. New members cannot be current or former members of any Juno service i.e. 
Existing free members or canceled members upgrading to Premium service will not 
be able to view the box designated for referrals at the time of signup. 

3. The new member must enter the referring member's Juno e-mail address in the 
box designated for referrals during the sign-up process. All information 
gathered will be used only in accordance with Juno's privacy policy. Signup 
must take place online (rather than by telephone with a customer service 
representative).

4. The new member must sign up and remain with the Juno Premium service for a 
period of 90 consecutive days. Only then, the referring member will receive via 
U.S. mail a check for the amount specified at http://www.juno.com/refer/. 
Please allow two to four weeks for delivery of the check after the new member 
has completed 90 consecutive days with Juno Premium service. The check will be 
mailed to the address specified in the referring member's Member Profile.

5. The new member's account must be current (that is, there must be no balance 
past due) in order for Juno to pay the referring member.

6. Members will not receive payment for referring themselves to Juno service. 

7. Juno maintains a My Account Web page at http://account.juno.com/, where 
referring members may check the status of accounts they have referred to Juno 
Web. Please report any problems or questions to [EMAIL PROTECTED] Customer 
service representatives cannot answer questions regarding referrals by 
telephone.


-
To unsubscribe, e

virtual hosts howto! (jk2/apache2.0.50||iis5.0/tomcat5.0.25)

2004-09-17 Thread Alex

For a while now, i've been making posts, which for the most part have gone
unanswered.  Mostly I believe it's because people that do know the answer
aren't on the list...Anyways, I threw together a few docs about how i
managed to finally get everythign working fine with the above apps.

A lot of this was taken from documentation i've found scattered around the
internet and stuffed into README's...

1.  With apache: (assumes you have apache working)

Obtain the Tomcat JK2 connectors source code.  http://jakarta.apache.org/
jakarta-tomcat-connectors-jk2-2.0.4-src was used in this instance.
Unpack the distribution and enter the directory.

cd jk/native2

Compile the JK2 adapter:
- the options used:
#! /bin/sh
#
# Created by configure
./configure  \
--with-jni  \
--with-apxs2=/opt/apache-2.0.50/bin/apxs  \
--with-apache2=/usr/local/src/httpd-2.0.50  \
--with-java-home=/usr/local/jdk  \
$@

- make.  once it's finished compiling go find the module: cd 
../build/jk2/apache2

Now, we want to take the module we've compiled against the apache2 apxs
and do something with it.

- /opt/apache-2.0.50/bin/apxs -n jk2 -i mod_jk2.so

Add the following to the apache httpd.conf:

LoadModule jk2_module modules/mod_jk2.so

Create a workers2.properties in conf (where httpd.conf is localised).
The one located below was developed and is used to support clustered
tomcat application servers.

[shm]
file=/tmp/shm.file
size=1048576

[lb:lb]
info=Tomcat load balance

[channel.socket:server1]
port=8009
host=10.1.1.1
type=ajp13
group=lb

[channel.socket:server2]
port=8009
host=10.1.1.2
type=ajp13
group=lb

[uri:www.virtualhost1.com/*.jsp]
worker=lb:lb

[uri:www.virtualhost1.com/*.do]
worker=lb:lb

[uri:www.virtualhost2.com/*.jsp]
worker=lb:lb

[uri:www.virtualhost2.com/*.do]
worker=lb:lb

2.  With IIS5.0

Obtain the binary release for the JK2 isapi dll from http://jakarta.apache.org/

Create a registry file and insert the following information into it:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi Redirector\2.0]
workersFile=C:\\Apache\\Tomcat5\\conf\\workers2.properties
extensionUri=/jakarta/isapi_redirector2.dll
logLevel=debug
serverRoot=C:\\Apache\\Tomcat5\\

Create the folders which have been defined above in the registry file.

Double click the registry file to import it into the registry.

Create the virtual hosts in iis5.0 according to the iis documentation.
Register a new isapi dll with the virtual host and ensure that a virtual
directory within the virtual host exists called: jakarta which points at
the directory where the isapi_dll is stored.  Restart IIS and you should
see in the properties, under isapi, the dll is now green.

Create a workers2.properties in conf in the directory that workersFile is
defined in the registry file.  The one located below was developed and is
used to support clustered tomcat application servers.

(Use the one in the apache example.  The only difference is that the
shm.file will move to somewhere other then /tmp)

3.  Setting up tomcat

By default, in server.xml for tomcat, you'll have the following host set up:

Host appBase=webapps name=localhost unpackWARs=true autoDeploy=true 
xmlValidation=false xmlNamespaceAware=false
  Valve className=org.apache.catalina.authenticator.SingleSignOn/
  Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_log. 
suffix=.txt timestamp=true/
/Host

To get virtual hosts working so that the jk2 adapters work, create
another. (I created a new dir $CATALINA_HOME$/virtual-hosts)

Host appBase=virtual-hosts/www.virtualhost1.com
name=www.virtualhost1.com unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
  Valve className=org.apache.catalina.authenticator.SingleSignOn/
  Logger className=org.apache.catalina.logger.FileLogger
prefix=www.virtualhost1.com_log. suffix=.txt timestamp=true/
/Host

Host appBase=virtual-hosts/www.virtualhost2.com
name=www.virtualhost2.com unpackWARs=true
autoDeploy=true xmlValidation=false xmlNamespaceAware=false
  Valve className=org.apache.catalina.authenticator.SingleSignOn/
  Logger className=org.apache.catalina.logger.FileLogger
prefix=www.virtualhost2.com_log. suffix=.txt timestamp=true/
/Host

Now all of it should work.  Apps deployed to virtualhost1 will not be seen
by virtualhost2

Hope this helps a few people save a few hours of searching and mucking
about...




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



built mod_jk2 on fedora with tomcat 5.0.16 (working)

2004-01-11 Thread martin grotzke
hi all,

after very long nights, i finally got mod_jk2 built so that it
now works on a fedora system with with apache2 and tomcat5.

i don't know if everything i did when building and configuring
is really required, but with the given steps it worked for me.

as i read a lot on this list i want to give this back to you,
perhaps it's useful for someone and saves some time.

if you find things which are unnecessary or unimportant, please
post it.


---
Prerequisites, System
  * Fedora Core 1, 2.4.22-1.2140.nptl (fc1 binary rpm)
  * httpd-2.0.48-1.2, httpd-devel-2.0.48-1.2 (fc1 binary rpm)
  * apr-util-0.9.4-2, apr-devel-0.9.4-2, apr-0.9.4-2,
apr-util-devel-0.9.4-2 (fc1 binary rpm)
  * java-1.4.2-sun-1.4.2.01-4jpp, java-1.4.2-sun-devel-1.4.2.01-4jpp
(jpackage.org)
  * tomcat5-5.0.16-2jpp (jpackage.org)


---
Building
Configure jakarta-tomcat-connectors-jk2-src
# unzip jakarta-tomcat-connectors-jk2-src-current.zip -d .
# cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2/

# export CPPFLAGS=-I/usr/include/apr-0

# sh ./buildconf.

# chmod 755 configure

# ./configure --with-apxs2=/usr/sbin/apxs --with-apr-lib=/usr/lib
--with-apr-include=/usr/include/apr-0
--with-tomcat-41=/usr/share/tomcat5 --with-jni
--with-java-home=/usr/lib/jvm/java

Modify server/apache2/Makefile:
# vi server/apache2/Makefile
  * Change LIBTOOL to LIBTOOL=/usr/bin/libtool
  * Change JK_LDFLAGS to JK_LDFLAGS=-L${APACHE2_LIBDIR} -lcrypt
-lapr-0 -lpcre -lpcreposix -laprutil-0

Build
# make

# libtool --finish /usr/lib/httpd/modules


---
Verify Build and Install
change to build dir

# cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/

# ldd jkjni.so 
gives 

[EMAIL PROTECTED] apache2]# ldd jkjni.so
libcrypt.so.1 = /lib/libcrypt.so.1 (0x008e3000)
libapr-0.so.0 = /usr/lib/libapr-0.so.0 (0x00179000)
libpcre.so.0 = /lib/libpcre.so.0 (0x00bb5000)
libpcreposix.so.0 = /usr/lib/libpcreposix.so.0 (0x00713000)
libaprutil-0.so.0 = /usr/lib/libaprutil-0.so.0 (0x00342000)
libc.so.6 = /lib/tls/libc.so.6 (0x00e65000)
librt.so.1 = /lib/tls/librt.so.1 (0x00686000)
libm.so.6 = /lib/tls/libm.so.6 (0x005a3000)
libnsl.so.1 = /lib/libnsl.so.1 (0x00839000)
libdl.so.2 = /lib/libdl.so.2 (0x00615000)
libldap.so.2 = /usr/lib/libldap.so.2 (0x002f6000)
liblber.so.2 = /usr/lib/liblber.so.2 (0x00111000)
libgdbm.so.2 = /usr/lib/libgdbm.so.2 (0x00361000)
libdb-4.1.so = /usr/lib/tls/libdb-4.1.so (0x00199000)
libexpat.so.0 = /usr/lib/libexpat.so.0 (0x00571000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x00b29000)
libpthread.so.0 = /lib/tls/libpthread.so.0 (0x0011d000)
libresolv.so.2 = /lib/libresolv.so.2 (0x0012d000)
libsasl2.so.2 = /usr/lib/libsasl2.so.2 (0x00d99000)
libssl.so.4 = /lib/libssl.so.4 (0x0013f000)
libcrypto.so.4 = /lib/libcrypto.so.4 (0x003fb000)
libgssapi_krb5.so.2 = /usr/lib/libgssapi_krb5.so.2 (0x0055d000)
libkrb5.so.3 = /usr/lib/libkrb5.so.3 (0x00723000)
libcom_err.so.2 = /lib/libcom_err.so.2 (0x00174000)
libk5crypto.so.3 = /usr/lib/libk5crypto.so.3 (0x0025a000)
libz.so.1 = /usr/lib/libz.so.1 (0x0027c000)

# ldd mod_jk2.so
gives 
[EMAIL PROTECTED] apache2]$ ldd mod_jk2.so
libc.so.6 = /lib/tls/libc.so.6 (0x0056f000)
/lib/ld-linux.so.2 = /lib/ld-linux.so.2 (0x00d3b000)

# cp *.so /usr/lib/httpd/modules/


---
[Additional] Configuration
Add to /etc/tomcat5/tomcat5.conf:
serverRoot=/etc/httpd
export serverRoot

User/Groups of apache and tomcat4:
[EMAIL PROTECTED] conf]# id apache
uid=48(apache) gid=48(apache) groups=48(apache),91(tomcat4)
[EMAIL PROTECTED] conf]# id tomcat4
uid=91(tomcat4) gid=91(tomcat4) groups=91(tomcat4),48(apache)

Configuration files (and this description, too) can be found at
http://www.javakaffee.de/wiki/jsp/Wiki?BuildModJk (at the bottom of the
page): workers2.properties, jk2.properties, example for vhost


that's all, i hope it's helpful,
cheers,
martin


signature.asc
Description: This is a digitally signed message part


RE: After a successful build of tomcat from build.xml, how do I i nstall it?

2005-06-09 Thread Clark, Benjamin
Thanks!  That worked.  In the end, I opted for the 'ant release' way of
doing it, but I can see that the other way works too. 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Thursday, June 09, 2005 12:36 AM
To: tomcat-user@jakarta.apache.org
Subject: Re: After a successful build of tomcat from build.xml, how do I
install it?

Optionally copy your build.properties file to .../jakarta-tomcat-5.  Then in

your .../jakarta-tomcat-5/build.properties file add the property:
tomcat.dist=/path/to/my/tomcat/install/dir

Then from .../jakarta-tomcat-5 do 'ant dist'.  This is the closest to 'ant 
install' that you can get.  The other option (w/o necessarily setting the 
property above) is to do 'ant release' from the .../jakarta-tomcat-5 
directory.  That will create the source and binary release .tar.gz and .zip 
files that you could otherwise install just as if you had downloaded them.

In short, the top-level build.xml is just a convenience file.  The one with 
all the power is the one in jakarta-tomcat-5.

Clark, Benjamin [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
I am a Tomcat newbie, having been a Perl webguy for the past 5 years.



 Because I like to build that which I use from source, I am trying to get
 Tomcat running on my Linux laptop using a build.xml file from
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/build.xml
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/build.xml



 I created a /home/tomcatd/tomcat_build directory, put the build.xml file 
 in
 there, and then created a build.properties file with
 base.path=/home/tomcatd/lib



 $ pwd

 /home/tomcatd/tomcat_build

 $ ls

 build.xml

 build.properties

 $ ant



 ... blah blah blah - build was successful



 $ ls

 build.properties  jakarta-servletapi-5
 jakarta-tomcat-connectors

 build.xml   jakarta-tomcat-5
 jakarta-tomcat-jasper

 jakarta-commons   jakarta-tomcat-catalina   LICENSE







 This is all the instructions for 'Building Tomcat' say to do.



 $ cd jakarta-tomcat-5

 $ ls

 BENCHMARKS.txtcompat NOTICE
 RUNNING.txt

 Build CVS
 RELEASE-NOTES tomcat.nsi

 BUILDING.txt deployer
 RELEASE-PLAN-5.0.txt

 build.properties.defaultKEYS
 RELEASE-PLAN-5.5.txt

 build.xml   LICENSE  resources



 $ cd build

 $ ls

 bincommondocs logs  shared  tests
 work

 classes conf  lib servertemp
 webapps





 This is the stuff ( I think ) that comes with the pre-compiled
 distributions.



 It would seem there is one more step akin to a 'make install' that I need 
 to
 perform, but I can't seem to find it.



 Does anyone know what I would need to do to actually install the stuff in
 the build directory into another directory from which it could be used?



 Yes, I know I could just copy the stuff out myself, but I would have a
 nagging feeling there might be an 'ant install' step I should have done 
 that
 may or may not do more than just copy stuff.



 Thanks.




 -
 Please note that with our change to TD Banknorth, N.A. our e-mail 
 addresses
 have changed. Please make note of my new e-mail address. And while our 
 name
 has changed, remember this: Everything else has stayed  the same.
 




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

-
Please note that with our change to TD Banknorth, N.A. our e-mail addresses
have changed. Please make note of my new e-mail address. And while our name
has changed, remember this: Everything else has stayed  the same.


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



urgent , pls help ssl and apache and tomcat

2002-10-21 Thread Maninder S Batth
If apache is intercepting ssl requests, and forwards requests to tomcat, 
does  tomcat needs to be ssl enabled??? and should i use ajp or https 
connector between apache
and tomcat  for the request to work successfuly over ssl?? any help 
would be appreciated.

[EMAIL PROTECTED] wrote:

Jake

In response to your following suggestion:

Are you sure that Tomcat isn't already running as a service?  If
Tomcat is already listening to the ports that a new instance would
try to listen to, then you would get that behavior.  The window would
just close.  For easier debugging, you might want to open a command
prompt and cd to where the tomcat startup batch files are and run them
via the command line rather than double clicking the batch files.
That way, you should see some error messages in the console.

I ran the startup.bat file and got the same behavior.  I see results on the 
screen for a second, then the screen disappears.  The shutdown results do 
stay in the original window.  However, I'm getting error message connected 
with the sshutdown.  Here they are:

C:\Tomcat\Tomcat 4.1\binshutdown
Using CATALINA_BASE:   c:\Tomcat\Tomcat 4.1
Using CATALINA_HOME:   c:\Tomcat\Tomcat 4.1
Using CATALINA_TMPDIR: c:\Tomcat\Tomcat 4.1\temp
Using JAVA_HOME:   c:\j2sdk1.4.1
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
   at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
   at java.net.Socket.connect(Socket.java:426)
   at java.net.Socket.connect(Socket.java:376)
   at java.net.Socket.init(Socket.java:291)
   at java.net.Socket.init(Socket.java:119)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:579)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.j

ava:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

What is the cause of this exception?  What do I need to do to fix it?

Thanks for your help 

Ann

 


--
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



RE: My Start and Stop Tomcat windows do not stay up

2002-10-21 Thread Paul French
Try running catalina.bat run (instead of startup.bat) and you should see all
messages in the same console window. That way you can see what might be
wrong with your server.xml or web.xml file

Paul

-Original Message-
From: [EMAIL PROTECTED] [mailto:AnnWenzel;aol.com] 
Sent: 21 October 2002 17:41
To: [EMAIL PROTECTED]
Subject: Re: My Start and Stop Tomcat windows do not stay up

Jake

In response to your following suggestion:

Are you sure that Tomcat isn't already running as a service?  If
Tomcat is already listening to the ports that a new instance would
try to listen to, then you would get that behavior.  The window would
just close.  For easier debugging, you might want to open a command
prompt and cd to where the tomcat startup batch files are and run them
via the command line rather than double clicking the batch files.
That way, you should see some error messages in the console.

I ran the startup.bat file and got the same behavior.  I see results on
the 
screen for a second, then the screen disappears.  The shutdown results
do 
stay in the original window.  However, I'm getting error message
connected 
with the sshutdown.  Here they are:

C:\Tomcat\Tomcat 4.1\binshutdown
Using CATALINA_BASE:   c:\Tomcat\Tomcat 4.1
Using CATALINA_HOME:   c:\Tomcat\Tomcat 4.1
Using CATALINA_TMPDIR: c:\Tomcat\Tomcat 4.1\temp
Using JAVA_HOME:   c:\j2sdk1.4.1
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:579)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.j

ava:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

What is the cause of this exception?  What do I need to do to fix it?

Thanks for your help 

Ann

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Link Error Building JK2 on Solaris 9

2002-11-12 Thread Robert Williams
Hi,
I gathered up as much info as I can from this list google etc. but I
can't figure this on out.
I am compiling JK2 on Solaris 9. I makes it all the way through the
compile and builds mod_jk2 but then dies when it tries to build
jkjni.so. From my amateur look at the log it would seem that I am
missing a file in  /usr/local/apache2/lib. Should that file have been
built with Apache? Any help would be appreciated. 

--
snip
./build/jk2/apache2/jk_shm.lo ../../../build/jk2/apache2/jk_signal.lo
../../../build/jk2/apache2/jk_uriEnv.lo
../../../build/jk2/apache2/jk_uriMap.lo
../../../build/jk2/apache2/jk_user.lo
../../../build/jk2/apache2/jk_vm_default.lo
../../../build/jk2/apache2/jk_workerEnv.lo
../../../build/jk2/apache2/jk_worker_ajp13.lo
../../../build/jk2/apache2/jk_worker_jni.lo
../../../build/jk2/apache2/jk_worker_lb.lo
../../../build/jk2/apache2/jk_worker_run.lo
../../../build/jk2/apache2/jk_worker_status.lo  -L/usr/local/apache2/lib
-lcrypt -lapr -lc
ld: fatal: library -lapr: not found
ld: fatal: File processing errors. No output written to
../../../build/jk2/apache2/.libs/jkjni.so
make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1
make[1]: Leaving directory
`/export/home/rcw/jakarta-tomcat-connectors-4.1.12-src/jk/native2/server
/apache2'
make: *** [jk2-build] Error 1
rcwsun:~/jakarta-tomcat-connectors-4.1.12-src/jk/native2 $

--
rcwsun:~ $ ls /usr/local/apache2/lib/
apr.exp libapr-0.so.0.9.2*  libexpat.a
aprutil.exp libaprutil-0.a  libexpat.la*
libapr-0.a  libaprutil-0.la libexpat.so
libapr-0.la libaprutil-0.solibexpat.so.0
libapr-0.solibaprutil-0.so.0  libexpat.so.0.1.0*
libapr-0.so.0  libaprutil-0.so.0.9.2*
rcwsun:~ $
---
Appacbe build
./configure --enable-layout=Apache --enable-module=most
--enable-mods-shared=most

install GNU Tools
autoconf-2.54-sol9-sparc-local.gz
tar-1.13.19-sol9-sparc-local.gz
m4-1.4-sol9-sparc-local
automake-1.7.1-sol9-sparc-local
make-3.80-sol9-sparc-local.gz
libtool-1.4

Build jk2 Conector 
cd ${conector.home}/jk/native2
sh ./buildconf.sh

cp  /usr/java/include/solaris to /usr/java/include/

CPPFLAGS=-DBSD_COMP  ./configure \
  --with-apxs2=/usr/local/apache2/bin/apxs \
  --with-tomcat41=/usr/local/tomcat \
  --with-java-home=${JAVA_HOME} \
  --with-java-platform=2 \
  --with-jni

make CPPFLAGS=-DBSD_COMP




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Startup Problem - Win2K - How To Get Stacktrace?

2002-11-21 Thread Lance Smith
Tomcat doesn't require Ant unless you are building it.
Have you looked at the log files in CATALINA_HOME\logs for any ideas.
The other option is to open a command window, cd to CATALINA_HOME\bin and
run
startup.
regards,
Lance Smith

-Original Message-
From: Douglas Reames [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: Fwd: Startup Problem - Win2K - How To Get Stacktrace?



Could it be that until Ant is installed, that Tomcat does not have all of
the class files it needs for deployment and startup?

regards,
Douglas Reames


Hi,
I am trying to run Tomcat 4.1 on a Win2K box, and 'startup' is
problematic.  I have set the environment variables, and pointed the
JAVA_HOME to JDK1.3.  And yet, I the startup does not complete.  I have
included the script output - environment variables - below.  When it runs,
I can see that I am getting a stacktrace, but it runs in another DOS
window that is gone before I can read it.

What I would like to get instruction on is how do I tell Tomcat to either:

[A] Direct the stacktrace to a log file,  OR
[B] Force Tomcat to send its output ( stacktrace )  to the DOS window that
I issue the 'startup.bat' command on.

Thanks ahead for any assistance.

Regards,
Douglas Reames

G:\%CATALINA_HOME%\bin\startup
Using CATALINA_BASE:   G:\Tomcat4.1
Using CATALINA_HOME:   G:\Tomcat4.1
Using CATALINA_TMPDIR: G:\Tomcat4.1\temp
Using JAVA_HOME:   G:\jdk1.3.1_04
execjava is start Tomcat G:\jdk1.3.1_04\bin\java
java_opts is 
catalina_opts is 
debug_opts is 
java_endorsed_dirs is G:\Tomcat4.1\bin;G:\Tomcat4.1\common\endorsed
classpath is G:\jdk1.3.1_04\lib\tools.jar;G:\Tomcat4.1\bin\bootstrap.jar
catalina_base is G:\Tomcat4.1
catalina_home is G:\Tomcat4.1
catalina_temp is G:\Tomcat4.1\temp
mainclass org.apache.catalina.startup.Bootstrap
cmd_line
action  start
G:\


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



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


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




RE: Startup Problem - Win2K - How To Get Stacktrace?

2002-11-21 Thread srinath narasimhan
To get the output in the same window, in your script
where you say action start, change that to action run
that runs tomcat in the same command window.
hope that helps.

-Original Message-
From: Lance Smith [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 09:46
To: 'Tomcat Users List'
Subject: RE: Startup Problem - Win2K - How To Get Stacktrace?


Tomcat doesn't require Ant unless you are building it.
Have you looked at the log files in CATALINA_HOME\logs for any ideas.
The other option is to open a command window, cd to CATALINA_HOME\bin and
run
startup.
regards,
Lance Smith

-Original Message-
From: Douglas Reames [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: Fwd: Startup Problem - Win2K - How To Get Stacktrace?



Could it be that until Ant is installed, that Tomcat does not have all of
the class files it needs for deployment and startup?

regards,
Douglas Reames


Hi,
I am trying to run Tomcat 4.1 on a Win2K box, and 'startup' is
problematic.  I have set the environment variables, and pointed the
JAVA_HOME to JDK1.3.  And yet, I the startup does not complete.  I have
included the script output - environment variables - below.  When it runs,
I can see that I am getting a stacktrace, but it runs in another DOS
window that is gone before I can read it.

What I would like to get instruction on is how do I tell Tomcat to either:

[A] Direct the stacktrace to a log file,  OR
[B] Force Tomcat to send its output ( stacktrace )  to the DOS window that
I issue the 'startup.bat' command on.

Thanks ahead for any assistance.

Regards,
Douglas Reames

G:\%CATALINA_HOME%\bin\startup
Using CATALINA_BASE:   G:\Tomcat4.1
Using CATALINA_HOME:   G:\Tomcat4.1
Using CATALINA_TMPDIR: G:\Tomcat4.1\temp
Using JAVA_HOME:   G:\jdk1.3.1_04
execjava is start Tomcat G:\jdk1.3.1_04\bin\java
java_opts is 
catalina_opts is 
debug_opts is 
java_endorsed_dirs is G:\Tomcat4.1\bin;G:\Tomcat4.1\common\endorsed
classpath is G:\jdk1.3.1_04\lib\tools.jar;G:\Tomcat4.1\bin\bootstrap.jar
catalina_base is G:\Tomcat4.1
catalina_home is G:\Tomcat4.1
catalina_temp is G:\Tomcat4.1\temp
mainclass org.apache.catalina.startup.Bootstrap
cmd_line
action  start
G:\


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



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


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


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




RE: Startup Problem - Win2K - How To Get Stacktrace?

2002-11-21 Thread Douglas Reames
Thanks Lance,

Your comments helped jog my memory.  The startup routine is looking for the 
InputSource class file from the xml package.  Now I have a starting point.

Regards,
Douglas Reames


At 08:45 AM 11/21/2002 -0600, you wrote:
Tomcat doesn't require Ant unless you are building it.
Have you looked at the log files in CATALINA_HOME\logs for any ideas.
The other option is to open a command window, cd to CATALINA_HOME\bin and
run
startup.
regards,
Lance Smith

-Original Message-
From: Douglas Reames [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:26 AM
To: [EMAIL PROTECTED]
Subject: Fwd: Startup Problem - Win2K - How To Get Stacktrace?



Could it be that until Ant is installed, that Tomcat does not have all of
the class files it needs for deployment and startup?

regards,
Douglas Reames


Hi,
I am trying to run Tomcat 4.1 on a Win2K box, and 'startup' is
problematic.  I have set the environment variables, and pointed the
JAVA_HOME to JDK1.3.  And yet, I the startup does not complete.  I have
included the script output - environment variables - below.  When it runs,
I can see that I am getting a stacktrace, but it runs in another DOS
window that is gone before I can read it.

What I would like to get instruction on is how do I tell Tomcat to either:

[A] Direct the stacktrace to a log file,  OR
[B] Force Tomcat to send its output ( stacktrace )  to the DOS window that
I issue the 'startup.bat' command on.

Thanks ahead for any assistance.

Regards,
Douglas Reames

G:\%CATALINA_HOME%\bin\startup
Using CATALINA_BASE:   G:\Tomcat4.1
Using CATALINA_HOME:   G:\Tomcat4.1
Using CATALINA_TMPDIR: G:\Tomcat4.1\temp
Using JAVA_HOME:   G:\jdk1.3.1_04
execjava is start Tomcat G:\jdk1.3.1_04\bin\java
java_opts is 
catalina_opts is 
debug_opts is 
java_endorsed_dirs is G:\Tomcat4.1\bin;G:\Tomcat4.1\common\endorsed
classpath is G:\jdk1.3.1_04\lib\tools.jar;G:\Tomcat4.1\bin\bootstrap.jar
catalina_base is G:\Tomcat4.1
catalina_home is G:\Tomcat4.1
catalina_temp is G:\Tomcat4.1\temp
mainclass org.apache.catalina.startup.Bootstrap
cmd_line
action  start
G:\


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



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


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



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




Re: dynamically built server.xml

2002-11-22 Thread Bill Barker
With 4.1.x, you can configure the Contexts with xml files located under the
directory specified for the Host.  Look in the webapps directory of the
default Tomcat install for examples.

PERRIN GOURON Olivier [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...


I read the docs, but couldn't find any solution but those I mentioned
My problem is that I run Tomcat from a CD-ROM...
I actually need to use virtual directories, which I want to define each
time I run Tomcat (virtual directory : I mean directories that can be
accessed with http://localhost:8080/myVirtualDir but that are not truly on
the appBase directory).
I build these directories defining contexts in server.xml (the only way I
found to do that)
In the same way, I want to define the Host workDir dynamically...


-Message d'origine-
De : Turner, John [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 22 novembre 2002 17:15
À : 'Tomcat Users List'
Objet : RE: dynamically built server.xml



Check the docs, specifically the Automatic Application Deployment section:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html#Automatic%2
0Application%20Deployment

John

 -Original Message-
 From: PERRIN GOURON Olivier [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 22, 2002 11:01 AM
 To: '[EMAIL PROTECTED]'
 Subject: dynamically built server.xml


 Hello,
 I'm trying tomcat4.1 to run my application, and I need to
 define contexts
 dynamically. I know this is done in server.xml, but the point
 is that my
 /conf directory, where server.xml remains is read-only...
 So, I think of 2
 possibilities:
 +tell tomcat not to look in /conf dir, but in another
 one I could
 write in
 +Inside server.xml, reference external documents that would be
 replaced when tomcat reads server.xml Are these two solutions
 possible with
 tomcat - and how ?
 any third idea?

 thanks
 Olivier

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


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





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




Re: HELP!! Tomcat crashes on me!

2002-12-01 Thread Peng Tuck Kwok
As far as I can tell, the zipped version is identical to the exe distro 
for each identical version, save the fact that the exe lets you start 
tomcat as a service, create shell extensions and create the admin user 
for the tomcat administration.

Jacob's suggestion is useful, try and run the start.bat from a command 
prompt, it's easier to see the errors. The last time I encountered the 
error was when there wasn't enough environment space to keep variables 
in the autoexec.bat

Jacob Kjome wrote:

Steve,

I assume you are just double clicking on one of the Tomcat .bat files to 
run Tomcat.  Instead, open up a command prompt, cd to the directory 
where the .bat files are and type the name of the .bat file you want to 
run.  Now you will see the error output.

Jake

At 11:01 PM 12/1/2002 -0600, you wrote:

Kwok, the so-called crash is like it just flat disappearing on me!!! I
mean, it's like puff, like up in smoke so to speak!! And, in 
response to
a smurray, I already am and have been using the zip file version of 
Tomcat!!
Is there some merit to what I suggested, namely that I delete and then 
turn
around and set all of the environment variables for Tomcat in the System
settings?!


- Original Message -
From: Kwok Peng Tuck [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, December 01, 2002 6:04 PM
Subject: Re: HELP!! Tomcat crashes on me!


 Seems to be ok for me , both zip  exe.
 What's the crash like, I mean what errors were displayed?

 [EMAIL PROTECTED] wrote:

 one thing I have learned about running Tomcat on Windows:
 
 It works great if I just unzip the bin download file and set the
catalina_home
 environment variable manually.
 
 It has problems if I download the installation executable and 
install it
via
 the installer.
 
 just something I have noticed...
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 
 



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



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






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




Can't compile some JSPs

2002-12-05 Thread Will Hartung
I posted this before but got nothing, perhaps folks didn't like my subject,
but this is STILL happening (I'm trying to build Tomcat from source so I can
hack it to get better information at this stage, but that's a trauma in its
own right).

Any glimpses of hope would be appreciated.

Tomcat Binary 4.1.12
W2K
Cygwin

I have our WAR that runs peachy in 3.2, and I'm trying to get it to work in
4.1.

I downloaded the binary.

Extracted it.

Copy our WAR into $CATALINA_HOME/webapps

cd $CATALINA_HOME/bin
./catalina.sh run

Tomcat extracts the WAR and starts up.

I go to our login url: http://localhost:8080/app/Login.jsp

THIS compiles fine, and then redirects to a LoginTemplate.jsp.

When the LoginTemplate.jsp tries to compile, I get a happy page filled with:
org.apache.jasper.JasperException: /LoginTemplate.jsp(131,12)
jsp.error.badaction
 at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.
java:94)
 at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:417
)
 at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126
)
 at org.apache.jasper.compiler.Parser.parseAction(Parser.java:676)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:807)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:122)
 at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)
 at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:219)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)
 at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

(It goes on beyond this, but I'm guessing it's not real relevant to the
issue).

Now, this is a pretty meaningless message.

I took a guess that this: /LoginTemplate.jsp(131,12)  is trying to point me
to some relevant location within the JSP, and at line 131 of
LoginTemplate.jsp we have:

jsp:include page=/Include/Login/logincontrols.jsp flush=true /
jsp:param name=testing value='yes'/
/jsp:include

I also tried using the JSPC in hope that it would give me something
relevant, but all I ever got was a Null Pointer Exception, and nothing
generated.

$CATALINA_HOME/bin jspc.sh ../webapps/app/LoginTemplate.jsp
2002-11-20 11:35:14 - ERROR-the file '\LoginTemplate.jsp' generated the
following general exception: java.lang.NullPointerException
error:null

I also got the same result when trying to compile the Login.jsp (which
compiled fine in the container), and when I tried the -webapp switch.

At this point, I'm pretty dead in the water and would appreciate any glaring
omissions that I've made.

Thanx!

Regards,

Will Hartung
([EMAIL PROTECTED])





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




RE: I fail to get green arrow for filter status.. IIS with Tomcat

2002-07-06 Thread Andrew Conrad

Hey Anoop,

Maybe I can try and help you.  A couple of things we need to check
before we move on.

I need to know the size of your isapi_redirector.dll and the exact file
name (some use isapi_redirect.dll) and the physical path to the file on
your machine. 

I also need to know the version of Tomcat and Windows.

Zip up your workers.properties file, uriworkermap.properties file and an
export of your Apache Foudation Registry key.  Attach it to your
response.

If you will post that information, I'll try and step you through it.  I
had a difficult time configuring Tomcat 4.03 with the isapi_redirect.dll
from Tomcat 3.3 and that may be the problem you are expreriencing.  I
had the best luck using the ZIP file included in the zip file located at
(http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm).


-Andrew

-Original Message-
From: Anoop Kumar V [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, July 06, 2002 11:45 AM
To: 'Tomcat Users List'
Subject: I fail to get green arrow for filter status.. IIS with Tomcat


hi,

i know this issue has been raised many, many times, but i cdnt get
anything from the archives. I am trying to configure IIS with Tomcat,
and am following the very popular link
(http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm).. but try as many
times as i could. i fail to get a green arrow in my filter status
window. I just cannot think abt where i had made a mistake. I hv
rechecked my registry setting many times over, also set the Filter DLLs,
but what cd hv gone wrong..i fail to see. i hv restarted IIS and also
rebooted my comp several times. One thing i did not do is register the
dll. none of the docs suggested that anyway..

Need help pls.

-anoop

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




RE: jar_cache files

2002-07-10 Thread Mark Prins

tomcat keeps a lock on all the current jar_cache files; if you write a batch
file that runs once a day that removes them the directory shouldn't clutter
with outdated cache files.

a batchfile with something like:

cd \temp
del /F /Q jar_cache*.tmp

this will generate error messages for files that are in use, but you don't
want to delete those anyway..
Mark


 -Original Message-
 From: Arnaud HERITIER [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, July 10, 2002 2:07 PM
 To: 'Tomcat Users List'
 Subject: RE: jar_cache files
 
 
 But if there are several tomcat servers on the same server, how can I
 recognize which jar_cache file belong to which server ???
 
  -Message d'origine-
  De : Skondras P. [mailto:[EMAIL PROTECTED]]
  Envoye : mercredi 10 juillet 2002 13:55
  A : Tomcat Users List
  Objet : Re: jar_cache files
 
 
  You can delete them after stoping tomcat and before 
 starting it again
  This is at least what i do.
 
  Arnaud HERITIER wrote:
 
   Hello.
  
   For a customer I developped a webapp which will be deployed
  under Tomcat
   4.0.1 (Because of the validation cycle which can't allow me
  to upgrade the
   release easily).
  
   When TC starts, it creates in the temp directory several
  jar_cache* files. I
   suppose that it represents all jars in all webapps. But
  this files are never
   deleted :-(
  
   The production team ask me if this files can be deleted ??
  And if yes, when
   ???
  
   Are this jars used only at the boot time or during all the
  life of TC ??
  
   Thanks.
 Arnaud HERITIER
 EAI Consulting
 Sopra Group
 T?l. : +33 (0)1 53 33 44 74
 email : [EMAIL PROTECTED]
  
 Ce message est exclusivement destin? aux personnes dont
  le nom figure
   ci-dessus. Il peut contenir des informations 
 confidentielles dont la
   divulgation est ? ce titre rigoureusement interdite. Dans
  l'hypoth?se o?
   vous avez re?u ce message par erreur, merci de le renvoyer ?
   l'adresse
   e-mail ci-dessus et de d?truire toute copie.
  
 This message may contain confidential and proprietary
  material for the
   sole use of the intended recipient. Any review or
  distribution by others is
   strictly prohibited. If you are not the intended recipient,
  please contact
   the sender and delete all copies.
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 



Re: explicit ordering of jars searched by classloader in web application

2002-07-17 Thread Will Hartung

From: Tait E Larson [EMAIL PROTECTED]
Sent: Wednesday, July 17, 2002 10:56 AM
Subject: explicit ordering of jars searched by classloader in web
application


 I've got three third party jar files in the WEB-INF/lib directory of my
web
 aplication that  contain different versions of the same classes.  I need
to
 explicitly state the order in which the classloader searches these jars in
 order for my web application to work correctly.   Can this be done by
 manipulating the classloader at runtime? Would it be possible to
explicitly
 state the jar ordering somewhere in web.xml?

Wow! That's certainly a issue that's fraught with peril.

Depending on how the container is written, it could be placing the jars in
the lib directory in a couple of different orders. They could be in
alphabetical order, or they could be in directory order (i.e. the order they
show up in an unsorted directory).

The Servlet Spec doesn't have anything about ordering the jars in lib
directory, so while a container can offer some specific information, it
won't be portable to another container. You certainly shouldn't rely on the
system directory layout itself, as that could change by simply reloading the
directory, or from platform to platform.

The BEST solution would be to pull the jars apart and build a single
correct jar that is not dependent upon the classpath load order. The
easiest way to do this would be to simply unjar them in reverse classpath
order, so that whatever you want search first is unjarred last.

For example:

$ mkdir newjar
$ cd newjar
$ jar xf /path/to/3rdPartyLibOriginal.jar
$ jar xf /path/to/3rdPartyLibServicePack1.jar
$ jar xf /path/to/3rdPartyLibServicePack2.jar
$ jar cf /path/to/Integrated3rdPartyLib.jar .

Basically, this lets the latter jars overwrite the same named classes from
the earlier jars, and has the same effect as placing them before one another
in a classpath.

The other solution is to put them on the system classpath in the order
desired, but then they're not in the webapp WAR file.

Regards,

Will Hartung
([EMAIL PROTECTED])




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




Re: explicit ordering of jars searched by classloader in web application

2002-07-17 Thread Tait E Larson


I'm not as concerned with portability.  I'd like to get this guy up and
running.

I tried merging jars into one single jar.  Unfortunately the manifest file
contain Message Digests for each class.

I tried setting the classpath in st


|-+
| |   [EMAIL PROTECTED]  |
| |   (Will Hartung)   |
| ||
| |   07/17/2002 11:50 |
| |   AM   |
| |   Please respond to|
| |   Tomcat Users|
| |   List|
| ||
|-+
  
--|
  |
  |
  |   To:   Tomcat Users List [EMAIL PROTECTED]   
  |
  |   cc:  
  |
  |   Subject:  Re: explicit ordering of jars searched by classloader in web 
application |
  |
  |
  |
  |
  
--|



From: Tait E Larson [EMAIL PROTECTED]
Sent: Wednesday, July 17, 2002 10:56 AM
Subject: explicit ordering of jars searched by classloader in web
application


 I've got three third party jar files in the WEB-INF/lib directory of my
web
 aplication that  contain different versions of the same classes.  I need
to
 explicitly state the order in which the classloader searches these jars
in
 order for my web application to work correctly.   Can this be done by
 manipulating the classloader at runtime? Would it be possible to
explicitly
 state the jar ordering somewhere in web.xml?

Wow! That's certainly a issue that's fraught with peril.

Depending on how the container is written, it could be placing the jars in
the lib directory in a couple of different orders. They could be in
alphabetical order, or they could be in directory order (i.e. the order
they
show up in an unsorted directory).

The Servlet Spec doesn't have anything about ordering the jars in lib
directory, so while a container can offer some specific information, it
won't be portable to another container. You certainly shouldn't rely on the
system directory layout itself, as that could change by simply reloading
the
directory, or from platform to platform.

The BEST solution would be to pull the jars apart and build a single
correct jar that is not dependent upon the classpath load order. The
easiest way to do this would be to simply unjar them in reverse classpath
order, so that whatever you want search first is unjarred last.

For example:

$ mkdir newjar
$ cd newjar
$ jar xf /path/to/3rdPartyLibOriginal.jar
$ jar xf /path/to/3rdPartyLibServicePack1.jar
$ jar xf /path/to/3rdPartyLibServicePack2.jar
$ jar cf /path/to/Integrated3rdPartyLib.jar .

Basically, this lets the latter jars overwrite the same named classes from
the earlier jars, and has the same effect as placing them before one
another
in a classpath.

The other solution is to put them on the system classpath in the order
desired, but then they're not in the webapp WAR file.

Regards,

Will Hartung
([EMAIL PROTECTED])




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







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




RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on linux

2002-08-21 Thread Sullivan, Mark E

The AC_PROG_CPP error is normal, and can be expected with some versions
autoconf. This error seems like it would be caused by the configure script
failing, or possibly a bad distribution. However, i'd redirect the output of
the configure command to a file for easier inspection. 

 -Original Message-
 From: Mathew Pole [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, August 20, 2002 7:39 PM
 To: 'Tomcat Users List'
 Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
 linux
 
 
 Hi ,
 
 I tried this and found that ...
 
 When I ran ./buildconf.sh, it reported the following error:
 configure.in:24: AC_PROG_CPP was called before AC_PROG_CC
 
 I ignored this and ran ./configure which appeared to work okay.
 
 Unfortunately, the make command failed with (suspect this is caused by
 ./buildconf.sh failing):
 
 Makefile:20: /usr/local/apache2/build/config_vars.mk: No such file or
 directory
 make[1]: *** No rule to make target
 '/usr/local/apache2/build/config_vars.mk'.
 Stop.
 Make[1]: Leaving directory
 '/home/mpole/download/jakarta-tomcat-connectors-4.0.4-src/jk/n
 ative/apache-2
 .0'
 make: *** [all-recursive] Error 1
 
 Anyone have a suggestion (or at this point I will settle for 
 a nice prebuilt
 mod_jk.so for apache 2.0.39)?
 
 Thanks,
Mathew
 
 
 -Original Message-
 From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, 20 August 2002 11:02 PM
 To: 'Tomcat Users List'
 Subject: RE: BAD packet - Apache 2.0.39 + mod_jk (or mod_webapp) on
 linux
 
 
 Sorry, my mistake. I misread your email. Now that i think 
 about it some
 more, i didn't use ant to build the connector. These are the steps i
 followed
 
 cd /home/mark/jakarta-tomcat-connectors-4.1.9-src/jk/native
 
 ./buildconf.sh
 ./configure --with-apxs=/usr/local/apache2/bin/apxs
 make 
 make install
 
 The --with-apxs command ensures that the module is built for 
 the correct
 version of apache, using that version's own apxs script. 
 Assuming no errors
 occur, the jk module should have been put into your apache/modules
 directory.
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Re: STILL Need Help w. Tomcat Install

2002-08-21 Thread Will Hartung

From: STEVE R BURRUS [EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 12:50 PM


 This is Steve Burrus again, and I am damned sorry to have to post my plea
for
 help/assistance again, but everyday when I first access my email there are
 literally 100's of postings from other members of the Tomcat newsgroup,
and my
 original post--and any response--is VERY DIFFICULT to locate, so here it
is again:
   How exactly does one go about installing the Tomcat 4.0.* correctly??? I
have
 racked my brain in trying to figure out how to do this, but I simply
cannot do
 it myself, I am afraid to say! Thanx in advance to anyone who can help me!

Speaking of list volume...

Since 99% of the people here simply Reply to the e-mail, 99% of the
responses to your pleas should have the SAME SUBJECT as you used
originally (this e-mail is a perfect example).

If your e-mail client can not filter, sort, or whatever by e-mail subject,
then you simply need to get a better client. Clearly your current client is
not adequate to the tasks for which you wish to use it (for example,
managing a high volume mailing list).

As far as your request, you give NO details as to what is wrong, or how
you think your installation is not correct. No details whatsoever.

You don't say what things you've tried, what documents you refered to for
guidance in those attempts, and how they are not working.

The basic, binary install works just peachy out of the box. Extract it to
someplace appropriate, cd $WHERE_YOU_EXTRACTED_IT/bin, type 'startup.sh' or
'startup.bat', and boom, it works. Your JAVA_HOME environment variable must
be set.

It's that simple.

Finally, the point of a mailing list is not simply a forum to scream and
shout for help, its a community for sharing knowledge. Just like a USENET
newsgroup, the value in the mailing list is seeing how the problems that
people have are worked out ON the mailing list, thus when someone else has a
problem, the archives will hopefully have the answers.

There are few things more aggravating that seeing nothing but pleas but no
answers in a mailing list. That makes it essentially worthless, both for the
current readers and for future readers.

So, never expect private mail, particularly early on, from a public forum.
It's not fair to anyone.

But, why am I saying all of this, when you won't read it anyway.

Regards,

Will Hartung
([EMAIL PROTECTED])




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




Running test applications in tomcat 4.0

2002-02-25 Thread Nicholson, Dale

Help please!  I've seen similar issues on this list but not the answers.
Can anyone tell me why I get the unable to connect to remote host errors?

I thought that possibly my CATALINA_HOME was not set correctly since I could
not cd $CATALINA_HOME but the startup script says it is using the correct
directory. 
Running on Redhat 7.1, Java SDK 1.4.0, Tomcat version 4.0


I get the following return from startup.sh (no errors):
[root@labatt bin]# ./startup.sh
Using CATALINA_BASE:   /usr/share/jakarta-tomcat-4.0
Using CATALINA_HOME:   /usr/share/jakarta-tomcat-4.0
Using CATALINA_TMPDIR: /usr/share/jakarta-tomcat-4.0/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.0/
[root@labatt bin]#



When I try to bring up the test applications in a browser I get the
following errors (I've tried with several different ports after making the
change in server.xml as suggested in the RUNNING.txt file):
[root@labatt bin]# lynx http://localhost:8080/

Alert!: Unable to connect to remote host.


Looking up localhost:8080
Making HTTP connection to localhost:8080
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost:8080/
[root@labatt bin]#


Shutdown.sh gives the following errors:
[root@labatt bin]# ./shutdown.sh
Using CATALINA_BASE:   /usr/share/jakarta-tomcat-4.0
Using CATALINA_HOME:   /usr/share/jakarta-tomcat-4.0
Using CATALINA_TMPDIR: /usr/share/jakarta-tomcat-4.0/temp
Using JAVA_HOME:   /usr/java/j2sdk1.4.0/
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Jdk14Logger
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:494)
at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
va:285)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400)
at org.apache.commons.digester.Digester.init(Digester.java:309)
at org.apache.catalina.startup.Catalina.createStopDigester(Unknown
Source)
at org.apache.catalina.startup.Catalina.stop(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Jdk14Logger
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:404)
at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
va:487)
... 12 more
Caused by: java.lang.ClassNotFoundException:
org.apache.commons.logging.impl.Jdk14Logger
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
at org.apache.catalina.loader.StandardClassLoader.loadClass(Unknown
Source)
at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
mpl.java:398)
... 13 more

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




Re: Compiling mod_webapp.so ...

2002-03-04 Thread brian ally

'lo,

this warning may be ignored. The group that wrote mod_SSL needed to add 
some hooks into the server engine, and created the EAPI. The warning was 
added by them. BUT, most, if not all, modules do not depend on EAPI. 
 AFAIK, these changes haven't _officially_ been accepted.

The warning is showing up because you've installed the apache rpm, which 
was compiled by redhat with the -DEAPI flag. With the older mod_webapp, 
you didn't see it because, once again, it was an rpm. If you were to 
uninstall apache and compile from source you wouldn't see it. i see it 
because i'm running mod_SSL. i suggest you ignore it for now, keep your 
server as it is, and, if you get any weird crashes, try the deapi 
mod_webapp. There's a mod compiled with -DEAPI floating around at the 
jakarta site (but i can't remember the name/version).

/b

Julien OIX wrote:

Hi everyone,

Because of an upload file's bug with mod_webapp-1.0-2.i386.rpm, I've
done a snapshot from cvs to compile my own .so .
It seems that the bug has diseappered, but when I restart Apache, it
tells me :

Starting httpd: [Mon Mar  4 09:18:05 2002] [warn] Loaded DSO
modules/mod_webapp.so uses plain Apache 1.3 API, this module might crash
under EAPI! (please recompile it with -DEAPI)


Here are the steps to compile :

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
jakarta-tomcat-connectors/webapp
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic checkout
apr

cd $SNAPSHOT/webapp

./support/buildconf.sh
./configure --with-apxs=/usr/bin/apxs --with-apr=./apr/
make

and I get my mod_webapp.so in $SNAPSHOT/webapp/apache-1.3/

does anyone know where to include the -DEAPI compiling flag ?

I'm using these RPM's on a Linux RedHat 7.1

apache-1.3.22-1.7.1 (with mod_throttle-3.1.2-3 mod_put-1.3-2
mod_bandwidth-2.0.3-2)

tomcat4-4.0.2-3

thanks in advance.

--
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [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]




Make, won't create mod_webapp.so

2002-04-03 Thread David Parham

I'm trying to link apache-2.0.32 to tomcat-4.0.3 using
webapp-module-1.0.1-tc401.  On a RS/6000 with AIX4.3.3

I run the ./configure --with-apxs=/app/apache-2/bin/apxs.
This appears to run correctly, no errors are returned.
I then run the make command.  It returns the following data, again no
errors.

# make

make[]: Entering directory lib
make[]: Invoking make  build
make[]: Generating pr_warp_defs.h from
/download/webapp-module-1.0.1-tc401/java/Constants.java

make[]: Creating library libwebapp.la
/app/apache-2/build/libtool /usr/bin/gcc -rpath
/download/webapp-module-1.0.1-tc401/lib -
static -o libwebapp.la wa_main.lo  wa_config.lo  wa_request.lo pr_info.lo
pr_warp.lo  pr_warp_pa
cket.lo  pr_warp_network.lo  pr_warp_config.lo
rm -fr .libs/libwebapp.la .libs/libwebapp.* .libs/libwebapp.*
ar cru .libs/libwebapp.a  wa_main.o wa_config.o wa_request.o pr_info.o
pr_warp.o pr_warp_packet.o
 pr_warp_network.o pr_warp_config.o
ranlib .libs/libwebapp.a
creating libwebapp.la
(cd .libs  rm -f libwebapp.la  ln -s ../libwebapp.la libwebapp.la)
/app/apache-2/build/libtool --silent --mode=install
/download/webapp-module-1.0.1-tc401/
support/install.sh -c  libwebapp.la  /download/webapp-module-1.0.1-tc401/lib
--
Libraries have been installed in:
   /download/webapp-module-1.0.1-tc401/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LIBPATH' environment variable
 during execution
   - use the `-Wl,-blibpath:LIBDIR:/usr/lib:/lib' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
--
/app/apache-2/build/libtool --silent --mode=finish
/download/webapp-module-1.0.1-tc401/l
ib
Target build is up to date.
make[]: Exiting directory lib

make[]: Entering directory apache-2.0
make[]: Invoking make  build
Target build is up to date.
make[]: Exiting directory apache-2.0
Target all is up to date.

I've tried running the ./configure commands with various different flags.
But always the same result.  There is never a mod_webapp.so file in the
apache-2.0 dir.

If anyone has any insight they'd like to share I would be very hapy to hear
it.

thanks
David
[EMAIL PROTECTED]


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




Re: mod_webapp build problem

2002-04-09 Thread Jean-Luc BEAUDET

Srinidhi H. a écrit :

 Hello,

 I am trying to build mod_webapp module on hp-ux platform and getting the
 following error while running configure script of this module.
 I ran the following command after building libtool and placing it in current
 path.

 #./configure --with-apxs=/opt/apache1322/bin/apxs
 Building APR configure script
   Invoking: ./buildconf in /opt/apache1322/webapp-module-1.0-tc40/apr
 APR buildconf: buildconf: checking installation...
 APR buildconf: buildconf: autoconf not found.
 APR buildconf: You need autoconf version 2.13 or newer installed
 APR buildconf: to build Apache from CVS.
   Execution of ./buildconf returned 1
 configure: error: APR buildconf terminated with error code 1

 Can any one help me out to over come the above mentioned error.

 Regards,
 Srinidhi

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

Well i had the same pb on SOLARIS 8 after i made some modifications...

I was workin' under root, to have my installations achieved, and obviously with
/bin/sh shell...

As i like the completion and other stuff, i used the ENV=$HOME/.kshrc; export
ENV features to get some
special features when enter an exec ksh.

In this .kshrc i had an echo New Shell : $0, just to know where i am.

I tried then to have my mod_webapp compiled and had the error yu mentionned.

I investigated:

When yu launch the webapp/support/buildconf.sh

if [ -f ./apr/buildconf ]
then
echo --- Running the \buildconf\ script for APR
( cd ./apr
sh ./buildconf
)

The script looks for webapp/apr/buildconf and if true, generates a child
process () and executes a sh ./buildconf

The first thing is done is to make an sh of apr/biuld/biuldconf.sh

and in this third fiel yu have :
ac_version=`autoconf --version 2/dev/null|head -1|sed -e 's/^[^0-9]*//' -e
's/[a-z]* *$//'`

The head -1 says to bind the sed to the first line of the `autoconf
--version`
In My case, the first line was the echoed cmd of my .kshrc file, cause i was
under ksh !

ksh# New Shell -ksh
autoconf (GNU Autoconf) 2.52
Written by David J. MacKenzie.

So try to trace this file and yu'll get it !

The best has to be to stay under /bin/sh

Hope this help,

JLB :O)




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




Re: TC hidding console

2002-04-12 Thread yilmaz

Hi Raymond,
Can you kindly tell us which line did you change in catalina.bat or
startup.bat?
Because i tried to replace java with javaw in catalina.bat,
tomcat couldn't startup.
Thnaks :)
- Original Message -
From: RAYMOND Romain [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, April 12, 2002 9:02 PM
Subject: Re: TC hidding console



yeah, thanks
javaw was my good gift of the afternoon.

Peter Romianowski a écrit :

 or simply use javaw instead of java (you would have to look into
catalina.bat or .sh
 in order to change that)

  -Original Message-
  From: Andy Eastham [mailto:[EMAIL PROTECTED]]
  Sent: Friday, April 12, 2002 2:09 PM
  To: Tomcat Users List; [EMAIL PROTECTED]
  Subject: RE: TC hidding console
 
 
  There is a /b option in the start command that prevents a new window
being
  created.  You could try hacking the startup scripts to use this.  I
haven't
  tried this though.
 
  Andy
 
   -Original Message-
   From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
   Sent: 12 April 2002 12:50
   To: Tomcat Users List
   Subject: Re: TC hidding console
  
  
  
   Because it is to give a demo embended on a CD and I would not like
   to make all my debugs appear ...
  
   Barney Hamish a écrit :
   
Why don't you just run Tomcat as a service. Then you'll never see
the
console.
   
-Original Message-
From: RAYMOND Romain [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 12, 2002 1:45 PM
To: Tomcat Users List
Subject: TC hidding console
   
Hello,
   
is there a way under Windows2000 to hide TC console when starting up
?
   
thanks.
   
--
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]
  
  
 
 
 
  --
  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]



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




RE: Question about Tomcat-Apache HOWTO

2002-04-16 Thread Animesh Chaturvedi - US


Tomcat 3.0 and Tomcat4.0 are fundamentally very different. 
Tomcat 4.0.3 will not create any tomcat-apache.conf.
For using Tomcat and Apache together you can use mod_webapp.

Follow this link

http://dcb.sun.com/practices/howtos/tomcat_apache.jsp


Animesh

-Original Message-
From: Cheng Yan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 1:16 PM
To: Tomcat Users List
Subject: Re: Question about Tomcat-Apache HOWTO


My tomcat is 4.0.3. Should this version create the same file
tomcat-apache.conf or something equivalent?

Thanks,


- Original Message -
From: Animesh Chaturvedi - US [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, April 16, 2002 16:08
Subject: RE: Question about Tomcat-Apache HOWTO


 Well
 the document you are pointing to, is for old version of Tomcat. Which
 version of Tomcat are you using??

 Animesh

 -Original Message-
 From: Cheng Yan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 16, 2002 1:05 PM
 To: Tomcat Users List
 Subject: Question about Tomcat-Apache HOWTO


 According to an article Tomcat-Apache HOWTO on
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html :

 QUOT.
 ==
 When Tomcat starts up it will automatically generate a configuration file
 for Apache in TOMCAT_HOME/conf/jserv/tomcat-apache.conf. Most of the time
 you don't need to do anything but include this file (appending Include
 TOMCAT_HOME/conf/jserv/tomcat-apache.conf) in your httpd.conf.
 
 UNQUOT.

 However, when I start tomcat on my machine, everything seems fine except
 that I do not see file tomcat-apache.conf. I assume that TOMCAT_HOME is
 the same as CATALINA_HOME, right? I don't even see a subdir call jserv. Is
 this normal?

 BYW, my machine is ultra-sparc 1 running Solaris 8. I can visit
 http://localhost:8080, though. And there are only following files under my
 $CATALINA_HOME/conf:

 % cd $CATALINA_HOME/conf
 % ls
 catalina.policy
 server.xml
 tomcat-users.xml
 web.xml

 Could someone explain it to me? Thanks.


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

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




Re: Question about Tomcat-Apache HOWTO

2002-04-16 Thread rob

Yeah, I recall this with 3.3 in some backwoods piece of documentation it 
says that you have to start tomcat with startup.sh some arg to 
generate the .conf file.  (maybe ajpconf) or ajpid or something can't 
remember.  Anyway the generated file only ever contained something 
similar to the following.

# start mod_jk.conf

IfModule !mod_jk.c
   LoadModule jk_module libexec/mod_jk.so
/IfModule

JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties
JkLogFile /usr/local/jakarta-tomcat/logs/mod_jk.log

JkLogLevel emerg

JkMount /examples/* ajp13

#end mod_jk.conf

Obviously you'll have to adjust paths according to where your 
${tomcat.home} and ${apache.home}/libexec are.

The workers.properties can be stolen out of one of the tomcat 3.3 binary 
packages and munged to work also.

Lastly, the conf works with tomcat 3.3.x and I've also been using it 
with 4.0.3.  If anyone has improvements don't be shy.

Rob

Cheng Yan wrote:
 According to an article Tomcat-Apache HOWTO on
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html :
 
 QUOT.
 ==
 When Tomcat starts up it will automatically generate a configuration file
 for Apache in TOMCAT_HOME/conf/jserv/tomcat-apache.conf. Most of the time
 you don't need to do anything but include this file (appending Include
 TOMCAT_HOME/conf/jserv/tomcat-apache.conf) in your httpd.conf.
 
 UNQUOT.
 
 However, when I start tomcat on my machine, everything seems fine except
 that I do not see file tomcat-apache.conf. I assume that TOMCAT_HOME is
 the same as CATALINA_HOME, right? I don't even see a subdir call jserv. Is
 this normal?
 
 BYW, my machine is ultra-sparc 1 running Solaris 8. I can visit
 http://localhost:8080, though. And there are only following files under my
 $CATALINA_HOME/conf:
 
 % cd $CATALINA_HOME/conf
 % ls
 catalina.policy
 server.xml
 tomcat-users.xml
 web.xml
 
 Could someone explain it to me? Thanks.
 
 
 --
 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: Apache 2.0.35, tomcat 4.0.3 and mod_webapp

2002-04-22 Thread Simon Stewart

On Sat, Apr 20, 2002 at 10:04:35PM -0400, Jeffrey Bonevich wrote:
 Simon Stewart wrote:
 
 Yet more digging suggests that this could be a bug: attaching an
 strace to the httpd process as it starts up gives:
 
 write(2, Syntax error on line 1018 of /us..., 66) = 66
 write(2, Duplicate connection name\n, 26) = 26
 _exit(1)= ?
 
 Where line 1018 refers to:
 
 WebAppConnection warpConnection warp localhost:8008
 
 This is the first connection I've tried to set up, so it's a bit of a
 specious error IMHO. I've filed a bug report with the apache bugzilla
 installation (view it at:
 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8331 )
 
 If anyone's got this working, I'd be fascinated to know how you did
 it
 
 
 I have, without the errors you mention.  I assume you compiled Apache 2 
 from source?  If so, send along the config.status file from your run of 
 configure.  Basically, I did this:
 
 cd ${APACHE_2_SRC_HOME}
 ./configure --prefix=/usr/local/apache2 --enable-mods-shared=all
 make
 make install

Yes, I compiled Apache 2 from source. I thought that I'd edited the
server.xml file correctly, but had been caught out by the thinko in
it: my host name wasn't in the right place in the Engine section of
the Warp connector config. Once I'd sorted that bit out, things
quickly sorted themselves out

It's now up and running in the standalone Tomcat, but I'm now trying
to persuade the installation of tomcat 4.0.3 embedded in JBoss 3RC1 to
work as expected. For some reason, Apache is failing to connect to any
installed apps it might have. Guess that's a question for the jboss
list, though :)

FWIW, here's how I ran configure:

./configure --prefix=/usr/local/apache-2 --with-mpm=worker --enable-http \
--enable-headers --enable-dav --enable-dav-fs \ 
--enable-rewrite --enable-so

If you still want it, I can attach my config.status, but that's prolly
not necessary now

Thanks for your help!

Regards,

Simon

-- 
Don't you hate when your hand falls asleep and you know it will be up
all night. --- Steven Wright

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




Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Wayne Pascoe

Hi all,

I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20

I have unpacked the tomcat connectors source, and then cd'd to
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native

From there, cd to apache-1.3, edit the build-unix.sh file to change
JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find fails,
and change linux on that line to freebsd. This allows me to build and
install a mod_jk module into my apache libexec dir by running sh
build-unix.sh

Following the same process in apache-2.0, and things start out fine. I then
get the following :
.
.
.
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1eaa): undefined reference to `pthread_mutex_init'
jk_ajp_common.lo: In function `ajp_destroy':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1fb7): undefined reference to `pthread_mutex_lock'
jk_ajp_common.lo: In function `ajp_done':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x2097): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x20d6): undefined reference to `pthread_mutex_destroy'
jk_ajp_common.lo: In function `ajp_get_endpoint':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21aa): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21fe): undefined reference to `pthread_mutex_destroy'
apxs:Error: Command failed with rc=65536
.
Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
cp: mod_jk.so: No such file or directory
Done. Install by running ./install-unix.sh

There are quite a few screens of this error.

Does anyone have any advice for fixing this? I'd really like to use apache 2
on this server.

Thanks in advance,

-- 
Wayne Pascoe [EMAIL PROTECTED]

The price of freedom is eternal vigilance
   - Thomas Jefferson


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




Re: Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Pascal Forget

Hi Wayne,

Welcome to the club.  I have been spending countless hours trying to 
resolve the
same problem you describe.  I'm trying to buid mod_jk on Linux.  I'll 
let you know
if I find the answer, and I hope you'll do the same if you solve the 
problem before me.

Best Regards,

Pascal


Wayne Pascoe wrote:

Hi all,

I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20

I have unpacked the tomcat connectors source, and then cd'd to
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native

From there, cd to apache-1.3, edit the build-unix.sh file to change
JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find fails,
and change linux on that line to freebsd. This allows me to build and
install a mod_jk module into my apache libexec dir by running sh
build-unix.sh

Following the same process in apache-2.0, and things start out fine. I then
get the following :
.
.
.
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1eaa): undefined reference to `pthread_mutex_init'
jk_ajp_common.lo: In function `ajp_destroy':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x1fb7): undefined reference to `pthread_mutex_lock'
jk_ajp_common.lo: In function `ajp_done':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x2097): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x20d6): undefined reference to `pthread_mutex_destroy'
jk_ajp_common.lo: In function `ajp_get_endpoint':
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21aa): undefined reference to `pthread_mutex_unlock'
/usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0/j
k_ajp_common.c(.text+0x21fe): undefined reference to `pthread_mutex_destroy'
apxs:Error: Command failed with rc=65536
.
Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
cp: mod_jk.so: No such file or directory
Done. Install by running ./install-unix.sh

There are quite a few screens of this error.

Does anyone have any advice for fixing this? I'd really like to use apache 2
on this server.

Thanks in advance,





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




Re: Compiling mod_jk for Apache 2.0.35

2002-04-24 Thread Anthony W. Marino

I, too, am having problems compiling this on Linux.

Anthony

 Hi Wayne,

 Welcome to the club.  I have been spending countless hours trying to
 resolve the
 same problem you describe.  I'm trying to buid mod_jk on Linux.  I'll
 let you know
 if I find the answer, and I hope you'll do the same if you solve the
 problem before me.

 Best Regards,

 Pascal

 Wayne Pascoe wrote:
 Hi all,
 
 I'm trying to compile mod_jk for Apache 2.0.35 with no success. I am
 building this on a FreeBSD 4.5 box. Mod_jk builds fine for Apache 1.3.20
 
 I have unpacked the tomcat connectors source, and then cd'd to
 /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native
 
 From there, cd to apache-1.3, edit the build-unix.sh file to change
 
 JAVA_HOME, APACHE_HOME and uncomment the line instructed to if find fails,
 and change linux on that line to freebsd. This allows me to build and
 install a mod_jk module into my apache libexec dir by running sh
 build-unix.sh
 
 Following the same process in apache-2.0, and things start out fine. I
  then get the following :
 .
 .
 .
 /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0
 /j k_ajp_common.c(.text+0x1eaa): undefined reference to
  `pthread_mutex_init' jk_ajp_common.lo: In function `ajp_destroy':
 /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0
 /j k_ajp_common.c(.text+0x1fb7): undefined reference to
  `pthread_mutex_lock' jk_ajp_common.lo: In function `ajp_done':
 /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0
 /j k_ajp_common.c(.text+0x2097): undefined reference to
  `pthread_mutex_unlock'
  /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.
 0/j k_ajp_common.c(.text+0x20d6): undefined reference to
  `pthread_mutex_destroy' jk_ajp_common.lo: In function `ajp_get_endpoint':
 /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.0
 /j k_ajp_common.c(.text+0x21aa): undefined reference to
  `pthread_mutex_unlock'
  /usr/local/src/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache-2.
 0/j k_ajp_common.c(.text+0x21fe): undefined reference to
  `pthread_mutex_destroy' apxs:Error: Command failed with rc=65536
 .
 Installing mod_jk.so into /usr/local/httpd-2.0.35_lite/libexec
 cp: mod_jk.so: No such file or directory
 Done. Install by running ./install-unix.sh
 
 There are quite a few screens of this error.
 
 Does anyone have any advice for fixing this? I'd really like to use apache
  2 on this server.
 
 Thanks in advance,



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




servlet in multiple Tomcat-instances

2002-04-25 Thread it

Hi,

I'm using multiple instances of Tomcat 3.2.4. The problem is, that I can
access servlets of one instance even if the servlet is NOT in the
webapps-directory of another instance. This is very confusing during the
development of the servlet, because it still lives in the other instances
although I shut down the right instance.

The main instance of Tomcat lsitens on Port 8087:
http://www.mydomain.com:8087/Community/Poll
The servlet Poll ist configured to run this instance:
server.xml:
Context path=/Community
 docBase=webapps/Community
 crossContext=false
 debug=0
 reloadable=true 
/Context

web.xml:
   servlet-mapping
servlet-name
Poll
/servlet-name
url-pattern
/Poll
/url-pattern
/servlet-mapping

and it is loaded correct during the startup of this TC-instance:
tomcat.log:
2002-04-25 11:25:04 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance:
TOMCATLOG=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_start.log
TOMCATLOG2=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
cd $TOMCAT_HOME
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/jakarta-tomcat-3.2.4/conf/server.xml $TOMCATLOG 2$TOMCATLOG2

so far, so good.

BUT:
I can access this servlet with an other TC-instance, which listens on Port
9015: http://www.mydomain.com:9015/Community/Poll

in this instance, there is NO entry in server.xml which points on the
servlet Poll. Even the directory webapps/Community does not exist in
this instance!
...and it is loaded during the startup :((
2002-04-25 11:24:16 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance, which uses the same binaries but an other
server.xml:
TOMCATLOG=/usr/local/tc-324-i2125/logs/i2125tomcat_start.log
TOMCATLOG2=/usr/local/tc-324-i2125/logs/i2125tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/tc-324-i2125/conf/server.xml $TOMCATLOG 2$TOMCATLOG2

Any ideas how I can stop this behaviour ?

Many thanks !
Kay


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




multiple Tomcat-instances and a confused servlet...

2002-04-25 Thread klingenauber

Hi,

I'm using multiple instances of Tomcat 3.2.4. The problem is, that I can
access servlets of one instance even if the servlets is in the
webapps-directory of another instance. This is very confusing during the
development of the servlet, because it still lives in the other instances
although I shut down the right instance.

The main instance of Tomcat lsitens on Port 8087:
http://www.mydomain.com:8087/Community/Poll
The servlet Poll ist configured to run this instance:
server.xml:
Context path=/Community
 docBase=webapps/Community
 crossContext=false
 debug=0
 reloadable=true 
/Context

web.xml:
   servlet-mapping
servlet-name
Poll
/servlet-name
url-pattern
/Poll
/url-pattern
/servlet-mapping

and it is loaded correct during the startup of this TC-instance:
tomcat.log:
2002-04-25 11:25:04 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance:
TOMCATLOG=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_start.log
TOMCATLOG2=/usr/local/jakarta-tomcat-3.2.4/logs/tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
cd $TOMCAT_HOME
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/jakarta-tomcat-3.2.4/conf/server.xml $TOMCATLOG 2$TOMCATLOG2

so far, so good.

BUT:
I can access this servlet with an other TC-instance, which listens on Port
9015: http://www.mydomain.com:9015/Community/Poll

in this instance, there is NO entry in server.xml which points on the
servlet Poll. Even the directory webapps/Community does not exist in
this instance!
...and it is loaded during the startup :((
2002-04-25 11:24:16 - Ctx( /Community ): Mapping with unregistered servlet
Poll

start-script of this instance, which uses the same binaries but an other
server.xml:
TOMCATLOG=/usr/local/tc-324-i2125/logs/i2125tomcat_start.log
TOMCATLOG2=/usr/local/tc-324-i2125/logs/i2125tomcat_err.log
export JAVA_HOME=/usr/local/jdk1.3.1_02
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.4
/usr/local/jakarta-tomcat-3.2.4/bin/startup.sh -f
/usr/local/tc-324-i2125/conf/server.xml $TOMCATLOG 2$TOMCATLOG2

Any ideas how I can stop this behaviour ?

Many thanks !
Kay


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




Re: ideas invited

2002-05-02 Thread David Cassidy

following in the standard 'and here's one I made earlier' line

here's one that works - really rather well !

Install it in /etc/rc.d/init.d

then ( if you have linux ) run
chkconfig --add tomcat

or if you use some other unix varient see what run level you are running at

( have a look in inittab )

and then cd to /etc/rc.d/rcx.d
ln -s /etc/rc.d/init.d/tomcat .

if you don't have the /etc/rc.d directory you can miss that bit out ...

this will run Tomcat as the user tomcat - so you might want to add that 
user or change it ...

Let us know

David Cassidy




David Kavanagh wrote:

 Well, it sounds like you are running on some flavor of unix. I've set up

 tomcat servers on solaris and linux. For Solaris you can put the startup

 script in /etc/rc2.d or /etc/rc3.d. If you run on Linux. I found you 
 need to put it in /etc/rc5.d. If you don't use linux, don't worry 
 about rc5.d.

 The commands I've put in the top of the tomcat.sh are to set environment

 variables. An alternative would be write your own script that sets the 
 variables, then calls tomcat.sh (forwarding the commandline 
 arguments). That way, tomcat.sh won't be altered. Come to think of it, 
 I'll probably

 start doing this myself...

 David

 # Lalit Nagpal # wrote:

 so sorry,
 i did not understand what u meant ... where did rc5.d come from
  David Kavanagh [EMAIL PROTECTED] wrote: What I've done is to insert

 some commands at the top of tomcat.sh, then

 link it from /etc/rc2.d/S99tomcat to /bin/tomcat.sh (if on solaris).
 on Linux, I put it in /etc/rc5.d

 David

 # Lalit Nagpal # wrote:

 hi,

 i want tomcat 4 to startup up auto whenever the
 machine is rebooted so i have put the entry
 /startup.sh. As suggested by some i have
 set the java path and tomcat home also in rc.local
 file before running the startup.sh file. still it does
 not seem to work. any bright ideas on this.

 thanx a lot




 # Lalit Nagpal #


 -
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness




 -- 
 To unsubscribe: For additional commands: Troubles with the list:

 # Lalit Nagpal #


 -
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness







tomcat
Description: application/java-vm

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


Apache 2.0.35 and Mod_jk 4.0.2-01 on sparc solaris 7 (2.7) linkproblems

2002-05-03 Thread Gary.L.Johnstone

Hello all

As I see many others have had the same problems Im having building the mod_jk.so.
After trying everything recommended Im still having problems.

Quick history -

Downloaded and built the apache server v2.0.35 - no problems
Downloaded and unpacked jakarta-tomcat-connectors-4.0.2-01-src.
Downloaded and installed gcc 2.95.3
Using the build-unix.sh in ~/jakarta-tomcat-connectors-4.0.2-01-src/jk/native/apache2

Which I modified for my setup

INCLUDE=-L$APACHE_HOME/lib -I../common -I/usr/lib -I$APACHE_HOME/include 
-I$APACHE_HOME/lib $JAVA_INCLUDE
$APXS -lposix4 -lxnet -ldl -c -o mod_jk.so $INCLUDE $SRC

I modified the vars in apxs as recommended by all the archives I had read.

 my $exec_prefix= get_vars(exec_prefix);
 my $CFG_TARGET = q(httpd);
 my $CFG_SYSCONFDIR = get_vars(sysconfdir);
 my $CFG_CFLAGS= q( -DUSE_EXPAT -I/usr/local/include -I../lib/expat-lite);
 my $includedir = get_vars(includedir);
 my $CFG_INCLUDEDIR = eval qq($includedir);
 my $CFG_CC = q(/usr/local/bin/gcc);
 my $libexecdir = get_vars(libexecdir);
 my $CFG_LIBEXECDIR = eval qq($libexecdir);
 my $sbindir= get_vars(sbindir);
 my $CFG_SBINDIR= eval qq($sbindir);
 my $ltflags= $ENV{'LTFLAGS'};
 my $CFG_CFLAGS_SHLIB  = q( -fPIC -DSHARED_MODULE);
 my $CFG_LD_SHLIB  = q(ld);
 my $CFG_LDFLAGS_SHLIB = q( -G);

At first I had link problems where the apxs script was pushing the .lo files and not 
.o files onto an array for the link command.
(After a hasty lesson in perl)

in apxs line 431

unshift(@objs, $lo);
should be
unshift(@objs, $o);

I now see a lot of undefined symbol errors mainly in the mod_jk.o file.

apr_date_parse_http mod_jk.o
ap_os_escape_path   mod_jk.o
etc

I have found some of these symbols by doing a nm command on files in $APACHE_HOME/lib

cd $APACHE_HOME/lib
for file in `ls`
do
echo Current file $file
nm $file | grep apr_date_parse_http
done

and see results like

current file libaprutil.a
[15]|   124|  20|OBJT |GLOB |0|4  
|$XBEwwXgMsRz8CPx.apr_date_parse_http.__func__

Im not a c programmer but I assume that means the symbol/function is available in that 
library.

After a auick lesson in gcc I added the -L$APACHE_HOME/lib and -laprutil to the link 
command but still get the same symbols missing.

After a couple of days on this I think I need help.

Gary




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




RE: building mod_jk on solaris

2002-05-10 Thread Martin van den Bemt

This is some info of how I built it on solaris sparc boxes. It was using
tomcat 33 though, and you have to change the directories accordingly.. Let
me remind you that some of the things can actually already been fixed or
working differently..

start-of-paste
cd to
/usr/local/tomcat/native/mod_jk/apache1.3
If this file is not executable do chmod +x build-solaris.sh
vi build-solaris.sh
change the APACHE_HOME and JAVA_HOME lines to the correct directory
structure.

Since we need DEAPI to build mod_jk, we also have to change the line after
the line
echo Building mod_jk
$APXS 
Add -DEAPI as the first parameter. If you don't have a DEAPI apache install,
leave this one out.

If your ld is not in your path, do vi /usr/local/apache/bin/apxs and change
the ld
(the line reading my $CFG_LD_SHLIB = q(ld); to q(/usr/ccs/bin/ld);

and now run ./build-solaris.sh

It should be build ok ;)
(check to see if /usr/local/apache/libexec/mod_jk.so is present).

end-of-paste


Mvgr,
Martin

 -Original Message-
 From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 10, 2002 16:02
 To: Tomcat Users List
 Subject: Re: building mod_jk on solaris


 apxs requires perl.  You must have perl installed prior to installation
 of apache httpd in order for the apache install to correctly configure
 apxs. Otherwise, I believe you are on the right track.

 Jeff

 - Original Message -
 From: Peter Choe [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, May 10, 2002 7:52 AM
 Subject: building mod_jk on solaris


  i am trying to build mod_jk for tomcat4.0.  the only mod_jk i found is
  actually in tomcat3.3 though.  so, i tried to compile it using the
  build-solaris.sh script and i get the following error:
 
  bash-2.03# ./build-solaris.sh
  Building mod_jk
  cc -DEAPI -DMOD_PERL -DUSE_EXPAT -O -G -Kpic -I/usr/apache/include
  -I../common -I/usr/java/include -I/usr/java/include/solaris
 -DSOLARIS  -c
  ../common/jk_ajp12_worker.c
  apxs:Break: Command failed with rc=16711680
  Error with apxs
 
  does anyone know how i can fix this?
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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



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




RE: old load-on-startup tag

2002-05-31 Thread Patrick . Pierra


ok i can see the trace of error with your first solution catalina run
 the problem is :  java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServlet

is because all my servlets extends this class. That's work with tomcat
3.2.4 but not with tomcat 4.0. I think that's because tomcat 4.0 implements
servlet 2.3 spec. The problem is that i use a test environnement (tomcat
3.2) in visual age. Can i found a test environnement that implements the
new servlet 2.3 implementation ?


Patrick PIERRA
Linedata Services Luxembourg
00 352 29 56 65 282
[EMAIL PROTECTED]


   
 
John Niven 
 
John.Niven@mTo: 'Tomcat Users List' 
[EMAIL PROTECTED] 
arcat.com   cc:   
 
 Subject: RE: old load-on-startup tag
 
05/31/02   
 
04:02 PM   
 
Please 
 
respond to 
 
Tomcat Users  
 
List  
 
   
 
   
 




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: 31 May 2002 14:49
 To: Tomcat Users List
 Subject: RE: old load-on-startup tag



 ok that's help me..
 i have another problem. Tomcat crash probably because i have
 a problem with the servlet which is loaded on startup. The
 problem is that i can see the trace of the error because the
 DOS window is closed automatically. How can i change this behaviour ?


Patrick

Two options:

1. Open up a DOS window (_DON'T_ double-click on startup.bat).  Change
directory (CD) to $CATALINA_HOME/bin.  Type catalina run.  Tomcat will
run
as normal, but the DOS window won't disappear when Tomcat crashes.

2. Install Tomcat as an NT service (check the archives - there are numerous
posts on how to do this).  The messages you'd normally get in the DOS
window
will now be logged to $CATALINA_HOME/logs/stderr.txt

HTH
John

 --
John Niven
Please reply through mailing list

 Patrick PIERRA
 Linedata Services Luxembourg
 00 352 29 56 65 282
 [EMAIL PROTECTED]


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






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




Re: old load-on-startup tag

2002-05-31 Thread Phillip Morelock

this indicates possibly other problems.

1.  Have you set CATALINA_HOME properly?

2.  In the olden days they used to have a separate download for the servlet
api classes that you could put in /lib, but I don't know if that's current
knowledge anymore.

javax.servlet.http.* is still in Servlet 2.3, just slightly expanded.

cheers
fillup


On 5/31/02 7:25 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 
 ok i can see the trace of error with your first solution catalina run
 the problem is :  java.lang.NoClassDefFoundError:
 javax/servlet/http/HttpServlet
 
 is because all my servlets extends this class. That's work with tomcat
 3.2.4 but not with tomcat 4.0. I think that's because tomcat 4.0 implements
 servlet 2.3 spec. The problem is that i use a test environnement (tomcat
 3.2) in visual age. Can i found a test environnement that implements the
 new servlet 2.3 implementation ?
 
 
 Patrick PIERRA
 Linedata Services Luxembourg
 00 352 29 56 65 282
 [EMAIL PROTECTED]
 
 
  
   John Niven
   John.Niven@mTo: 'Tomcat Users List'
 [EMAIL PROTECTED]
   arcat.com   cc:
Subject: RE: old load-on-startup
 tag  
   05/31/02
   04:02 PM
   Please
   respond to
   Tomcat Users
   List
  
  
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: 31 May 2002 14:49
 To: Tomcat Users List
 Subject: RE: old load-on-startup tag
 
 
 
 ok that's help me..
 i have another problem. Tomcat crash probably because i have
 a problem with the servlet which is loaded on startup. The
 problem is that i can see the trace of the error because the
 DOS window is closed automatically. How can i change this behaviour ?
 
 
 Patrick
 
 Two options:
 
 1. Open up a DOS window (_DON'T_ double-click on startup.bat).  Change
 directory (CD) to $CATALINA_HOME/bin.  Type catalina run.  Tomcat will
 run
 as normal, but the DOS window won't disappear when Tomcat crashes.
 
 2. Install Tomcat as an NT service (check the archives - there are numerous
 posts on how to do this).  The messages you'd normally get in the DOS
 window
 will now be logged to $CATALINA_HOME/logs/stderr.txt
 
 HTH
 John
 
 --
 John Niven
 Please reply through mailing list
 
 Patrick PIERRA
 Linedata Services Luxembourg
 00 352 29 56 65 282
 [EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




<    4   5   6   7   8   9   10   11   12   13   >