Re: Cannot modify Tomcat Contexts installed at setup

2005-04-04 Thread sven morales
Hi,
   Try clearing the directory tomcat5/work/* and
restart tomcat.  This should clear up caches.

aka_sergio

--- helena rato [EMAIL PROTECTED] wrote:
 I use Tomcat 5.0.27 with apache Apache 2.0.40 and
 JK2.
 
 Just for the purpose of a test, I replace the
 existing
 index.jsp file in $CATALINA_HOME/webapps/ROOT/ with
 another index.jsp file, with following contents:
 
 html
 h1Hello World/h1
 /html
 
 I re-boot the server, and start Tomcat and Apache.
 
 I browse to my URL using www.myurl.com:8080.
 
 I still get the 'old' index.jsp!
 
 The same happens with any of the Contexts installed
 during setup, like 'jsp-examples' context (for
 example, modifying /jsp-examples/num/numguess.jsp
 seems to have no impact at all, even after
 rebooting).
 
 On the other hand, with Tomcat Contexts created by
 me,
 the behavior is normal.
 
 I'm sure I am missing something, and would
 appreciate
 any clue.
 
 Thank-you in advance
 
 Helena
 
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new resources site!
 http://smallbusiness.yahoo.com/resources/ 
 

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: XML validation fails on Tomcat

2005-04-04 Thread sven morales
Hi,
   The server.xml has no DTD so it can not be xml
validated. I dont recall if that attribute is even
valid by setting it to true.

aka_sergio
--- N G [EMAIL PROTECTED] wrote:

 Hi,
 
 I can't understand why Tomcat goes nuts when I
 enable XML validation
 in my server.xml file as follows:
 Host name=localhost appBase=webapps
unpackWARs=true autoDeploy=true
xmlValidation=true
 xmlNamespaceAware=false
 
 When I start Tomcat, it gives me this: (Any ideas?)
 -
 Apr 4, 2005 5:59:25 PM
 org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on http-8080
 Apr 4, 2005 5:59:25 PM
 org.apache.catalina.startup.Catalina load
 INFO: Initialization processed in 766 ms
 Apr 4, 2005 5:59:25 PM
 org.apache.catalina.core.StandardService start
 INFO: Starting service Catalina
 Apr 4, 2005 5:59:25 PM
 org.apache.catalina.core.StandardEngine start
 INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
 Apr 4, 2005 5:59:25 PM
 org.apache.catalina.core.StandardHost start
 INFO: XML validation enabled
 Apr 4, 2005 5:59:26 PM
 org.apache.tomcat.util.digester.Digester error
 SEVERE: Parse Error at line 5 column 19: cvc-elt.1:
 Cannot find the
 declaration of element 'web-app'.
 org.xml.sax.SAXParseException: cvc-elt.1: Cannot
 find the declaration
 of element 'web-app'.
 at

com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:
 236)
 at

com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:172)
 at

com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:382)
 at

com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
 at

com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1944
 )
 at

com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)
 at

com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:798)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentSc
 annerImpl.java:878)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(XMLDocum
 entScannerImpl.java:1157)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XML
 DocumentFragmentScannerImpl.java:1794)
 at

com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScanne
 rImpl.java:368)
 at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
 at

com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
 at

com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
 at

com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
 at

org.apache.tomcat.util.digester.Digester.parse(Digester.java:1561)
 at

org.apache.catalina.startup.ContextConfig.processDefaultWebConfig(ContextConfig.java:621)
 at

org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:573)
 at

org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:958)
 at

org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:249)
 at

org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 at

org.apache.catalina.core.StandardContext.start(StandardContext.java:4020)
 at

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at

org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at

org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at

org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:590)
 at

org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
 at

org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
 at

org.apache.catalina.startup.HostConfig.start(HostConfig.java:1106)
 
 
 
 
 
 Thanks,
 NG
 

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




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



Re: DataSource using Commons libraries 5.5.7

2005-03-14 Thread sven morales
Hi,
   I am not exactly sure what you meant by you don't
have to do that ?  For example, how would a class
differentiate between
org.apache.commons.dbcp.BasicDataSourceFactory and
org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
without doing anything? Off course the import
declarations have to be changed and classes recompiled
for classes using them directly.   My usage of it was
container manage and requires reformatting Resource
therefore I don't have the need for recompilations. 
Perhaps a new DTD will help clarify what should be in
the context.xml file.  
   My comments were more of heads-up to people doing
a conversion to the newer 5.5.7 and newer.

aka_sergio

--- QM [EMAIL PROTECTED] wrote:

 On Sun, Mar 13, 2005 at 11:56:02PM -0800, sven
 morales wrote:
 :   Tomcat 5.5.x and newer have repackaged the
 commons
 : libraries into naming-xxx.jar files and it is
 probably
 : causing lots of headache to people doing a
 conversion
 : from older distro.
 
 I don't see the problem.
 
 Chances are, this was done such that Tomcat could
 use one version of the
 libraries while webapps run within Tomcat can use
 other versions.  In
 other words, package renaming (when done properly)
 is one way to address
 version skew in a shared environment.
 
 Are you renaming your package imports to reflect the
 Tomcat-renamed
 packages?  You shouldn't have to do that.
 
 -QM
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 

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




__ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

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



DataSource using Commons libraries 5.5.7

2005-03-13 Thread sven morales
Hi,
  Tomcat 5.5.x and newer have repackaged the commons
libraries into naming-xxx.jar files and it is probably
causing lots of headache to people doing a conversion
from older distro.   A couple of items I have come
across are, the commons has been package into a path
like so:

org.apache.tomcat.dbcp.dbcp.
org.apache.tomcat.dbcp.collection.
org.apache.tomcat.dbcp.pool.
org.apache.tomcat.dbcp.jocl.

Note: the double dbcp.dbcp for DataSource and commons
name is not on the path.

Also subtle change of Resource elements and
attributes and no more ResourceParams.  I guess
there are no DTD that is used for Context.xml to catch
mal-formations.

aka_sergio




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Configuration

2005-02-28 Thread sven morales
Hi,
  Yeah servlet classes do get put under
yourwebapp/WEB-INF/classes or yourwebapp/WEB-INF/lib
if it has been archived (jar).  If you need to
reference jsp hidden under yourwebapp/WEB-INF/ you
need to make references to its path to get to it,
modify your mapping in struts-config.xml.
  I always use the admin webapp as a reference to see
how things work since it is a struts based
application.

aka_sergio

--- Hernan Pezzano [EMAIL PROTECTED] wrote:

 Hi, 
 I can´t instance a servlet from a jsp. I have the
 servlet under web-inf folder, and de jsp as same as
 web-inf level. I call to servlet with
 ACTION=ServletInfo after I press the SUBMIT button
 inside de jsp. it´s ok isn´t it?
 The result of the browser when I press SUBMIT is
 the page cannot be found
  
 I´m using Tomcat 5.0
  
 Thanks very much
  
 Hernán.
 
   
 -
  250MB gratis, Antivirus y Antispam
  Correo Yahoo!, el mejor correo web del mundo
  Abrí tu cuenta aquí





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



RE: Sniffing loaclhost traffic for HHTP headers

2005-02-21 Thread sven morales
Hi,
  I have been recommending the TCPMON tool from Apache
Axis project, its an applet. This allows you to see
the the request response between client and Tomcat.
  Also with nmap you can make a proxy and capture data
flowing, I just cant find my note that has this tip at
the moment.

aka_sergio

--- James Richardson [EMAIL PROTECTED] wrote:

 Depending on why you want to do this, you might find
 this useful:
 
 Valve

className=org.apache.catalina.valves.RequestDumperValve
 /
 
 Its normally commented out in the server.xml, simply
 uncomment to dump out
 the requests.
 
 Cheers
 
 James
 
 
 
  -Original Message-
  From: Marco Mastrocinque
 [mailto:[EMAIL PROTECTED]
  Sent: 21 February 2005 10:09
  To: tomcat-user@jakarta.apache.org
  Subject: Sniffing loaclhost traffic for HHTP
 headers
  
  Hi All,
 Just a 'silly question,' I downloaded a
 HTTP sniffing program
  because
  I want to get use to reading header information.
 I'm using Apache
 Tomcat,
  on
  a localhost configuration for development
 purposes. The sniffing program
 I
  downloaded from 'EffeTech,' in the FAQ section
 states, 'Due to the
  mechanism
  of Windows operating system, a sniffer can't
 capture local-to-local
  traffic.' Please note I found this out the hard
 way! The question I have
  is
  how do you do it?
  
  Thanks Marco Mastrocinque.
  
  
  
 

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

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Visibility of resources under WEB-INF/classes

2005-02-20 Thread sven morales
Hi,
   I have no problem doing that in linux, having the 
jsp files and  classes in another directory besides
being under $CATALINA_HOME.
  I wonder if you can try using a forward slash in
windows.

aka_sergio
  
--- Rico [EMAIL PROTECTED] wrote:

 --- sven morales [EMAIL PROTECTED] wrote:
  Hi,
  Are you putting your classes at
 tomcat5/webapps/yourwebapp/WEB-INF/classes ?
 
 What I outlined in my email is that when I don't do
 the above
 because I use my own Context docBase=C:\myWebApp
 path=/something
 
 Tomcat cannot find the resources as follows:
 C:\myWebApp\WEB-INF\classes\hibernate.cfg.xml and
 C:\myWebApp\WEB-INF\classes\log4j.properties
 
 Is that supposed to be the case?
 
 And when I install the web application to
 CATALINA_HOME/webapps/app_folder then it can
 find
 

CATALINA_HOME/webapps/app_folder/WEB-INF/classes/hibernate.cfg.xml
 and

CATALINA_HOME/webapps/app_folder/WEB-INF/classes/log4j.properties
 
 which I'm happy about but spent a lot of time to get
 to.
 
 Is there some further attributes for a Context in
 the case where
 docBase isn't CATALINA_HOME/webapps/app_folder ?
 
 Rico.
 
 
 
 
  or the corresponding
  tomcat5/webapps/youwebapp/WEB-INF/lib if it is
  archived?
  
  aka_Sergio
  
  
  --- Rico [EMAIL PROTECTED] wrote:
  
   Hello Everyone.
   I'm using Tomcat 4.1.31, and observed a similar
   problem on 4.1.18.
   
   It is possible to deploy web applications to a
   location of one's
   choice, other than
   CATALINA_HOME/webapps/app_folder, by adding
   a Context to server.xml. 
   With such a setup, I've been stuck with Tomcat
 not
   seeing resources
   that the documentation on their respective
 websites
   claim to be just
   a matter of placing in WEB-INF/classes and
 people
   confirming success at it.
   Examples are log4j.properties,
 hibernate.properties
   and hibernate.cfg.xml.
   
   So, is this the expected behaviour?
   If I install the web application in e.g
 c:\\myWebApp
   I'd consistently have Tomcat complaining as
 follows:
   
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:483)
   - Hibernate 2.1.8
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:512)
   - hibernate.properties not found
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:543)
   - using CGLIB reflection optimizer
   INFO [http-8080-Processor25] cfg.Environment
   (clinit:572)
   - using JDK 1.4 java.sql.Timestamp handling
   INFO [http-8080-Processor25] cfg.Configuration
   (configure:909)
   - configuring from resource:
 /hibernate.cfg.xml
   INFO [http-8080-Processor25] cfg.Configuration
   (getConfigurationInputStream:881)
   - Configuration resource: /hibernate.cfg.xml
   WARN [http-8080-Processor25] cfg.Configuration
   (getConfigurationInputStream:885)
   - /hibernate.cfg.xml not found
   ERROR [http-8080-Processor25]
   persistence.HibernateUtil (clinit:19)
   - Initial SessionFactory creation failed.
   net.sf.hibernate.HibernateException:
   /hibernate.cfg.xml not found
   
   Possible workaround's include initialization
 servlet
   for log4j and
   use of ResourceBundle to pass in an absolute
 path
   for Hibernate.
   But still, the documentation says place the
 config
   files under WEB-INF/classes
   and they'll be found...
   Not so, unless it's
   CATALINA_HOME/webapps/WEB-INF/classes.
   
   Rico.
   
  
 __
   Do You Yahoo!?
   Tired of spam?  Yahoo! Mail has the best spam
   protection around 
   http://mail.yahoo.com 
   
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
   
  
  
  
  
  __ 
  Do you Yahoo!? 
  The all-new My Yahoo! - What will yours do?
  http://my.yahoo.com 
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 
   
 __ 
 Do you Yahoo!? 
 The all-new My Yahoo! - Get yours free! 
 http://my.yahoo.com 
  
 
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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



Re: Visibility of resources under WEB-INF/classes

2005-02-19 Thread sven morales
Hi,
   Are you putting your classes at 
tomcat5/webapps/yourwebapp/WEB-INF/classes ?
or the corresponding
tomcat5/webapps/youwebapp/WEB-INF/lib if it is
archived?

aka_Sergio


--- Rico [EMAIL PROTECTED] wrote:

 Hello Everyone.
 I'm using Tomcat 4.1.31, and observed a similar
 problem on 4.1.18.
 
 It is possible to deploy web applications to a
 location of one's
 choice, other than
 CATALINA_HOME/webapps/app_folder, by adding
 a Context to server.xml. 
 With such a setup, I've been stuck with Tomcat not
 seeing resources
 that the documentation on their respective websites
 claim to be just
 a matter of placing in WEB-INF/classes and people
 confirming success at it.
 Examples are log4j.properties, hibernate.properties
 and hibernate.cfg.xml.
 
 So, is this the expected behaviour?
 If I install the web application in e.g c:\\myWebApp
 I'd consistently have Tomcat complaining as follows:
 
 INFO [http-8080-Processor25] cfg.Environment
 (clinit:483)
 - Hibernate 2.1.8
 INFO [http-8080-Processor25] cfg.Environment
 (clinit:512)
 - hibernate.properties not found
 INFO [http-8080-Processor25] cfg.Environment
 (clinit:543)
 - using CGLIB reflection optimizer
 INFO [http-8080-Processor25] cfg.Environment
 (clinit:572)
 - using JDK 1.4 java.sql.Timestamp handling
 INFO [http-8080-Processor25] cfg.Configuration
 (configure:909)
 - configuring from resource: /hibernate.cfg.xml
 INFO [http-8080-Processor25] cfg.Configuration
 (getConfigurationInputStream:881)
 - Configuration resource: /hibernate.cfg.xml
 WARN [http-8080-Processor25] cfg.Configuration
 (getConfigurationInputStream:885)
 - /hibernate.cfg.xml not found
 ERROR [http-8080-Processor25]
 persistence.HibernateUtil (clinit:19)
 - Initial SessionFactory creation failed.
 net.sf.hibernate.HibernateException:
 /hibernate.cfg.xml not found
 
 Possible workaround's include initialization servlet
 for log4j and
 use of ResourceBundle to pass in an absolute path
 for Hibernate.
 But still, the documentation says place the config
 files under WEB-INF/classes
 and they'll be found...
 Not so, unless it's
 CATALINA_HOME/webapps/WEB-INF/classes.
 
 Rico.
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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



RE: Missing application web.xml, using defaults only

2005-02-18 Thread sven morales
Hi Mr. Calderale,
   Do you mind sharing the tool you used to know how
many times Tomcat uses calls the system call chdir() ?
I would appreciate it if the code is readily for us to
use.  Thank you.

aka_sergio

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [OT] Search in French database in English

2005-02-16 Thread sven morales
Hi,
It compiled okay?  What was the error you got when
running it?  Btw there is a cocoon mailing list too to
get some help, here is the link:

http://marc.theaimsgroup.com/?l=xml-cocoon-usersr=1b=200502w=4

aka_sergio

--- Antony Paul [EMAIL PROTECTED] wrote:

 I checked out CVS head compiled it and run it went
 to sample
 application Internationalization (i18n) 
 Localization (l10n) and it
 is giving error.
 
 rgds
 Antony Paul 
 
 
 On Tue, 15 Feb 2005 22:17:56 -0800 (PST), sven
 morales
 [EMAIL PROTECTED] wrote:
It is in English.  Did you try to visit the link
 I
  provided?
  
  aka_sergio
  --- Antony Paul [EMAIL PROTECTED] wrote:
  
   Is that German application you are talking about
 ?.
   I dont know
   languages other than English.
  
   rgds
   Antony Paul
  
  
   On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven
   morales
   [EMAIL PROTECTED] wrote:
Hi,
   Please look at the very robust Cocoon
 project
   under
apache too.  See http://cocoon.apache.org
   download
the code via cvs, compile it and there is an
Internationalization sample.  Am positive you
 will
like cocoon.  Im not doing it justice with my
 very
very simple explanation.  You have to try it
 and
   see
and it does run on Tomcat or resin, orion,
 oracle,
jboss, etc.. :)
   
aka_sergio
--- Antony Paul [EMAIL PROTECTED]
 wrote:
   
 Hi all,
 Sorry for OT. Many here will have
 experience
   in
 developing
 multilingual sites. I have a doubt regarding
 searching in a database
 which stores information in English, French
 and
 German. The user can
 type the search keyword(usually it is
 customer
   name
 and address) in
 English and it has to match the word in all
   these
 languages. Is it
 possible ?.

 Any thoughts on this are welcome.

 rgds
 Antony Paul


   
  
 

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


   
   
__
Do you Yahoo!?
Yahoo! Mail - Find what you need with new
 enhanced
   search.
http://info.mail.yahoo.com/mail_250
   
  
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
  
  __
  Do you Yahoo!?
  Read only the mail you want - Yahoo! Mail
 SpamGuard.
  http://promotions.yahoo.com/new_mail
 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions

2005-02-15 Thread sven morales
Hi,
   You have not modified the admin webapp at all? 
This is a struts based application.  If you click on
that Service (Catalina) node, the mapping should be
something  like:


admin/treeControlTest.do?tree=Catalina?type:Service,serviceName=Catalina
 

The define tag is defined at struts-bean.tld as
such:
tagclassorg.apache.struts.taglib.bean.DefineTag/tagclass
 So figure out which jsp uses this tag and why it is
null. 


aka_sergio

--- Robert Hunt [EMAIL PROTECTED] wrote:

 !-- Jakarta-Tomcat DEVELOPMENT Server Configuration
 File --
 Server port=21043 shutdown=shutdown debug=3
 
   Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener
 
 debug=0/
   Listener 

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 
 debug=0/
 
   Service name=Catalina
 
 Connector port=20041
maxThreads=50
minSpareThreads=5
maxSpareThreads=20
enableLookups=false
redirectPort=20051
acceptCount=10
debug=9
connectionTimeout=3
disableUploadTimeout=true
/
 
 Engine name=Catalina defaultHost=localhost
 debug=0
 
   Valve

className=org.apache.catalina.valves.RequestDumperValve/
 
   Logger
 className=org.apache.catalina.logger.FileLogger
   verbosity=3
   directory=logs
   prefix=engine.
   suffix=.log
   timestamp=true
   /
 
 
   !-- Default virtual host --
   Host name=localhost
 debug=9
 appBase=\localhost\default
 unpackWARs=false
 autoDeploy=false
 deployOnStartup=false
 workDir=work/localhost
 xmlValidation=false
   xmlNamespaceAware=false
 
 
 Logger
 className=org.apache.catalina.logger.FileLogger
 verbosity=4
 directory=logs/localhost
 prefix=filelog.
 suffix=.log
 timestamp=true/
 
 Valve

className=org.apache.catalina.valves.AccessLogValve
directory=logs/localhost
prefix=accesslog.
suffix=.log
resolveHosts=false
pattern=%t|%a|%S|%s|%B|%r|/
 
 Context path=
  docBase=\localhost\default
  reloadable=true
  debug=true
  swallowOutput=false
  workDir=work/default
  /
 
 Context path=/Admin
 
 docBase=\tomcat\5.0.28\server\webapps\admin
  debug=99
  privileged=true
  
   Realm
 className=...realm.MyDBAuthRealm/
 /Context
 
   /Host!-- localhost --
 /Engine
   /Service
 /Server
 
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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



Re: RE : RE : RE : RE : RE : Tomcat configuration

2005-02-15 Thread sven morales
Hi,
   How are you defining the security-constraint
security-role in your ldsecure/WEB-INF/web.xml ? 
And also how do use this in your servlet or jsp to get
authentication?  Maybe post your web.xml too?

aka_sergio


 --- Curtis Nelson [EMAIL PROTECTED] wrote:

 I know the database connection works, because if I
 include the realm as part of the engine or host,
 then I can login correctly.  As far as reading the
 realm how-to, I've done that several times.  The
 second .xml file I sent you is named ldsecure.xml
 (part of the ldsecure webapp), and I placed it in 

$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.
  I'm not creating a WAR file, just a directory
 structure.
 
 Any additional ideas?
 
 
  [EMAIL PROTECTED] 02/15/05
 10:43AM 
 Check your configuration with

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm
 
 (database configuration, driver, url access, user et
 password access, and
 log files).
 Try to setup Memory realm.
 Try to validate database url connection with simple
 java class.
 
 import java.sql.*; 
 import your driver; 
 
 class JDBCVersion 
 { 
   public static void main (String args []) 
   throws SQLException 
   { 
   // Load the JDBC driver 
   DriverManager.registerDriver(new
 com.microsoft.jdbc.sqlserver.SQLServerDriver()); 
 
 // Something like this (probably)
   Connection conn =

DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
 sename=ldbugtracker, abc,abc); 
   
   // Create Oracle DatabaseMetaData object 
   DatabaseMetaData meta = conn.getMetaData (); 
   
   // get driver info: 
   System.out.println(JDBC driver version is  +
 meta.getDriverVersion()); 
   } 
 }
 
 
 I assume that you have deployed your context
 configuration in :
 - META-INF/context.xml directory of your WAR file
 - $CATALINA_HOME/conf/[enginename]/[hostname]/
 directory
 
 
 -Message d'origine-
 De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
 Envoy�: mardi 15 f�rier 2005 18:14
 �: tomcat-user@jakarta.apache.org 
 Objet : Re: RE : RE : RE : RE : Tomcat configuration
 
 According to the tomcat docs, the preferred method
 of describing a context
 realm is to place it in it's own xml file.
 Here's what I have:
 
 !-- Context
 docBase=${catalina.home}/server/webapps/manager
  privileged=true
 antiResourceLocking=false
 antiJARLocking=false --
 
 Context reloadable=true path=/ldsecure
 docbase=${catalina.home}/server/webapps/ldsecure
   Realm 
 className=org.apache.catalina.realm.JDBCRealm
   

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver
   

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
 acker;selectmethod=cursor
   connectionName=abc connectionPassword=abc
   userTable=LDUsers
 userNameCol=username userCredCol=password
   userRoleTable=LDUserRoles roleNameCol=role
   debug=99/
 /Context
 
 
 If I place this context statement in the
 server.xml file, under the
 described host, I get the same problem.
 
 Curtis
 
 
 
  [EMAIL PROTECTED] 02/15/05
 10:09AM 
 There is no realm describe into it!
 Have you declared your realm in your
 META-INF/context.xml directory of your
 WAR file?
 Could you send us your context.xml file?
 
 -Message d'origine-
 De : Curtis Nelson [mailto:[EMAIL PROTECTED] 
 Envoy�: mardi 15 f�rier 2005 18:03
 �: tomcat-user@jakarta.apache.org 
 Objet : Re: RE : RE : RE : Tomcat configuration
 
 With pleasure.  
 
 Server port=8005 shutdown=SHUTDOWN
   Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener
 /
   Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 /
 
   GlobalNamingResources
 Environment name=simpleValue
 type=java.lang.Integer value=30/
 
 Resource name=UserDatabase auth=Container
  
 type=org.apache.catalina.UserDatabase
description=User database that can be
 updated and saved
   

factory=org.apache.catalina.users.MemoryUserDatabaseFactory
   pathname=conf/tomcat-users.xml /
 
   /GlobalNamingResources
 
 
   Service name=Catalina
 Connector port=8080 maxThreads=150
 minSpareThreads=25
 maxSpareThreads=75
enableLookups=false
 redirectPort=8443 acceptCount=100
connectionTimeout=2
 disableUploadTimeout=true /
 Connector port=8009 enableLookups=false
 redirectPort=8443
 protocol=AJP/1.3 /
  
 !-- Define the top level container in our
 container hierarchy --
 Engine name=Catalina defaultHost=localhost
 
   Host name=localhost appBase=webapps
 unpackWARs=true 
   autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
  /Host
 
 /Engine
 
   /Service
 
 /Server
 
 
 
 Thanks for you help.
 
 
  [EMAIL PROTECTED] 02/15/05
 

Re: RE : RE : RE : RE : RE : Tomcat configuration

2005-02-15 Thread sven morales
Hi,
Does your login.jsp have something similar to
this:

form method=POST action='%=
response.encodeURL(j_security_check) %' 
input type=text  name=j_username  
 input type=password  name=j_password  
/form

It it does, I can't think of where to look for now.

aka_sergio

--- Curtis Nelson [EMAIL PROTECTED] wrote:

 Thanks for replying.
 
 Here's my web.xml file:
 
 ?xml version=1.0 encoding=ISO-8859-1?
 !DOCTYPE web-app  PUBLIC -//Sun Microsystems,
 Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
   welcome-file-list
 welcome-fileindex.jsp/welcome-file
   /welcome-file-list
   security-constraint
 display-nameExample Security
 Constraint/display-name
 web-resource-collection
   web-resource-nameProtected
 Area/web-resource-name
   url-pattern/*/url-pattern
   http-methodGET/http-method
   http-methodPOST/http-method
 /web-resource-collection
 auth-constraint
   role-namelduser/role-name
 /auth-constraint
   /security-constraint
   login-config
 auth-methodFORM/auth-method
 form-login-config
   form-login-page/login.jsp/form-login-page
   form-error-page/error.jsp/form-error-page
 /form-login-config
   /login-config
   security-role
 role-namelduser/role-name
   /security-role
 /web-app
 
  [EMAIL PROTECTED] 02/15/05 11:21AM 
 Hi,
