RE: EJB Compliance

2003-12-18 Thread Jerry Birchler
Tomcat does not implement EJB. JBOSS implements EJB on top of tomcat
(currently, version 4.1.29). Check it out here:

http://www.jboss.org

-Original Message-
From: Tony Colson [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 18, 2003 9:57 PM
To: 'Tomcat Users List'
Subject: EJB Compliance



This might be a re-post...sorry if it is...


Is Tomcat 4.1 (or even 5.0) EJB Compliant?  If so, is it compliant with
the EJB 1.1 or 2.0 specification?

I can't seem to find appropriate documentation.  Also, in the Tomcat
docs under the Context element, it doesn't even mention the Ejb
element, but, of course, it is provided in the sample server.xml file.

Thanks
Tony


-
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: Instructions for compiling JK2 connector for tomcat 5?

2003-12-04 Thread Jerry Birchler
Neil,

Have not talked to you in a while, and I have not tried this particular
Linux configuration, but I can tell you that it is not unusual to have to
either copy files from one directory to another or set up symbolic links to
make the ant build/make work.

My primary target platform for Tomcat is (Red Hat) Linux followed distantly
by Solaris (SPARC) 8.0. I seem to recall having to do Symlinks in both
cases.

I hope this helps. If not, I will consider building a RedHat 9.0 box to
check it out. Please experiment and let me know.



-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 5:58 PM
To: 'Tomcat-User'
Subject: Instructions for compiling JK2 connector for tomcat 5?


Hello:

Are there any instructions for compiling the JK2 connector for
Tomcat 5?

I am trying to do this on a RedHat 9 machine with the IBM
1.4.1 SR1 JDK.

I have ant 1.5.3 installed and the ANT_HOME variable set properly.
I have apache 2.0.45 installed in /usr/local/apache
I have an enviroment variable JAVA_HOME that points to the java sdk

Here is what I did:

cd /usr/local
Grabbed the jakarta-tomcat-5.0.16.tar.gz from the tomcat 5 binaries
directory.
tar zxf jakarta-tomcat-5.0.16.tar.gz

cd /usr/local
Grabbed the jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from the
connectors
source directory.
tar zxf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk
cp build.properties.sample build.properties
vi build.properties and set these directives:
tomcat5.home=/usr/local/jakarta-tomcat-5.0.16
apache2.home=/usr/local/apache
ant native

I get this error:
file:/usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:232
: srcdir
/usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/jkant/java does
not exist!

Any ideas on why this does not work?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.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]



RE: Tomcat IBM JVM 1.4 and SSL truststores

2003-09-08 Thread Jerry Birchler
I tried both the IBM and Sun packages. Unfortunately, neither handled
expired or untrusted certificates. In my case, I did not care one way or the
other whether or not the certificate was trusted or not. By virtue of
parsing or spidering a site, I was making a choice. Perhaps you have the
same situation? If so, then this will work for you.

I found the attached source on the internet somewhere, and I was able to
successfully implement it in a core class to my html parsers and spiders.
Here is the snippet of code that is found in that core class. The class file
you will need follows the snippet.

import com.sun.net.ssl.HttpsURLConnection;
//
// it's important to use the javax flavors of these packages, the com.sun
equivalents will not work
//
import javax.net.ssl.*;
import javax.net.ssl.SSLSocketFactory;

//
// put this in you constructor...
//

System.setProperty(java.protocol.handler.pkgs,com.sun.net.ssl.internal.ww
w.protocol);

//
// . whatever code you want
//
  if ( blnSSL )
  {
try
{
  java.security.Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());
  X509TrustManager oTrustMngr = new EnlistaTrustManager();
  TrustManager oEnlistaTrustManagers[] = {oTrustMngr};
  SSLContext ctx = SSLContext.getInstance(SSL);
  ctx.init(null, oEnlistaTrustManagers, null);
  SSLSocketFactory sslSocketFactory = ctx.getSocketFactory();
  HttpsURLConnection.setDefaultSSLSocketFactory(sslSocketFactory);
}
catch(Exception e)
{
  e.printStackTrace();
}
objUC = (HttpsURLConnection)objURL.openConnection();
  }
  else
  {
objUC = (HttpURLConnection)objURL.openConnection();
  }


// use your own packge. this is the class called by the snippet above.

package com.efn.cmn.uihelper.urlscraper;

import javax.net.ssl.X509TrustManager;
import java.security.cert.*;

