Migration from 4.1.x to Tomcat 5

2003-09-28 Thread Marco Tedone
Hi, which are the key anspects I shall keep in mind when migrating from
Tomcat 4.1.xx to version 5, keeping in mind that I'm developing Struts
application?

Which are the key technology anspects I shall review in my project
architecture, particularly related to:

1) Servlets/JSP
2) Taglibs
3) Tomcat starting and stopping
4) WAR deployment
5) Security

At present I deploy a WAR under webapps with taglibs defined in the web.xml
file and make use of my personal security model (is there any reason Tomcat
5 should make things easier?), I stop and start it as a service (still
available?).

Will be JSTL and JSF natively implemented? Could I just drop my application
from Tomcat 4.1.xx to Tomcat 5 without problems?

Thanks for any reply,

Marco




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



Re: Antwort: Migration from 4.1.x to Tomcat 5

2003-09-28 Thread Marco Tedone
I implemented a security model independent from the container. Basically it
is based on db/validation and session management through taglibs to
display/allow functionalities to authorized users.

Marco
- Original Message - 
From: Oliver Wulff [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, September 28, 2003 1:08 PM
Subject: Antwort: Migration from 4.1.x to Tomcat 5






Hi Marco

I don't know Tomcat 5.x but what do you mean with your personal security
model? Have you implemented a custom realm?

Oliver

**
Oliver Wulff
Zürich Versicherungs-Gesellschaft
IA4, CoC Middleware
Postfach, 8085 Zürich
Telefon: +41- 1 628 58 07
Fax: +41 - 1 623 58 07
E-Mail: mailto:[EMAIL PROTECTED]




  Marco Tedone
  [EMAIL PROTECTED] An:  Tomcat Users List
[EMAIL PROTECTED]
  rg  Kopie:
   Thema:   Migration from 4.1.x
to Tomcat 5
  28.09.2003 13:51
  Bitte antworten
  an Tomcat Users
  List






Hi, which are the key anspects I shall keep in mind when migrating from
Tomcat 4.1.xx to version 5, keeping in mind that I'm developing Struts
application?

Which are the key technology anspects I shall review in my project
architecture, particularly related to:

1) Servlets/JSP
2) Taglibs
3) Tomcat starting and stopping
4) WAR deployment
5) Security

At present I deploy a WAR under webapps with taglibs defined in the web.xml
file and make use of my personal security model (is there any reason Tomcat
5 should make things easier?), I stop and start it as a service (still
available?).

Will be JSTL and JSF natively implemented? Could I just drop my application
from Tomcat 4.1.xx to Tomcat 5 without problems?

Thanks for any reply,

Marco




-
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: Antwort: Re: Antwort: Migration from 4.1.x to Tomcat 5

2003-09-28 Thread Marco Tedone
Well, the real problem I encountered with JAAS (which brought me to choose
for my own, platform-independent, solution - which for the EJB part will
make use of the JAAS API anyway) is that the realms provided by vendors are
vendor-specific. Therefore, should I have a solution valid on JBoss I cannot
port it to WS (let's say) or Bea and having it working without code
changing. In all my application I stress the concept: build once, run
anywhere, and security shouldn't be different.

Marco
- Original Message - 
From: Oliver Wulff [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, September 28, 2003 1:28 PM
Subject: Antwort: Re: Antwort: Migration from 4.1.x to Tomcat 5






We had something similar in our company too, but we want to get rid of
custom security code (proprietary). The Java developer should have to
possibility to use the Java Servlet API for security issues (web.xml,
isUserInRole(), getUserPrincipal(), etc.). We have integrated our
authentication/authorization system by a custom realm. So, the life of the
Java developer gets much easier (built on pure standard) and makes him
independant from company specific systems and code. So we could migrate to
another security system without any changes to the application code. We
only have to change the realm and our Tomcat package.

BTW, JAAS is getting more and more important. A lot of security system
provider are also providing a JAAS LoginModul to integrate their security
system (ex. IONA ISF) into different application container. JBoss and BEA
are already supporting JAAS. Tomcat does have a JAAS Realm too but I think
it's beta.
I guess, that JAAS will be part of the J2EE spec in the future - would make
sense, wouldn't it?

Oliver

**
Oliver Wulff
Zürich Versicherungs-Gesellschaft
IA4, CoC Middleware
Postfach, 8085 Zürich
Telefon: +41- 1 628 58 07
Fax: +41 - 1 623 58 07
E-Mail: mailto:[EMAIL PROTECTED]




  Marco Tedone
  [EMAIL PROTECTED] An:  Tomcat Users List
[EMAIL PROTECTED]
  rg  Kopie:
   Thema:   Re: Antwort:
Migration from 4.1.x to Tomcat 5
  28.09.2003 14:10
  Bitte antworten
  an Tomcat Users
  List






I implemented a security model independent from the container. Basically it
is based on db/validation and session management through taglibs to
display/allow functionalities to authorized users.

Marco
- Original Message -
From: Oliver Wulff [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, September 28, 2003 1:08 PM
Subject: Antwort: Migration from 4.1.x to Tomcat 5






Hi Marco

I don't know Tomcat 5.x but what do you mean with your personal security
model? Have you implemented a custom realm?

Oliver

**
Oliver Wulff
Zürich Versicherungs-Gesellschaft
IA4, CoC Middleware
Postfach, 8085 Zürich
Telefon: +41- 1 628 58 07
Fax: +41 - 1 623 58 07
E-Mail: mailto:[EMAIL PROTECTED]




  Marco Tedone
  [EMAIL PROTECTED] An:  Tomcat Users List
[EMAIL PROTECTED]
  rg  Kopie:
   Thema:   Migration from
4.1.x
to Tomcat 5
  28.09.2003 13:51
  Bitte antworten
  an Tomcat Users
  List






Hi, which are the key anspects I shall keep in mind when migrating from
Tomcat 4.1.xx to version 5, keeping in mind that I'm developing Struts
application?

Which are the key technology anspects I shall review in my project
architecture, particularly related to:

1) Servlets/JSP
2) Taglibs
3) Tomcat starting and stopping
4) WAR deployment
5) Security

At present I deploy a WAR under webapps with taglibs defined in the web.xml
file and make use of my personal security model (is there any reason Tomcat
5 should make things easier?), I stop and start it as a service (still
available?).