How are you defining the security-constraint
 security-role in your ldsecure/WEB-INF/web.xml ? 
 And also how do use this in your servlet or jsp to
 get
 authentication?  Maybe post your web.xml too?
 
 aka_sergio
 
 
  --- Curtis Nelson [EMAIL PROTECTED] wrote:
 
  I know the database connection works, because if I
  include the realm as part of the engine or host,
  then I can login correctly.  As far as reading the
  realm how-to, I've done that several times.  The
  second .xml file I sent you is named ldsecure.xml
  (part of the ldsecure webapp), and I placed it in 
 

$CATALINA_HOME/conf/[enginename]/[hostname]/ldsecure.xml.
   I'm not creating a WAR file, just a directory
  structure.
  
  Any additional ideas?
  
  
   [EMAIL PROTECTED] 02/15/05
  10:43AM 
  Check your configuration with
 

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html#JDBCRealm
 
  
  (database configuration, driver, url access, user
 et
  password access, and
  log files).
  Try to setup Memory realm.
  Try to validate database url connection with
 simple
  java class.
  
  import java.sql.*; 
  import your driver; 
  
  class JDBCVersion 
  { 
  public static void main (String args []) 
  throws SQLException 
  { 
  // Load the JDBC driver 
  DriverManager.registerDriver(new
  com.microsoft.jdbc.sqlserver.SQLServerDriver()); 
  
  // Something like this (probably)
  Connection conn =
 

DriverManager.getConnection(jdbc:microsoft:sqlserver://LDSERVER:1433;databa
  sename=ldbugtracker, abc,abc); 
  
  // Create Oracle DatabaseMetaData object 
  DatabaseMetaData meta = conn.getMetaData (); 
  
  // get driver info: 
  System.out.println(JDBC driver version is  +
  meta.getDriverVersion()); 
  } 
  }
  
  
  I assume that you have deployed your context
  configuration in :
  - META-INF/context.xml directory of your WAR file
  - $CATALINA_HOME/conf/[enginename]/[hostname]/
  directory
  
  
  -Message d'origine-
  De : Curtis Nelson [mailto:[EMAIL PROTECTED]
 
  Envoy�: mardi 15 f�rier 2005 18:14
  �: tomcat-user@jakarta.apache.org 
  Objet : Re: RE : RE : RE : RE : Tomcat
 configuration
  
  According to the tomcat docs, the preferred method
  of describing a context
  realm is to place it in it's own xml file.
  Here's what I have:
  
  !-- Context
  docBase=${catalina.home}/server/webapps/manager
   privileged=true
  antiResourceLocking=false
  antiJARLocking=false --
  
  Context reloadable=true path=/ldsecure
 
 docbase=${catalina.home}/server/webapps/ldsecure
  Realm 
  className=org.apache.catalina.realm.JDBCRealm
  
 

driverName=com.microsoft.jdbc.sqlserver.SQLServerDriver
  
 

connectionURL=jdbc:microsoft:sqlserver://LDSERVER:1433;databasename=ldbugtr
  acker;selectmethod=cursor
  connectionName=abc connectionPassword=abc
  userTable=LDUsers
  userNameCol=username userCredCol=password
  userRoleTable=LDUserRoles roleNameCol=role
  debug=99/
  /Context
  
  
  If I place this context statement in the
  server.xml file, under the
  described host, I get the same problem.
  
  Curtis
  
  
  
   [EMAIL PROTECTED] 02/15/05
  10:09AM 
  There is no realm describe into it!
  Have you declared your realm in your
  META-INF/context.xml directory of your
  WAR file?
  Could you send us your context.xml file?
  
  -Message d'origine-
  De : Curtis Nelson [mailto:[EMAIL PROTECTED]
 
  Envoy�: mardi 15 f�rier 2005 18:03
  �: 

Re: [TOMCAT 5.5.7][WIN 2K] Help with admin package installation

2005-02-15 Thread sven morales
Hi,
   When you say you admin is not visible, what do you
actually see and if any errors at all?  Check your
admin.xml and post it please.

aka_sergio
--- Paolo Beccari [EMAIL PROTECTED] wrote:

 The admin.xml in
 $TOMCAT_HOME/conf/Catalina/localhost.
 
 The admin webapp under
 $TOMCAT_HOME/server/webapps/admin.
 
 I can see that the Admin application seem to be up
  running from the
 Manager Console, (http://host:8081/manager/html),
 but the admin console is
 still not visible (http://host:8081/admin)
 
 Thank you
 P.
 
 
 - Original Message - 
 From: Omar Adobati [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Tuesday, February 15, 2005 7:03 PM
 Subject: Re: [TOMCAT 5.5.7][WIN 2K] Help with admin
 package installation
 
 
  give more details, where did you copy the files
 yuo say?
 
 
 
  On Tue, 15 Feb 2005 18:12:21 +0100, Paolo Beccari
 [EMAIL PROTECTED]
 wrote:
  
   Hi there,
  
   I just installed Tomcat 5.5.7 and discovered
 that admin package is no
 longer
   installed by default.
   So, I downloaded it and copied the files. But
 when trying to access to
 the
   admin page tomcat is still saying that 
 Tomcat's administration web
   application is no longer installed by default.
 Download and install the
   admin package to use it..
  
   Any ideas?
  
 
  -- 
  Adobati Omar
  [EMAIL PROTECTED]
 
 
 
 
 -- 
 No virus found in this outgoing message.
 Checked by AVG Anti-Virus.
 Version: 7.0.300 / Virus Database: 265.8.8 - Release
 Date: 14/02/2005
 
  
  
  --
  Email.it, the professional e-mail, gratis per te:
 http://www.email.it/f
  
  Sponsor:
  Videogiochi PS2 XBOX GCUBE GBA a prezzi pazzeschi!
 Provare per credere!
 * Risparmia fino a 10 euro su ogni gioco, spedizione
 in 24h a casa tua!
  Clicca qui:

http://adv.email.it/cgi-bin/foclick.cgi?mid=2459d=15-2
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: HTTP Status 503 - Servlet action is currently unavailable

2005-02-15 Thread sven morales
Hi,
   More of curiosity, What do you guys in Cuba uses
Apache/Tomcat for?  Does it promote information access
to all or just a few well to-do people who has access
to phones and computers?  Can you provide the link for
us in the outside see whats over there in Havana ?
  I hope its not illegal, for any americans to visit
your site via the browser off course (he he he), but
certainly its not legal for physical visit.

aka_sergio


--- Yaroslav Alpizar Zhuravliov [EMAIL PROTECTED]
wrote:

 Hi, I'm brand new in Apache-Tomcat configurations.
 Our
 site tow months ago was working ok, but we did some
 new adjustments. In one of them, we used a new
 version
 of Struts, we still have Tomcat 4.1.31, working fine
 with no problems. Now when I try to enter the index
 page I got this error:
 
 HTTP Status 503 - Servlet action is currently
 unavailable
 
 type Status report
 
 message Servlet action is currently unavailable
 
 description The requested service (Servlet action is
 currently unavailable) is not currently available.
 
 Apache Tomcat/4.1.31
 
 Any idea? Should I move to next version of Tomcat? 
 If some doc can help, please send me  the url.
 Thanks
 
 =
 Yaroslav J. Alp�ar Zhuravlev
 Software Engineer  System Analyst
 Havana, Cuba.
 
 ...go out there and see how deep the rabbit hole
 is...
  
 Morpheus
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

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





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



Re: Several configuration issues with Tomcat 5.5.7/Apache2 compiling JSPs

2005-02-15 Thread sven morales
Hi,
   One of the things you have to do is put support
classes for jsp in a package. I dont recall when those
requirements has changed.  

aka_sergio
--- Sam Halicke [EMAIL PROTECTED] wrote:

 Hi all, first time posting to the list.
 
 I'm having several problems migrating JSPs and
 class/jar files to Tomcat
 5.5.7 from Tomcat 3. I understand this is a big
 move, but I'm trying to
 avoid any rewrite of the JSPs themselves.
 Documentation for tomcat 5.5.x is
 rather sparse and terribly cryptic.
 
 Each webapp is using its own local classes (which I
 have copied into the
 local WEB-INF directory in /classes /lib etc.), as
 well as some common
 classes/jars which have been copied into the
 /tomcat/common/ directory tree.
 Should I be using the /tomcat/shared/ tree? This
 does not seem to matter as
 jasper will consistently throw me errors from
 compiling the JSPs.
 
 Here is the root cause of one such error:
 
 HTTP 500 - Internal Server Error
 
 ROOT CAUSE
 java.lang.NullPointerException
 

biz.shipflex.Configuration.getConfiguration(Configuration.java:51)
 

org.apache.jsp.ShipFlex.Website.MainPage_jsp._jspService(org.apache.jsp.Ship
 Flex.Website.MainPage_jsp:52)
 

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
 25)
 

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
 

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 My basic setup is as follows:
 
 Apache 2.x/usr/local/apache
 Tomcat 5.5.7  /usr/local/tomcat
 
 [EMAIL PROTECTED] tomcat]# echo $CLASSPATH

/usr/local/tomcat/webapps/Common/Classes/:/usr/local/tomcat/webapps/Shipping

/Classes/:/usr/local/tomcat/webapps/scripts/Classes/:/usr/java/jdk1.5.0_01/l
 ib/
 
 I have a feeling its something with my CLASSPATH,
 again, this is a touchy
 migration.
 
 I'll gladly copy any portions of web.xml and/or
 server.xml, etc to an
 additional message if needed. Any help or
 suggestions on things/files to
 look at would be most appreciated.
 
 TIA
 
 Sam Halicke
 Systems Administrator
 IMSure Network, Inc.
 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [OT] Search in French database in English

2005-02-15 Thread sven morales
Hi,
   Please look at the very robust Cocoon project under
apache too.  See http://cocoon.apache.org  download
the code via cvs, compile it and there is an
Internationalization sample.  Am positive you will
like cocoon.  Im not doing it justice with my very
very simple explanation.  You have to try it and see
and it does run on Tomcat or resin, orion, oracle,
jboss, etc.. :)

aka_sergio
--- Antony Paul [EMAIL PROTECTED] wrote:

 Hi all,
 Sorry for OT. Many here will have experience in
 developing
 multilingual sites. I have a doubt regarding
 searching in a database
 which stores information in English, French and
 German. The user can
 type the search keyword(usually it is customer name
 and address) in
 English and it has to match the word in all these
 languages. Is it
 possible ?.
 
 Any thoughts on this are welcome.
 
 rgds
 Antony Paul
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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



Re: Tomcat 5.5.7 deployer ExceptionInInitializer error in Struts getMessageResources

2005-02-15 Thread sven morales
Hi,
   What do you mean by Under Windows XP it deploys
fine. ?  I thought your problem is compiling?  This
deployer (manager webapps) compiles okay in XP and not
in SuSE?

aka_sergio

--- Richard Mixon (qwest) [EMAIL PROTECTED] wrote:

 Anybody have any ideas? I have googled this list and
 others and so far
 no clues
 Thank you - Richard
 
 -Original Message-
 From: Richard Mixon (qwest)
 [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, February 15, 2005 1:31 AM
 To: TomcatUsers
 Subject: Tomcat 5.5.7 deployer
 ExceptionInInitializer error
 
 
 When I use the client deployer to compile my web app
 I am getting this
 error under SuSE Linux (SLES9). Under Windows XP it
 deploys fine.
 
 It seems sort of puzzling as to why the deployer is
 running the Struts

org.apache.struts.util.MessageResources.getMessageResources
 during a
 compile.
 
 Here is a the output:
 
 
   [EMAIL PROTECTED]:~/tc55-deployer echo $JAVA_HOME
   /usr/java/jdk1.5.0_01
   [EMAIL PROTECTED]:~/tc55-deployer echo $ANT_HOME
   /opt/apache-ant-1.6.2
   [EMAIL PROTECTED]:~/tc55-deployer $ANT_HOME/bin/ant
 compile
   Buildfile: build.xml
 
   clean:
 
   compile:
[copy] Copying 625 files to
 /home/ltojsw/tc55-deployer/build/webapp/stars
 [jasper2] log4j:WARN No appenders could be found
 for logger
 (org.apache.jasper.compiler.JspRuntimeContext).
 [jasper2] log4j:WARN Please initialize the log4j
 system properly.
 
   BUILD FAILED
   /home/ltojsw/tc55-deployer/build.xml:45:
 java.lang.ExceptionInInitializerError
 
   Total time: 8 seconds
 
 The  stack trace is below (running ant with -verbose
 flag).
 
 Any idea would fix this?
 
 Thank you - Richard
 
   [jasper2] Error in class org.apache.jasper.JspC
 
 BUILD FAILED
 /home/ltojsw/tc55-deployer/build.xml:45:
 java.lang.ExceptionInInitializerError
 at

org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:131)
 at

org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at
 org.apache.tools.ant.Task.perform(Task.java:364)
 at
 org.apache.tools.ant.Target.execute(Target.java:341)
 at

org.apache.tools.ant.Target.performTasks(Target.java:369)
 at

org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 at

org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 at
 org.apache.tools.ant.Main.runBuild(Main.java:673)
 at
 org.apache.tools.ant.Main.startAnt(Main.java:188)
 at

org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 at

org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 Caused by: java.lang.ExceptionInInitializerError
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:164)
 at

org.apache.strutsel.taglib.html.ELFormTagBeanInfo.class$(ELFormTagBeanIn
 fo.java:41)
 at

org.apache.strutsel.taglib.html.ELFormTagBeanInfo.getPropertyDescriptors
 (ELFormTagBeanInfo.java:41)
 at

java.beans.Introspector.getTargetPropertyInfo(Introspector.java:475)
 at

java.beans.Introspector.getBeanInfo(Introspector.java:385)
 at

java.beans.Introspector.getBeanInfo(Introspector.java:155)
 at

org.apache.jasper.compiler.Generator$TagHandlerInfo.init(Generator.jav
 a:3676)
 at

org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(G
 enerator.java:2098)
 at

org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav
 a:1579)
 at

org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
 at

org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at

org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
 at

org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav
 a:1685)
 at

org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
 at

org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at

org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
 at

org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.jav
 a:1685)
 at

org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
 at

org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at

org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
 at

org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
 at

org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
 at

org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at

org.apache.jasper.compiler.Generator.generate(Generator.java:3268)
 at

org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:189)
 at

org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
 at
 org.apache.jasper.JspC.processFile(JspC.java:854)
 at
 org.apache.jasper.JspC.execute(JspC.java:989)
 at
 

Re: JNDI lookup returns NamingException

2005-02-15 Thread sven morales
Hi,
See if having a pair of the sequence of Resource
ResourceParams instead of having Resource, Resource
ResourceParams, ResourceParams.  Also the
ResourceLink seems to be misplaced, not that it will
much difference for your set-up.

aka_sergio
--- Carl [EMAIL PROTECTED] wrote:

 For various reasons, I need to put a Hashtable as a
 resource in the Tomcat
 Context.  I have modified the server.xml as follows
 (note the resource entry
 of DBHashtable):
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener
 debug=0/
 Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
 debug=0/
 
 !-- Global JNDI resources --
 GlobalNamingResources
 
 !-- Test entry for demonstration purposes --
 Environment name=simpleValue
 type=java.lang.Integer value=30/
 
 !-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
 Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and
 saved
 /Resource
 Resource name=DBHashtable auth=Container
 type=java.util.Hashtable/
 ResourceParams name=UserDatabase
 parameter
 namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
 /parameter
 parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
 /parameter
 /ResourceParams
 ResourceParams name=DBHashtable
 parameter
 namefactory/name
 valuecom.tsr.factory.HashtableFactory/value
 /parameter
 /ResourceParams
 
 /GlobalNamingResources
 
 ResourceLink name=linkToGlobal
 global=simpleValue
 type=java.lang.Integer/
 
 !-- Define the Tomcat Stand-Alone Service --
 Service name=Catalina
 
 !-- Define a non-SSL Coyote HTTP/1.1 Connector on
 the port specified
 during installation --
 Connector
 port=8080 maxThreads=150 minSpareThreads=25
 maxSpareThreads=75
 enableLookups=false redirectPort=8443
 acceptCount=100
 debug=0 connectionTimeout=2
 disableUploadTimeout=true /
 Connector port=8009
 enableLookups=false redirectPort=8443 debug=0
 protocol=AJP/1.3 /
 !-- Define the top level container in our container
 hierarchy --
 Engine name=Catalina defaultHost=localhost
 debug=0
 
 !-- Global logger unless overridden at lower levels
 --
 Logger
 className=org.apache.catalina.logger.FileLogger
 prefix=catalina_log. suffix=.txt
 timestamp=true/
 
 Realm

className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/
 
 Host name=localhost debug=0 appBase=webapps
 unpackWARs=true autoDeploy=true
 xmlValidation=false xmlNamespaceAware=false
 
 Logger
 className=org.apache.catalina.logger.FileLogger
 directory=logs prefix=localhost_log.
 suffix=.txt
 timestamp=true/
 
 /Host
 
 /Engine
 
 /Service
 
 /Server
 
 
 My application accesses this resource (well, tries
 to) using the following
 code:
 
 try {
 Context ctx = new InitialContext();
 if(ctx == null ){
 System.out.println(Boom - No Context);
 throw new NamingException(No Context - No DataBase
 Exists);
 }
 
 Context envCtx =
 (Context)ctx.lookup(java:comp/env);
 Object ud = (Object)envCtx.lookup(DBHashtable);
 }catch (NamingException ne){
 ne.printStackTrace();
 // throw new SQLException(Datasource Not Found);
 }
 
 It fails of the line Object ud =
 (Object)envCtx.lookup(DBHashtable);
 with the following error:
 
 javax.naming.NamingException: Cannot create resource
 instance
 at

org.apache.naming.factory.ResourceEnvFactory.getObjectInstance(ResourceEnvFa
 ctory.java:99)
 at

javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:301)
 at

org.apache.naming.NamingContext.lookup(NamingContext.java:791)
 at

org.apache.naming.NamingContext.lookup(NamingContext.java:151)
 at LoginServlet.doPost(LoginServlet.java:37)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at

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

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

com.tsr.filters.RequestFilter.doFilter(RequestFilter.java:78)
 at

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

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

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

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
 t.java:104)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
 Valve.java:198)
 at

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

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
 t.java:104)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 

Re: [OT] Search in French database in English

2005-02-15 Thread sven morales
  It is in English.  Did you try to visit the link I
provided?

aka_sergio
--- Antony Paul [EMAIL PROTECTED] wrote:

 Is that German application you are talking about ?.
 I dont know
 languages other than English.
 
 rgds
 Antony Paul
 
 
 On Tue, 15 Feb 2005 11:51:00 -0800 (PST), sven
 morales
 [EMAIL PROTECTED] wrote:
  Hi,
 Please look at the very robust Cocoon project
 under
  apache too.  See http://cocoon.apache.org 
 download
  the code via cvs, compile it and there is an
  Internationalization sample.  Am positive you will
  like cocoon.  Im not doing it justice with my very
  very simple explanation.  You have to try it and
 see
  and it does run on Tomcat or resin, orion, oracle,
  jboss, etc.. :)
  
  aka_sergio
  --- Antony Paul [EMAIL PROTECTED] wrote:
  
   Hi all,
   Sorry for OT. Many here will have experience
 in
   developing
   multilingual sites. I have a doubt regarding
   searching in a database
   which stores information in English, French and
   German. The user can
   type the search keyword(usually it is customer
 name
   and address) in
   English and it has to match the word in all
 these
   languages. Is it
   possible ?.
  
   Any thoughts on this are welcome.
  
   rgds
   Antony Paul
  
  
 

-
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
  
  
  
  
  __
  Do you Yahoo!?
  Yahoo! Mail - Find what you need with new enhanced
 search.
  http://info.mail.yahoo.com/mail_250
 
 

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




__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



Re: FW: Re: Missing application web.xml Tomcat 5.5.7

2005-02-14 Thread sven morales
Hi,
   Where are you getting this $CatalinaRoot ?  I don't
see this env var set in catalina.sh.  

aka_sergio
--- Joe Reger, Jr. [EMAIL PROTECTED] wrote:

  
 Hi All.
  
 I'm still having trouble with this issue.  I'm not
 able to upload a .WAR
 file through the html web application manager but
 the same war manually
 exploded and placed into the /webapps directory
 works fine.  I've included
 the web.xml to see if anybody can determine why
 Tomcat's rejecting it. I've
 Included the stdout log file.  Some notes from the
 log4j tomcat debug file:
  
 Line 91: Tomcat has found the context.xml and moved
 it to
 $CatalinaRoot$\conf\Catalina\localhost\ROOT.xml
  
 Line 537: org.apache.catalina.core.StandardContext -
 Starting ROOT
  
 Line 7542: org.apache.catalina.startup.ContextConfig
 - Missing application
 web.xml, using defaults only
  
 Line 7744: org.apache.catalina.startup.HostConfig -
 Checking context[]
 redeploy resource C:\SuperFly\Tomcat
 5.5\webapps\ROOT
  
 Line 7746:

ContainerBackgroundProcessor[StandardEngine[Catalina]]
 org.apache.catalina.core.StandardContext - Stopping
  
 Line 7825: Delete C:\SuperFly\Tomcat
 5.5\webapps\ROOT.war
  
 Here's what I see when I deploy:
  
 Click upload.  Tomcat moves ROOT.war into
 $CatalinaRoot$\webapps\.
 Context.xml, from inside the .war file seen in
 $CatalinaRoot$\conf\localhost.  Application appears
 in manager/html.  A few
 seconds later the application dissappears and all
 files are deleted.
  
 The tomcat sample war file appears to be broken  too
 :

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample/
  
 I'm open to suggestions.  More info below.
  
 Thanks,
  
 Joe
 
   _  
 
 From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, February 02, 2005 11:58 AM
 To: 'tomcat-user@jakarta.apache.org'
 Subject: Re: Missing application web.xml
 
 
 Hi!
  
 I'm having problems with the Missing application
 web.xml error on dev
 machines running Windows XP,. Tomcat 5.5.7, Java
 5.0.
  
 It happens when I try to deploy a war file by using
 the Manager app or by
 placing it in the /webapps directory.  Here are some
 of the things I've
 done, each time trying to deploy the resulting WAR
 file with no success and
 the same error:
  
 1) Completely emptied the /webapps directory (per
 Paul's success below). 
 2) Verified existence of web.xml inside WAR file.
 3) Uninstalled ROOT app and verified file removal
 from /webapps directory.
 4) Checked order of elements in web.xml to fit spec.
 5) Validated web.xml in Intellij Idea against
 http://java.sun.com/dtd/web-app_2_3.dtd
 6) Changed web-app tag from the sample web.xml in
 documentation to the one
 used in Manager app from 5.5.7 build:
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;


xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
 7) Removed all comments and spaces from web.xml.
  
 When I unpack the WAR manually and place the
 unpacked files in /webapps the
 application works fine.  Tomcat likes the web.xml,
 but it can't seem to find
 it inside of the WAR file.
  
 Incidentally, when I watch my /webapps directory
 during a Manager deploy,
 the ROOT.war file does appear for a few seconds.  It
 appears that Tomcat is
 trying to find a web.xml inside of it, fails and
 then deletes the file.
  
 I use Ant to build the WAR file:
 jar jarfile=ROOT.war
fileset dir=${files} excludes=**/*.java/
 /jar
  
 Any help appreciated.  Seen this on two development
 XP machines today.
  
 Best,
  
 Joe Reger
  
  
  ---Original

Message
 I just wanted to follow up and get into the record
 what I think is the 
 
 solution to the problem I asked about
 
 on 1/20.  I turns out that the reason I was getting
 Missing 
 
 application web.xml errors in my stdout.log
 
 was because of a problem that arose during the
 undeployment 
 
 precipitated by my deployment of a new
 
 build.  It appears (just based on Tomcat's behavior)
 that when you move 
 
 a WAR file into the webapps directory, the first
 thing Tomcat tries to 
 
 do is delete the old unpacked version.  In my case,
 it failed to do 
 
 that because (as I found) the servlet had open file
 handles to files 
 
 inside the servlet's context directory.  Windows  XP
 doesn't let you 
 
 delete files that it thinks are in use, and I
 suspect that is the 
 
 trouble Tomcat was running into.  Anyway, it deleted
 everything except 
 
 those files, including the web.xml file, which it
 then reported as 
 
 missing.
 
 
 
 When I modified my code to make sure the files were
 closed after being 
 
 read, the problem went away.  Well, I haven't had
 the fix in place long 
 
 enough to be sure it has gone away, but at the very
 least it certainly 
 
 seems to have helped a great deal, so I think the
 problem is solved.
 
 
 
 --Paul Lynch (eph1v3t8 @ mailblocks.com)
  

RE: FW: Re: Missing application web.xml Tomcat 5.5.7

2005-02-14 Thread sven morales
Hi,
   Using $CATALINA_HOME and or $CATALINA_BASE is the
more proper way to describe those directory
references. 
   No I am not having trouble with web.xml file when
deploying a WAR file.   I'm trying to assist you
troubleshoot.
   Are you trying to deploy an additional ROOT.war? 
There is an existing ROOT context that came as stock
installed and this will most likely conflict with the
new one with same name you are trying to deploy.  So
either remove the existing one or rename your ROOT.war
to another name.

aka_sergio





--- Joe Reger, Jr. [EMAIL PROTECTED] wrote:

 Hi,
 I'm just using that to represent the root tomcat
 installation directory.
 For me it's C:\Superfly\Tomcat 5.5\.  For you it may
 be different.
 
 Are you having any trouble with the web.xml file
 when deployinga WAR through
 the manager app?
 Joe   
 
 -Original Message-
 From: sven morales [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 14, 2005 1:12 PM
 To: Tomcat Users List
 Subject: Re: FW: Re: Missing application web.xml
 Tomcat 5.5.7
 
 Hi,
Where are you getting this $CatalinaRoot ?  I
 don't see this env var set
 in catalina.sh.  
 
 aka_sergio
 --- Joe Reger, Jr. [EMAIL PROTECTED] wrote:
 
   
  Hi All.
   
  I'm still having trouble with this issue.  I'm not
 able to upload a 
  .WAR file through the html web application manager
 but the same war 
  manually exploded and placed into the /webapps
 directory works fine.  
  I've included the web.xml to see if anybody can
 determine why Tomcat's 
  rejecting it. I've Included the stdout log file. 
 Some notes from the 
  log4j tomcat debug file:
   
  Line 91: Tomcat has found the context.xml and
 moved it to 
  $CatalinaRoot$\conf\Catalina\localhost\ROOT.xml
   
  Line 537: org.apache.catalina.core.StandardContext
 - Starting ROOT
   
  Line 7542:
 org.apache.catalina.startup.ContextConfig
  - Missing application
  web.xml, using defaults only
   
  Line 7744: org.apache.catalina.startup.HostConfig
 - Checking context[] 
  redeploy resource C:\SuperFly\Tomcat
 5.5\webapps\ROOT
   
  Line 7746:
 

ContainerBackgroundProcessor[StandardEngine[Catalina]]
  org.apache.catalina.core.StandardContext -
 Stopping
   
  Line 7825: Delete C:\SuperFly\Tomcat
  5.5\webapps\ROOT.war
   
  Here's what I see when I deploy:
   
  Click upload.  Tomcat moves ROOT.war into
 $CatalinaRoot$\webapps\.
  Context.xml, from inside the .war file seen in 
  $CatalinaRoot$\conf\localhost.  Application
 appears in manager/html.  
  A few seconds later the application dissappears
 and all files are 
  deleted.
   
  The tomcat sample war file appears to be broken 
 too
  :
 

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/sample/
   
  I'm open to suggestions.  More info below.
   
  Thanks,
   
  Joe
  
_
  
  From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 02, 2005 11:58 AM
  To: 'tomcat-user@jakarta.apache.org'
  Subject: Re: Missing application web.xml
  
  
  Hi!
   
  I'm having problems with the Missing application
 web.xml error on 
  dev machines running Windows XP,. Tomcat 5.5.7,
 Java 5.0.
   
  It happens when I try to deploy a war file by
 using the Manager app or 
  by placing it in the /webapps directory.  Here are
 some of the things 
  I've done, each time trying to deploy the
 resulting WAR file with no 
  success and the same error:
   
  1) Completely emptied the /webapps directory (per
 Paul's success 
  below).
  2) Verified existence of web.xml inside WAR file.
  3) Uninstalled ROOT app and verified file removal
 from /webapps 
  directory.
  4) Checked order of elements in web.xml to fit
 spec.
  5) Validated web.xml in Intellij Idea against 
  http://java.sun.com/dtd/web-app_2_3.dtd
  6) Changed web-app tag from the sample web.xml
 in documentation to 
  the one used in Manager app from 5.5.7 build:
  web-app
 xmlns=http://java.sun.com/xml/ns/j2ee;
 
 

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 
 
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
  version=2.4
  7) Removed all comments and spaces from web.xml.
   
  When I unpack the WAR manually and place the
 unpacked files in 
  /webapps the application works fine.  Tomcat likes
 the web.xml, but it 
  can't seem to find it inside of the WAR file.
   
  Incidentally, when I watch my /webapps directory
 during a Manager 
  deploy, the ROOT.war file does appear for a few
 seconds.  It appears 
  that Tomcat is trying to find a web.xml inside of
 it, fails and then 
  deletes the file.
   
  I use Ant to build the WAR file:
  jar jarfile=ROOT.war
 fileset dir=${files} excludes=**/*.java/
 /jar
   
  Any help appreciated.  Seen this on two
 development XP machines today.
   
  Best,
   
  Joe Reger
   
   
   ---Original
 

Message
  I just wanted to follow up and get into the record
 what I think is the
  
  solution to the problem I asked

Re: TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions

2005-02-14 Thread sven morales
Hi,
   Can you post the pared down server.xml?  The stock
server.xml is mostly comments anyways, so which
elements did you remove to cause these exceptions?

aka_sergio


--- Robert Hunt [EMAIL PROTECTED] wrote:

 TC 5.0.28 running out of the box, the admin tool
 works fine; tree view expands and all nodes are
 accessible.
 
 
 Trying to run the admin tool with my own (pared
 down) server.xml generates the following when
 clicking the Service (Catalina) node:
 javax.servlet.ServletException: Define tag cannot
 set a null value
 

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
 

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
 

admin.service.service_jsp._jspService(service_jsp.java:848)
 

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
 

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
 

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
 

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 

org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 root cause 
 javax.servlet.jsp.JspException: Define tag cannot
 set a null value
 

org.apache.struts.taglib.bean.DefineTag.doEndTag(DefineTag.java:272)
 

admin.service.service_jsp._jspService(service_jsp.java:237)
 

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 ==
 
 I can click the handle and have the tree view expand
 ok, but clicking the node triggers the exception.  
 
 The Logger and Valve nodes work OK.  However, the
 Host (localhost) node and each Context (/xxx)
 node also kick:
 
 Host:
 java.lang.NullPointerException
 

org.apache.struts.taglib.logic.CompareTagBase.condition(CompareTagBase.java:179)
 

org.apache.struts.taglib.logic.NotEqualTag.condition(NotEqualTag.java:90)
 

org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:218)
   admin.host.host_jsp._jspService(host_jsp.java:440)
 

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
 

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
 

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
 

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 

org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
 Context:
  Error retrieving attribute debug 
 
 
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: How to prevent multiple threads per session

2005-02-14 Thread sven morales
Hi,
   Filters.  There was a filter code developed by
Ivelin Ivanov and Kevin Chipalkowsky that maybe be
applicable to your needs.  It is called
RequestControlFilter.  
   If a user makes two request, A and B then A will be
processed first while B waits.  When A finishes, B
will be processed.  If a user makes three or more
requests ( e.g. A, B, and C) then the first will be
processed (A), and then the after it finishes the last
will be processed (C), and any intermediate requests
will be skipped (B).

aka_sergio
--- Guernsey, Byron (GE Consumer  Industrial)
[EMAIL PROTECTED] wrote:

  
 I have a bit of a problem where deep in a servlet
 there is some
 synchronized code that is synchronized on an object
 in session.  On a
 rare occasion, that code runs very slowly when a
 long report is running
 or a database slows.  This causes the users of the
 application to keep
 clicking stop and refresh- thinking their request is
 going to run.
 Recently when the server stopped responding, I did a
 kill -3 and found
 almost all of the threads waiting for that
 synchronzied session object-
 meaning 1 user had managed to consume a large number
 of threads be click
 refresh.
  
 I realize that I could modify the code to fail out
 if it couldn't grab
 the monitor in a set period of time, but I'd prefer
 to cancel the thread
 that has no web browser endpoint associated with it-
 the one that holds
 the monitor and won't release it until its done with
 its query.
 Basically, if someone refreshes, I'd like to abort
 any threads they
 already have running- or simply allow tomcat to
 abort the processing
 when the threads endpoint goes away.
  
 Is there any way I can accomplish this?
  
 I'm using Tomcat 4.1.31 and Mod_jk2 on apache 2.0.52
  
 Thanks,
 Byron
  
  
 ==
 Byron Guernsey
 Senior Software Architect
 GE Consumer  Industrial Systems
 (502) 452 - 5101
  
  
 




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Session lost on netscape, mozilla and firefox, but not IE and Opera

2005-02-13 Thread sven morales
Hi, 
   Another tool is TCPMON tool from Apache Axis
project, its an applet.  This allows you to see the
the request response
between client and Tomcat.

aka_sergio
--- Robert Hunt [EMAIL PROTECTED] wrote:

 If you've got a Valve

className=org.apache.catalina.valves.RequestDumperValve/
 defined for the Engine/ node in server.xml for
 your Tomcat installation, you should be able to see
 cookies being passed in HTTP requests:

==
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 REQUEST URI =/calendar/DownloadEvents
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 authType=null
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 characterEncoding=null
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 cookie=n.gp.8c52f99421cdaa97=20050123
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 cookie=n.gp.01a0d577f34f043b=20050319
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 header=accept=*/*
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 header=accept-language=en-us
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 header=accept-encoding=gzip, deflate
::   
 :
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 requestedSessionId=null
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 scheme=http
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 serverName=sample.com
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 serverPort=80
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 servletPath=/calendar/DownloadEvents
 2005-02-02 10:30:39 RequestDumperValve[engine]:
 isSecure=false

==
 
 The cookies in the above sample are app-specific and
 not Tomcat session cookies, but give the general
 idea.
 
 
 You should also check the security
 settings/preferences of the browsers in question as
 such settings can constrain the browser's use of
cookies.




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Tomcat 5.5.7 webapp not reload after META-INF/context.xml change

2005-02-13 Thread sven morales
Hi,
   Can perhaps the settings of cacheAllowed nullify
the changes you just made?  cacheAllowed - If the
value of this flag is true, the cache for static
resources will be used. If not specified, the default
value of the flag is true.
   

aka_sergio


--- Trevor Baker [EMAIL PROTECTED] wrote:

 Hi,
 
 I have an unpacked ROOT webapp and if I change the
 web.xml for it, the webapp gets reloaded. However if
 I
 change the META-INF/context.xml for it, it doesn't
 get
 reloaded. It's a WatchedResource too like web.xml.
 All
 I'm doing is changing a context-param value in
 context.xml (as a trivial example to explain my
 issue).
 
 When I change context.xml, I get this in the log:
 Feb 13, 2005 6:11:39 PM
 org.apache.catalina.startup.HostConfig
 checkResources
 INFO: Reloading context []
 
 So it looks like it should be reloaded, but it
 doesn't.
 
 In:

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
 
 There is:
 snip
 WatchedResource - The auto deployer will monitor the
 specified static resource of the web application for
 updates, and will reload the web application if is
 is
 updated. The content of this element must be a
 string.
 /snip
 
 So I'm not dreaming.
 
 I've also tried restaring the webapp with the
 manager
 webapp and still no change.
 
 Anyone else have the same issue? Am I doing
 something
 wrong? Otherwise I'm going to enter it as a bug.
 
 thanks,
 Trev
 

__
 
 Post your free ad now! http://personals.yahoo.ca
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: RE : Security Newbie - Need Help

2005-02-12 Thread sven morales
Not to prolong,  I would think if this was the case of
misplaced element, the DTD for the web.xml would make
the Digester throw an exception because it does not
conform.

--- Luke [EMAIL PROTECTED] wrote:

 Hello;
 
 I finally got this. It turned out I had my:
 
 login-config
 auth-methodBASIC/auth-method
 /login-config
 
 Inside my  security-constraint instead of being in
 the web-app.
 
 Once I moved this to the correct place in the
 document. Everything worked
 fine.
 
 Thanks to all that posted advice.
 
 Luke
 
 
 Luke Shannon
 Web Design/Development
 Java Programmer
 http://www.lukeshannon.com
 phone: 416-570-1984
 - Original Message - 
 From: Luke [EMAIL PROTECTED]
 To: Tomcat Users List
 tomcat-user@jakarta.apache.org
 Sent: Friday, February 11, 2005 9:05 PM
 Subject: Re: RE : Security Newbie - Need Help
 
 
  Hi;
 
  I can't get the memory realm to work either. I am
 still getting the error
  below without a login prompt:
 
 
  HTTP Status 403 - Configuration error: Cannot
 perform access control
 without
  an authenticated principal
  type Status report
  message Configuration error: Cannot perform access
 control without an
  authenticated principal
  description Access to the specified resource
 (Configuration error: Cannot
  perform access control without an authenticated
 principal) has been
  forbidden.
  Apache Tomcat/5.0.27
 
  This has to be something with my application,
 WEB-INF, server.xml. How
  should I proceed to trouble shoot?
 
  Thanks,
 
  Luke
 
  - Original Message - 
  From: LERBSCHER Jean-Pierre
 [EMAIL PROTECTED]
  To: 'Tomcat Users List'
 tomcat-user@jakarta.apache.org
  Sent: Friday, February 11, 2005 12:21 AM
  Subject: RE : RE : Security Newbie - Need Help
 
 
   Could you try MemoryRealm to evict filter
 mechanisms (like firewall or
   router configuration) between your tomcat serve
 rand your database ?
  
   As you can see in the servlet specification the
 security-role element
  isn't
   optional.
   !ELEMENT web-app (icon?, display-name?,
 description?,
   distributable?, context-param*, filter*,
 filter-mapping*,
   listener*, servlet*, servlet-mapping*,
 session-config?, mimemapping*,
   welcome-file-list?, error-page*, taglib*,
 resourceenv-
   ref*, resource-ref*, security-constraint*,
 login-config?,
   security-role*, env-entry*, ejb-ref*,
 ejb-local-ref*)
  
   -Message d'origine-
   De : Luke [mailto:[EMAIL PROTECTED]
   Envoy�: vendredi 11 f�rier 2005 08:18
   �: Tomcat Users List
   Objet : Re: RE : Security Newbie - Need Help
  
   Hi Dennis;
  
   Where is IMS defined? Otherwise I have specified
 everything as you
   recommended. Yet I still get this error once I
 hit the page (no login
   prompt):
  
  
   HTTP Status 403 - Configuration error: Cannot
 perform access control
  without
   an authenticated principal
   type Status report
   message Configuration error: Cannot perform
 access control without an
   authenticated principal
   description Access to the specified resource
 (Configuration error:
 Cannot
   perform access control without an authenticated
 principal) has been
   forbidden.
   Apache Tomcat/5.0.28
  
   Thanks,
  
   Luke
  
  
   - Original Message - 
   From: Dennis Payne [EMAIL PROTECTED]
   To: tomcat-user@jakarta.apache.org
   Sent: Thursday, February 10, 2005 11:23 AM
   Subject: Re: RE : Security Newbie - Need Help
  
  
you will not need a roles table for tomcat...
 it is only useful to
 your
   own applications that will edit the data. The
 system only utilizes the
 the
   user-role table and the user-password table (at
 least for basic
   authentication).
   
Each servlet in the system  that is secure is
 setup this way and has
 an
   associated mapping:
   
servlet
servlet-nameEnterAssignment/servlet-name
display-nameEnterAssignment/display-name
descriptionEnter Assignment/description
   

servlet-classcom.mtc.ims.ia.servlet.EnterAssignment/servlet-class
security-role-ref
role-nameIMS/role-name
role-linkIMS/role-link
/security-role-ref
/servlet
 ...
   servlet-mapping
servlet-nameEnterAssignment/servlet-name
   
 url-pattern/servlet/EnterAssignment/url-pattern
/servlet-mapping
   
The server.xml contains a reference to the
 security tables by using
 the
   Realm tag placed as shown (there are other
 ways to do it) and all  db
   driver jars have been place in the classpath:
   
Engine defaultHost=localhost
 name=Catalina
   Host appBase=webapps name=localhost
  Logger
 className=org.apache.catalina.logger.FileLogger
   prefix=localhost_log. suffix=.txt
 timestamp=true /
  Realm
 className=org.apache.catalina.realm.JDBCRealm
   connectionName=username
 connectionPassword=password
  

connectionURL=jdbc:mysql://xxx.xxx.xxx.xxx:3306/dbname
   driverName=com.mysql.jdbc.Driver
 userRoleTable=userrole
   userTable=userpassword roleNameCol=userrole
 userNameCol=userid
   userCredCol=passwordid /

RE: Java.lang.ClassNotFoundException: listeners.ContextListener

2005-02-12 Thread sven morales
Hi,
   You did answer not my question.  Is this problem
specific only to one web application?
From your exception, it points to
listeners.ContextListener  not being found.  Per your
listenerlistener-class tags, you should have this
ContextListener class in a package called listener. 
This class should appear at your
myLogin/WEB-INF/classes/listeners/ or it can be inside
a jar file located at myLogin/WEB-INF/lib/.   You are
getting this error because Tomcat cannot find it in
either of those two locations.If you look at the
servlet-examples or the jsp-examples that came with
tomcat, you should have same directory(package)
structure.
 Best for you to check your myLogin.war file, by
expanding it and locating the subject missing class.

aka_sergio


--- Harry Douglass, Jr. [EMAIL PROTECTED]
wrote:

 Maybe I am still not understanding, but where do I
 place what files?  In all
 my other struts projects, I never had to this
 listeners.ContextListener
 error, but now all the sudden it occurs?!
 
 Is there a jar file I need or should I copy the
 ContextListener.class
 provided in the Tomcat 5 servlet-examples in a
 particular folder of my
 project?
 
 Thanks,
 Struts newbie, 
 Harry
 
 -Original Message-
 From: sven morales [mailto:[EMAIL PROTECTED] 
 Sent: Monday, February 07, 2005 6:16 PM
 To: Tomcat Users List
 Subject: Re: Java.lang.ClassNotFoundException:
 listeners.ContextListener
 
 Hi,
Do you have this class located in your  
 appname/WEB-INF/classes/listeners/  ?  If not, do
 you
 have it located in the appname/WEB-INF/lib/*.jar  ? 
 Basically I think it is looking for your
 listener.ContextListener class.  I would expand your
 war file and search for this class, then make sure
 it
 is put located in the right directory.
This is the only web applications not launching
 right and the rest is working okay? So limit your
 search right around your war file.
 
 aka_sergio
 
 
 --- Harry Douglass, Jr. [EMAIL PROTECTED]
 wrote:
 
  Need some addition help!
  
  Unfortunately, I am still getting this error even
  with adding this tag to my
  web.xml file:
  
  listener
   
 

listener-classlisteners.ContextListener/listener-class
  /listener
  
  I verified that I am using the correct DTD schema:
  !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web
  Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
  
  But, I am still getting this application error
 right
  when it is deploying my
  project on the server container:
  
  INFO: Deploying web application archive
 myLogin.war
  Feb 6, 2005 1:13:17 PM
  org.apache.catalina.core.ApplicationContext log
  SEVERE: Error configuring application listener of
  class
  listeners.ContextListener
  java.lang.ClassNotFoundException:
  listeners.ContextListener
  Feb 6, 2005 1:13:17 PM
  org.apache.catalina.core.StandardContext
  listenerStart
  SEVERE: Skipped installing application listeners
 due
  to previous error(s)
  Feb 6, 2005 1:13:17 PM
  org.apache.catalina.core.StandardContext start
  SEVERE: Error listenerStart
  Feb 6, 2005 1:13:17 PM
  org.apache.catalina.core.StandardContext start
  SEVERE: Context startup failed due to previous
  errors
  Feb 6, 2005 1:13:17 PM
  org.apache.catalina.core.ApplicationContext log
  
  Any more suggestions?
  
  Thanks,
  Harry
  
  Hi There,
  
  The web.xml will have the following xml tag tag
 in
  it
  
  listener
  listener-classclasspath/listener-class
  /listener
  
  It sounds like the class file referenced by this
 tag
  does not exist or that
  the class path is wrong.
  
  Thanks
  
  Pete
  
  -Original Message-
  From: Harry Douglass, Jr.
  [mailto:[EMAIL PROTECTED]
  Sent: 05 February 2005 22:57
  To: tomcat-user@jakarta.apache.org
  Subject: Java.lang.ClassNotFoundException:
  listeners.ContextListener
  
  
  Hello,
  
  
  
  When my Tomcat 5 server is started, it gets a
 SEVERE
  error in the output
  which states:
  
  
  
  SEVERE:  Error configuring application listener of
  class
  listeners.ContextListener
  
  Java.lang.ClassNotFoundException: 
  listeners.ContextListener
  
  
  
  SEVERE: Error configuring application listener of
  class
  listerners.SessionListener
  
   Java.lang.ClassNotFoundException: 
  listeners.SessionListener
  
  
  
  SEVERE: Skipped installing application listeners
 due
  to previous error(s).
  
  
  
  
  
  Can anyone help with why this is occurring
 everytime
  I start the Tomcat 5
  server.
  
  
  
  Thanks in advance,
  
  
  
  Harry
  
  
  
  
  
 

-
  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]
  
  
 
 
 
   
 __ 
 
=== message truncated

Re: Where is jmx.jar

2005-02-07 Thread sven morales
Hi,
   You need to download
jakarta-tomcat-5.5.7.compat.tar.gz if you plan to run
Tomcat 5.5.7 with jdk 1.4.x jre.  Untar it in same
directory as the Tomcat5.5.7 and those jar files
needed will be installed in its normal places.

aka_sergio

--- Phillip Qin [EMAIL PROTECTED] wrote:

 I am trying to build tomcat 5.5 manager app. Where
 can I find jmx.jar? It
 used to be in ${catalina.home}/bin.
 
 
 
 
 Regards,
  
  
 PQ
  
 Going to war for peace is like having sex for
 virginity
 




__ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Java.lang.ClassNotFoundException: listeners.ContextListener

2005-02-07 Thread sven morales
Hi,
   Do you have this class located in your  
appname/WEB-INF/classes/listeners/  ?  If not, do you
have it located in the appname/WEB-INF/lib/*.jar  ? 
Basically I think it is looking for your
listener.ContextListener class.  I would expand your
war file and search for this class, then make sure it
is put located in the right directory.
   This is the only web applications not launching
right and the rest is working okay? So limit your
search right around your war file.

aka_sergio


--- Harry Douglass, Jr. [EMAIL PROTECTED]
wrote:

 Need some addition help!
 
 Unfortunately, I am still getting this error even
 with adding this tag to my
 web.xml file:
 
 listener
  

listener-classlisteners.ContextListener/listener-class
 /listener
 
 I verified that I am using the correct DTD schema:
 !DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;
 
 But, I am still getting this application error right
 when it is deploying my
 project on the server container:
 
 INFO: Deploying web application archive myLogin.war
 Feb 6, 2005 1:13:17 PM
 org.apache.catalina.core.ApplicationContext log
 SEVERE: Error configuring application listener of
 class
 listeners.ContextListener
 java.lang.ClassNotFoundException:
 listeners.ContextListener
 Feb 6, 2005 1:13:17 PM
 org.apache.catalina.core.StandardContext
 listenerStart
 SEVERE: Skipped installing application listeners due
 to previous error(s)
 Feb 6, 2005 1:13:17 PM
 org.apache.catalina.core.StandardContext start
 SEVERE: Error listenerStart
 Feb 6, 2005 1:13:17 PM
 org.apache.catalina.core.StandardContext start
 SEVERE: Context startup failed due to previous
 errors
 Feb 6, 2005 1:13:17 PM
 org.apache.catalina.core.ApplicationContext log
 
 Any more suggestions?
 
 Thanks,
 Harry
 
 Hi There,
 
   The web.xml will have the following xml tag tag in
 it
 
 listener
   listener-classclasspath/listener-class
 /listener
 
 It sounds like the class file referenced by this tag
 does not exist or that
 the class path is wrong.
 
 Thanks
 
 Pete
 
 -Original Message-
 From: Harry Douglass, Jr.
 [mailto:[EMAIL PROTECTED]
 Sent: 05 February 2005 22:57
 To: tomcat-user@jakarta.apache.org
 Subject: Java.lang.ClassNotFoundException:
 listeners.ContextListener
 
 
 Hello,
 
 
 
 When my Tomcat 5 server is started, it gets a SEVERE
 error in the output
 which states:
 
 
 
 SEVERE:  Error configuring application listener of
 class
 listeners.ContextListener
 
 Java.lang.ClassNotFoundException: 
 listeners.ContextListener
 
 
 
 SEVERE: Error configuring application listener of
 class
 listerners.SessionListener
 
  Java.lang.ClassNotFoundException: 
 listeners.SessionListener
 
 
 
 SEVERE: Skipped installing application listeners due
 to previous error(s).
 
 
 
 
 
 Can anyone help with why this is occurring everytime
 I start the Tomcat 5
 server.
 
 
 
 Thanks in advance,
 
 
 
 Harry
 
 
 
 
 

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

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




__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



Re: tutorial for fast settings of Tomcat

2005-02-06 Thread sven morales
Hi,
 Your book should be good as any.  Try the samples
out on your installed Tomcat, ie get your hands dirty,
try little steps.  There are jsp samples that came
with the Tomcat install, try fiddling with those.  Off
course this assumes you have an installed Tomcat.  I
suggest you have one installed if you have not yet. 
Let the fun begin.  

aka_sergio

--- P.M [EMAIL PROTECTED] wrote:

 Hi,
 
 I'm new to tomcat server for JSP and i'm reading for
 now a very huge book for knowing how to configure
 tomcat 5.x to make WEB JSP application works
 correctly.
 I would like to know if someone knows a good
 tutorial
 about tomcat because till now i just read 10 % of
 book
 in 2 days...and i would like to perform a little JSP
 test before 3 weeks (end of reading book)
 
 thx,
 Maileen
 
 
   
 __ 
 Do you Yahoo!? 
 All your favorites on one personal page  Try My
 Yahoo!
 http://my.yahoo.com 
 

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




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Re: Form Auth + xml users database

2005-02-06 Thread sven morales
Hi,
   At first glance your config seems to be okay. 
However, confirm that GlobalResources can be a
sub-element within Context.   I suspect it is not. 
Consult this link:

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

aka_sergio
--- Omar Adobati [EMAIL PROTECTED] wrote:

 Good Morning,
 
   I'm trying to set up an authentication task using
 the form method
 and an xml files to store the users and their roles.
 Now, I've add this to the web.xml file:
 
 ==
 [...]
 resource-env-ref


resource-env-ref-namePhotoUsers/resource-env-ref-name


resource-env-ref-typeorg.apache.catalina.UserDatabase/resource-env-ref-type
   /resource-env-ref
   security-constraint
 display-namePhotoalbum Security
 Constraints/display-name
 web-resource-collection
  
 web-resource-namePhotoalbum/web-resource-name
   url-pattern/controlPanel.jsp/url-pattern
   url-pattern/photoUpload.jsp/url-pattern
   url-pattern/login.jsp/url-pattern  
   http-methodDELETE/http-method
   http-methodGET/http-method
   http-methodPOST/http-method
   http-methodPUT/http-method
 /web-resource-collection
 auth-constraint
   role-namephotoalbum/role-name
   role-nameadmin/role-name
 /auth-constraint
   /security-constraint
   login-config
   auth-methodFORM/auth-method   
   realm-namePhotoUsers/realm-name   
   form-login-config

 form-login-page/login.jsp/form-login-page

 form-error-page/error.jsp/form-error-page   
 
   /form-login-config
 /login-config
   security-role
 role-namephotoalbum/role-name
   /security-role
   security-role
 role-nameadmin/role-name
   /security-role
 [...]
 ==
 
 then I've added the following lines to the between
 the context tag of
 the webapplication:
 
 ==
 ?xml version=1.0 encoding=utf-8?
 Context path= displayName=photoalbum
 docBase=. relodable=true
 privileged=true
   Valve

className=org.apache.catalina.valves.AccessLogValve
 directory=logs/photoalbum/
 fileDateFormat=-MM-dd
 prefix=photoalbum_access_log. suffix=.txt/
   GlobalNamingResources
 Environment value=30 type=java.lang.Integer
 name=simpleValue/
 Resource
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and
 saved
 auth=Container name=PhotoUsers/
 ResourceParams name=PhotoUsers
   parameter
 namefactory/name


valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 value/photoalbum-users.xml/value
   /parameter
 /ResourceParams
   /GlobalNamingResources
   ResourceLink name=users global=PhotoUsers
 type=org.apache.catalina.UserDatabase/
 /Context
 ==
 
 and I have putted the file photoalbum-users.xml in
 the same folder as
 the previous file.
 
 Now, this seems to not work... does' anyone can help
 me?
 
 Omar
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



Re: tutorial for fast settings of Tomcat

2005-02-06 Thread sven morales
Hi,
   There is missing a step on Mario's response.  You
have to add a Context at
$CATALINA_HOME/conf/server.xml or a separate context
file ending in .xml to be located at
$CATALINA_HOME/conf/[enginename]/[hostname]/
directory.  See this link:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

aka_sergio

--- Mario Winterer [EMAIL PROTECTED] wrote:

 Hi!
 
 If you are already familiar with programming JSPs
 and you just want to 
 know what you must do to set up a web-application
 that can handle JSPs - 
 you're glad, because that is almost done.
 Have a look at the tomcat-docu at 
 http://localhost/tomcat-docs/appdev/index.html
 
 In short:
 
 1) create a directory below %TOMCAT_HOME%/webapps
 The directory you've created is the root-directory
 of your 
 web-application's context.
 (For the next steps, I assume the name of the
 directory is test.)
 
 2) create a directory WEB-INF below
 %TOMCAT_HOME%/webapps/test
 This is the directory that contains all the settings
 of your 
 web-application.
 
 That's it! Now you can put your jsp-files inside
 your web-application's 
 context directory (%TOMCAT_HOME%/webapps/test) or
 any subdirectories 
 except WEB-INF. (This is the only directory, that
 is never accessible 
 from outside).
 You do not need to restart Tomcat if auto-deploy is
 enabled (which is 
 the default setting).
 You can access your files using a web browser via
 the url 
 http://host:port/test
 (if you are sitting in front of the computer, tomcat
 is installed on and 
 you use default installation without overriding the
 port: 
 http://localhost:8080/test)
 
 3) [optional] If your JSPs need any classes or
 libraries that are not 
 part of the JDK or Tomcat/commons (e.g. self-written
 classes etc.), do 
 the following:
 + put classes inside WEB-INF/classes/package name
 + put libraries (.jar-files) inside WEB-INF/lib
 The WEB-INF/classes directory and every jar-file
 inside WEB-INF/lib will 
 be in the scope of your web application's
 classloader.
 
 4) [optional] If you want to have more control over
 your 
 web-application, write a deployment descriptor:
 Create a file web.xml in
 %TOMCAT_HOME%/webapps/test/WEB-INF. (your 
 deployment descriptor)
 ?xml version=1.0 encoding=ISO-8859-1?
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;

xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
 
 display-nameTest application/display-name
 descriptionTest application/description
 
 !-- Further settings go here --
 /web-app
 
 Best regards,
 Tex
 
 P.M schrieb:
 
 Hi,
 
 I'm new to tomcat server for JSP and i'm reading
 for
 now a very huge book for knowing how to configure
 tomcat 5.x to make WEB JSP application works
 correctly.
 I would like to know if someone knows a good
 tutorial
 about tomcat because till now i just read 10 % of
 book
 in 2 days...and i would like to perform a little
 JSP
 test before 3 weeks (end of reading book)
 
 thx,
 Maileen
 
 
  
 __ 
 Do you Yahoo!? 
 All your favorites on one personal page  Try My
 Yahoo!
 http://my.yahoo.com 
 

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

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





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



Re: Form Auth + xml users database

2005-02-06 Thread sven morales
Hi,
   It is not wrong to have that resource-env-ref
within his web.xml.  Look at the
manager/WEB_INF/web.xml for a working application
(manager) and you will see exact elements.

aka_sergio

--- Mario Winterer [EMAIL PROTECTED] wrote:

 Hi again!
 
 I've noticed one thing in your configuration - but I
 do not know if this 
 is the reason for your problem:
 Remove the resource-env-ref-xxx entries from
 web.xml. You do not need 
 a JNDI-reference to your user database here! (Apart
 from that this is 
 wrong - it should be a resource-ref-element
 instead.)
 
 Apart from that: You've specified a UserDatabase
 that holds your 
 login-data. You've specified which resources of your
 web-application 
 should be accessible by whom. But did you connect
 the UserDatabase 
 with the web-application by specifying a realm in
 your context? 
 (context.xml or server.xml)
 
 Best regards,
   Tex
 
 Omar Adobati schrieb:
 
 Good Morning,
 
   I'm trying to set up an authentication task using
 the form method
 and an xml files to store the users and their
 roles.
 Now, I've add this to the web.xml file:
 
 ==
 [...]
 resource-env-ref


resource-env-ref-namePhotoUsers/resource-env-ref-name


resource-env-ref-typeorg.apache.catalina.UserDatabase/resource-env-ref-type
   /resource-env-ref
   security-constraint
 display-namePhotoalbum Security
 Constraints/display-name
 web-resource-collection
  
 web-resource-namePhotoalbum/web-resource-name
   url-pattern/controlPanel.jsp/url-pattern
   url-pattern/photoUpload.jsp/url-pattern
   url-pattern/login.jsp/url-pattern  
   http-methodDELETE/http-method
   http-methodGET/http-method
   http-methodPOST/http-method
   http-methodPUT/http-method
 /web-resource-collection
 auth-constraint
   role-namephotoalbum/role-name
   role-nameadmin/role-name
 /auth-constraint
   /security-constraint
   login-config
   auth-methodFORM/auth-method   
   realm-namePhotoUsers/realm-name   
   form-login-config

 form-login-page/login.jsp/form-login-page

 form-error-page/error.jsp/form-error-page   
 
   /form-login-config
 /login-config
   security-role
 role-namephotoalbum/role-name
   /security-role
   security-role
 role-nameadmin/role-name
   /security-role
 [...]
 ==
 
 then I've added the following lines to the between
 the context tag of
 the webapplication:
 
 ==
 ?xml version=1.0 encoding=utf-8?
 Context path= displayName=photoalbum
 docBase=. relodable=true
 privileged=true
   Valve

className=org.apache.catalina.valves.AccessLogValve
 directory=logs/photoalbum/
 fileDateFormat=-MM-dd
 prefix=photoalbum_access_log. suffix=.txt/
   GlobalNamingResources
 Environment value=30
 type=java.lang.Integer name=simpleValue/
 Resource
 type=org.apache.catalina.UserDatabase
 description=User database that can be updated and
 saved
 auth=Container name=PhotoUsers/
 ResourceParams name=PhotoUsers
   parameter
 namefactory/name


valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 value/photoalbum-users.xml/value
   /parameter
 /ResourceParams
   /GlobalNamingResources
   ResourceLink name=users global=PhotoUsers
 type=org.apache.catalina.UserDatabase/
 /Context
 ==
 
 and I have putted the file photoalbum-users.xml in
 the same folder as
 the previous file.
 
 Now, this seems to not work... does' anyone can
 help me?
 
 Omar
 

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

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




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Re: DataSourceRealm says Name jdbc is not bound in this Context

2005-02-06 Thread sven morales
Hi,
This is an excerpt of my code, to get a Context.
Try and see if it works for you.
 
 31   private void initDataSource () {
 32 try {
 33   Context initCtx = new InitialContext();
 34   Context envCtx = (Context)
initCtx.lookup(java:comp/env);
 35   dataSource = (DataSource)
envCtx.lookup(jdbc/Taglib);
 36 }
 37 catch (NamingException e) {
 38   System.out.println(ERR: Unable to
Initialize Data Source ( + e + ));
 39 }
 40   }

Configs of web.xml is similar to yours. However am not
sure if you need an additional parameter to web-app
like so:
 
  8   context-param
  9 param-namedataSource/param-name
 10 param-valuejdbc/Taglib/param-value
 11   /context-param

Check the dtd description at
http://java.sun.com/j2ee/dtds/web-app_2.3.dtd for
further info.

aka_sergio


--- Dan Washusen [EMAIL PROTECTED] wrote:

 Hi All,
 I'm trying to get container managed authentication
 going under Tomcat
 5.5 using the
 org.apache.catalina.realm.DataSourceRealm class. 
 I've
 configured a DataSource using the name jdbc/MindDB
 and I can access
 that from within my app, but when the configured
 DataSourceRealm tries
 to access it I get
 javax.naming.NameNotFoundException: Name jdbc is
 not bound in this Context.
 
 My context.xml looks like this:
 Context path=/mind 

 docBase=D:/Development/Projects/mind/src/webapp 
 debug=5 reloadable=true  
   Resource name=jdbc/MindDB auth=Container
 type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=mind password=
 driverClassName=org.postgresql.Driver
   url=jdbc:postgresql://localhost/mind/
 
   Realm

className=org.apache.catalina.realm.DataSourceRealm
 debug=99
   dataSourceName=jdbc/MindDB
   userTable=mind_user userNameCol=alias
 userCredCol=password
   userRoleTable=mind_user_role
 roleNameCol=name/
 /Context
 
 And the relevant section of my web.xml looks like
 this:
 ...
 resource-ref
 descriptionMind DB
 Connection/description
 res-ref-namejdbc/MindDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 ...
 
 I've also tried using the full name of
 java:/comp/env/jdbc/MindDB
 that works in my code but that just changes my error
 to
 javax.naming.NameNotFoundException: Name java: is
 not bound in this
 Context.
 
 Any help would be greatly appreciated...
 
 Cheers,
 Dan
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: Can't load server.xml message

2005-01-01 Thread sven morales
Hi,
You seem to have added quite a few lines into your
catalina.sh.  The stock script ends at line 287 for
me.  Can you tell us what modifications you have made?
Funny that I can not find how the server.xml is
loaded by the DigesterFactory.java nor by
Bootstrap.java when I browsed their source code.

aka_sergio


--- Sean Schofield [EMAIL PROTECTED] wrote:

 I am an experienced Tomcat user who is all of a
 sudden having trouble
 running Tomcat on my home machine.  I am running
 Tomcat 5.0.28 and I
 get a Null Pointer when trying to start Tomcat.
 
 I have JAVA_HOME and CATALINA_HOME configured.
 
 The very first line in the output says Can't load
 server.xml
 (actually the second line says the same thing as
 well.)  I tried
 chaning to the minimal server.xml as well but no
 luck.
 
 The stack trace seems to indicate a NullPointer
 exception at
 Catalina.await line 619.  I have tried looking this
 up on the mailing
 lists, but incredibly, nobody seems to have
 experienced this problem!
 
 Anyways, any insight that could be provided would be
 greatly
 appreciated.  I've never had this problem before ...
 
 TIA,
 
 sean
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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



Re: Can't load server.xml message

2005-01-01 Thread sven morales
  I looked in the wrong source codes.  I should have
looked at Catalina.java.  Here is the link:

http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/startup/Catalina.java?rev=1.35view=log

Anyhow, the await() call is at line 578 but thats
after the server has started.  It is after these lines
562 long t2 = System.currentTimeMillis();
563 log.info(Server startup in  + (t2 -
t1) +  ms);
  some test if useShutdownHook...
578 if (await) {..
Check your log file if it has made it this far.

aka_sergio

--- sven morales [EMAIL PROTECTED] wrote:

 Hi,
 You seem to have added quite a few lines into
 your
 catalina.sh.  The stock script ends at line 287 for
 me.  Can you tell us what modifications you have
 made?
 Funny that I can not find how the server.xml is
 loaded by the DigesterFactory.java nor by
 Bootstrap.java when I browsed their source code.
 
 aka_sergio
 
 
 --- Sean Schofield [EMAIL PROTECTED] wrote:
 
  I am an experienced Tomcat user who is all of a
  sudden having trouble
  running Tomcat on my home machine.  I am running
  Tomcat 5.0.28 and I
  get a Null Pointer when trying to start Tomcat.
  
  I have JAVA_HOME and CATALINA_HOME configured.
  
  The very first line in the output says Can't load
  server.xml
  (actually the second line says the same thing as
  well.)  I tried
  chaning to the minimal server.xml as well but no
  luck.
  
  The stack trace seems to indicate a NullPointer
  exception at
  Catalina.await line 619.  I have tried looking
 this
  up on the mailing
  lists, but incredibly, nobody seems to have
  experienced this problem!
  
  Anyways, any insight that could be provided would
 be
  greatly
  appreciated.  I've never had this problem before
 ...
  
  TIA,
  
  sean
  
 

-
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 
   
 __ 
 Do you Yahoo!? 
 Yahoo! Mail - Find what you need with new enhanced
 search.
 http://info.mail.yahoo.com/mail_250
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: DELETED /ROOT CONTEXT PLEAS HELP!!!

2004-12-21 Thread sven morales
  Umm I think you are out of luck.  All sources gets
completely  erased when you use undeploy on the
manager webapp.  I have done it several times myself. 
 Maybe there are some portions of it left over in the
work/Catalina/localhost/yourwebapp/.  


--- D'Alessandro, Arthur
Arthur.D'[EMAIL PROTECTED] wrote:

 So you undeployed using the manager app.. You'll
 have to restore the
 ROOT folder from a backup, I'm assuming this is your
 custom root web
 application, and not the default that came with
 tomcat. 
 
 -Original Message-
 From: Dwayne Ghant [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, December 21, 2004 10:09 PM
 To: Tomcat Users List
 Subject: Re: DELETED /ROOT CONTEXT PLEAS HELP!!!
 
 Using the manerger I login and clicked on
 the remove button to delete the /ROOT Context ...
 
 D'Alessandro, Arthur wrote:
 
 Define deleted the /ROOT context...
 
 -Original Message-
 From: Dwayne Ghant [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, December 21, 2004 10:01 PM
 To: Tomcat Users List
 Subject: DELETED /ROOT CONTEXT PLEAS HELP!!!
 
 Like a dummy I made the owfull mistake of deleting
 the /ROOT context I really need to restore it ASAP.
 
 Can someone please help me I have been here for
 three
 ours trying to fix this without reinstalling the
 whole thing.
 
 My config. is
 tomcat5.0.2x/ Apache 2 / mod_jk2
 
 PLEASE HELP.
 
   
 
 
 
 -- 
 
 Dwayne A. Ghant
 Application Developer
 Temple University
 215.204.
 [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]
 
 




__ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

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



Re: Difficulty connecting to DB2 for iSeries from Tomcat 5.0.28

2004-12-20 Thread sven morales
Hi,
   I have not seen a context.xml file with those dual 
ResourceLink   Furthermore, the way you have the
Resource/ResourceParams defined under GlobalResource
seems to be not nested properly.  

aka_sergio

--- David Uctaa [EMAIL PROTECTED] wrote:

 I am running Tomcat 5.0.28 on Win XP SP1.  We have
 DB2 running on 2
 iSeries servers.  When I attempt to look up a
 DataSource from JNDI to
 get a connection from it, the JNDI lookup is
 returning null.
 
 I am using IBM's JTOpen library for the JDBC
 drivers, and I am
 attempting to use Tomcat to manage the connection
 pooling.  I am
 following the instructions I saw listed here: 
 http://www.itjungle.com/fhg/fhg060204-story01.html .
   I am trying the
 first option, using the Commons DBCP connection
 pool.
 
 I have attached copies of my server.xml and the
 context configuration
 file webappname.xml.  The code I am using to access
 the data source is
 pretty generic:
 
 Context initCtx = new InitialContext();
 Context ctx = (Context)
 initCtx.lookup(java:comp/env);
 DataSource ds = (DataSource)
 ctx.lookup(jdbc/myFirstDataSource);
 Connection conn = ds.getConnection();
 
 It turns out the that ctx.lookup call is returning
 null, as if it
 can't find the JNDI resource, and I can't figure out
 what I have
 misconfigured.
 
 Any and all help will be greatly appreciated.
  ?xml version='1.0' encoding='utf-8'?
 Context displayName=WebAppName
 docBase=WebAppName path=/WebAppName
 privileged=true
 workDir=work\Catalina\localhost\webappname
   ResourceLink global=jdbc/myFirstDataSource
 name=jdbc/myFirstDataSource
 type=javax.sql.DataSource/
   ResourceLink global=jdbc/mySecondDataSource
 name=jdbc/mySecondDataSource
 type=javax.sql.DataSource/
 /Context
 
 
  ?xml version='1.0' encoding='utf-8'?
 Server
   Listener

className=org.apache.catalina.mbeans.ServerLifecycleListener/
   Listener

className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener/
   GlobalNamingResources
 Resource

type=com.ibm.as400.access.AS400JDBCConnectionPoolDataSource
 auth=container name=jdbc/myFirstDataSource/
 Resource

type=com.ibm.as400.access.AS400JDBCConnectionPoolDataSource
 auth=container name=jdbc/mySecondDataSource/
 ResourceParams name=UserDatabase
   parameter
 namefactory/name


valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 ResourceParams name=jdbc/myFirstDataSource
   parameter
 namefactory/name


valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namedriverClassName/name

 valuecom.ibm.as400.access.AS400JDBCDriver/value
   /parameter
   parameter
 nameurl/name
 

valuejdbc:as400://as400.oursite.com;prompt=false;naming=sql;trace=false;libraries=*LIBL
 /value
   /parameter
   parameter
 namepassword/name
 valueabcdefg/value
   /parameter
   parameter
 nameusername/name
 value123456/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value4/value
   /parameter
   parameter 
   nameprompt/name
   valuefalse/value
   /parameter
   parameter 
   nametrace/name
   valuefalse/value
   /parameter
   parameter 
   namenaming/name
   valuesystem/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
 /ResourceParams
 ResourceParams name=jdbc/mySecondDataSource
   parameter
 namefactory/name


valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namedriverClassName/name

 valuecom.ibm.as400.access.AS400JDBCDriver/value
   /parameter
   parameter
 nameurl/name
 

valuejdbc:as400://abcde.oursite.com;prompt=false;naming=sql;trace=false;libraries=*LIBL
 /value
   /parameter
   parameter
 namepassword/name
 valuexyz/value
   /parameter
   parameter
 nameusername/name
 value98765/value
   /parameter
   parameter
 namemaxWait/name
 value5000/value
   /parameter
   parameter
 namemaxActive/name
 value4/value
   /parameter
   parameter 
   nameprompt/name
   valuefalse/value
   /parameter
   parameter 
   nametrace/name
   valuefalse/value
   /parameter
   parameter 
   namenaming/name
   valuesystem/value
   /parameter
   parameter
 namemaxIdle/name
 value2/value
   /parameter
 /ResourceParams
   /GlobalNamingResources
   Service name=Catalina
 

Re: security-constraint to limit jsp access

2004-12-19 Thread sven morales
   I am not sure if its already mentioned.  JSP
files stashed under WEB-INF/  are not accessable
directly.

--- Parsons Technical Services
[EMAIL PROTECTED] wrote:

 Jay,
 
 I think you need the auth-constraint tags.
 
 !--Starts the section. Located after jsp-config
 near end of file--
 security-constraint
  !--A description for identification by you. In
 real world might be
 Salesmen Area. Or Admin Only--
  display-nameExample Security
 Constraint/display-name
  web-resource-collection
  web-resource-nameProtected
 Area/web-resource-name
  !-- Define the context-relative URL(s) to
 be protected  (* may
 only be used at end of string)--
  !--Follows file structure in the app. If
 you need different areas
 for different people, place in peer folders.--
 
 url-pattern/security/protected/*/url-pattern
  !-- If you list http methods, only those
 methods are protected --
  http-methodDELETE/http-method
  http-methodGET/http-method
  http-methodPOST/http-method
  http-methodPUT/http-method
   /web-resource-collection
   auth-constraint
  !-- Anyone with one of the listed roles
 may access this area --
  role-namerole1/role-name
   /auth-constraint
 /security-constraint
 
 Then don't give anyone that role.
 
 
 Doug
 
 - Original Message - 
 From: Jay Wright [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, December 18, 2004 7:55 PM
 Subject: security-constraint to limit jsp access
 
 
 
  I have a struts 1.2.4 webapp in which I'm trying
 to hide my jsp's from 
  being
  accessed directly.  Instead of throwing them in
 the WEB-INF folder, I'd
  rather just restrict access to them through the
 security-constraint in the
  web.xml.
 
  I recently read that adding:
 
security-constraint
 web-resource-collection

 web-resource-nameJSPs/web-resource-name
 url-pattern/struts/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 /web-resource-collection
 /security-constraint
 
  to the web.xml file will restrict access to files
 in the directory from
  direct URL access, but not from redirection or jsp
 forwarding, so they can
  still be accessed through struts action mappings.
 
  But this doesn't work.  It seems to be ignorning
 the constraint 
  altogether,
  as if I am missing an additional configuration. 
 Is there something I need
  to add?
 
  I know my mapping is correct because if I throw:
 
 user-data-constraint


transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 
  into the constraint, it does try to connect to the
 pages through a secure
  channel.
 
  I've scanned the web, now I'm on the mailing list:
 will this work and/or
  what is the best way to prevent direct access to
 the JSPs?
 
  Thanks,
  Jay
 
 
 
 

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

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




__ 
Do you Yahoo!? 
Dress up your holiday email, Hollywood style. Learn more. 
http://celebrity.mail.yahoo.com

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



Re: security-constraint to limit jsp access

2004-12-19 Thread sven morales
   I am not sure if its already mentioned.  JSP
files stashed under WEB-INF/  are not accessable
directly.

--- Parsons Technical Services
[EMAIL PROTECTED] wrote:

 Jay,
 
 I think you need the auth-constraint tags.
 
 !--Starts the section. Located after jsp-config
 near end of file--
 security-constraint
  !--A description for identification by you. In
 real world might be
 Salesmen Area. Or Admin Only--
  display-nameExample Security
 Constraint/display-name
  web-resource-collection
  web-resource-nameProtected
 Area/web-resource-name
  !-- Define the context-relative URL(s) to
 be protected  (* may
 only be used at end of string)--
  !--Follows file structure in the app. If
 you need different areas
 for different people, place in peer folders.--
 
 url-pattern/security/protected/*/url-pattern
  !-- If you list http methods, only those
 methods are protected --
  http-methodDELETE/http-method
  http-methodGET/http-method
  http-methodPOST/http-method
  http-methodPUT/http-method
   /web-resource-collection
   auth-constraint
  !-- Anyone with one of the listed roles
 may access this area --
  role-namerole1/role-name
   /auth-constraint
 /security-constraint
 
 Then don't give anyone that role.
 
 
 Doug
 
 - Original Message - 
 From: Jay Wright [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, December 18, 2004 7:55 PM
 Subject: security-constraint to limit jsp access
 
 
 
  I have a struts 1.2.4 webapp in which I'm trying
 to hide my jsp's from 
  being
  accessed directly.  Instead of throwing them in
 the WEB-INF folder, I'd
  rather just restrict access to them through the
 security-constraint in the
  web.xml.
 
  I recently read that adding:
 
security-constraint
 web-resource-collection

 web-resource-nameJSPs/web-resource-name
 url-pattern/struts/*/url-pattern
 http-methodGET/http-method
 http-methodPOST/http-method
 /web-resource-collection
 /security-constraint
 
  to the web.xml file will restrict access to files
 in the directory from
  direct URL access, but not from redirection or jsp
 forwarding, so they can
  still be accessed through struts action mappings.
 
  But this doesn't work.  It seems to be ignorning
 the constraint 
  altogether,
  as if I am missing an additional configuration. 
 Is there something I need
  to add?
 
  I know my mapping is correct because if I throw:
 
 user-data-constraint


transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 
  into the constraint, it does try to connect to the
 pages through a secure
  channel.
 
  I've scanned the web, now I'm on the mailing list:
 will this work and/or
  what is the best way to prevent direct access to
 the JSPs?
 
  Thanks,
  Jay
 
 
 
 

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

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250

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



Re: WAR files and Eclipse

2004-12-16 Thread sven morales
  Wait a minute, you didnt say you were using Apache
to front the Tomcat did you?  At least thats the
impression I gathered since you were hitting it as
http://localhost/~userjoe/index.jsp.   I am not overly
familiar with having Apache fronting Tomcat.   With
that kind of URI, I think its going to the apache side
and not to Tomcat.  You must set your mapping in
http.conf or worker.properties(?) to make this work.
Or your set-up has Tomcat serving off port 80 and
you are running this as root right?

--- Dwayne Ghant [EMAIL PROTECTED] wrote:

 I did as suggested but it didn't work . The ironic
 thing now is that scence
 I tried that the user accounts
 /home/username/public_html no longer 
 works to
 compile jsp pages. I figure this is weird becasue I
 see the compilation 
 .class files in
 the

$CATALINAHOME/work/Catalina/localhost/~username/classname.class,
 
 but
 when I try to go to
 http://localhost/~username/index.jsp I just see a 
 pure white page. No
 matter how many time I reboot the server I get the
 same result
 
 
 Does anyone else want to take a shoot at this or am
 I to give up.
 
 
 sven morales wrote:
 
   I think there is another attribute to Listener
 which is home.Base.  Set this where you normally
 put
 user/public_html directory.  For example on mine,
 its
 set as  homeBase=/home  and user home is 
 /home/sergio.   Once this is working, any war files
 on
 your /home/user/public_html should get expanded. 
 
 
 --- Dwayne Ghant [EMAIL PROTECTED] wrote:
 
   
 
 Anybody won't to take a shoot at this?
 Dwayne Ghant wrote:
 
 
 
 Intresting question associated with this subject.
 If I have public_html  enabled for developers
 on
 local machine ex:
Listener
   
 
 className=org.apache.catalina.startup.UserConfig
 
 
directoryName=public_html
   
   
 

userClass=org.apache.catalina.startup.PasswdUserDatabase/
   
 
 Can I have  a setting for tomcat to unwar there
   
 
 personal test 
 
 
 applications in
 there public_html directories
 
 I'm assuming it would look something like this
   
 
 (listed below):
 
 
  Host name=localhost debug=0
   
 
 appBase=/home/*/public_html
 
 
   unpackWARs=true autoDeploy=true
   xmlValidation=false
   
 
 xmlNamespaceAware=false
 
 
/Host
 
 I'm probably incorrect, but I do need to know, to
   
 
 finish setting up 
 
 
 JSP enviornment for
 java developers like myself.
 .
 Rhino wrote:
 
   
 
 It's actually very easy to do what you want to
 
 
 do.
 
 
 Assuming you have correctly installed and
 
 
 configured Sysdeo, you will 
 
 
 need
 to tell Eclipse where the War file for your
 
 
 Tomcat project should be
 
 
 generated. This is done on a *project* basis,
 
 
 i.e. you have to repeat 
 
 
 this
 step once for each Tomcat project you create but
 
 
 you will never have 
 
 
 to do
 this again for a given project unless you change
 
 
 the location where 
 
 
 you want
 the War file.
 
 1. Select the Tomcat project in the Package
 
 
 Explorer perspective.
 
 
 2. Right click for a context menu. Choose
 
 
 'Properties'.
 
 
 3. Within Properties, choose 'Tomcat' from the
 
 
 tree on the left.
 
 
 4. Click on the 'Export to WAR settings' tab
 
 
 within the Tomcat 
 
 
 properties.
 5. Enter the path that tells Tomcat where to
 
 
 generate your War file. The
 
 
 path name should include the file name of the
 War
 
 
 file. I normally 
 
 
 put my
 War files in a folder called 'war' directly
 
 
 beneath the project so my 
 
 
 WAR
 file for export looks like this:

D:\eclipse\workspace\MyProject\war\MyProject.war.
 
 
 Naturally, you are 
 
 
 free to
 
=== message truncated ===


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Re: standard.jar broke in Tomcat?

2004-12-15 Thread sven morales
Thats now how its defined on mine. The
taglib-location on mine points to a tld file and not
the standard.jar.  The TLD files should be like
definition and attributes of those tags, unless your
standard.jar includes them already.  My standard.jar
are basically the package of classes.  An excerpt of
the out tag from the c.tld:

82   tag
 83 nameout/name
 84
tag-classorg.apache.taglibs.standard.tag.el.core.OutTag/tag-class
 85 body-contentJSP/body-content
 86 description
 87 Like lt;%= ... gt;, but for expressions.
 88 /description
 89 attribute
 90 namevalue/name
 91 requiredtrue/required
 92 rtexprvaluefalse/rtexprvalue
 93 /attribute
 94 attribute
 95 namedefault/name
 96 requiredfalse/required
 97 rtexprvaluefalse/rtexprvalue
 98 /attribute
 99 attribute
100 nameescapeXml/name
101 requiredfalse/required
102 rtexprvaluefalse/rtexprvalue
103 /attribute
104   /tag




--- Tim Watts [EMAIL PROTECTED] wrote:

 Here you go:
 
 taglib
 

taglib-urihttp://java.sun.com/jstl/core/taglib-uri
 

taglib-location/WEB-INF/lib/standard.jar/taglib-location
 /taglib
 
 The jar is in that location. And your assumption is
 correct. I'm using 
 v1.0 of the JSTL downloaded from Apache.
 
 sven morales wrote:
 
  Hi,
 Can you paste the relevant section of your
  deployment descriptor web.xml for your demo
 webapp?
  Specifically, the 
  taglib

 

taglib-urihttp://java.sun.com/jstl/core/taglib-uri
 taglib-location
   
  Am assuming this is JSP 1.2?
  
  aka_sergio
 
  
  --- Tim Watts [EMAIL PROTECTED] wrote
  
 Hi,
 
 I'm having problems using standard.jar. For a
 simple
 page such as this:
 
 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN 
 http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 %@ taglib uri=http://java.sun.com/jstl/core;
 prefix=c %
 /head
 body
 pRemote user: c:out
 value=${request.remoteUser}//p
 /body
 /html
 
 Tomcat 4.1.31 complains that it doesn't know what
 c:out is with this 
 exception:
 
 org.apache.jasper.JasperException:
 /demo/userinfo-tc.jsp(7,16) No such 
 tag out in the tag library imported with prefix c
 
 Tomcat 5.0.28 under JBoss 3.2.6 gives a little
 clearer explanation:
 
 org.apache.jasper.JasperException: Unable to read
 TLD 
 META-INF/taglib.tld from JAR file 
 
  
 

file:/C:/jboss-3.2.6/server/default/tmp/deploy/tmp12024SpeEA.ear-contents/spe.war/WEB-INF/lib/standard.jar:
  
 java.lang.NullPointerException
 
 It appears to be looking for taglib.tld for some
 reason. It, in fact, 
 does not exist in the jar. But why is it looking
 for
 this?
 
 The page works fine in WebSphere Studio 5.1.
 
 Has anyone else encountered this? How did you work
 around it? Am I doing 
 something wrong? Any insight/experience will be
 greatly appreciated.
 
 Thanks.
 
 
 
  
 

-
  
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
  
  
  
  
  
  __ 
  Do you Yahoo!? 
  Jazz up your holiday email with celebrity designs.
 Learn more. 
  http://celebrity.mail.yahoo.com
  
 

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

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




__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



Re: changing the location of catalina.out

2004-12-15 Thread sven morales
 Hi,
   Please check the contents of catalina.sh.  It is
more like hard coded there as oppose to a parameter
that can be changed. 
People should start looking inside these
tomcatXX/bin/*.sh or *.bat scripts to see what
Environment variable gets set or not set.

aka_sergio
--- Eno Thereska [EMAIL PROTECTED] wrote:

 Hi,
 
 I couldn't find any thread that specified how to
 change the location
 of catalina.out from the default location
 $CATALINA_HOME/logs/catalina.out to, say,
 /tmp/catalina.out.
 
 Could someone please give me some hints on how to do
 this?
 
 Thanks
 Eno
 
 
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250

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



Re: standard.jar broke in Tomcat?

2004-12-15 Thread sven morales
  Why it could not find it?  Where is it in your
standard.jar?  I do not believe the Digester looks at 
META-INF/  and checked for contents like these c.tld
in that directory.  Off hand I do not remember what
functionality META-INF/ is for other than this is
where you have a MANIFEST.MF file, the index file for
the jars your webapp uses, and  stash your context.xml
file.
Maybe listing it in MANIFEST.MF makes it available ?


--- Tim Watts [EMAIL PROTECTED] wrote:

 I pulled c.tld from the jar, put it in WEB-INF and
 pointed 
 taglib-location there. That fixed it. Thank you
 very much.
 
 But what still puzzles me is why TomCat couldn't
 find it in the jar? Is 
 there a special syntax for referencing .tlds in a
 jar? Anyway, thanks 
 again for your help.
 
 sven morales wrote:
 
  Thats now how its defined on mine. The
  taglib-location on mine points to a tld file and
 not
  the standard.jar.  The TLD files should be like
  definition and attributes of those tags, unless
 your
  standard.jar includes them already.  My
 standard.jar
  are basically the package of classes.  An excerpt
 of
  the out tag from the c.tld:
  
  82   tag
   83 nameout/name
   84
 

tag-classorg.apache.taglibs.standard.tag.el.core.OutTag/tag-class
   85 body-contentJSP/body-content
   86 description
   87 Like lt;%= ... gt;, but for
 expressions.
   88 /description
   89 attribute
   90 namevalue/name
   91 requiredtrue/required
   92 rtexprvaluefalse/rtexprvalue
   93 /attribute
   94 attribute
   95 namedefault/name
   96 requiredfalse/required
   97 rtexprvaluefalse/rtexprvalue
   98 /attribute
   99 attribute
  100 nameescapeXml/name
  101 requiredfalse/required
  102 rtexprvaluefalse/rtexprvalue
  103 /attribute
  104   /tag
  
  
  
  
  --- Tim Watts [EMAIL PROTECTED] wrote:
  
  
 Here you go:
 
 taglib
 
 
 

taglib-urihttp://java.sun.com/jstl/core/taglib-uri
  
 
 

taglib-location/WEB-INF/lib/standard.jar/taglib-location
  
 /taglib
 
 The jar is in that location. And your assumption
 is
 correct. I'm using 
 v1.0 of the JSTL downloaded from Apache.
 
 sven morales wrote:
 
 
 Hi,
Can you paste the relevant section of your
 deployment descriptor web.xml for your demo
 
 webapp?
 
 Specifically, the 
 taglib
   
 
 
 

taglib-urihttp://java.sun.com/jstl/core/taglib-uri
  
taglib-location
  
 Am assuming this is JSP 1.2?
 
 aka_sergio

 
 --- Tim Watts [EMAIL PROTECTED] wrote
 
 
 Hi,
 
 I'm having problems using standard.jar. For a
 
 simple
 
 page such as this:
 
 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML
 1.1//EN 
 http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 %@ taglib uri=http://java.sun.com/jstl/core;
 prefix=c %
 /head
 body
 pRemote user: c:out
 value=${request.remoteUser}//p
 /body
 /html
 
 Tomcat 4.1.31 complains that it doesn't know
 what
 c:out is with this 
 exception:
 
 org.apache.jasper.JasperException:
 /demo/userinfo-tc.jsp(7,16) No such 
 tag out in the tag library imported with prefix
 c
 
 Tomcat 5.0.28 under JBoss 3.2.6 gives a little
 clearer explanation:
 
 org.apache.jasper.JasperException: Unable to
 read
 TLD 
 META-INF/taglib.tld from JAR file 
 
 
 
 

file:/C:/jboss-3.2.6/server/default/tmp/deploy/tmp12024SpeEA.ear-contents/spe.war/WEB-INF/lib/standard.jar:
  
 java.lang.NullPointerException
 
 It appears to be looking for taglib.tld for some
 reason. It, in fact, 
 does not exist in the jar. But why is it looking
 
 for
 
 this?
 
 The page works fine in WebSphere Studio 5.1.
 
 Has anyone else encountered this? How did you
 work
 around it? Am I doing 
 something wrong? Any insight/experience will be
 greatly appreciated.
 
 Thanks.
 
 
 
 
 
 

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

 __ 
 Do you Yahoo!? 
 Jazz up your holiday email with celebrity
 designs.
 
 Learn more. 
 
 http://celebrity.mail.yahoo.com
 
 
 
 

-
 
=== message truncated ===


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Debugging missing web.xml on V5.5.4 -- Works for me

2004-12-15 Thread sven morales
Hi,
  I just downloaded Tomcat 5.5.4. binary and the
compat file. I then deployed the
tiles-documentation.war file by copying it over to
jakarta-tomcat-5.5.4/webapps/  and set $CATALINA_HOME
to /u02/tomcat5/jakarta-tomcat-5.5.4  where I have
un-tar the tomcat 5.5.4 binary and compat.  Then I
opened the browser and point to
http://localhost:8080/tiles-documentation/   and it
works.  No mods to server.xml, web.xml nor created any
context.xml files.  FYI, I already have $JAVA_HOME
point to jdk1.4.2 prior to this.

I then shutdown tomcat, added role=manager and
user=locuser password=xxx with above role on the
tomcat-users.xml file. Restarted Tomcat, point to
manager webapp, got prompted for login and password,
inputted per the above parameters, it works. Clicked
on the listing of webapps and it listed all of them.
Clicking on tiles-documentation from the list, it also
works.

I then proceed to have manager list all the webapps
again, click on the undeploy link for
tiles-documentation, it executed, and I verified by
checking the  jakarta-tomcat-5.5.4/webapps/  and sure
enuff the tiles-documentation.war and the expanded
directory is now deleted.  

I then attempted to re-deploy same
tiles-documentation.war via the manager webapp,
filling in the box Select WAR file to upload
pointing to where tiles-documentation.war is, clicked
deploy, saw it deployed as it is listed amongst the
webapps, and click on tiles-documentation and it works
again.

In summary, so far Tomcat 5.5.4 install and deploying
a war file seems smooth.  I then proceeded to deploy
Cocoon2.2.0 war file which is very XML intensive, via
same manager and it was a success. These war files I
deployed does not have its own context.xml file, so it
uses a default. 

sergio



__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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


Re: WAR files and Eclipse

2004-12-15 Thread sven morales
  I think there is another attribute to Listener
which is home.Base.  Set this where you normally put
user/public_html directory.  For example on mine, its
set as  homeBase=/home  and user home is 
/home/sergio.   Once this is working, any war files on
your /home/user/public_html should get expanded. 


--- Dwayne Ghant [EMAIL PROTECTED] wrote:

 Anybody won't to take a shoot at this?
 Dwayne Ghant wrote:
 
  Intresting question associated with this subject.
  If I have public_html  enabled for developers on
  local machine ex:
 Listener
 className=org.apache.catalina.startup.UserConfig
 directoryName=public_html


userClass=org.apache.catalina.startup.PasswdUserDatabase/
 
  Can I have  a setting for tomcat to unwar there
 personal test 
  applications in
  there public_html directories
 
  I'm assuming it would look something like this
 (listed below):
 
   Host name=localhost debug=0
 appBase=/home/*/public_html
unpackWARs=true autoDeploy=true
xmlValidation=false
 xmlNamespaceAware=false
 /Host
 
  I'm probably incorrect, but I do need to know, to
 finish setting up 
  JSP enviornment for
  java developers like myself.
  .
  Rhino wrote:
 
  It's actually very easy to do what you want to
 do.
 
  Assuming you have correctly installed and
 configured Sysdeo, you will 
  need
  to tell Eclipse where the War file for your
 Tomcat project should be
  generated. This is done on a *project* basis,
 i.e. you have to repeat 
  this
  step once for each Tomcat project you create but
 you will never have 
  to do
  this again for a given project unless you change
 the location where 
  you want
  the War file.
 
  1. Select the Tomcat project in the Package
 Explorer perspective.
  2. Right click for a context menu. Choose
 'Properties'.
  3. Within Properties, choose 'Tomcat' from the
 tree on the left.
  4. Click on the 'Export to WAR settings' tab
 within the Tomcat 
  properties.
  5. Enter the path that tells Tomcat where to
 generate your War file. The
  path name should include the file name of the War
 file. I normally 
  put my
  War files in a folder called 'war' directly
 beneath the project so my 
  WAR
  file for export looks like this:
  D:\eclipse\workspace\MyProject\war\MyProject.war.
 Naturally, you are 
  free to
  organize your files differently.
  6. Click on OK to close the Properties dialog.
 
  Then, every time you want to regenerate your War
 file, all you need 
  to do is
  this:
  1. Select the Tomcat project in the Package
 Explorer perspective.
  2. Right-click for a context menu. Choose 'Tomcat
 project'.
  3. Choose 'Export to the war file sets in project
 properties'.
  4. You should get a brief message that tells you
 the operation worked.
 
  Now, if you don't find Tomcat in the Properties
 tree or if you don't 
  see the
  'Tomcat project' option in the context menu, it
 means you probably 
  didn't
  configure Sysdeo correctly. Don't worry, it's not
 that hard to fix. 
  Just let
  us know and we'll try to help.
 
  Rhino
 
  - Original Message - From: Daniel
 Watrous 
  [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, December 13, 2004 3:43 PM
  Subject: WAR files and Eclipse
 
 
  Hello All,
 
  I am new to WAR files and eclipse.  Many searches
 on google bring me 
  to the
  sysdeo tomcat plugin, which I have installed.  I
 want to know if 
  there is
  some standard way to generate a WAR file for
 deployment.  I have 
  found that
  I can export a JAR file and change its name, but
 in the process the
  directory structure is altered.  Maybe you even
 know about a better 
  IDE than
  eclipse for working with web-based projects. 
 THANKS in advance.
 
  Daniel
 
 
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 
   
 
 
 
 
 
 -- 
 
 Dwayne A. Ghant
 Application Developer
 Temple University
 215.204.
 [EMAIL PROTECTED]
 
  
 
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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


Re: [OT] HTTP Sniffers

2004-12-15 Thread sven morales
  I have not seen previous postings but, there is the
TCPMON tool from Apache Axis project, its an applet. 
This allows you to see the the request response
between client and Tomcat.

--- Justin Ruthenbeck [EMAIL PROTECTED] wrote:

 
 Whenever I need to see the actual HTTP messages
 (which is pretty often, 
 as it turns out), I use an HTTP proxy logger to do
 it.  My favorite, for 
 it's simplicity, is zproxy:
 
 http://www.zaval.org/products/proxy/download/
 
 
 At 12:17 PM 12/15/2004, you wrote:
 Considering this is a pretty knowledgable group is
 there a good free 
 HTTP Sniffer application I can use, I need to see
 what the HTTP headers 
 are returning on my site.
 
 
 __
 Justin Ruthenbeck
 Lead Software Engineer, NextEngine Inc.
 justinr - AT - nextengine DOT com
 Confidential. See:
 http://www.nextengine.com/confidentiality.php
 __
 
 

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




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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


Re: standard.jar broke in Tomcat?

2004-12-15 Thread sven morales
Hi,
   Can you paste the relevant section of your
deployment descriptor web.xml for your demo webapp?
Specifically, the 
taglib
  
taglib-urihttp://java.sun.com/jstl/core/taglib-uri
   taglib-location
 
Am assuming this is JSP 1.2?

aka_sergio
   

--- Tim Watts [EMAIL PROTECTED] wrote
 Hi,
 
 I'm having problems using standard.jar. For a simple
 page such as this:
 
 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN 
 http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
 html xmlns=http://www.w3.org/1999/xhtml;
 head
 %@ taglib uri=http://java.sun.com/jstl/core;
 prefix=c %
 /head
 body
 pRemote user: c:out
 value=${request.remoteUser}//p
 /body
 /html
 
 Tomcat 4.1.31 complains that it doesn't know what
 c:out is with this 
 exception:
 
 org.apache.jasper.JasperException:
 /demo/userinfo-tc.jsp(7,16) No such 
 tag out in the tag library imported with prefix c
 
 Tomcat 5.0.28 under JBoss 3.2.6 gives a little
 clearer explanation:
 
 org.apache.jasper.JasperException: Unable to read
 TLD 
 META-INF/taglib.tld from JAR file 

file:/C:/jboss-3.2.6/server/default/tmp/deploy/tmp12024SpeEA.ear-contents/spe.war/WEB-INF/lib/standard.jar:
 
 java.lang.NullPointerException
 
 It appears to be looking for taglib.tld for some
 reason. It, in fact, 
 does not exist in the jar. But why is it looking for
 this?
 
 The page works fine in WebSphere Studio 5.1.
 
 Has anyone else encountered this? How did you work
 around it? Am I doing 
 something wrong? Any insight/experience will be
 greatly appreciated.
 
 Thanks.
 
 

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




__ 
Do you Yahoo!? 
Jazz up your holiday email with celebrity designs. Learn more. 
http://celebrity.mail.yahoo.com

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


Re: Tomcat diagnostic tools

2004-12-05 Thread sven morales
Hi,
  The Apache Axis project has a tcpmon tool that
basically sits between your browser and Tomcat. It is
nice in a sense that HTTP is nicely formatted.  Its an
applet based.  I think most of the IDE's have similar
tool integrated but like me who does not use an IDE,
its adequate. This is just one of the tools you may
use.  There are probably more user friendly tools out
there.

Good luck

--- [EMAIL PROTECTED] wrote:

 Hi,
 
 I have a problem with my application which is
 running on Tomcat  Struts.
 I am begginer so my question can maybe lame.
 My Tomcat is running on port 8080 and there I can
 see manager and my application sessions and so on.
 But from time to time the server stops reacting on
 HTTP requests. And I cannot see what is happening,
 how many sessions are opened on my app and if it is
 started and so on because I cannot open
 http://server:8080 (web browser hangs on it). As
 looking on processes on Linux machine I see that
 Tomcat is running.
 Of course I can stop and start Tomcat again and then
 everything is ok, but that way I cannot diagnose the
 reason of application hang.
 There comes my question: how can I see the
 parameters of the system not by using Web interface
 of Tomcat Manager? Are there any terminal programs
 or file logs or sth like that which I can always use
 when processes are running?
 Are there any usable tools like HTTP monitors which
 can debug HTTP requests and Tomcat reactions on it
 or something?
 
 Maciek
 
 
 

--
 Ponad 400 tysiecy kandydatow na meza? Poszukaj
 wlasnego!
  http://link.interia.pl/f183c
 
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com 

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



Re: Delivering JSPs without source

2004-11-30 Thread sven morales
Hi,
   If I understood your issue, you have some required
jars installed at tomcatX/server/lib because of some
reason you can not have it at yourapp/WEB-INF/lib? And
your issue is this is not accessable from your apps,
which seems to be the correct behaviour per the:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html

Catalina - This class loader is initialized to include
all classes and resources required to implement Tomcat
5 itself. These classes and resources are TOTALLY
invisible to web applications. All unpacked classes
and resources in $CATALINA_HOME/server/classes, as
well as classes and resources in JAR files under
$CATALINA_HOME/server/lib, are made visible through
this class loader. 

aka_sergio


--- Steve Procter [EMAIL PROTECTED] wrote:

 Authentication uses a database to store user
 information, and the 
 database is accessed via an object mapping package.
 
 --Steven
 
 parviz wrote:
  I'm a little confused as to what you mean by
 object repository.
  You have your Realm in common/lib which is fine.
 All the other
  Realm(jdbc,jndi...) exist in common/lib. I'm not
 clear what your Realm
  does with your object repository? whats the
 connection between these
  two?Does your compiled jsp files exist in that
 directory as well?
  
  I'll try to setup something similar to your setup
 and see if I can come
  up with any solution unless someone has any by
 now.
  
  Parviz 
  
  On Mon, 2004-11-29 at 15:32, Steve Procter wrote:
  
 We have a web application that uses jsps.  We want
 to deliver the 
 application to the customer without source for the
 jsps.  We have done 
 this in the past by putting all of the compiled
 jsps into a jar file.
 
 Recently we had to move the application jar files
 from 
 webapps/appname/WEB-INF/lib to common/lib because
 we implemented our own 
 realm which uses our object repository; since it
 has to be installed in 
 server/lib, the code for the repository cannot be
 installed under the 
 web application directory.
 
 When the application is installed in common/lib it
 is not able to load 
 the compiled jsp files.  They are installed in
 common/lib/.
 
 Does anyone have an idea about why these classes
 are not visible?
 
 Thanks,
 
 --Steven
 
 

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




__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

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



RE: xml pages on Tomcat server???

2004-11-29 Thread sven morales
Hi,
   For the unaware, there is a top level Apache
project  called Cocoon that can facilitate output
formats to just about anything. As starting point,
here are several links:

http://wiki.apache.org/cocoon/HowTos
http://marc.theaimsgroup.com/?l=xml-cocoon-usersr=1w=4
http://cocoon.apache.org/2.1/developing/deliquick.html
http://cocoon.apache.org/2.1/developing/portal/portal-block.html#Configuring+Coplets

Get hold of a Cocoon source, compile this, run the
samples on Tomcat and have fun.   Intructions to
download is on one of the links above.
Warning, this is a complex framework and can be
difficult to learn. Knowledge of XML technologies is a
basic requirement.

--- Allistair Crossley [EMAIL PROTECTED]
wrote:

 this is not really a tomcat question. you can
 configure your web server (or tomcat I suppose in
 the global web.xml) to handle MIME extensions for
 wap files. but most importantly your JSP/Servlet
 code would need to set the response content type to
 the appropriate WAP types which is not a question
 for this list.
 
 lookup MIME types for your web server, or tomcat.
 
 Allistair.
 
  -Original Message-
  From: Kashif Siddiqui
 [mailto:[EMAIL PROTECTED]
  Sent: 29 November 2004 13:20
  To: Tomcat Users List
  Subject: xml pages on Tomcat server???
  
  
  Hi all,
  
  I want to host some xml pages for WAP. Please
 guide me
  that is it possible to host these pages on Tomcat
  server? and how can I host these pages in Tomcat
  server? and what changes I have to made in
 server.xml
  file?
  
  Thanks in advance...
  
  
  
  
  
  __ 
  Do you Yahoo!? 
  Yahoo! Mail - Helps protect you from nasty
 viruses. 
  http://promotions.yahoo.com/new_mail
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 

---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474

---
 /FONT
 
 

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




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Re: [OT] Which webframework to use?

2004-11-29 Thread sven morales
Hello,
I assume you are evaluating other frameworks, may
I suggest you look into Apache Cocoon project. It
started as a web publishing framework, and can do MVC
as Struts can, but if you have a need to provide
output to different formats WAP, PDF, Microsoft Excel,
SVG formats, just about anything (anything is
probably in the works :; )  here are the links to get
started:

http://wiki.apache.org/cocoon/HowTos
http://marc.theaimsgroup.com/?l=xml-cocoon-usersr=1b=200411w=4


--- Trond G. Ziarkowski
[EMAIL PROTECTED] wrote:

 Hi all!
 
 Obviously I'm way off topic here, but I'm posting
 this anyway.
 
 I started developing JSP/Servlets using Tomcat 6
 months ago. At the time 
 I started developing my app I wasn't much aware of
 MVC and frameworks to 
 help me with that, so I have developed everything
 from scratch.
 
 Lately I have been reading up on Spring, WebWork,
 Struts and JSF. It 
 seems to me that the question is to Struts or not to
 Struts. People 
 using Struts are convinced that they have the right
 solution, but some 
 of them are scared that JSF is going to take over.
 And Spring seems to 
 go on about how easy it is to use and also mix with
 other frameworks.
 
 My webapp is somewhat close to the MVC pattern, not
 bad for not knowing 
 about it when design started :), and I think that it
 should be quite 
 easy for me to implement one of these frameworks.
 
 In my understanding the biggest competitors are
 Struts and JSF, and in 
 the 2.x release of Struts they will rely on JSF as
 supporting technology 
 so one of these seems to be a good choice.
 
 Any good tips on the matter would be greatly
 appreciated.
 
 Trond
 
 

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





__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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



Re: Mysql: Cannot create JDBC driver

2004-11-27 Thread sven morales
You may want to remove autoReconnect=true from
this and see if you still observe same:
valuejdbc:mysql://localhost:3306/bankapp1?autoReconnect=true/value

--- Carlos Bracho [EMAIL PROTECTED] wrote:

 Hello everybody.
 
 I am writting you because I get this exception
 ramdonly, I mean,
 sometimes happends, sometimes does not.
 
 javax.servlet.ServletException: Cannot create JDBC
 driver of class ''
 for connect URL 'null', cause: No suitable driver
 at

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
 at

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
 at

org.apache.jsp.index_jsp._jspService(index_jsp.java:73)
 at

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
 at

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 at

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:305)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
 at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
 at

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
 at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
 at java.lang.Thread.run(Thread.java:534)
 
 I am using MySql 4.0.20a and the driver jar file is
 mysql-connector-java-3.0.14.jar, here you have my
 xml files:
 
 Server.xml:
 (...)
 Context path=/bankApp1 docBase=bankApp1
 debug=5
 reloadable=true crossContext=true
   Logger
 className=org.apache.catalina.logger.FileLogger
 prefix=localhost_bankApp1_log. suffix=.txt
 timestamp=true/
   Resource name=jdbc/bankApp1 auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/bankApp1
   parameter
   namefactory/name
   

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
   namemaxActive/name
   value10/value
   /parameter
   parameter
   namemaxIdle/name
   value3/value
   /parameter
   parameter
   namemaxWait/name
 

Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread sven morales
  May I suggest the usage of Apache Axis tcpmon tool. 
This is an applet based tool.  Get hold of axis.jar
and put this on your classpath. Then launch it like so
in the same server as where Tomcat is running:
java -cp axis.jar org.apache.axis.utils.tcpmon 8081
localhost 8080
 This tool basically sits between your browser and
your Tomcat so that you can monitor what is being sent
by your browser and the response from the Tomcat. 
Good luck.


--- Michael McQuade [EMAIL PROTECTED] wrote:

 Hi folks,  I pray someone can tell me something
 here.  Im writing an application in Servlets
 using Tomcat  Heres my scenario.
 
 I display a User Login screen,  ID and Password on
 an HTML form,  user enters data,   the submit button
 executes the program to verify the Users
 information  Obvioulsy if its wrong,  it
 redisplays the screen,   or correct,  it carries on
 into the application.  SO,  if the user info is
 correct,   it CALLS another program to build and
 display the users data, menu,  etc..
 
 This all works just fine,  EXCEPT.when it builds
 the new User screen,   it is building it BELOW (i.e.
 same browser page)  as the User Login screen. 
 Obviously this User Login screen should be gone, 
 and I should just see the new results
 
 Ok,   if the User validation process failed (i.e. 
 invalid id or password)  my program just redisplays
 the log in screen,  well,   same happens,  a NEW
 login screen,  gets bulit below the Original log in
 screen.
 
 can ANYONE PLEAE help me here.  Does
 Tomcat need to kill the Servlet session?  to know it
 needs to refresh the Browser?
 
 This is killing me here, Im desperate to get this
 resolved so I can move forward with my app,  I thank
 you all for any help you can give me
 Have a wonderful day, Merry Christmas
 
 Mike




__ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail 

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



Slashdot article - Cross-Platform Java Sandbox Exploit

2004-11-24 Thread sven morales
Is Tomcat affected by such? or is this a just a FUD?
the link to the article is:
http://slashdot.org/article.pl?sid=04/11/24/1323228from=rss

Sorry, I do not want to create FUD myself. I just dont
understand what a sandbox is.



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



RE: jstl.jar and standard.jar causes Digester, taglib error on st artup

2004-11-23 Thread sven morales
   You may want to check you web.xml to make sure the
taglib definition is matching what you have on your
jsp pages. I am suggesting such because there were at
one time a change in the jstl uri namespaces and it
was causing a some problems for me.
 
--- Phillip Qin [EMAIL PROTECTED] wrote:

 Where did you use digester and jstl? I mix jstl and
 struts tags on my pages
 and they worked fine.
 
 -Original Message-
 From: Morten Andersen [mailto:[EMAIL PROTECTED] 
 Sent: November 23, 2004 10:38 AM
 To: [EMAIL PROTECTED]
 Subject: jstl.jar and standard.jar causes Digester,
 taglib error on startup
 
 
 Well Ive seen this error many times:
 --
 org.apache.commons.digester.Digester error
 SEVERE: Parse Error at line 6 
 column 19: Document root element taglib , must
 match DOCTYPE root null .
 org.xml.sax.SAXParseException: Document root element
 taglib , must match 
 DOCTYPE root null .
 --
 So, I tryed finding the error looking through the
 tld files, googling a bit 
 and so on, until I tryed removing the jstl.jar and
 standard.jar from my 
 web-applications. Suddenly no error was reported.
 
 What caused the error?
 
 I can't use jstl on tomcat. This could be due to the
 same problem...?
 
 Tomcat version: 4.1.24
 jstl version: 1.0 / 1.1
 
 Regards
 
 
 Morten Andersen
 Master of applied mathematics and computer science
 Associate professor
 
 The Maersk Institute of Production technology at
 Southern Danish University 
 www.mip.sdu.dk
 Campusvej 55
 DK-5230 Odense M
 Denmark
 +45 65 50 36 54
 +45 61 71 11 03
 Jabber id: [EMAIL PROTECTED]
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 !DSPAM:41a3603d250343371989192!
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Unnable to redeploy an axis web app

2004-11-23 Thread sven morales
  Hi,
   I am using axis too and am able to deploy it to a
Tomcat5.0.29 with minimal issue. I noticed you have a
META-INF/services/org.apache.axis.EngineConfigurationFactory
 which does not exist on the axis 1.1  I am using. 
Isnt it this META-INF/services something to do with
EJB? I dont think Tomcat do EJB stuff.
 
--- Vy Ho [EMAIL PROTECTED] wrote:

 I am sorry that this is a cross post from Axis list.
  However, I think I 
 this maybe more appropriate place to ask, since
 people here may know 
 more about application redeployment and frequent
 problems associated 
 with it.
 
 What I have is an Axis web application, I want to
 undeploy it, then 
 redeploy the application.  When I redeploy the
 application, I get an 
 error.  Is this a known problem with Axis?  Is there
 a way to go around 
 this?  Or it's the way I do it (wrongly).  Here's
 the error:
 
 - Illegal access: this web application instance has
 been stopped 
 already.  Could not load 

META-INF/services/org.apache.axis.EngineConfigurationFactory.
  The 
 eventual following stack trace is caused by an error
 thrown for 
 debugging purposes as well as to attempt to
 terminate the thread which 
 caused the illegal access, and has no functional
 impact.
 
 - Illegal access: this web application instance has
 been stopped 
 already.  Could not load 

org/apache/axis/configuration/EngineConfigurationFactoryServlet.class.
  
 The eventual following stack trace is caused by an
 error thrown for 
 debugging purposes as well as to attempt to
 terminate the thread which 
 caused the illegal access, and has no functional
 impact.
 
 - Illegal access: this web application instance has
 been stopped 
 already.  Could not load 

org.apache.axis.configuration.EngineConfigurationFactoryServlet.
  The 
 eventual following stack trace is caused by an error
 thrown for 
 debugging purposes as well as to attempt to
 terminate the thread which 
 caused the illegal access, and has no functional
 impact.
 
 - StandardWrapper.Throwable
 java.lang.ThreadDeath
at 

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1221)
 
 
at 

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
 
 
at 

org.apache.commons.discovery.ResourceClass$1.run(ResourceClass.java:77)
at
 java.security.AccessController.doPrivileged(Native
 Method)
at 

org.apache.commons.discovery.ResourceClass.loadClass(ResourceClass.java:73)
at 

org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:122)
 
 
at
 java.security.AccessController.doPrivileged(Native
 Method)