//EnlistaTrustManager implements X509TrustManager and you can have the
following code to accept ANY certificate.

public class EnlistaTrustManager implements X509TrustManager
{

  EnlistaTrustManager()
  { // constructor
// create/load keystore
// No need to load the keystore because it will be validated on demand.
  }

  public void checkClientTrusted(X509Certificate chain[], String authType)
throws CertificateException
  {
return;
  }

/**
* This function is called when receiving information from the server.
* Before accepting the info it checks that the certificates sent by the
server
* are valid according to this function.
*
* @throws CertificateException if the certificate does not meet this peer's
validation.
*/
  public void checkServerTrusted(X509Certificate oaChain[], String
sAuthType) throws CertificateException
  {
// special handling such as poping dialog boxes

// Certificate is valid.
return;
  }

  /**
   * Returns the valid or accepted issuers. Currently this function returns
one empty
   * certificate. The validation is done in checkServerTrusted function.
   */

  public X509Certificate[] getAcceptedIssuers() {
return new X509Certificate[0];
  }

  public boolean isServerTrusted(X509Certificate oaChain[], String
sAuthType) throws CertificateException
  {
return true;
  }
}

-Original Message-
From: McClure, Timothy J(IndSys, GE Interlogix)
[mailto:[EMAIL PROTECTED]
Sent: Monday, September 08, 2003 10:01 AM
To: Tomcat Users List; McClure, Timothy J(IndSys, GE Interlogix)
Subject: Tomcat IBM JVM 1.4 and SSL truststores


I am trying to use client SSL sockets connections running underneath Tomcat
on AIX with IBM JVM 1.4.  I set the 'algorithm' key word in the server.xml
file and this seems to work well for key store (server socket) connections.
However I cannot get the trust store side to work appropriately, I always
get an I/O exception on SunX509 algorithm.  I notice in the code it appears
that the SunX509 is hard coded to the TrustStoreManager.  How do I get it
to use IbmX509?  I set the trsutManagerType to IbmX509 through -D options
but this also did not work.

Tim

-
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: JSP vs C#/.NET

2003-09-02 Thread Jerry Birchler
M$ thinks they can take on the US justice department and doesn't mind
offshoring jobs from the US. I'd say that the eventual backlash of that
political reality will hurt them if the majority of American people believe
that can they elect people who will represent them--That could be a stretch.

Otherwise, .Net will take hold and dominate, especially if Sun Microsystems
and IBM does nothing to improve the performance of the virtual machine, and
the US Congress does nothing to protect its citizens from the exploits of
globalization. Oddly enough, the few IT jobs I see in America these days are
both .Net and Java.

I love Java, but I am willing to learn .Net as means to survive a hostile
market. In fact, I have already written my share of C# and VB.NET. It makes
me sick, but I'm not going to obselete myself. Let's just hope that the US
government goes after Linux for the obvious reasons and that this push
results in the advances that us Java lovers  would all benefit from.

-Original Message-
From: Xingqun Jiang [mailto:[EMAIL PROTECTED]
Sent: Monday, September 01, 2003 4:12 PM
To: Tomcat Users List
Subject: Re: JSP vs C#/.NET


Sorry, guys,

I posted this messages a few days ago. And I don't why it comes up again.

Xingqun


- Original Message -
From: Xingqun Jiang [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, August 25, 2003 4:16 PM
Subject: JSP vs C#/.NET


Hi,

I am a pure java supporter. I don't like C# or .Net because of Microsoft's
monopolization (sorry, kind of prejudice). However, I notice that more and
more people pick up C#/.NET due to their new advantages. I also heard that
C# is much faster than Java. My concern is, can Java/JSP still be
competitive to Microsoft's products? I don't like to see java be beaten by
Microsoft since it borrowed so many ideas from java to make up the so-called
C#.

ok, feel free to talk about this topic.

Lance


-
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: PHP servlet

2003-01-27 Thread Jerry Birchler
I am interested in knowing if anyone has solved this on any 4+ release of
Tomcat on Red Hat Linux 7+ or 8. A howto based on a real working example
would be great.

-Original Message-
From: Jeremy [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 5:02 PM
To: [EMAIL PROTECTED]
Subject: PHP servlet


Trying to get Tomcat 4.18 to run phpsrvlt.jar servlet on a RH7.3
machine.  Configured php4.2.3 with all the goodies and loaded it into
libphp4.so.  added LD_LIBRARY_PATH and export for the apache module
libphp4.so.  Apache 1.3.27 loads libphp4.so just grand.  Also made
certain to include the xml defs for phpservlet in the main
/etc/tomcat4/web.xml (tomcat4 was installed via rpm
tomcat4-admin-webapps-4.1.18-full.1jpp
tomcat4-4.1.18-full.1jpp
tomcat4-webapps-4.1.18-full.1jpp.

java.lang.UnsatisfiedLinkError: /usr/lib/apache/libphp4.so:
/usr/lib/apache/libphp4.so: undefined symbol: ap_block_alarms
is the error I get, reading Apache2 docs seems that this ap_block_alarms
is outdated, so is it outdated for tomcat4.18 as well?  Do I need to
write the PHP list now and say, how da heck do I keep from configuring
the ap_block_alarms.
-Jeremy


--
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: [OT] - Let's be nice -- Re: How do I integrate my CLASSPATH on Tomcat?

2002-11-28 Thread Jerry Birchler
I'm not recommending this as something to do, but you could write some shell
script to parse the CLASSPATH and copy each jar or symlink them into the
common /lib directory.

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 1:18 PM
To: Tomcat Users List
Subject: [OT] - Let's be nice -- Re: How do I integrate my CLASSPATH on
Tomcat?


Pae, you are sure a sensitive person.  I, for one, do not appreciate this
nastiness in a public place.  Please try to play well with others.  And,
to be fair, I certainly have had my moments too.

At 11:41 AM 11/27/2002 -0800, you wrote:
First, let me copy the initial inquriy to refresh your memory.

I'm wondering how I should do to make tomcat use the paths that are in
my CLASSPATH?

Does it say or imply to move JARs or packages to a specific
location? The question was simple and the my reply included
a simple suggestion according to the inquiry.

And back to your comments. Look back about 5 years ago. Did
you envisoned all the technologies and standards what's going on
now? What make so sure what's going on will stay same in next
5 to 10 years later?

Also, not every user of TC develop the app to sell and consider
all the factors you mentioned. A matter fact, most of products from
your company, Millennium ChemInformatics, do no even have the
basic concept of n-tier architecture nor grid-level, distributed computing.

If you are so well-planned and -built the outstanding product(if there
is any) let me know, I will not mind given you some lessons of
well structured architecture and success characteristics in marketability
  as well as other factors.

Last, AFAIK, your compnay is losing the money than making it. Perhaps,
you contributed that too?


Pae



- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 8:17 AM
Subject: RE: How do I integrate my CLASSPATH on Tomcat?


Howdy,

 Long run? I've been watching TC a long enough and have changed
 a number of times the scheme of including the CLASSPTH. In the
 long run, are you absolutely sure what is going right now will be
 stay same ... say in next 5 years?

I'm sure tomcat will implement the servlet specification standard, yes.
I'm sure the servlet specification standard will not mention anything
about $CLASSPATH in server-specific startup scripts, yes.  /WEB-INF/lib
is the standard way to go.  It's the only way to go if you don't want to
change scripts when changing servers.  If you had put the libs there
when using tomcat 3.x, you wouldn't have had to move them when moving to
4.x, etc.

 What's the time frame for the long run mean? More than 5 years?

Any time other than the initial beginner setup.  You want to be able to
setup from scratch automatically, e.g. using an ant script.  You want a
3rd party person to be able to deploy your app.  That's why the spec is
there.  That's why the idea of a .war file exists.

Sure, you could write detailed instructions and require a specific
version of tomcat with your modifications to tomcat's startup script,
but good luck getting people to use (much less buy) your app then ;)

Obviously it's your app, your company (or university or whatever), so
it's your call.  In my personal experience, every place I've worked and
every boss I've had always insisted on portability and
standards-compliance as much as reasonably possible.  It's saved us many
times.  Now I insist on the same with all the developers that work for
me, all the projects I'm responsible for, etc.  And if I had a dollar
for every time it's paid off, I'd be rich ;)

Yoav Shapira
Millennium ChemInformatics

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

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



--
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: [ Tomcat as Webserver ]

2002-11-28 Thread Jerry Birchler
Yes, sort of. I think you are talking about integrating Apache with Tomcat
through a listener and sharing html and images from Tomcat.

For instance, I had integrated Apache with Tomcat using the Coyote listener.
I wanted to share /images and such between Tomcat and Apache as I have both
JSP and PHP web pages and wanted an easy way to share folders.

Tomcat does not follow symlinks as web folders, but Apache can handle it.
So, I put things like /images in my ROOT context and symlinked it for
Apache. This  forces me to refer to common objects using slash instead of
things like '../', but I can live with that. So, putting things in ROOT,
symlinking for Apache, and using some aliases in httpd.conf has made my
development environment seemless.

I have run into some quirks with directory listing tomcat managed folders
through SSL. Directory listing in production is turned off, anyway. SSL on
JSP web pages and tomcat managed HTML work just fine.

-Original Message-
From: Osvâneo A. Ferreira [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 9:45 AM
To: Tomcat Users List
Subject: [ Tomcat as Webserver ]


Hi,

I´m using tomcat-4.1.2 and I would like know, it´s can used as WebServer.
I configured a non-SSL legacy HTTP/1.1 connector on port 80.

It´s possible ?

[ Osvâneo ]


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




RE: tomcat/EJBs

2002-10-25 Thread Jerry Birchler
Check out JBOSS at www.jboss.org goto the downloads link and check this out
JBoss-3.0.3_Tomcat-4.1.12.zip. It might be what you're looking for.

-Original Message-
From: Grant C. Peters [mailto:grantcpeters;earthlink.net]
Sent: Friday, October 25, 2002 11:38 AM
To: Tomcat Users List
Subject: tomcat/EJBs


Can anyone answer a question for me? Does Tomcat work as an EJB container,
or do I need to plugin something like openEJB?
thanks

Grant C. Peters
[EMAIL PROTECTED]
phone  : 415.948.7030



--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Jerry!! : How to Apache2, Tomcat4.1.2, JK2 ?

2002-10-23 Thread Jerry Birchler
Let me know what happens when you try this.

#
# Red Hat 8.0 includes apache 2.0.40
# Let's install apache 2.0.43 as it fixes some bugs and some
vulnerabilities
# I had trouble installing newer versions of apache on Red Hat 7.2, so
let's
# assume that we are running Red Hat 8.0 already or can upgrade
# In this case, we are not creating an RPM package, and we are not
# removing the existing one. A cleaner implemention might do that, but this
# will enable us to test before doing that.
#

#
# Things I do in this document:
# -
# I use the string '#' to identify documentation and the string '#' to
# identify the beginning of a block of documentation. I do this because I
# include unix commands so that you can cut and paste them as you see fit.
# I simply wanted a easy way for you to tell the difference between example
# code, commands, etc. and any documentation. The string '#' is there for
# you to navigate quickly through this document. I use the string '...' to
# indicate that I am omitting lines from output or vi for the sake of
reducing
# the size of this document. I separate line commands and document blocks
# with a blank line.
#

#
# Disclaimer:
# ---
# First of all, I do not consider myself an expert in tomcat, apache, linux
# or open source. As an internet consultant, I spend most of my time
developing
# solutions on application servers such as weblogic and iplanet. Like some
of
# you, I am simply exploring what I can do with the technology. So, some of
my
# suggestions are shortcuts and may not adhere to your idea of best
practices.
# My focus was to deliver an example that works.
#

[rootLinux-2 source]# pwd
/home/admin/installs/source

[rootLinux-2 source]# ls
aspell-0.50.2  httpd-2.0.43  mm-1.2.1  php-4.2.3

[rootLinux-2 source]# cd httpd-2.0.43

[rootLinux-2 httpd-2.0.43] # ./configure
...

[rootLinux-2 httpd-2.0.43] # make
...

[rootLinux-2 httpd-2.0.43] # make install
...

#
# apache is now in /usr/local/apache2
#
# update lines 24, 24, 26
#

[rootLinux-2 httpd-2.0.43] # vi /etc/init.d/httpd
...
apachectl=/usr/local/apache2/bin/apachectl
httpd=/usr/local/apache2/bin/httpd
OPTIONS=-f /usr/local/apache2/conf/httpd.conf
...

#
# now, test apache
#

[rootLinux-2 httpd-2.0.43] # /etc/init.d/httpd restart
Stopping httpd:[  OK  ]
Starting httpd:[  OK  ]

#
# open a browser and hit a bogus url, i.e. http://linux-2/bogus
#

Not Found
The requested URL /bogus was not found on this server.





Apache/2.0.43 Server at linux-2 Port 80

#
# there, proof that we are running apache 2.0.43
#

#
# Download the mod_jk-2.0.42.so file from apache.org at
#
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0
/bin/linux/i386/
# and then copy it to your apache modules directory and either rename it or
# symlink it.
#
# The download site indicates that the module is specific to 2.0.42, but
# nonetheless it works. You can download the tomcat connectors source and
# build the mod_jk module yourself. I took the easy way out, but to put
things # into perspective, it took much more time to document this than it
takes to
# download the source, find the directory, read the notes, configure, make
and # install it. So, once you get this work, go ahead and build the
mod_jk.so
# file for the proper release.
#

[rootLinux-2 modules]# pwd
/usr/local/apache2/modules

[rootLinux-2 modules]# ls
httpd.exp  jk_jnicb.so  libphp4.so  mod_jk-2.0.42.so

#
# Again, I like to symlink so that I can keep track of versions. It's not
the
# most efficient thing to do, it's just my preference.
#

[rootLinux-2 modules]# ln -s mod_jk-2.0.42.so mod_jk.so

#
# Now, let's install and configure tomcat
# my preference is to unzip and untar into /opt
#
# Note that I had already installed jdk 1.4.0 in /opt
#

[rootLinux-2 opt]# pwd
/opt

[rootLinux-2 opt]# ls
j2sdk1.4.0_01  jakarta-tomcat-4.1.12  lost+found  tomcat

#
# I also like to symlink version specific implementations to
# a common name
#

[rootLinux-2 opt]# ln -s jakarta-tomcat-4.1.12 tomcat

[rootLinux-2 opt]# ln -s j2sdk1.4.0_01 /usr/java

#
# I like to run tomcat as it's own user
# We will use webserv as the user.
#

[rootLinux-2 opt]# chown -R webserv:webserv /opt/jakarta-tomcat-4.1.12

[rootLinux-2 opt]# chown -R webserv:webserv /opt/tomcat

#
# I build a wrapper to call catalina.sh so that I can include the init.d
# function daemon. I could have doen this from an init.d script, but I
wanted
# to run tomcat as webserv instead of root. This was the easy way out.
#

[rootLinux-2 opt]# cd /opt/tomcat/bin

[rootLinux-2 bin]# vi daemon.sh
#!/bin/sh

. /etc/rc.d/init.d/functions

daemon $CATALINA_HOME/bin/catalina.sh $
~
~
/opt/tomcat/bin/daemon.sh 5L, 82C   5,1
All

[rootLinux-2 bin]# chmod +x daemon.sh

[rootLinux-2 bin]# vi /etc/init.d/tomcat

RE: RE: John Turner or someone who responsible for Posting -- Re: How to Apache2, Tomcat4.1.2, JK2 ?

2002-10-20 Thread Jerry Birchler
I have a working example of Apache 2.0.43 with Tomcat 4.1.2 using JK2 on Red
Hat Linux 8.0. I had to fallback to methods used on a previous integration
of Apache 1.3.24 with Tomcat 4.0.4 after looking at the Howtos that came
with the 4.1.2 documentaton. That enabled me to quickly put together a
workers.properties file. I can see why people might want to have some
examples. Please let me know if you're interested in a separate post with
what I did. After rebuilding apache, I was up and running in just a few
minutes.


-Original Message-
From: yoom nguyen [mailto:ynguyen;e-integration.net]
Sent: Friday, October 18, 2002 1:15 PM
To: Tomcat Users List
Subject: Re: RE: John Turner or someone who responsible for Posting --
Re: How to Apache2, Tomcat4.1.2, JK2 ?


John

I will be reading Craig McClannahan's email soon.
Thanks for the link

Yoom

- Original Message -
From: Turner, John [EMAIL PROTECTED]
Date: Friday, October 18, 2002 8:54 am
Subject: RE: John Turner or someone who responsible for Posting -- Re:
How to Apache2, Tomcat4.1.2, JK2 ?


 I think what Robert is saying is that there doesn't have to be a big,
 organized effort in addition to the big, organized effort that is
 alreadyrunning.

 There is already a dev team doing documentation.  While not
 perfect, they
 have a significant amount of documentation already completed.
 Starting a
 new project from scratch would be redundant.  I think it would be more
 effective to contribute to the existing project as needed.  Doing
 so doesn't
 require an organized group...everyone is welcome to get involved
 on their
 own, that is the nature of open source.

 Here is Craig McClanahan's reply on how to get involved in the already
 existing documentation effort:

 http://marc.theaimsgroup.com/?l=tomcat-devm=103357462430275w=2

 John


  -Original Message-
  From: yoom nguyen [mailto:ynguyen;e-integration.net]
  Sent: Friday, October 18, 2002 12:04 AM
  To: Tomcat Users List
  Subject: Re: John Turner or someone who responsible for Posting -
 - Re:
  How to Apache2, Tomcat4.1.2, JK2 ?
 
 
 
  Robert
 
  Are you going to assist me to get this going?  I would like
  to get as many volunters as possible if we are going to do this.
  We want to get it up and running instead of drag it on for
  many months
  to come, just because I am not a coder, but I am willing to
  learn.  It
  sounds do able as Robert Sowders described but I definely need
 some
  help.  Please send me an email if you know that you can help.
 
  Thanks, Yoom
 
  - Original Message -
  From: Robert L Sowders [EMAIL PROTECTED]
  Date: Thursday, October 17, 2002 10:46 pm
  Subject: Re: John Turner or someone who responsible for
  Posting -- Re:
  How to Apache2, Tomcat4.1.2, JK2 ?
 
   Oops, forgot to mention.
  
   Once you set everything up as xml then changing the docs to
   different
   formats is pretty much a snap.  Transformers for http, text,
 and
   pdf are
   very common and available.  You could conceivably make the
 docs
   available
   in any format known.  Or language for that matter, but that is
   another
   topic.
  
   rls
  
  
  
  
  
  
   Robert L Sowders [EMAIL PROTECTED]
   10/17/2002 07:24 PM
   Please respond to Tomcat Users List
  
  
  To: Tomcat Users List tomcat-
 [EMAIL PROTECTED] cc:
  Subject:Re: John Turner or someone who
 responsible
   for Posting -- Re: How to
   Apache2, Tomcat4.1.2, JK2 ?
  
   Hi Again,
  
   I had this discussion a couple of weeks ago and there was
 allot of
   interest in helping with the docs.  The stumbling point as I
 see
   it is
   people just don't know how to submit changes to existing
 material
   or for
   that matter new material.
  
   If you want to write whole chapters then;
   Basically, very basically, what you do is get the tools
 necessary
   to
   participate in a xml documentation project.  Then you'll need
 the
   DTDs and
  
   style templates that are already being used for the current
   documentation.
  
   These are available via anonymous cvs.  If you are making new
   pages or
   chapters then you'll need the above stuff to view it locally
 and
   see if
   it's correct.  Then you'll have to post it to the Tomcat-dev
 list
   and
   someone there will review it and commit it, if it applies.
  
   If your just correcting or extending an existing page;
   All you need to do is download your target via cvs, do your
   corrections
   with any text editor and then diff it using cvs and post it to
 the
   Tomcat-dev mailing list.  Someone there with commit privs will
   look at it
   and commit it, if it's deemed ok.
  
   Actually the dev list people are pretty good about accepting
 the
   changes
   when they get them, but there is a gap in showing everyone how
 to
   contribute, so they just don't get much to work with.
  
   So if you want to start your OWN documentation effort then the
   first thing
  
   you need to do is set up a cvs server.  

RE: Connecting IPlanet and Tomcat

2002-09-18 Thread Jerry Birchler

download the gnu c++ compiler from
ftp://ftp.sunfreeware.com/pub/freeware/sparc/8/gcc-3.2-sol8-sparc-local.gz

and the tomcat connectors source distribution from
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4/src/

Take the zip file, as the gzip file will most likely fail with checksum
errors on Solaris.

gnu Zip is on the www.sunfreeware.com site and it comes with the software
companion CD for solaris 8.

Please let me know if you get this working. I have been trying this on Linux
with no success. I have yet to try it on my SPARC box.



-Original Message-
From: Wilson, William N [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 12:02 PM
To: Tomcat Users List
Subject: Connecting IPlanet and Tomcat


I've tried connecting IPlanet to Tomcat and I cannot find a binary copy of
the redirector for Solaris 8.  I do not have a compiler on the Sun box. Does
anyone have any ideas where I might find this file?

Thanks,

Bill

--
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: integrating tomcat 4.04 into iplanet 4.1 using nsapi_redirector on linux

2002-08-19 Thread Jerry Birchler

My theory is that no one can claim that they have actually done this. 

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




integrating tomcat 4.04 into iplanet 4.1 using nsapi_redirector on linux

2002-08-04 Thread Jerry Birchler

Has anyone done this?

If so, I would like some help. I have compiled the redirector and validated
that it is getting invoked, my connector is up and listening, I validated
that the class files used for ajp13 are getting invoked, I set up my
obj.conf file, the server.xml file and my workers.properties file, but I
only get this when I hit a JSP page:

HTTP 500 - Internal server error
Internet Explorer

After playing around a bit more, I get a little better results() in that
the browser returns html, but it is not running the JSP. Instead all code
between % and % shows up when I view the page source, but is otherwise
hidden. When I view a JSP in netscape's doc root, I see the entire text
rendered and all code between % and % as if it were just text. So, the
bottom line is that a JSP referenced from netscape to tomcat in tomcat's doc
root behaves different than JSP in netscape's doc root. I got this result by
changing the mime type for jsp to text/plain from it's default value of
magnus-internal/servlet. Reverting the mime back to magnus-internal/servlet
produces the same error 500 message. Changing the IE to display
non-friendly errors did not shed any light on this. The only difference in
logs for this is that when I revert back to the magnus-internal/servlet mime
type, I get this in the netscape errors log:

[02/Aug/2002:00:09:13] config (32160): for host XX.XX.XXX.XXX trying to GET
/examples/jsp/snp/snoop.jsp, handle-processed reports: no way to service
request for /examples/jsp/snp/snoop.jsp

I don't get this error when I change the mime-type to text/plain. BEA
suggests using text/jsp for integrating its application server. I tried that
and got the same result after restarting netscape. I've even tried arbitrary
values and got the same result. Finally, I removed the mime altogether--same
result--no errors, but JSP does not execute and is hidden unless I source
the page. Same thing.

One other detail that may be important is that my linux machine has two
NICS. One is a fixed external IP, and the other is a fixed local IP. My
network is working fine, but I was just wondering if there are special
configuration considerations for a multi-homed system. My guess is no,
because most production applications I've worked on are multi-homed.

# #Here is my makefile process:
1. Download tomcat 4.04 connectors source
2. copy the Makefile.solaris to Makefile.linux (which was not a part of the
distribution, unfortunately)
3. changed references from SOLARIS and solaris to LINUX and linux
4. added SUITSPOT_HOME to /etc/bashrc
5. changed this line in the Makefile from:

INCLUDEDIR=$(SUITSPOT_HOME)/include

to:

INCLUDEDIR=$(SUITSPOT_HOME)/plugins/include

6. created a links shell and gave it execute access:

# vi links:
ln -fs ../common/jk_ajp12_worker.o
ln -fs ../common/jk_ajp13.o
ln -fs ../common/jk_ajp13_worker.o
ln -fs ../common/jk_connect.o

# chmod +x links

I had to do this because the references are not quite right in the Makefile

7. Then I ran the Makefile using gmake like this:

# gmake -f Makefile.linux all

It failed for references. I ran my links shell and reran make like this:

# ./links
# gmake -f Makefile.linux all

That built nsapi_redirector.so. I created some directories and copied the
binary into /opt/tomcat/bin/netscape/linux/i386.

Hopefully, someone has actually done the specific thing I am trying to do.
I've included all relevant files below if it will help someone help me.

# vi /etc/init.d/tomcat
#!/bin/sh
CLASSPATH=/opt/tomcat/common/lib/servlet.jar
export CLASSPATH
su - webserv -c /opt/tomcat/bin/catalina.sh $@

# vi /opt/tomcat/conf/jk/workers.properties
#  Begin worker.properties **
worker.ajp13.type=ajp13

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#   lbfactor must be  0
#   Low lbfactor means less work done by the worker.
worker.ajp13.lbfactor=1

#
# Specify the size of the open connection cache.
#worker.ajp13.cachesize

#
#-- DEFAULT LOAD BALANCER WORKER DEFINITION --
#-
#

#
# The loadbalancer (type lb) worker perform weighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=ajp13

#
# worker.tomcat_home should point to the location where you
# installed tomcat. This is where you have your conf, webapps and lib
# directories.
#
worker.tomcat_home=/opt/tomcat

#
# worker.java_home should point to your Java installation. Normally
# you should have a bin and lib directories beneath it.
#
worker.java_home=/usr/java

#
# You should configure your environment slash... ps=\ on NT and / on UNIX
# and maybe something different elsewhere.
#
ps=/

#
#-- ADVANCED MODE