Will be JSTL and JSF natively implemented? Could I just drop my application
from Tomcat 4.1.xx to Tomcat 5 without problems?

Thanks for any reply,

Marco




-
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

Re: Using Digester in a Tomcat project causes server not to start?

2003-09-22 Thread Marco Tedone
It would take too long to tell you how to use commons-digester with Tomcat
(or whatever other application); I'm using it with a Struts application
running under Tomcat and it works greately.

I put it under WEB-INF/lib folder and I don't have it under common/lib

Marco
- Original Message - 
From: Kruse, Matt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 5:03 PM
Subject: Using Digester in a Tomcat project causes server not to start?


 I know I'm ignorant in some areas of this problem, so please forgive me if
I
 don't explain it well or if I'm missing something obvious!

 PROBLEM: Tomcat won't startup (via Eclipse plugin) when Apache's
 commons-digester.jar is included as a project lib.

 QUESTION: How can I use the Digester in my project with Tomcat?

 SEE ALSO (appear to reference the same problem):
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg45756.html

http://groups.google.com/groups?selm=c09cb3fc.0307290659.57359042%40posting.
 google.com
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg02848.html

 I've narrowed it down to this being the source of the problem. It looks
like
 it has something to do with ClassLoaders or something, but I don't know
much
 about that. I'm confused.

 It's a problem that others have apparently encountered. A patch to
Catalina
 may solve the problem, but I haven't seen any posts or messages detailing
a
 work-around.

 Is there a work-around I can use _NOW_ to make my project work in Tomcat?

 Thanks!

 Matt Kruse

 PS:

 This is the error I get when including Digester in the dependencies and
 trying to start Tomcat:

 2003-09-22 10:22:29,962 0[main] DEBUG
 org.apache.commons.digester.Digester  - addRuleSet() with no namespace URI
 2003-09-22 10:22:29,978 16   [main] DEBUG
 org.apache.commons.digester.Digester  - addRuleSet() with no namespace URI
 2003-09-22 10:22:29,978 16   [main] DEBUG
 org.apache.commons.digester.Digester  - addRuleSet() with no namespace URI
 2003-09-22 10:22:29,993 31   [main] DEBUG
 org.apache.commons.digester.Digester  - addRuleSet() with no namespace URI
 2003-09-22 10:22:29,993 31   [main] DEBUG
 org.apache.commons.digester.Digester  - addRuleSet() with no namespace URI
 2003-09-22 10:22:29,993 31   [main] DEBUG
 org.apache.commons.digester.Digester  - addRuleSet() with no namespace URI
 2003-09-22 10:22:29,993 31   [main] DEBUG
 org.apache.commons.digester.Digester  - addRuleSet() with no namespace URI
 2003-09-22 10:22:29,993 31   [main] DEBUG
 org.apache.commons.digester.Digester  - addRuleSet() with no namespace URI
 2003-09-22 10:22:29,993 31   [main] DEBUG
 org.apache.commons.digester.Digester  - addRuleSet() with no namespace URI
 2003-09-22 10:22:30,071 109  [main] DEBUG
 org.apache.commons.digester.Digester.sax  -

setDocumentLocator(org.apache.xerces.parsers.AbstractSAXParser$LocatorProxy@
 97d01f)
 2003-09-22 10:22:30,071 109  [main] DEBUG
 org.apache.commons.digester.Digester.sax  - startDocument()
 2003-09-22 10:22:30,103 141  [main] DEBUG
 org.apache.commons.digester.Digester.sax  -
 startPrefixMapping(xml,http://www.w3.org/XML/1998/namespace)
 2003-09-22 10:22:30,103 141  [main] DEBUG
 org.apache.commons.digester.Digester.sax  -
 startPrefixMapping(xmlns,http://www.w3.org/2000/xmlns/)
 2003-09-22 10:22:30,103 141  [main] DEBUG
 org.apache.commons.digester.Digester.sax  - startElement(,,Server)
 2003-09-22 10:22:30,103 141  [main] DEBUG
 org.apache.commons.digester.Digester  -   Pushing body text ''
 2003-09-22 10:22:30,103 141  [main] DEBUG
 org.apache.commons.digester.Digester  -   New match='Server'
 2003-09-22 10:22:30,103 141  [main] DEBUG
 org.apache.commons.digester.Digester  -   Fire begin() for
 ObjectCreateRule[className=org.apache.catalina.core.StandardServer,
 attributeName=className]
 2003-09-22 10:22:30,103 141  [main] DEBUG
 org.apache.commons.digester.Digester  - [ObjectCreateRule]{Server}New
 org.apache.catalina.core.StandardServer
 2003-09-22 10:22:30,103 141  [main] ERROR
 org.apache.commons.digester.Digester  - Begin event threw exception
 java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
 at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
 at

org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252
 )
 at org.apache.commons.digester.Rule.begin(Rule.java:200)
 at org.apache.commons.digester.Digester.startElement(Digester.java:1268)
 at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
 at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
 at

org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
 wn Source)
 at


Re: new Aspen Group Email

2003-09-13 Thread Marco Tedone
Proposal to remove [EMAIL PROTECTED] from the list.


- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 9:33 AM
Subject: new Aspen Group Email


 Due to problems with SPAM, [EMAIL PROTECTED] has been discontinued.



 Please note my new email address. To prevent automated systems from
obtaining my new email address, I will spell out the @ symbol. Please send
all future email to:



 gordon[at]aspengroup.net



 -
 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: Development Tools

2003-09-10 Thread Marco Tedone
As regards the first question you may want to look at the following product:

www.eclipse.org

to integrate with the following plugin:

http://www.objectlearn.com/index.jsp

I can't reply to the second one.