at 

org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)
 
 
at 

org.apache.axis.transport.http.AxisServletBase.getEngineEnvironment(AxisServletBase.java:247)
 
 
at 

org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:170)
 
 
at 

org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:370)
 
 
at 

org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:110)
 
 
at

javax.servlet.GenericServlet.init(GenericServlet.java:211)
at 

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1053)
 
 
at 

org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
at 

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3817)
 
 
at 

org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
at 

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
 
 
at 

org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at

org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 
 - Servlet /axis threw load() exception
 javax.servlet.ServletException: Servlet.init() for
 servlet AdminServlet 
 threw exception
at 

org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1095)
 
 
at 

org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:886)
at 

org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3817)
 
 
at 

org.apache.catalina.core.StandardContext.start(StandardContext.java:4079)
at 

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:755)
 
 
at 

org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at

org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
 
 I try to move all Axis library from /WEB-INF/lib to
 outside, and add to 
 class path (so that maybe class loading would not be
 a problem), but 
 this still happens.
 
 
 

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




__ 
Do you 

Re: Servlets and debugging

2004-11-23 Thread sven morales
  The IDE suggested by others may already have this
features, but Apache Axis tcpmon is a neat tool to
have if you do not use IDE's.  It allows you to see
what is being sent to a servlet running on Tomcat and
vice versa, the response coming out. Easy to use, as
it is an applet and run like so:

java -cp axis.jar org.apache.axis.utils.tcpmon 8081
localhost 8080

It basically sits between Tomcat and your
browser/client app. You get to monitor the interaction
between browser and Tomcat.   Good Luck.


--- Ben Souther [EMAIL PROTECTED] wrote:

   servlet-mapping
  servlet-nameinvoker/servlet-name
  url-pattern/servlet/*/url-pattern
/servlet-mapping
  (No one had ever said before about the
  servlet-mapping directive.)
 
 There are good reasons why the invoker servlet has
 been removed
 (commented out) of the default web.xml in Tomcat.
 http://jakarta.apache.org/tomcat/faq/misc.html#evil
 
 You would be much better off to explicitly map each
 servlet in your
 web.xml file.
 
 
  (No one had ever said before about the
 servlet-mapping directive.)
 This wasn't covered in the First Webapp tutorial?

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/index.html
 
  I have to compile the servlet,
  copy it to the classes directory, restart Tomcat
 (which takes several
  minutes) and read the Tomcat logs to find out
 whats gone wrong!
  Nightmare! :-o
 This is only my 2 cents but I think that, until you
 have a firm 
 grasp on how all this works, the method you've just
 described is
 the best way to debug them.  Once you've got it, you
 might want to speed
 things up with an IDE debugger.
 
 There are some little things you can do to speed
 things up like setting 
 reloadable to true so you don't need to restart
 tomcat and by either
 putting your src in the the classes directory (or
 using the -d switch in
 javac) so you don't have to copy the class files. 
 If you're on Unix the
 tail -f command will allow you to view your logs as
 Tomcat writes to
 them. There are some editors that will allow you to
 do the same thing in
 Windows. Textpad is one of them.
 
 If you're interested, I put some small simple
 examples on a website that
 you can download and run. They are all WAR files so
 running them is as
 easy as dropping them in your webapps directory.
 http://simple.souther.us
 
 Good-Luck
 -Ben
 
 
 
 
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



RE: Looking for classes that were moved out

2004-11-22 Thread sven morales
  Is that statement playing a russian roulette refers
to -- classes installed in the extention dirs does not
use security policies? 



__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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



Re: FAIL - No context exists for path /blog

2004-11-22 Thread sven morales
   Its just me, I do not fully trust the /manager app
to deploy webapps all the time.  For example its
suppose to be able to deploy a war file even if the
war file is coming from a remote site, ie it should
attempt to download it but I have no luck with it
deploying a remote war file yet. 
I would do a manual deployment, ie create the
context config file at 
tomcat5/conf/engine/localhost/yourappname.xml and
deploy your war or expanded war at tomcat5/webapps/.
See if you get the same results.
   Another tool to use is the jmxproxy.  Query it and
see if it has deployed your webapp.

--- Dakota Jack [EMAIL PROTECTED] wrote:

 I am running Tomcat 5.0, by the way on a Presario
 2500 PC desktop with
 Windows XP.
 
 Jack
 
 
 On Mon, 22 Nov 2004 12:30:58 -0500, Shapira, Yoav
 [EMAIL PROTECTED] wrote:
  
  Hi,
  If the startup fails with a 500-class error, one
 thing that's pointless
  is to try starting it up again ;)  Instead, look
 at your logs to see the
  cause for the error, and fix it.  Until then
 there's nothing to start,
  stop, or restart.
  
  If you're unsure what to do after looking at the
 log, post it here and
  we can try to help.
  
  Yoav Shapira http://www.yoavshapira.com
  
  
  
  
  -Original Message-
  From: Dakota Jack [mailto:[EMAIL PROTECTED]
  Sent: Monday, November 22, 2004 12:27 PM
  To: Tomcat Users List
  Subject: FAIL - No context exists for path /blog
  
  I thought I would do a quick little test on a
 roller blog.  So I just
  popped the application into webapps and thought I
 would give it a
  little whirl.  No whirl!  I got a 503 error and
 when I tried to start
  it with manager?path=/blog, I got the error
 message in the Subject
  line of this email.  I have no context defined in
 my server.xml
  because I run my existing app as ROOT.
  
  What's up and what do I need to do?
  
  Jack
  
  
  --
  
  
  You can't wake a person who is pretending to be
 asleep.
  
  ~Native Proverb~
  
  Each man is good in His sight. It is not
 necessary for eagles to be
  crows.
  
  ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  This e-mail, including any attachments, is a
 confidential business communication, and may contain
 information that is confidential, proprietary and/or
 privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not
 be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail
 from your computer system and notify the sender. 
 Thank you.
  
  
 
 
 -- 
 
 
 You can't wake a person who is pretending to be
 asleep.
 
 ~Native Proverb~
 
 Each man is good in His sight. It is not necessary
 for eagles to be crows.
 
 ~Hunkesni (Sitting Bull), Hunkpapa Sioux~
 

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




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



RE: Server.xml problem..

2004-11-22 Thread sven morales
  I do not remember on top of my head at which version
Tomcat has separated the Context element from
server.xml but assuming it applies to your situation. 
On your Ant task you need to separate out from the
server.xml the element and its contents (Context ..
/Context to another file, call it rpcoemapi.xml. 
You can have another task to put this rpcoemapi.xml
file into tomcatXX/conf/engine/host/ directory, or
 the other alternative was to have this rpcoemapi.xml
become part of your war file. Please search back in
the list for the last weeks where this same subject
where to put context.xml file. 
  An example of my context xml file thats been pulled
out of server.xml:

?xml version='1.0' encoding='utf-8'?
Context path=/dbxlog docBase=dbxlog debug=99
 reloadable=true
crossContext=true
 Logger
className=org.apache.catalina.logger.FileLogger
 prefix=dbxlog. suffix=.txt
  timestamp=true/
 Resource name=jdbc/Taglib auth=Container
type=javax.sql.DataSource/
 ResourceParams name=jdbc/Taglib
parameter
namefactory/name
   
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
parameter
namemaxActive/name
value100/value
/parameter
parameter
namemaxIdle/name
value3/value
/parameter
parameter
namemaxWait/name
value100/value
/parameter
   
parameternameusername/namevaluemysql69/value/parameter
   
parameternamepassword/namevalueyejlaitr/value/parameter
parameternamedriverClassName/name
 
valueorg.gjt.mm.mysql.Driver/value/parameter
parameternameurl/name
 
valuejdbc:mysql://localhost:3306/dbxforum/value/parameter
  /ResourceParams
/Context

Hope this helps.


--- Shilpa Nalgonda [EMAIL PROTECTED] wrote:

 under TOMCAT_HOME/conf i only have server.xml,
 tomcat-users.xml , web.xml,
 catalina.policy and jk2.properties.
 i can't find rpcoemapi.xml anywhere under
 Tomcat_home.
 
 Before i had all the datasource configuration for my
 Web apps in server.xml.
 And i used tomcat manager GUI to deploy the
 applications.  But now we have
 to use ant script to deploy apps.
 With this change my server.xml is loosing all the
 datasource configuration.
 
 Please suggest how to tackle this.
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 22, 2004 12:20 PM
 To: Tomcat Users List
 Subject: RE: Server.xml problem..
 
 
 
 Hi,
 Are you sure the information for your context isn't
 written to
 conf/[engine]/[host]/rpcoemapi.xml instead of
 server.xml?
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 -Original Message-
 From: Shilpa Nalgonda
 [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 22, 2004 12:11 PM
 To: Tomcat Users List
 Subject: RE:Server.xml problem..
 
 Hi ,
 I am usinh ant deploy target to deploy my web
 application  on  Tomcat
 4.1.30.
 I have configured datasource to get the connection
 pooling  for my
 webapp
 in server.xml.
 
 But whenever i do a ant deploy, the server.xml ia
 being backed up and a
 new
 server.xml is created.
 This new server.xml does not have any of my
 datasouce configuration for
 my
 webapp.  So my application cannot connect to the
 database thereby.
 
 How can i resolve this, do i have to write xml file
 for my webapp, if
 so
 what entries go in that new xml file.  Below is
 my ant deploy target and server.xml
 
 target name=deploy depends=compile
description=Deploying application to servlet
 container
 
 deploy url=${manager.url}
 username=${manager.username}
 password=${manager.password}
 path=${app.path}
 
 war=file:/${dist.home}/rpcoemapi.war/
 
   /target
 
 sErver.xml
 --
 !-- JNDI datasource setup to connect to Oracle
 database for
 xmlrpc-oemapi--
  Context path=/rpcoemapi
 docBase=rpcoemapi
  debug=5 reloadable=true
 crossContext=true
 useNaming=true
 
  Logger
 className=org.apache.catalina.logger.FileLogger
  prefix=localhost_rpcoemapi_log.
 suffix=.txt
  timestamp=true/
Resource name=jdbc/MYDS
auth=Container
type=javax.sql.DataSource/
 
  ResourceParams name=jdbc/MYDS
  parameter
namefactory/name
   

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
 !-- Maximum number of dB connections in
 pool. Make sure you
  configure your mysqld max_connections
 large enough to handle
  all of your db connections. Set to 0 for
 no limit.
  --
  parameter
   namemaxActive/name
   value30/value
 /parameter
 
  !-- Maximum number of idle dB connections to
 retain in pool.
  Set to 0 for no limit.
  --
 parameter
  namemaxIdle/name
  value20/value
 /parameter
 
 
   !-- Maximum time to wait for a 

Re: Servlet mapping problem.

2004-11-21 Thread sven morales
   Can you show us what you type in to your browser?

--- Stefan [EMAIL PROTECTED] wrote:

 Hi,
 
 I first posted this question with the wrong subject
 heading ... sorry about
 the duplicates.
 
 My question:
 
 Using Tomcat 5.0.28 standalone on windows XP with
 JVM 1.4, I get this error
 even though I have mapped my servlet in the web.xml
 file of the web app:
 
 
 HTTP Status 404 - /loginResponse.do
 


 
 
 type Status report
 
 message /loginResponse.do
 
 description The requested resource
 (/loginResponse.do) is not available.
 
 


 
 
 Apache Tomcat/5.0.28
 
 
 I've placed my webapp folder in Tomcats' webapps
 directory and all the jsp
 pages run fine as do my POJO's for business logic,
 any ideas why the servlet
 code could be causing problems?
 
 The servlet mappings:
 
 
   code:


 --
 
   servlet
 servlet-nameloginResponse/servlet-name

servlet-classcom._ABC.authenticateAdmin/servlet-class
 init-param
 param-nameadminPassword/param-name
 param-valuexxx/param-value
 /init-param /servlet servlet-mapping
 servlet-nameloginResponse/servlet-name
 url-pattern/loginResponse.do/url-pattern
 /servlet-mapping


 --
 
 
 
 It's my first time using Tomcat, been a Resin user
 for years ... any ideas?
 
 Thanks,
 
 Stef
 
 
 
 - Original Message - 
 From: Mark Thomas [EMAIL PROTECTED]
 To: 'Tomcat Users List'
 [EMAIL PROTECTED]
 Sent: Sunday, November 21, 2004 12:10 PM
 Subject: RE: CGI Again...Servlet.service() for
 servlet cgi threw exception
 
 
  I'll look into this but I need a bit more info:
 
  1. What servlet mapping did you specify in
 web.xml?
  2. What URL are you requesting?
 
  Mark
 
   -Original Message-
   From: Sergey Kamshilin
 [mailto:[EMAIL PROTECTED]
   Sent: Saturday, November 20, 2004 12:00 AM
   To: [EMAIL PROTECTED]
   Subject: CGI Again...Servlet.service() for
 servlet cgi threw exception
  
   Sorry guys, I gave up digging into it and
 haven't seen such
   problems in
   archives...
  
   Tomcat 4.1.31 on Solaris.
  
   I enabled cgi scripting:
   changes in web.xml:
   --
   servlet
   servlet-namecgi/servlet-name
  
  

servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
   init-param
 param-namedebug/param-name
 param-value6/param-value
   /init-param
   init-param
 param-namecgiPathPrefix/param-name

 param-value/WEB-INF/cgi-bin//param-value
   /init-param
   load-on-startup5/load-on-startup
   /servlet
   --
   renamed servlets-cgi.jar
  
   The script is
  

/usr/jakarta-tomcat/webapps/ROOT/WEB-INF/cgi-bin/index.pl
   (Everything is OK, Right?)
   
   when I try to access it I got the error:
   2004-11-19 15:53:15 cgi: findCGI:
 path=/index.cgi,
  

/usr/jakarta-tomcat-4.1.31/webapps/ROOT//WEB-INF/cgi-bin/
   2004-11-19 15:53:15 cgi: findCGI:
  

currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
   2004-11-19 15:53:15 cgi: findCGI:
  

currentLoc=/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin
   2004-11-19 15:53:15 cgi: findCGI: FOUND cgi at
  

/usr/jakarta-tomcat-4.1.31/webapps/ROOT/WEB-INF/cgi-bin/index.cgi
   2004-11-19 15:53:15 StandardWrapperValve[cgi]:
   Servlet.service() for servlet
   cgi threw exception
   java.lang.StringIndexOutOfBoundsException:
 String index out
   of range: -2
   at
 java.lang.String.substring(String.java:1444)
   at
 java.lang.String.substring(String.java:1411)
   at
  

org.apache.catalina.servlets.CGIServlet$CGIEnvironment.findCGI
   (CGIServlet.ja
   va:935)
   
   Why the servlet makes exception What else I
 need to check?
  
   Thank you!
  
   /Sergeyk
  
   (Lab Documentation -
   \\Lizard\rad\DraftDocs\msv\ctn\1290 Lab network
 description)
   Phone: 604 918-6360
   Cell:  604 351-8966
  
  
  

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




__ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


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

Re: Servlet mapping problem.

2004-11-21 Thread sven morales
  Can you also post all your struts-config.xml action
 .. ? I was looking for something that may be
forwarding it to login.jsp.  This line you have in
your form,  form
action=/context_name/loginResponse.do  points to
context_name/loginResponse.do  so show this action
line of your struts-config.xml

--- Stefan [EMAIL PROTECTED] wrote:

 Hi,
 
 I am actually using a form to post to the target
 servlet:
 
 form action=/context_name/loginResponse.do
 method=post
 
 name: input type=text name=adminPassword
 
 input type=submit
 
 /form
 
 The form itself is sitting in a page with this URL:
 
 http://127.0.0.1/myWebsite/logIn.jsp
 
 And the strange thing is that when I submit the form
 I am taken to this URL:
 
 http://127.0.0.1/login.jsp
 
 And I get this error:
 
 HTTP Status 404 - /login.jsp
 
 


 
 
 type Status report
 
 message /login.jsp
 
 description The requested resource (/login.jsp) is
 not available.
 
 


 
 
 Apache Tomcat/5.0.28
 Any ideas? Is this a bug in Tomcat ? This works fine
 (naturally) in Resin.
 
 
 Stefan
 
 www.killersites.com
 
 - Original Message - 
 From: sven morales [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Sunday, November 21, 2004 9:58 PM
 Subject: Re: Servlet mapping problem.
 
 
 Can you show us what you type in to your
 browser?
 
  --- Stefan [EMAIL PROTECTED] wrote:
 
   Hi,
  
   I first posted this question with the wrong
 subject
   heading ... sorry about
   the duplicates.
  
   My question:
  
   Using Tomcat 5.0.28 standalone on windows XP
 with
   JVM 1.4, I get this error
   even though I have mapped my servlet in the
 web.xml
   file of the web app:
  
  
   HTTP Status 404 - /loginResponse.do
  
  
 

--
 --
   
  
   type Status report
  
   message /loginResponse.do
  
   description The requested resource
   (/loginResponse.do) is not available.
  
  
  
 

--
 --
   
  
   Apache Tomcat/5.0.28
  
  
   I've placed my webapp folder in Tomcats' webapps
   directory and all the jsp
   pages run fine as do my POJO's for business
 logic,
   any ideas why the servlet
   code could be causing problems?
  
   The servlet mappings:
  
  
 code:
  
 

--
 --
   --
  
 servlet
   servlet-nameloginResponse/servlet-name
  
 

servlet-classcom._ABC.authenticateAdmin/servlet-class
   init-param
   param-nameadminPassword/param-name
   param-valuexxx/param-value
   /init-param /servlet servlet-mapping
   servlet-nameloginResponse/servlet-name
   url-pattern/loginResponse.do/url-pattern
   /servlet-mapping
  
 

--
 --
   --
  
  
  
   It's my first time using Tomcat, been a Resin
 user
   for years ... any ideas?
  
   Thanks,
  
   Stef
  
  
  
   - Original Message - 
   From: Mark Thomas [EMAIL PROTECTED]
   To: 'Tomcat Users List'
   [EMAIL PROTECTED]
   Sent: Sunday, November 21, 2004 12:10 PM
   Subject: RE: CGI Again...Servlet.service() for
   servlet cgi threw exception
  
  
I'll look into this but I need a bit more
 info:
   
1. What servlet mapping did you specify in
   web.xml?
2. What URL are you requesting?
   
Mark
   
 -Original Message-
 From: Sergey Kamshilin
   [mailto:[EMAIL PROTECTED]
 Sent: Saturday, November 20, 2004 12:00 AM
 To: [EMAIL PROTECTED]
 Subject: CGI Again...Servlet.service() for
   servlet cgi threw exception

 Sorry guys, I gave up digging into it and
   haven't seen such
 problems in
 archives...

 Tomcat 4.1.31 on Solaris.

 I enabled cgi scripting:
 changes in web.xml:
 --
 servlet
 servlet-namecgi/servlet-name


  
 

servlet-classorg.apache.catalina.servlets.CGIServlet/servlet-class
 init-param
   param-namedebug/param-name
   param-value6/param-value
 /init-param
 init-param
 
=== message truncated ===




__ 
Do you Yahoo!? 
The all-new My Yahoo! - Get yours free! 
http://my.yahoo.com 
 


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



Re: Problem on SuSE 9.2...

2004-11-19 Thread sven morales
  You may want to check if your SuSe 9.x has ipv6
enabled.  It slows down connectivity because it also
attempts to look up ipv6 addresses and that could
possibly be causing your timeout.  Try to disable ipv6
and see how it performs.
--- Quinton Delpeche [EMAIL PROTECTED]
wrote:

 Greetings,
 
 It is me again.
 
 What does this error mean:
 
 The time allowed for the login process has been
 exceeded
 
 Is there a problem with my PostgresQL JDBC driver
 for the User Realm?
 This same code worked on a MS-SQL server... ...why
 won't work it here.
 
 The previous server was a SuSE 9.0 running Tomcat 4.
 Is there a serious difference in configuration?
 
 Here is the extract from my server.xml file:
 EXTRACT
 !-- Context for Internal Systems ROOT engine --
 Context
 className=org.apache.catalina.core.StandardContext
 
 debug=0
  cachingAllowed=false
 cookies=false crossContext=false
 

charsetMapperClass=org.apache.catalina.util.CharsetMapper
  displayName=VIP Internal Systems
 (Core Engine) path=
 
 docBase=/srv/www/tomcat5/base/webapps/ROOT 
 privileged=false
 

mapperClass=org.apache.catalina.core.StandardContextMapper
  reloadable=true
 swallowOutput=false useNaming=true
 

wrapperClass=org.apache.catalina.core.StandardWrapper
   Realm
 className=org.apache.catalina.realm.JDBCRealm 
 connectionName=USER
  connectionPassword=PASSWORDS
 debug=99 
 driverName=org.postgresql.Driver
 

connectionURL=jdbc:postgresql://SOME_IP:5432/intsys
 
 roleNameCol=quot;_vipRoleNamequot;
 
 userCredCol=quot;_vipPasswordquot; 
 userNameCol=quot;cAgentNamequot;
 userRoleTable=quot;_vipRolequot;
  userTable=quot;_rtblAgentsquot;
 validate=true/
 /Context
 /EXTRACT
 
 The names have been changed to protect the guilty.
 
 I have to echo the the column names and table names
 with quot; because I am 
 using PostgresQL which is ANSI 92 compliant...
 ...could this be the problem.
 
 Please help me. :(
 
 Q
 -- 
 Quinton Delpeche
 Internal Systems Developer
 Softline VIP
 
 Telephone: +27 12 420 7000
 Direct:+27 12 420 7007
 Facsimile: +27 12 420 7344
 
 http://www.vippayroll.co.za/
 
 A day for firm decisions!  Or is it?
 

 ATTACHMENT part 2 application/pgp-signature 



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Tomcat 5.X always creates session for every request?

2004-11-17 Thread sven morales
  You may want to check how your browser interprets
the encoded URL. Compare what has been sent to the
browser and what went back towards Tomcat.  I was
assisting another person the other day and we found
out that the cookie is mangled, the ~ was not
urlencoded to %7.. something. I am not saying thats
the cause, just check and see if you can observe such
characteristics.  You can enable RequestDumperValve to
see these.

--- Tim Funk [EMAIL PROTECTED] wrote:

 By default JSP's need to be told to *not* ask for a
 session via
 [EMAIL PROTECTED] session='false'%
 
 Otherwise - it sounds like a cookie setting issue
 that the client isn't 
 remembering the sessionid.
 
 -Tim
 
 LAM Kwun Wa Joseph wrote:
 
  I have implemented a simple HttpSessionListener
 dumping every new session
  created. I found that my Tomcat (tried on 5.0.2x
 and 5.5.4) will always
  create a new session for every HTTP request, even
 if the JSP page doesn't
  request for session and the HTTP client doesn't
 use cookie nor post any
  session ID (e.g. direct telnet to port 80).
  
  Are there any config params that relate to this?
 Thanks!
   
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: Soap under Tomcat

2004-11-15 Thread sven morales
Exception in thread main [SOAPException:
faultCode=SOAP-ENV:Protocol; msg=Unsupported response
content type quot;text/html;
charset=ISO-8859-1quot;, must be :
quot;text/xmlquot;. Response was:
lt;htmlgt;lt;headgt;lt;titlegt;Apache
Tomcat/4.1.30 - Error reportlt;/tit

Your error seems to point to the type  text/html. 
Apache SOAP uses POST and type text/xml.  I don't know
how your program spits out text/html.  I tried same
tutorial and it works for me.
  Also there is a tool called tcpmon thats very
helpful in seeing whats being sent (HTTP) towards
Tomcat and Tomcats HTTP response.

aka_sergio

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Soap under Tomcat

2004-11-15 Thread sven morales
  What did you do to get rid of that text/html
problem?
You can list the deployed services via this command:

java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter list

or clicking on list button on
http://localhost:8080/soap/admin/

I the urn:onjava is not listed, then that service is
not deployed.

I have not have to modify web.xml mappings as the
rpcrouter is the Servlet responding to deployment and
listing of services. messagerouter is the other
Servlet that handles messaging within SOAP.  TCPMON I
suggested is a very helpful tool, to let you view what
is being posted to Tomcat.


--- feilong [EMAIL PROTECTED] wrote:

 Hallo, aka_sergio
 Thanks for your reply. My problem looks like the
 following now:

D:\Programs\jakarta-tomcat-4.1.30\webapps\soap\WEB-INF\classesjava
 onjava.CalcC
 lient 98 96
 I am called!
 The call failed:
 Fault Code   = SOAP-ENV:Server.Exception:
 Fault String = onjava/CalcService (wrong name:
 CalcService)
 
 I follow each step from this tutorial. I put my
 CalcService.java and
 CalcClient.java in
 tomcat_Home\webapps\soap\WEB-INF\classes\onjava
 The all code are compiled(surely). I think that I
 needn't edit anything in
 web.xml and server.xml,
 because we have DeploymentDescriptor.xml, which
 defined the path, the urn
 for the servlet.
 Tomcat is smart enough to find CalcService.java. I
 consider that the request
 from client is not transfered to the server,
 That means that Tomcat hasn't found CalcService.java
 while client runs. I
 don't why, I can deploy and undeploy this
 webservice,
 all the code are copied from this tutorial, I don't
 know why?
 
 
 Best
 Feilong
 - Original Message - 
 From: sven morales [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 15, 2004 2:39 PM
 Subject: RE: Soap under Tomcat
 
 
  Exception in thread main [SOAPException:
  faultCode=SOAP-ENV:Protocol; msg=Unsupported
 response
  content type quot;text/html;
  charset=ISO-8859-1quot;, must be :
  quot;text/xmlquot;. Response was:
  lt;htmlgt;lt;headgt;lt;titlegt;Apache
  Tomcat/4.1.30 - Error reportlt;/tit
 
  Your error seems to point to the type  text/html.
  Apache SOAP uses POST and type text/xml.  I don't
 know
  how your program spits out text/html.  I tried
 same
  tutorial and it works for me.
Also there is a tool called tcpmon thats very
  helpful in seeing whats being sent (HTTP) towards
  Tomcat and Tomcats HTTP response.
 
  aka_sergio
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around
  http://mail.yahoo.com
 
 

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

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Good tutorial on embedded Tomcat

2004-11-13 Thread sven morales
  The new book on Tomcat5 Unleashed by Moczar covers
embedded tomcat, but for only a chapter.  The wrox
book   professional tomcat 5 also has chapter, but you
know, a chapter can't possibly cover it in-depth.  The
book which probably covers Tomcat in-depth
programmaticallywise is the How Tomcat Works book by
Budi Kurniawan, which I have not browsed yet.

--- V D [EMAIL PROTECTED] wrote:

 
 I try to find good information on programming with
 embedded Tomcat, but 
 did not find much.  I managed to get it running. 
 However, if there's 
 more indepth information, it would be much easier. 
 I didn't see much 
 information on Tomcat website.  Did I miss
 something?  There's the API, 
 which is good, but it would be nice to have tutorial
 on it.  Also, do 
 you have a suggestion on a good book on this (if
 it's on latest version 
 5.5 would be nice)?
 
 Thanks,
 
 vh.
 
 

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




__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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



Re: Tomcat 5.0.28 fails to start

2004-11-07 Thread sven morales
  Am curious, this jmx.jar is required in all Tomcat
5.x?  I thought it was only for the jmxproxy servlet
under the manager webapp?


--- Bill Barker [EMAIL PROTECTED] wrote:

 The problem is that Tomcat isn't finding the classes
 in 
 $CATALINA_HOME/bin/jmx.jar.  Either this jar got
 corrupted somehow, or your 
 JVM isn't honoring the classpath in the manifest. 
 If the jar is there and 
 looks ok, then try adding it to the classpath in the
 startup script.
 
 Steve Delahunty [EMAIL PROTECTED] wrote in
 message 
 news:[EMAIL PROTECTED]
 I recently downloaded a binary version of tomcat
 version 5.0.28. I
  configured it and everything was running fine.
 Then, a few days ago,
  when I try to start it (using bin/startup.sh), I
 get the following
  message in logs/catalina.out:
 
 

---
  Due to new licensing guidelines mandated by the
 Apache Software
  Foundation Board of Directors, a JMX
 implementation can no longer
  be distributed with the Apache Tomcat binaries. As
 a result, you
  must download a JMX 1.2 implementation (such as
 the Sun Reference
  Implementation) and copy the JAR containing the
 API and
  implementation of the JMX specification to:
  ${catalina.home}/bin/jmx.jar
 


 
  Tomcat exits after logging this message. I
 searched the web for
  information regarding this issue and I did see
 someone else posting a
  similar question, but there was no response. I
 downloaded and tried
  running version 5.0.29, but the same thing is
 happening. I searched
  through the archive, but I don't see any
 information regarding this
  issue.
 
  I have this sinking feeling that the answer is
 obvious, or the answer is
  posted in place that I have not searched yet.
 Thanks in advance.
 
  I'm running SUSE Linux 9.0 with an unmodified
 2.4.21 kernel. 
 
 
 
 

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




__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


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



Re: AW: {an alternative}Re: connection pooling

2004-11-05 Thread sven morales
   I thought I have read back in this same thread that
he had two Engine under a Service ?  Only one
Engine is allowed per Service to fix one problem. 

--- Nick Pellow [EMAIL PROTECTED] wrote:

 HI Eric,
 
 
 I have seen the same error your are getting. I am
 using tomcat 5.0.28.
 Make sure that you have removed the expanded war
 directories, from
 webapps and ${CATALINA_HOME}/work before
 restarting.
 
 Also look inside
 those other context.xmls inside
 ${CATALINA_HOME}/conf/Catalina/localhost
 and make sure that they do not define a context with
 path=/wms.
 
 Cheers,
 nick.
 
 -Ursprungliche Nachricht-
 Von: Eric Wulff [mailto:[EMAIL PROTECTED]
 Gesendet: Freitag, 5. November 2004 07:35
 An: Atishay Kumar
 Cc: Tomcat Users List
 Betreff: Re: {an alternative}Re: connection pooling
 
 
 Atishay, the DefaultContext does work once I
 comment out the other
 Engine element.  You mentioned that means something
 is wrong with my
 Context?  So what next?
 
 many thx
 Eric
 
 
 On Thu, 4 Nov 2004 22:21:57 -0800, Eric Wulff
 [EMAIL PROTECTED] wrote:
  This did not work.  In looking for the Engine
 element you speak of I
  didn't find it exactly.  I did find it with it
 with an extra attribute
  Engine name=Standalone... jvmRoute=jvm1. 
 Furthermore, this
  element was nested within the Service element
 and there is another
  Engine name=Catalina... element.  I tried
 with and without the
  jvmRoute element.  No success.  Same exception.
 
  Eric
 
  On Fri, 5 Nov 2004 11:20:26 +0530, Atishay Kumar
 
 
  [EMAIL PROTECTED] wrote:
   If adding Resouce name .../ did not
 work..then try following
  
   On Thu, 4 Nov 2004 19:46:30 -0800, Eric Wulff
 [EMAIL PROTECTED] wrote:
Hi all, I'm returning to a problem I couldn't
 solve the first time,
about two months ago, and still can't seem to
 figure out.  I
 can't get
a db connection using connection pools.  I
 get the exception listed
below, same as so many have previously, but
 nothing I've found seems
to works.  Below are my specs.  Anyone with
 concrete advise/direction
on how to get
this working?
   
Also, I noticed in many solutions the
 suggestion was made to edit the
myapp.xml file located at
 CATALINA_HOME/conf/Catalina/localhost/.
However, there is no myapp.xml in that
 directory on my server. Just 2
.xml's related to other applications and a
 manager.xml which I'm not
sure what it's related to.
   
OS: FC2
Tomcat 5.0.28
   
exception:
 org.apache.commons.dbcp.SWLNestedException: Cannot
 create
JDBC driver class '' for connect URL 'null'
   
WEB-INF web xml: code inserted AFTER all
 servlet mappings...
   the following shld be  in
   web-app
resource-ref
   descriptionMy Datasource/description
   
 res-ref-namejdbc/wms/res-ref-name
   
 res-typejavax.sql.DataSource/res-type
   
 res-authContainer/res-auth
/resource-ref
   /web-app !-- I am sure u have this right--
   
server xml(tried this with and without a
 Resource name)...
   The following shld be under
   Engine name=Standalone
 defaultHost=localhost debug=0
  
   REplace
Context path=/wms docBase=wms debug=0
 reloadable=true
   with
   DefaultContext
   Resource name=jdbc/wms auth=Container
 type=javax.sql.DataSource/
ResourceParams name=jdbc/wms
  parameter
nameusername/name
valuewhatever/value
  /parameter
  parameter
namepassword/name
valuewhatever/value
  /parameter
  parameter
namedriverClassName/name
   
 valuecom.informix.jdbc.IfxDriver/value
  /parameter
  parameter
nameurl/name
   

valuejdbc:informix-sqli://foo.bar.com:somePort/dbName:INFORMIXSER
 VER=serverName/value
/parameter
/ResourceParams
   replace
  /Context
   with
   /DefaultContext
   !--
   If this works them there is something wrong
 with your context. we
   shall figure that out later but first
 DefaultContext should work!!
   restart tommy after making changes.
   hope it works!!
   --
   
I have the following jars in my
 CATALINA_HONE/common/lib and I also
tried putting the db driver and
 commons-collections, dbcp,
 and pool in
my WEB-INF/lib with no success.  They are all
 mode 644.
   
ant.jar
ant-launcher.jar
commons-collections-3.1.jar
commons-dbcp-1.2.1.jar
commons-el.jar
commons-pool-1.2.jar
ifxjdbc.jar (the necessary informix driver)
jar.txt
jasper-compiler.jar
jasper-runtime.jar
jsp-api.jar
mysql-connector-java-3.0.15-ga-bin.jar
naming-common.jar
naming-factory.jar
naming-java.jar
naming-resources.jar
servlet-api.jar
   
On Fri, 8 Oct 2004 11:45:59 +0530, Atishay
 Kumar
[EMAIL PROTECTED] wrote:
 hi,
  i am not sure but you may try downloading
 latest jar files for
 following froom tomcat site 

Re: META-INF/context.xml not overwriting Catalina/localhost/webapp.xml after redeploy.

2004-11-05 Thread sven morales
 We keep forgetting that Before the war gets
unpacked, Tomcat checks if there is an existing
directory with the same name as the war file or same
name as the path attribute of the Context file,
and if it exist the war file does not get expanded and
it just attempts to work of of off the existing
directory (with same name as the war file).  At least
this has been my experience with tomcat since 4.0.x
 As suggested by others, to deploy a war file,
make sure there are no directory in webapps that has
same name as the war file. In addition, you also want
to delete the work area under  tomcat/work/xx/xx 
where xx is the directory where tomcat puts the
working classes, cache and resources.

  
--- Nick Pellow [EMAIL PROTECTED] wrote:

 Hi,
 
 I am using a META-INF/context.xml in each of my
 webapps to define
 Resource-Links to global resources defined in my
 server.xml. (Tomcat 5.0.28)
 
 Upon the initial deployment of the war, tomcate
 creates a copy of this
 context.xml
 under $CATALINA_HOME/conf/[enginename]/[hostname]/
 called webappname.xml .
 
 When i then redeploy the same webapp ('webappname'),
 with a
 META-INF/context.xml,

$CATALINA_HOME/conf/[enginename]/[hostname]/webappname.xml
  does not get
 updated.
 Is there a means to enable this under Tomcat 5.0.28,
 or is this a security
 feature?
 
 Cheers,
 Nick.
 
 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: JNDI DataSource GlobalResources problem

2004-10-26 Thread sven morales
 Stever Kirk:  Did I read that right, Resource
nested inside GlobaNamingResource is not visible to
the webapp?  I thought that was the whole purpose to
make it visible globally naming resources under
GlobalNamingResource noh?  If Im wrong I stand
corrected.




__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Re: Apache, Tomcat and mod_jk2 - question about layout

2004-10-26 Thread sven morales
  In the apache side httpd.conf  have something like
this

Location myapp/WEB-INF/
AlloOverride None
deny from all
/Location

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Context attributes Tomcat5

2004-10-26 Thread sven morales
 I am doing this in my code to launch Tomcat 5

 host.install(, new URL(warFile));
Context context = host.findDeployedApp();
((StandardContext)context).setWorkDir(workDir +
/localhost);
   
((StandardContext)context).setDefaultWebXml(web.xml);

This results in 
?xml version='1.0' encoding='utf-8'?
Context defaultWebXml=web.xml
docBase=/u02/embed/blog.war path=
workDir=/tmp/tomcat/localhost
/Context

But looking at the docs, at 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/printer/context.html
 only list the standard and common attributes.  It is
not working the way I have it, so am I picking the
wrong API ?



__
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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



Embedded Tomcat5 - access to Context file

2004-10-25 Thread sven morales
1.  How do I access the context file, the ones
separated from server.xml and put in the
tomcat5/conf/engine/localhost/ ?

2. Or if embedded in the war file, how to access it
from the war file's  META-INF/contexfile.xml  ?  I
need access to Resource where the datasource and
jndi is normally defined.

3.  Similarly how to access the
myapplications/WEB-INF/web.xml ?  In this web.xml it
references jdbc/Taglib but it is stored usually at
server.xml or the new fragment contextfile.xml.

I am looking at StandardContext,  Context and
NamingResources api and am just not clear how to go
about  setting it up to look for example jdbc/Taglib
defined in the contextfile.xml.  My understanding is
the Digester reads these xml file, but how do I get
hold of the results it parses?   Furthermore, is there
a different Digester instance that reads the
server.xml, web.xml, and the contextfile.xml? 
Any help in how to put these together mixing both
config  xml files and programmatically?

Thanks in advance.



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



CLASSPATH Classloaders - Embedded Tomcat

2004-10-23 Thread sven morales
 What are the CLASSPATH and Classloaders used when
attempting to use the Embedded class to get a Tomcat 5
working?
On a regular bundled Tomcat5, the catalina/common/lib,
catalina/server/lib, catalina/common/endorsed are
automatically searched for jars and loads them. 
Furthermore environment variables such as
CATALINA_HOME, JAVA_HOME and others set in
catalina.sh.  How are these handled with Embedded?

embedded is not even an option to catalina.sh of
Tomcat 5 anymore?  fyi, I have tomcat 5.0.28. 
Embedded api docs then is wrong as it mentions this
option to catalina.sh

Furthermore, the -security option, takes a different
path in the script catalina.sh and one can not use
these features with embedded?  I am just trying to
clarify.  
If one got a code to share how to programmatically use
this Embedded class and deploy a war file, please post
it so we can learn from you.  Please Help.  Thanks.



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



Embedded Tomcat + JMX

2004-10-22 Thread sven morales
   I tried the Embedded class to work with Tomcat5
from the jakarta-tomcat-5.0.28-embed.tar.gz and am not
getting very far, ie not able to deploy even the
/manager webapp included in the webapps/.   
   I also tried the JMX style using an xml file (not
exactly sure why is this better than starting with the
startup.sh from a full blown Tomcat5) and coming to a
slightly different difficulties.  I used the
minmgr.xml (attached file)from Wrox book Tomcat5 and
am not able to log in because it seems to use
JAASRealm even though I do not see it define under any
mbean. As matter of factly it is defined to use
MemmoryRealm.  
1) So where does it gets this JAASRealm?
snippet error from running:

await:
  [jmx] Oct 22, 2004 11:49:26 AM
org.apache.catalina.realm.JAASRealm authenticate
  [jmx] SEVERE: Unexpected error
  [jmx] java.lang.SecurityException: Unable to
locate a login configuration



2) The tomcat-users.xml is slightly different from
what came with a regular Tomcat 5. Specifically using
name as oppose to username.
the tomcat-users.xml that came with the tarball:

  1 !--
  2   NOTE:  By default, no user is included in
the manager role required
  3   to operate the /manager web application. 
If you wish to use this app,
  4   you must define such a user - the username
and password are arbitrary.
  5 --
  6 tomcat-users
  7   user name=tomcat password=tomcat
roles=tomcat /
  8   user name=role1  password=tomcat
roles=role1  /
  9   user name=both   password=tomcat
roles=tomcat,role1 /
 10 /tomcat-users

Snippet of minmgr.xml specifically for the Realm:

mbean name=${domain}:type=Engine
 code=org.apache.catalina.core.StandardEngine
  modeler=true
 attribute name=name
value=Tomcat-Min-Standalone/
 attribute name=baseDir value=${tomcat.home}/
 attribute name=defaultHost value=localhost/
/mbean
mbean name=${domain}:type=Realm
 code=org.apache.catalina.realm.MemoryRealm 
 modeler=true
  attribute name=pathname
   value=${tomcat.home}/conf/tomcat-users.xml /   
/mbean
mbean name=${domain}:type=Connector,port=9080
 code=org.apache.coyote.tomcat5.CoyoteConnector
   modeler=true
 attribute name=port value=9080 /






__
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail project name=min-tc5 default=start basedir=.
  property file=${user.home}/build.properties/
  property file=build.properties/
  property name=tomcat.home location=. /
  property name=tomcat.webapps location=${tomcat.home}/webapps /
  path id=tomcatCP-extra / 
  target name=init unless=init.done
path id=tomcatCP 
  path refid=tomcatCP-extra/
  fileset dir=${tomcat.home}/lib includes=*.jar/
  pathelement  path=${tomcat.home}/conf/
/path
taskdef resource=org/apache/commons/modeler/ant/ant.properties
 classpathref=tomcatCP /
property name=init.done value=true/
   /target
  property name=domain value=Tomcat-Min-Standalone /
  property name=jsr77Domain value=Tomcat-Min-Standalone /
   target name=run depends=init
description=Start tomcat as an mbean, no server.xml
modelerRegistry resource=org/apache/catalina/mbeans/mbeans-descriptors.xml /
modelerRegistry resource=org/apache/catalina/loader/mbeans-descriptors.xml /
mkdir dir=${tomcat.home}/work/${domain}/ /
jmx-service
   mbean name=${domain}:type=Server 
  code=org.apache.catalina.core.StandardServer
  modeler=true
 attribute name=port value=9005/
   /mbean
   mbean name=${domain}:type=Service 
  code=org.apache.catalina.core.StandardService
  modeler=true
 attribute name=name value=Tomcat-Min-Standalone/
   /mbean
   mbean name=${domain}:type=Engine 
  code=org.apache.catalina.core.StandardEngine
  modeler=true
 attribute name=name value=Tomcat-Min-Standalone/
 attribute name=baseDir value=${tomcat.home}/
 attribute name=defaultHost value=localhost/
   /mbean
   mbean name=${domain}:type=Realm 
  code=org.apache.catalina.realm.MemoryRealm modeler=true
 attribute name=pathname
value=${tomcat.home}/conf/tomcat-users.xml /
   /mbean
   mbean name=${domain}:type=Connector,port=9080 
  code=org.apache.coyote.tomcat5.CoyoteConnector
  modeler=true
  attribute name=port value=9080 /
   /mbean
   mbean name=${jsr77Domain}:j2eeType=WebModule,name=//localhost/,J2EEApplication=none,J2EEServer=none 
  code=org.apache.catalina.core.StandardContext  modeler=true
 attribute name=docBase value=${tomcat.webapps}/ROOT /
 attribute name=privileged value=true /
 attribute name=engineName value=${domain} /
   /mbean

   mbean 

RE: Embedded Tomcat + JMX

2004-10-22 Thread sven morales
  The attached minmgr.xml  clearly shows no other
Realm  other than MemoryRealm is set.  And the web.xml
of the stock /manager  webapp set the authentication
to BASIC.
So please if you can check the attached minmgr.xml
file and see how it possibly uses JAASRealm? 
I restarted again and see these logged:
[jmx-service] INFO: Starting Coyote HTTP/1.1 on
http-9080
[jmx-service] Oct 22, 2004 12:17:08 PM
org.apache.catalina.core.StandardEngine start
[jmx-service] INFO: Starting Servlet Engine: Apache
Tomcat/5.0.28
[jmx-service] Oct 22, 2004 12:17:08 PM
org.apache.catalina.core.StandardHost start
[jmx-service] INFO: XML validation disabled
[jmx-service] Oct 22, 2004 12:17:09 PM
org.apache.catalina.realm.JAASRealm setContainer
[jmx-service] INFO: Setting JAAS app name Catalina
[jmx-service] Oct 22, 2004 12:17:10 PM
org.apache.catalina.realm.RealmBase start
[jmx-service] INFO: This Realm has already been
started
[jmx-service] Oct 22, 2004 12:17:10 PM
org.apache.coyote.tomcat5.CoyoteConnector start


 
--- Shapira, Yoav [EMAIL PROTECTED] wrote:

 
 Hi,
 Maybe ask the book's author ;)
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 -Original Message-
 From: sven morales [mailto:[EMAIL PROTECTED]
 Sent: Friday, October 22, 2004 3:12 PM
 To: [EMAIL PROTECTED]
 Subject: Embedded Tomcat + JMX
 
I tried the Embedded class to work with Tomcat5
 from the jakarta-tomcat-5.0.28-embed.tar.gz and am
 not
 getting very far, ie not able to deploy even the
 /manager webapp included in the webapps/.
I also tried the JMX style using an xml file
 (not
 exactly sure why is this better than starting with
 the
 startup.sh from a full blown Tomcat5) and coming to
 a
 slightly different difficulties.  I used the
 minmgr.xml (attached file)from Wrox book Tomcat5
 and
 am not able to log in because it seems to use
 JAASRealm even though I do not see it define under
 any
 mbean. As matter of factly it is defined to use
 MemmoryRealm.
 1) So where does it gets this JAASRealm?
 snippet error from running:
 
 await:
   [jmx] Oct 22, 2004 11:49:26 AM
 org.apache.catalina.realm.JAASRealm authenticate
   [jmx] SEVERE: Unexpected error
   [jmx] java.lang.SecurityException: Unable to
 locate a login configuration
 
 
 
 2) The tomcat-users.xml is slightly different from
 what came with a regular Tomcat 5. Specifically
 using
 name as oppose to username.
 the tomcat-users.xml that came with the tarball:
 
   1 !--
   2   NOTE:  By default, no user is included in
 the manager role required
   3   to operate the /manager web
 application.
 If you wish to use this app,
   4   you must define such a user - the
 username
 and password are arbitrary.
   5 --
   6 tomcat-users
   7   user name=tomcat password=tomcat
 roles=tomcat /
   8   user name=role1  password=tomcat
 roles=role1  /
   9   user name=both   password=tomcat
 roles=tomcat,role1 /
  10 /tomcat-users
 
 Snippet of minmgr.xml specifically for the Realm:
 
 mbean name=${domain}:type=Engine
  code=org.apache.catalina.core.StandardEngine
   modeler=true
  attribute name=name
 value=Tomcat-Min-Standalone/
  attribute name=baseDir value=${tomcat.home}/
  attribute name=defaultHost value=localhost/
 /mbean
 mbean name=${domain}:type=Realm
  code=org.apache.catalina.realm.MemoryRealm
  modeler=true
   attribute name=pathname
value=${tomcat.home}/conf/tomcat-users.xml /
 /mbean
 mbean name=${domain}:type=Connector,port=9080
  code=org.apache.coyote.tomcat5.CoyoteConnector
modeler=true
  attribute name=port value=9080 /
 
 
 
 
 
 
 __
 Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail
 SpamGuard.
 http://promotions.yahoo.com/new_mail
 
 
 
 This e-mail, including any attachments, is a
 confidential business communication, and may contain
 information that is confidential, proprietary and/or
 privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not
 be saved, copied, printed, disclosed or used by
 anyone else.  If you are not the(an) intended
 recipient, please immediately delete this e-mail
 from your computer system and notify the sender. 
 Thank you.
 
 

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




___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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



Embedded Tomcat5 - JAASRealm

2004-10-22 Thread sven morales
  I found a source code from
http://www.vsj.co.uk/articles/display.asp?id=319 
tried it with the jakarta-tomcat-5.0.28-embed.tar.gz
and the /manager sample (after copying it over to this
embed version directory) that comes with Tomcat does
not work.  

1. It seems it defaults to using JAASRealm.  I have to
comment out the search patterns under
security-constraint of the manager webapp to make it
work.
2. The tomcat-users.xml format entries has changed??
From username to name and roles became an attribute
instead of an element?

tomcat-users
  user name=tomcat password=tomcat
roles=tomcat,manager /
  user name=role1  password=tomcat roles=role1 
/
  user name=both   password=tomcat
roles=tomcat,role1 /
/tomcat-users

3.  After I got the /manager working it would not
deploy war files because it is missing the
commons-fileupload-1.0.jar.  Can someone who is a
commiter with Tomcat, please add this jar file with
the  embedded tar ball please.  Furthermore, the
xalan, xerces, and xml-apis jars are not included
either, so should they be added too to same embedded
tarballs?

4.  After adding this commons-fileupload-1.0.jar, I
still could not deploy a cocoon.war, jetspeed.war
files as it complains about a ...
 
[java] Caused by:
org.apache.commons.logging.LogConfigurationException:
No suitable Log constructor [Ljava.lang.Class;@19e8329
for org.apache.commons.logging.impl.Log4JLogger
(Caused by java.lang.NoClassDefFoundError:
org/apache/log4j/Category)
 [java] at
org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:413)

It seems like whatever commons-logging jar I included
to the classpath, I get this error.



___
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

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