Marco
- Original Message - 
From: Nihita [EMAIL PROTECTED]
To: Tomcat [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 1:54 PM
Subject: Development Tools


Are there any free available development tools like Oracle Developer suite
for developing J2EE application which are also Tomcat complaint ? And will
the forms and pages developed using Oracle Internet development Suite work
with tomcat ?

Thanks
Nihita




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



Re: Tomcat and IIS + Index Server - possible ?

2003-09-10 Thread Marco Tedone
Hi Alain, I'm developing the same functionality for my site. Limiting the
problems to JSPs (as if you are using Struts are more and if you're using
Struts + Tiles are a lot more...Guess...which one am I using??) the only
real activity you need to do is to manipulate the path returned by Lucene,
which refers to your JSPs, in a web-context manner, so that you can give
those pages as links to the user. The content it's not a problem, at least
in my case, because Lucene build an index of all significant words in your
JSPs and the correct JSPs are returned if you run a query for any of the
words contained in your JSP.

You may have additional problems if your JSPs are used as pure views,
letting the hard-work to servlets (which any possible background) which act
as proxies. The reason is that, even if a possible search engine would
return to you the path to a JSP page, this page could not be accessible
directly, because for instance, it displays some JavaBean content which has
been prepared by some background work. Rather, you will want the user to
link to the relevant action which eventually will forward the control to the
JSP, therefore even if the content is contained in JSPs, what you should
show to the user to click on, is a link to the action bound with that JSP.

I solved all those problems so far; unfortunately, I'm running with Tiles,
and the JSPs which actually contains the content of interest, is not the JSP
bound with the action I want to show to the user. The JSP bound with the
action has got the following code (snippet):

%@ page language=java %
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %

tiles:insert definition=tiles.administer flush=true /

As you can see, there is not a lot of content here for a search engine to
find :|

Good luck,

Marco

- Original Message - 
From: Hertenstein Alain [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 12:45 PM
Subject: RE : Tomcat and IIS + Index Server - possible ?


Hi,

Just asking about this topic again, since nobody answered or seems to have
an idea...
Meanwhile I just had a look on Lucene, but I'm not sure if it can do what I
need without -too much- setup and code work.
I managed to make it work and search local files, but I don't know if it
can search JSP files, i.e. what the JSPs generate in HTML... It seems like
one has to re-code the whole index creation process to achive this !

Anyone has done that before ?
Can anybody recommend me what to do to implement that search engine with IIS
and Tomcat ?

Thanks for your help, I'm really stuck here...
Alain

-Message d'origine-
De : Hertenstein Alain
Envoyé : lundi, 1. septembre 2003 18:24
À : 'Tomcat Users List'
Objet : Tomcat and IIS + Index Server - possible ?


Hello,

Our configuration is as follows : Win2K, JDK 1.4.1, Tomcat 4.1.24 connected
with IIS using mod_jk. Index Server is AFAIK also installed. We are thinking
of adding a Search site button in our web application. The problem is
that we have content coming from numerous places in our JSP pages : inside
the pages (stored either as HTML or in Java String variables) or in MS SQL
Server tables.

We thought of using Index Server to do that, since it should normally handle
most of the work easily... Is this possible in such configuration ? In other
words, can Index Server access text retrieved in any way by JSPs ? Another
issue is that there's no virtual directory configured in IIS other than the
redirector directory (pointing to the isapi_redirector2.dll file). So I'n
not sure IIS/Index Server can access JSPs at all anyway...

Has anyone already tried this before ? Or maybe is there another better way
to achieve this ? Please let me know, thank you very much ! Alain


**
 This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


-
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: Connetion between Tomcat MySQL

2003-09-09 Thread Marco Tedone
You may want to put the JDBC driver jar file under %TOMCAT_HOME%/common/lib
and try again. This is the location where the classloader loads the classes
which makes available to all Tomcat applications.

Marco
- Original Message - 
From: Amy Cheung [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 4:40 AM
Subject: Connetion between Tomcat  MySQL


 Hi,

 I am using Tomcat 3.3.1 and MySQL 4.0 in Window XP.
 MySQL engine is running. When I run my jsp, it stated
 the error that import com.mysql.Driver not found.
 Anyone know how to install the driver properly? I read
 something about setting the class path. But where to
 set? I don't know much about the MSDOS command and
 specify the envirnomental variables in Window XP. I
 download both the J/Connector  OCBC driver from
 MySQL. Where should be the exact location to store?

 Thanks,
 Amy Cheung

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



Re: method of implementing a 'login' section in a site

2003-09-09 Thread Marco Tedone
Well, what I can tell you what I've done, and then you're free to choose
(what a nice thing freedom...). I authenticated the user against a database;
if the user is authenticated, then I set a session attribute like (type
String): isUserAuthenticated.

Then, I wrote two custom tags (isUserAuthenticated, isNotUserAuthenticated)
which respectively executed the code within a block/block depending
whether the session attribute isUser exists (i.e. != null) or not. Then, in
my JSP page, I wrote something like the following:

isNotUserAuthenticated
  forward her to the login page
/isNotUserAuthenticated

isUserAuthenticated
  a href=.../a
  a href=.../a
  a href=.../a
/isUserAuthenticated

I discovered this method is also useful to allow 'Administration'
functionality, so that similarly you may declared isAdministrator
isNotAdministrator

Hope this will help,

Marco
- Original Message - 
From: zeallousbigpond.net.au [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 3:00 AM
Subject: method of implementing a 'login' section in a site


 hi,

 Thanks a lot for the email guys!! Another question I want to ask. I
 want to create a section of my site where I only allow users to use IF
 they have logged into my site. Either than using cookies to keep track
 if they have logged in or not, what method should I use to keep track
 of their status on each page?

 Anson

 - Original Message -
 From: Marco Tedone [EMAIL PROTECTED]
 Date: Tuesday, September 9, 2003 10:36 am
 Subject: Re: EJB in tomcat

  Well, Tomcat needs to 'colloquiate' with an application server
  (where EJBs
  are deployed). The answer is yes, it's possible; all your
  application needs
  to do is to establish a context with an application server and
  then it can
  use the component deployed on application server generally using a
  lookup.
  Here follow a snippet from a code:
 
  InitialContext context = null;
  //getJbossContext() sets up the correct property file and returns
  a context
  initialized to that property file
  context = getJbossContext();
  Object node = context.lookup(sessionName);
  PeopleDbManagerHome home =
  (PeopleDbManagerHome)PortableRemoteObject.narrow(node,
  PeopleDbManagerHome.class);
  bean = home.create();
  } catch (RemoteException e) {
  printRemoteExceptionMessage();
  return null;
  }
  Hope it will help,
 
  Marco
 
  - Original Message - 
  From: zeallousbigpond.net.au [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, September 09, 2003 1:17 AM
  Subject: EJB in tomcat
 
 
   hi,
  
I would like to ask, can Tomcat work with Enterprise
   Javabeans? 'cause I read from the Java site...it says that we
  need a
   BEA server? Is it necessary? Or tomcat it self already has those
   libraries.
  
   Anson
  
  
  
   -
  
   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: Another question - validating user input in fields

2003-09-09 Thread Marco Tedone
Well, if you use Struts, you can use the Validator framework. Everything is
almost automatic, with no coding required.

Marco
- Original Message - 
From: Anson Zeall [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 11:06 AM
Subject: Another question - validating user input in fields


 Hi,

 I have another question for you guys. Say, a user types an input into
 the form, but with my checkings, I made that kind of input, say $%#RG,
 invalid. But I would like to write a line at the side of the form saying
 input must be from A-Z or a-z. I think in asp, its called text
validators
 or something. How do you do that in JSP?

 From,

 Anson










 -
 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: Restrict access to a webapps folder based on ip

2003-09-09 Thread Marco Tedone
Well, you may want to restrict the servlet access, not the folder access. It
could be accomplished by a servlet filter for instance, which allow access
only if the IP are within a certain range...

Marco
- Original Message - 
From: Joshua Russell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 3:29 PM
Subject: Restrict access to a webapps folder based on ip


 I was wondering if it was possible to restrict access to a certain
 webapps folder based on the ip the packet was coming from.

 So if .../webapps/app1 was for an intranet site with all ip's within a
 certian range having access, and /webapps/app2 for a web-site allowing
 machines with any ip.

 Does this make sense to anyone? And if so is there a better solution to
 hosting two applications on the same server...???Two instances of
 Tomcat...different ports??

 I am currently running Tomcat 4.0.6 standalone...




 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software




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



Re: How to use classes from another webapp/context?

2003-09-08 Thread Marco Tedone
Well, usually a WAR is a composite collection of JSPs, classes, deployment
descriptor, third-party jars and so on. If you have people who write
classes, they can create a jar, not a war, and people who create JSP can
just place them in the correct location. A good build project could then
merge the classes, the JSPs and whatever needed in a single, composite, war
file. Need to change a behaviour? Modify the class and redeploy the
application. Need to change layout? Change the JSP and copy/redeploy to the
correct location (Additionally restart the server :)

My 2 cents,

Marco
- Original Message - 
From: Ulrich Mayring [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 08, 2003 10:25 AM
Subject: Re: How to use classes from another webapp/context?


 Christopher Williams wrote:
 
  Unfortunately, you do need to move classes common to multiple web apps
into
  library files.  You don't have to put the library files into common\lib,
  however.  You can put the JARs in WEB-INF/lib inside your WAR file.
Never
  done it myself, but it's supposed to work.

 Yep, but then I can't deploy/undeploy the two WARs seperately. We have
 developers, who write classes, and they want to manage their WAR, and we
 have people, who write JSP files, and they want to manage their own WAR.
 But it seems they can't work together in the way I imagined.

 Thank you very much for your help,

 Ulrich



 -
 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: EJB in tomcat

2003-09-08 Thread Marco Tedone
Well, Tomcat needs to 'colloquiate' with an application server (where EJBs
are deployed). The answer is yes, it's possible; all your application needs
to do is to establish a context with an application server and then it can
use the component deployed on application server generally using a lookup.

Here follow a snippet from a code:

InitialContext context = null;
//getJbossContext() sets up the correct property file and returns a context
initialized to that property file
context = getJbossContext();
Object node = context.lookup(sessionName);
PeopleDbManagerHome home =
(PeopleDbManagerHome)PortableRemoteObject.narrow(node,
PeopleDbManagerHome.class);
bean = home.create();
} catch (RemoteException e) {
printRemoteExceptionMessage();
return null;
}
Hope it will help,

Marco

- Original Message - 
From: zeallousbigpond.net.au [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 1:17 AM
Subject: EJB in tomcat


 hi,

  I would like to ask, can Tomcat work with Enterprise
 Javabeans? 'cause I read from the Java site...it says that we need a
 BEA server? Is it necessary? Or tomcat it self already has those
 libraries.

 Anson



 -
 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: Advice wanted about mapping URIs to pages

2003-09-07 Thread Marco Tedone
Why don't you put all your stuff under Tomcat? With Struts 1.1, it's
possible to define several contexts for your application (i.e. have several
struts-config.xml files) and this seems to me the solution which possibly
could address your needs. Additionally, if you have the possibility, the
ideal solution would be a mixture between Apache httpd and Tomcat, so that
HTML is served by Apache which guarantees better performances.

I know that the security issue is a 'pain in the ass' (I'm writing my
security model but the reason is that I'm guaranteeing security on the EJB
tier, and there is no vendor-independent security solution at present), but
if you need only to check security at the web-lier, I would seriously think
to implement the security using Tomcat native architecture, with one of its
security realms modules.

Hope this will help,

Marco
- Original Message - 
From: Bob Langford [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 1:19 AM
Subject: Advice wanted about mapping URIs to pages


 I'm trying to decide how to lay out my application.  The major question
 is how to make Tomcat run it, but ideas for better organization would
 be welcome also.

 I'd better describe the setup, even though it's a bit lengthy.  I'm
running
 a separate instance of Tomcat, dedicated to this project.  It's got two
major
 sections: access control and content.
 1) The access control is a set of JSP pages (using Struts) that handle
 user signup, login, etc.  I have written a Filter that checks
credentials
 on each page.
 2) The content is a bunch of static HTML, GIFs, Flash, etc.  Down the road
 there will also be some JSP here.  This stuff is written by another
person,
 and mostly already exists.

 I'd like to have the directory|  Accessed from URI's such as these:
 layout like this: |

 ./tomcat/webapps/control.war xyz.com/
 ./web/public/*.html  xyz.com/public/foo.html
 ./web/basic/*.html   xyz.com/good/bar.html
 ./web/deluxe/*.html  xyz.com/better/some.pdf
 ./web/premier/*.html xyz.com/best/cool.swf

 The first one seems straightforward.  The others are a bit harder.  It's
not
 going to be possible to put them into a .WAR file, and they're going to
 be updated constantly.  They're not under the $CATALINA_BASE/webapps
directory,
 so I don't know how to tell Tomcat to find them.  Maybe symbolic links?

 The hard part is context.  My custom Filter has to apply to all the
 directories
 under ./web, but also access the Session and other data that is part of
 control.war,
 and I've had trouble doing that.  It would be easy to have them be
separate
 apps,
 but I can't get my authentication working that way.

 Any suggestions or ideas would be greatly appreciated.  I'm still
 experimenting,
 but I feel like every idea I've tried is an ugly hack.  I'd rather be
 elegant :-)

 Thanks!

 P.S.  Infrastructure:  Linux 2.4.x, Tomcat 4.1.27, Struts 1.1.  Solutions
 don't
 have to be portable to other software.  I'd rather not use Tomcat 5,
 though.  (Yet)


 --
 Bob Langford
 Silicon Masters Consulting, Inc.8207 Stone River Court, Richmond, VA
23235
 phone:  804-674-1253  fax:  804-745-6650
 http://www.silicon-masters.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: JNDI DataSource - need to synchronize?

2003-09-07 Thread Marco Tedone
Well, to be sure, put your variables inside the methods. This way, your data
will be safe. One idea would be to create objects when you need them, and to
close them when you've finished.

Marco
- Original Message - 
From: john-paul delaney [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 12:18 PM
Subject: JNDI DataSource - need to synchronize?


 Hello List...

 Some coding help please.  Following earlier advice on this list and the TC
datasource how-to, I've now got a working test servlet.  Basically I declare
the Context(s) and DataSource as instance variables, and initialize them in
init:

 
Context initContext = null;
Context envContext = null;
DataSource ds = null;

public void init() throws ServletException {

   try {
   initContext = new InitialContext();

   envContext = (Context) initContext.lookup(
  java:comp/env);
   ds = (DataSource) envContext.lookup(
  jdbc/jpdb);
   } catch (NamingException e) {

  throw new ServletException(
 Couldn't setup JNDI Context/DataSource, e);

   }
}
 ==

 If this is the correct approach, should I be synchronizing the
Context(s)/DataSource in the doGet method?  If another http request thread
closes it's own connection, will it affect the Context or DataSource object
of this request?

 Thanks for any clarification,
 /j-p.


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



How to turn on the 'development' mode?

2003-09-07 Thread Marco Tedone
Hi, how could I turn on the 'development' mode, so that Tomcat checks
everytime if the page has been updated and already been compiled?

Marco




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



Re: [OT] Realizing a search functionality

2003-09-06 Thread Marco Tedone
Thank you. I think I'll go for Lucene.

Marco
- Original Message - 
From: John Turner [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 05, 2003 1:20 PM
Subject: Re: [OT] Realizing a search functionality



 AFAIK, Lucene indexes files.  How then, do you index a dynamic site?
 The only files that exist on a dynamic site are source code files.
 Servlets would never be indexed...how then do you index the content
 returned from the servlet?  Can Lucene do this?

 The Lucene site is pretty sparse in information.  Not having worked with
 it, and not knowing every option available when using it, I think there
 might be some other alternatives.  I've used Verity in the past, but
 that is a commercial product.  The other tool I've used in the past to
 great success is Atomz (http://www.atomz.com).  The trial is
 never-ending, so an index of up to 500 pages is free.  Pages also =
 URL.  The nice thing about Atomz is that it will spider your site and
 index the content returned, thus it works quite well for dynamic sites.

 In other words, it will take a URL like
 http://your.domain.com/content.jsp?id=512view=full; and index the
 content returned from that, not the actual text string of the URL.

 The only requirement is that you display the Atomz logo on the search
 results page.  You can pay a small annual fee to have that removed.  All
 indexes and collections are kept on the Atomz site, not yours, and you
 can define the stylesheet and template that is used to display the
 search results, as well as define the frequency of indexing.

 John

 Schalk wrote:
  Marco
 
  You may to have a look at Lucene (OpenSource Jakarata project) at:
  http://jakarta.apache.org/lucene/docs/index.html
 
  Kind Regards
  Schalk Neethling
  Volume4.Development.Multimedia.Branding
  emotionalize.conceptualize.visualize.realize
  Tel: +27125468436
  Fax: +27125468436
  email:[EMAIL PROTECTED]
  web: www.volume4.co.za
 
 
  :: -Original Message-
  :: From: Marco Tedone [mailto:[EMAIL PROTECTED]
  :: Sent: Friday, September 05, 2003 12:32 AM
  :: To: Tomcat Users List
  :: Subject: [OT] Realizing a search functionality
  ::
  :: Hi, I must admit that I don't know anything about how to realize a
search
  :: functionality. The only thing that I know is that most sites have a
  search
  :: functionality which, when searching for something, return a list of
links
  :: more or less involved in the search string.
  ::
  :: The only things I know are:
  ::
  :: 1) An index of the web site contents should be created somehow
  :: 2) The search 'action' (I'm talking in Struts terms, but I think it
could
  be
  :: anything) should interact with this index to match the required
string
  :: 3) A list (which form does it assume) containing all the links
related to
  :: the query string should be created, eventually read and displayed to
the
  :: client
  ::
  :: Did anyone of you realized succesfully a search functionality in its
  site?
  :: Could you please address me towards some good software (possibly
  :: open-source, possibly Jakarta, possibly java-oriented) and  patterns
to
  use
  :: to realize  a search functionality?
  ::
  :: Many thanks,
  ::
  :: Marco
  ::
  ::
  ::
  ::
  :: -
  :: 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: JSP Document

2003-09-06 Thread Marco Tedone
Actually I think it is, at least according to the HTML 4.01 Transitional.
These are character entities and must be entered with the 'escape'
character. These can assume a number or a character after the escape
character. The only character which in some browsers is not rendered
properly is the TM (trade mark) symbol, which doesn't have an 'escape'
character representation, but only a numeric one (153;). In this scape the
form:

supsmallTM/small/sup

is used. I can confirm also that the amp; is XHTML 1.0 Transitional valid.

Hope this will help,

Marco

- Original Message - 
From: Eugene Lee [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, September 06, 2003 6:23 PM
Subject: Re: JSP Document


 On Sat, Sep 06, 2003 at 06:10:26PM +0100, Sam Hough wrote:
 :
 : Tomcat 4.1.27 on Win32 given
 :
 : ?xml version=1.0?
 : jsp:root xmlns=http://java.sun.com/JSP/Page version=1.2
 : h1Cat amp; Dog/h1
 : /jsp:root
 :
 : Generates
 :
 : h1Cat  Dog/h1
 :
 : Can anybody confirm that this is correct behaviour?

 Why did the amp; entity get changed to a plain  character?  That's
 not kosher with HTML-4.01 specs.


 -- 
 Eugene Lee
 http://www.coxar.pwp.blueyonder.co.uk/

 -
 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 and multiple processors

2003-09-05 Thread Marco Tedone
It would be nice :)

- Original Message - 
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, September 05, 2003 12:07 AM
Subject: Re: Tomcat and multiple processors


 (1) Install TC as many times as you need JVM instances;
 (2) for each instance, rename home before proceeding with another
 installation eg.
 CATALINA_HOME_tc1=/path/to/tc1
 CATALINA_HOME_tc2=/path/to/tc2
 etc
 (3) for each inctance rename respective startup scripts eg
 startup_tc1.sh or catalina_tc1.sh
 startup_tc2.sh
 etc
 (4) modify workers.properties to include the loadbalancer worker eg
 worker.loadbalancer.type=lb
 worker.loadbalancer.balanced_worker=myTC1, myTC2, myTC3,...
 etc
 (5) go through your configuratioo fles to ensure consisency in re-naming
 worker to loadbalancer
 (6) should you need to tie a vhost to a specific JVM or box then instead
 of loadbalancer, use a worker eg myTC1
 eg.
 (httpd.conf)
 VirtualHost 192.16.100.10:80
   ServerName dodgy.programmer.com.hk
   ...
   JkMount /goodClass loadbalancer
   JkMount /goodClass/* loadbalancer
   JkMount /dodgyClass myTC1
   JkMount /DodgyClass/* myTC1
 /VirtualHost
 (7) In server.xml, ensure you have the corresponding virtual host and
 docbase
 (8) In web.xml, likewise ensure you have the corresponding mappings.

 Yoav, John, tomcat-people, if this is correct, do you need someone to
 write a howto ?



 Pitre, Russell wrote:
 
  Hey people..
 
  Where can i find more information on the web about this subject,
  specifically setting up multiple jvm's tied to it's respective tomcat
  installation?  Doesn't have to include multiple processors
 
  I'm very interested in this subject, basically, just curious as to how
  it all works  :)
 
  Thanx in advance!
  Russ
 
  -Original Message-
  From: John Turner [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 04, 2003 4:16 PM
  To: Tomcat Users List
  Subject: Re: Tomcat and multiple processors
 
  Matt Raible wrote:
 
   1.  Does it support multiple processors?  We have a Tomcat instance in
 
   production on a NT box with 4 processors, but Tomcat only seems to use
 
   one. Does the 1.4.2 JVM support MP?
 
  Yes, at least on Sun hardware with Solaris 8, and Intel hardware with RH
  Linux 7.x (duals only...we don't have quads).  Don't know about Windows.
 
   2.  We have IIS on the front end, and we are currently not able to
   migrate to Apache.  We'd like to use the connectors (jk or jk2) to do
   load-balancing and failover.  Do these connectors provide the support
   we need?  Should be use a clustering architecture like JavaSpaces
   (http://www.onjava.com/lpt/a/2422) instead?
 
  The connectors can load balance, but unfortunately the IIS versions are
  sort of a crapshoot in my mind.
 
   3.  We plan on deploying 42+ applications to a number of Tomcat
   servers. Since each application will support 1 customer - I think it's
 
   a good idea to have 1 app - 1 tomcat - so if Tomcat crashes, it only
   affects that customer
   - rather than all customers.  I've heard of setting up a CATALINA_BASE
  to
   share Tomcat's core files, and then setup webapps directories for each
   customer.  Does this sound reasonable?  Have have others done
  something like
   this?
 
  I agree with Yoav. All the way back with Tomcat 3.1 we had ours setup
  this way:
 
  1 virtual host = 1 Tomcat instance = 1 VM = 1 application
 
  We've had a couple dozen set up like this for a long time, works like a
  charm.  I prefer this over using CATALINA_BASE, as I can treat each
  virtual host separately from any other, including giving each different
  JVM memory settings, etc.  Admittedly, we're an ASP, so we can dictate
  how many web apps go with each virtual host, but I would think having
  completely separate Tomcat instances would make sense in most real
  production environments.  The only thing you lose with multiple Tomcat
  instances is disk space, and disk is cheap.
 
  John
 
  -
  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]



Tomcat 5 book

2003-09-04 Thread Marco Tedone
Hi, is there in prevision any book about Tomcat 5?

Marco



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



[OT] Realizing a search functionality

2003-09-04 Thread Marco Tedone
Hi, I must admit that I don't know anything about how to realize a search
functionality. The only thing that I know is that most sites have a search
functionality which, when searching for something, return a list of links
more or less involved in the search string.

The only things I know are:

1) An index of the web site contents should be created somehow
2) The search 'action' (I'm talking in Struts terms, but I think it could be
anything) should interact with this index to match the required string
3) A list (which form does it assume) containing all the links related to
the query string should be created, eventually read and displayed to the
client

Did anyone of you realized succesfully a search functionality in its site?
Could you please address me towards some good software (possibly
open-source, possibly Jakarta, possibly java-oriented) and  patterns to use
to realize  a search functionality?

Many thanks,

Marco




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



Re: [OT] Realizing a search functionality

2003-09-04 Thread Marco Tedone
SorryI found Jakarta LuceneI'll work on it :)

Marco
- Original Message - 
From: Marco Tedone [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, September 04, 2003 11:32 PM
Subject: [OT] Realizing a search functionality


 Hi, I must admit that I don't know anything about how to realize a search
 functionality. The only thing that I know is that most sites have a search
 functionality which, when searching for something, return a list of links
 more or less involved in the search string.

 The only things I know are:

 1) An index of the web site contents should be created somehow
 2) The search 'action' (I'm talking in Struts terms, but I think it could
be
 anything) should interact with this index to match the required string
 3) A list (which form does it assume) containing all the links related to
 the query string should be created, eventually read and displayed to the
 client

 Did anyone of you realized succesfully a search functionality in its site?
 Could you please address me towards some good software (possibly
 open-source, possibly Jakarta, possibly java-oriented) and  patterns to
use
 to realize  a search functionality?

 Many thanks,

 Marco




 -
 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: Configuring jk2 for Apache 4.0.23/TomCat 4.0.27

2003-09-03 Thread Marco Tedone
Did you added the .dll under modules?

(Sorry if this it's a stupid question)
Marco
- Original Message - 
From: Raj Dasgupta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 4:10 PM
Subject: Configuring jk2 for Apache 4.0.23/TomCat 4.0.27


 After adding jk2 to my apache's httpd.conf,  I see these errors on
startup.
 Any ideas on what this error indicates?


 [Wed Sep 03 10:35:32 2003] [error] shm.init(): No file
 [Wed Sep 03 10:35:32 2003] [error] mod_jk child init 1 -2
 [Wed Sep 03 10:35:32 2003] [notice] Apache/2.0.43 (Unix) mod_jk2/2.0.2
 configured -- resuming normal operations
 [Wed Sep 03 10:35:32 2003] [error] shm.init(): No file
 [Wed Sep 03 10:35:32 2003] [error] shm.init(): No file
 [Wed Sep 03 10:38:38 2003] [error] jk2_init() Can't find child 27367 in
 scoreboard
 [Wed Sep 03 10:38:38 2003] [error] shm.init(): No file
 [Wed Sep 03 10:38:38 2003] [error] mod_jk child init 1 -2
 [Wed Sep 03 10:57:18 2003] [error] shm.init(): No file
 [Wed Sep 03 10:57:19 2003] [error] jk2_init() Can't find child 27482 in
 scoreboard
 [Wed Sep 03 10:57:19 2003] [error] shm.init(): No file
 [Wed Sep 03 10:57:19 2003] [error] mod_jk child init 1 -2
 [Wed Sep 03 10:57:19 2003] [error] jk2_init() Can't find child 27483 in
 scoreboard
 [Wed Sep 03 10:57:19 2003] [error] shm.init(): No file
 [Wed Sep 03 10:57:19 2003] [error] mod_jk child init 1 -2


 Thanks
 Raj






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



Re: tomcat+j2sdk+mysql-connecto+mysql

2003-09-02 Thread Marco Tedone
Have you tried to put the mysql jdbc connector jar file under common/lib?

The problem here is that the file is not found in the classpath.

Hope this will help,

Marco
- Original Message - 
From: Sathyan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 7:30 AM
Subject: tomcat+j2sdk+mysql-connecto+mysql


 Hello All,

 I am new to tomcat and java.

 I want to install ipstat-0.9.7 tool which is used for bandwidyh
monitoring.

 I started intalling its requirements ...tomcat-4.1.27, j2sdk-1.4.2,
 mysql-connector-java-2.0.14, mysql-3.23.54 in Redhat-9

 I installed mysql rpm and j2sdk as binary ans its in
/usr/java/j2sdk1.4.2_01

 i have installed tomcat, mysql connector and ipstat in /usr/local/src and
 copied com and org of mysql connector in the
 /usr/local/src/tomcat/shred/lib.

 I was to able to browse the example page but not the ipstat page.

 Is there any version porblem ...and how to oevrcome this problem

 The catalina.out shows following error

 Sep 1, 2003 5:51:39 PM org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 Sep 1, 2003 5:51:39 PM org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 Sep 1, 2003 5:51:40 PM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Sep 1, 2003 5:51:41 PM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27
 Sep 1, 2003 5:51:44 PM org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.util.LocalStrings',
 returnNull=true
 Sep 1, 2003 5:51:44 PM org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.struts.action.ActionResources',
 returnNull=true
 Sep 1, 2003 5:51:44 PM org.apache.struts.util.PropertyMessageResources
 init
 INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
 returnNull=true
 Sep 1, 2003 5:51:48 PM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Sep 1, 2003 5:51:48 PM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Sep 1, 2003 5:51:48 PM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=1/462
 config=/usr/local/src/jakarta-tomcat-4.1.27/conf/jk2.properties
 [Mon Sep 01 17:51:56 IST 2003]  error: PoolManager: Can't register JDBC
 driver: org.gjt.mm.mysql.Driver : java.lang.ClassNotFoundException:
 org.gjt.mm.mysql.Driver
 at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1444)
 at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
 a:1289)
 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:141)
 at
 com.wrox.connectionpool.PoolManager.loadDrivers(PoolManager.java:82)
 at com.wrox.connectionpool.PoolManager.init(PoolManager.java:69)
 at com.wrox.connectionpool.PoolManager.init(PoolManager.java:23)
 at
 com.wrox.connectionpool.PoolManager.getInstance(PoolManager.java:31)
 at com.rsi.ipstat.DBManager.clinit(DBManager.java:20)
 at com.rsi.ipstat.LoginBean.validate(LoginBean.java:21)
 at
 org.apache.jsp.login_process_jsp._jspService(login_process_jsp.java:63)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
 10)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:256)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:191)
 at

org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
 eNext(StandardPipeline.java:643)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 

Re: bug #21252

2003-09-02 Thread Marco Tedone
Yes, the problem is the JDK installed under C. Install it under another
partition (with no spaces, i.e. I installed it under D:\J2SE) and it will
work.

Marco
- Original Message - 
From: John Corrigan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 9:40 PM
Subject: RE: bug #21252


 Have you tried placing the values for the switches inside quotes?  Since
 your paths contain spaces that would seem to be an issue.

 -Original Message-
 From: Dmitry Beransky [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 02, 2003 1:21 PM
 To: Tomcat Users List
 Subject: RE: bug #21252


 At 12:03 PM 9/2/2003, you wrote:
 I'm assuming that you are running under windows since you didn't specify
 the
 environment.  What is that path to the jvm.dll being used by Tomcat?

 Yep, that bug is indeed windows specific.  The JDK path is
 c:\java\j2sdk1.4.1_02.  I'm launching Tomcat from inside IntelliJ IDEA
 and the invocation command doesn't specify which jvm.dll to use (neither
 client nor server), so I assume whatever's the default gets used.  I'm
 including the full launch command as generated by IDEA below (it's pretty
 big)

 I've only run into this problem recently after adding a few more source
 paths to the project.  A simpler project works just fine.

 Thanks
 Dmitry


 C:\java\j2sdk1.4.1_02\bin\javaw.exe -Djava.endorsed.dirs=C:\Program
 Files\jakarta-tomcat-4.1.27\bin;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib;C:\Program
 Files\jakarta-tomcat-4.1.27\common\endorsed -Dcatalina.base=C:\Documents
 and Settings\dmitry\.IntelliJIdea\system\tomcat_ReclassRequests_8338efab
 -Dcatalina.home=C:\Program Files\jakarta-tomcat-4.1.27
 -Djava.io.tmpdir=C:\Program Files\jakarta-tomcat-4.1.27\temp -classpath
 C:\java\j2sdk1.4.1_02\lib\tools.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\bin\bootstrap.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\activation.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\ant.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\commons-collections.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\commons-dbcp.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\commons-logging-api.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\commons-pool.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\jasper-compiler.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\jasper-runtime.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\jdbc2_0-stdext.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\jndi.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\jta.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\mail.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\naming-common.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\naming-factory.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\naming-resources.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\common\lib\servlet.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\catalina-ant.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\catalina.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\commons-beanutils.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\commons-digester.jar;C:\Program

Files\jakarta-tomcat-4.1.27\server\lib\commons-fileupload-1.0.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\commons-logging.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\commons-modeler.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\jaas.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\jakarta-regexp-1.2.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\mx4j-jmx.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\servlets-common.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\servlets-default.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\servlets-invoker.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\servlets-manager.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\servlets-webdav.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\tomcat-coyote.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\tomcat-http11.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\tomcat-jk.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\tomcat-jk2.jar;C:\Program
 Files\jakarta-tomcat-4.1.27\server\lib\tomcat-util.jar;C:\Program

Files\jakarta-tomcat-4.1.27\server\lib\tomcat-warp.jar;C:\java\jakarta-servl
 etapi-4\lib\servlet.jar;C:\Documents
 and

Settings\dmitry\IdeaProjects\ReclassRequests\reclassrequests\web\WEB-INF\cla

sses;C:\java\j2sdk1.4.1_02\jre\lib\charsets.jar;C:\java\j2sdk1.4.1_02\jre\li

b\jaws.jar;C:\java\j2sdk1.4.1_02\jre\lib\jce.jar;C:\java\j2sdk1.4.1_02\jre\l

ib\jsse.jar;C:\java\j2sdk1.4.1_02\jre\lib\rt.jar;C:\java\j2sdk1.4.1_02\jre\l

ib\sunrsasign.jar;C:\java\j2sdk1.4.1_02\jre\lib\ext\dnsns.jar;C:\java\j2sdk1

.4.1_02\jre\lib\ext\ldapsec.jar;C:\java\j2sdk1.4.1_02\jre\lib\ext\localedata


Re: JSP vs C#/.NET

2003-09-02 Thread Marco Tedone
I would ask: can .NET stay competitive with Java/JSP?

Marco
- Original Message - 
From: Xingqun Jiang [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 01, 2003 10:11 PM
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: http://172.20.15.188(local ip:8080 did work ,but http://localhost:8080/didnot work!!

2003-09-01 Thread Marco Tedone
Well, localhost is bound to 127.0.0.1, while you have got a local IP
address. Can you specify your machine's name instead of the IP address (i.e.
http://mymachine:8080) ? It should work.

I'm running under Windows so I hope this will help (maybe it's only crap).

Marco
- Original Message - 
From:   [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, August 31, 2003 11:12 AM
Subject: http://172.20.15.188(local ip:8080 did work ,but
http://localhost:8080/didnot work!!


 Hi,I have installed rpm version of tomcat 4.1.24 on
 Red hat Advanced Server.When I
 visited:http://172.20.15.188:8080,it did
 work(172.20.15.188 is my real lcoal network ip),but
 when I visited http://localhost:8080/,it didn't work.

 Can you help me out?

 Thankyou.

 _
 Do You Yahoo!?
 []+

 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.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]



Re: Problem switching to Struts 1.1

2003-09-01 Thread Marco Tedone
Thank you for your support. I must say that the privileged attribute for my
application was set to false, but the problem still persists.

Marco
- Original Message - 
From: Remy Maucherat [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 01, 2003 6:37 PM
Subject: Re: Problem switching to Struts 1.1


 Marco Tedone wrote:
  Hi, I posted this issue to the struts-user list 3 times, but noone
replied
  to me and frankly I'm beginning to be a little worried. In few words we
have
  an application which was running fine until struts rc1 but when we
switched
  to Struts 1.1 the following exceptions is thrown:

  !-- ENDOF EXCEPTION --
 
  The problem seems to be the
org.apache.commons.logging.impl.Log4jCategoryLog
  class which is not found in the classpath. Now, I had a look at the
  commons-logging file and actually there is a similar class called
  org.apache.commons.logging.impl.Log4JCategoryLog (please note the
capital
  'J'). What shall I do then?

 Yes, something looks very fishy regarding case sensitivity with the
 log4j support in commons-logging. You might want to file a bug against
 commons-logging and because class naming is inconsistent, and can cause
 user errors (for example, there's a o.a.c.l.impl.Log4jFactory class
 along with a o.a.c.l.impl.Log4JLogger class).

 That being said, I've only seen that error occur if the webapp is
 privileged (ie, there's a Context element with a privileged=true
 attribute). If you don't know what privileged does, and put it there
 because it sounds better, I suggest you remove it (and read the docs) :)

 Remy


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



Problem switching to Struts 1.1

2003-09-01 Thread Marco Tedone
Hi, I posted this issue to the struts-user list 3 times, but noone replied
to me and frankly I'm beginning to be a little worried. In few words we have
an application which was running fine until struts rc1 but when we switched
to Struts 1.1 the following exceptions is thrown:

!-- BEGIN OF EXCEPTION --

javax.servlet.ServletException: Error instantiating servlet class
org.apache.struts.action.ActionServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:91
2)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3421)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
 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.BootstrapService.start(BootstrapService.java:245
)
 at
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
- Root Cause -
java.lang.ExceptionInInitializerError
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
 at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
 at java.lang.Class.newInstance0(Class.java:308)
 at java.lang.Class.newInstance(Class.java:261)
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:90
3)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3421)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3609)
 at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8
21)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
 at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j
ava:307)
 at org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
 at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559
)
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
 at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:166)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at org.apache.catalina.core.StandardService.start(StandardService.java:497)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
 at
org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
 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

Re: mod_jk and Tomcat 3.2.4

2003-08-30 Thread Marco Tedone
I'm using mod_jk2-2.0.43.dll with Tomcat 4.1.27 and everything is working
fine.

Marco
- Original Message - 
From: Bill Barker [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 30, 2003 4:39 AM
Subject: Re: mod_jk and Tomcat 3.2.4


 AFAIK, the latest-and-greatest should still work with 3.2.x.

 Armenio Pinto [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Hi there, can anyone tell me, please, where can I find the most suitable
 version of mod_jk to use with Tomcat 3.2.4? Thanks in advance,

 Arménio Pinto




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