Tomcat doesn't start

2003-11-05 Thread Didier Wiroth
Hi,
I've created a custom server.xml when I try to start tomcat, tomcat fails
with this output:

Catalina.start: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte
UTF-8 sequence.
java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1548)
at org.apache.catalina.startup.Catalina.start(Catalina.java:449)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

What does that mean?
Thanks


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



RE: Tomcat doesn't start

2003-11-05 Thread Didier Wiroth
It's ok now well I've opened the file, it didn't like the tabs characters.
I've removed them and now it works

 -Original Message-
 From: Joaquin Corchero [mailto:[EMAIL PROTECTED] 
 Sent: 05 November 2003 12:14
 To: Tomcat Users List
 Subject: Re: Tomcat doesn't start
 
 
 Can you send a copy of the server.xml???
 
 Anyway check that you didn't introduce any character at the 
 begining of the file
 
 
 - Original Message - 
 From: Didier Wiroth [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Wednesday, November 05, 2003 9:48 AM
 Subject: Tomcat doesn't start
 
 
  Hi,
  I've created a custom server.xml when I try to start tomcat, tomcat 
  fails with this output:
 
  Catalina.start: java.io.UTFDataFormatException: Invalid byte 1 of 
  1-byte UTF-8 sequence.
  java.io.UTFDataFormatException: Invalid byte 1 of 1-byte 
 UTF-8 sequence.
  at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown
 Source)
  at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
  at 
 org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
  at 
 org.apache.xerces.impl.XMLEntityScanner.scanContent(Unknown
  Source)
  at 
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanContent(Unkn
  own
  Source)
  at
 
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment
 ContentDispatc
  her.dispatch(Unknown Source)
  at 
  
 org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unk
  nown
  Source)
  at 
 org.apache.xerces.parsers.XML11Configuration.parse(Unknown
  Source)
  at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
 Source)
  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)
  at 
 org.apache.commons.digester.Digester.parse(Digester.java:1548)
  at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:449)
  at 
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
  at 
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39
  )
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessorImpl
  .java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at 
  org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 
  What does that mean?
  Thanks
 
 
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Tomcat oracle 9 question

2003-11-04 Thread Didier Wiroth
Hi, 

We have windows 2000 server running oracle 9.2.0.1.

I've installed a freebsd machine running tomcat 4.1.27 which has the
following config in server.xml:
start snip--
Context className=org.apache.catalina.core.StandardContext
cachingAllowed=true

charsetMapperClass=org.apache.catalina.util.CharsetMapper
cookies=true crossContext=false debug=1
 displayName=Apache-Axis
docBase=our_application
mapperClass=org.apache.catalina.core.StandardContextMapper
 path=/our_application privileged=false
reloadable=false swallowOutput=false useNaming=true

wrapperClass=org.apache.catalina.core.StandardWrapper
Logger
className=org.apache.catalina.logger.FileLogger
prefix=localhost_our_application_log. suffix=.txt
timestamp=true/
Resource name=jdbc/myoracle auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/myoracle
parameter
namefactory/name

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

valueoracle.jdbc.driver.OracleDriver/value
/parameter
parameter
nameurl/name

valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value
/parameter
parameter
nameusername/name
valuexyz/value
/parameter
parameter
namepassword/name
valuexyz/value
/parameter
parameter
namemaxActive/name
value80/value
/parameter
parameter
namemaxIdle/name
value40/value
/parameter
parameter
namemaxWait/name
value1/value
/parameter
/ResourceParams
/Context
--end snip -
I've installed the jdk1.4 oracle 9.2.0.1 jdbc drivers in the webapplication
WEB-INF/lib directory
1) ojdbc14.jar
2) ocrs12.zip (which I also copied to ocrs12.jar to be sure both are
present)

The web.xml of the webapplication has the following lines: 
-start snip-
resource-ref
descriptionmysql connection/description
res-ref-namejdbc/myoracle/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
-stop snip

Here is stdout.log
start snip
Apache Tomcat/4.1.27
WebappClassLoader:
validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourdatabase/WEB-INF/lib
/servlet.jar) - jar not
loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class
NoKey
getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in
this Context
NoKey
- (null) :  javax.naming.NameNotFoundException: Name NoKey is not bound in
this Context
-stop snip

Unfortunately it doesn't work :-( there are no database connections. Do I
also need to install an oracle 9i client (I don't hope because freebsd
doesn't have an available client)

Thanks for any kind of help
Didier


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



RE: Tomcat oracle 9 question

2003-11-04 Thread Didier Wiroth
Hi, I've copied the drivers also to common/lib, this didn't help.

I would like to specify this:
I have a working config on a windows 2000 server which uses:
Oracle 9.2.0.1
Tomcat 4.1.24
Java j2sdk1.4.1_03
+ our webapplication
It works here no problem

What I did is installed a test freebsd box with:
Tomcat 4.1.27
Java jdk-1.4.1p4_1

I have copied from the windows box the webapplication to the freebsd box.
I have copied the context stuff from server.xml (windows) to the freebsd
server.xml (see my previous post)
I have adapted all path related stuff.
I've redeploied the webservices with ant, no error messages

When I launch a webpage (on the freebsd tomcat server) from our
webapplication that needs to query the database, I get the following error
code in the browser: 
AxisFault : javax.naming.NameNotFoundException: Name NoKey is not bound in
this Context 

Thanks
Didier





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



RE: Tomcat oracle 9 question

2003-11-04 Thread Didier Wiroth
Some more info
The webapplication log file is claiming about this:
Apache Tomcat/4.1.27
WebappClassLoader:
validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourapplication/WEB-INF/
lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3,
NoKey
getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in
this Context
NoKey
- (null) :  javax.naming.NameNotFoundException: Name NoKey is not bound in
this Context
NoKey
getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in
this Context
NoKey
Stopping service Tomcat-Standalone
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27
WebappClassLoader:
validateJarFile(/usr/local/jakarta-tomcat4.1/webapps/ourapplication/WEB-INF/
lib/servlet.jar) - jar not loaded. See Servlet Spec 2.3,
NoKey
getDataType=javax.naming.NameNotFoundException: Name NoKey is not bound in
this Context
NoKey
- (null) :  javax.naming.NameNotFoundException: Name NoKey is not bound in
this Context


 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] 
 Sent: 04 November 2003 18:40
 To: 'Tomcat Users List'
 Subject: RE: Tomcat oracle 9 question
 
 
   You must put your Oracle driver in common/lib also, 
 where tomcat will try to find for its only use. Do that and 
 tell us if went everything ok.
 
  --
  De: Didier Wiroth[SMTP:[EMAIL PROTECTED]
  Responder:  Tomcat Users List
  Enviada:terça-feira, 4 de novembro de 2003 12:11
  Para:   [EMAIL PROTECTED]
  Assunto:Tomcat oracle 9 question
  
  Hi,
  
  We have windows 2000 server running oracle 9.2.0.1.
  
  I've installed a freebsd machine running tomcat 4.1.27 
 which has the 
  following config in server.xml: start 
  snip-- Context 
  className=org.apache.catalina.core.StandardContext
  cachingAllowed=true
  
  charsetMapperClass=org.apache.catalina.util.CharsetMapper
  cookies=true crossContext=false debug=1
   displayName=Apache-Axis 
  docBase=our_application 
  mapperClass=org.apache.catalina.core.StandardContextMapper
   path=/our_application privileged=false 
  reloadable=false swallowOutput=false useNaming=true
  
  wrapperClass=org.apache.catalina.core.StandardWrapper
  Logger 
  className=org.apache.catalina.logger.FileLogger
  prefix=localhost_our_application_log. suffix=.txt
  timestamp=true/
  Resource name=jdbc/myoracle auth=Container 
  type=javax.sql.DataSource/
  ResourceParams name=jdbc/myoracle
  parameter
  namefactory/name
  
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
  namedriverClassName/name
  
  valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
  nameurl/name
  
  valuejdbc:oracle:thin:@ourserver:1521:ourdatabase/value
  /parameter
  parameter
  nameusername/name
  valuexyz/value
  /parameter
  parameter
  namepassword/name
  valuexyz/value
  /parameter
  parameter
  namemaxActive/name
  value80/value
  /parameter
  parameter
  namemaxIdle/name
  value40/value
  /parameter
  parameter
  namemaxWait/name
  value1/value
  /parameter
  /ResourceParams
  /Context
  --end snip -
  I've installed the jdk1.4 oracle 9.2.0.1 jdbc drivers in the 
  webapplication WEB-INF/lib directory
  1) ojdbc14.jar
  2) ocrs12.zip (which I also copied to ocrs12.jar to be sure both are
  present)
  
  The web.xml of the webapplication has the following lines:
  -start snip-
  resource-ref
  descriptionmysql connection/description
  res-ref-namejdbc/myoracle/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
  -stop snip
  
  Here is stdout.log
  start snip
  Apache Tomcat/4.1.27

what I'm I missing

2003-11-04 Thread Didier Wiroth
Hi,

I've created a custom minimum server.xml. I don't understand why I can't use the admin 
 manager webapps anymore. What do I have to add to my server.xml to be able to use 
both applications?

Both applications are still in
tomcat/webapps/admin.xml
tomcat/webapps/manager.xml
tomcat/server/webapps/admin/
tomcat/server/webapps/manager/
These are the default location, I did not change any of these files!

Here is my server.xml file:

Server port=8005 shutdown=SHUTDOWN debug=0
GlobalNamingResources
Resource name=UserDatabase auth=Container 
type=org.apache.catalina.UserDatabase description=User database that can be updated 
and saved/Resource
ResourceParams name=UserDatabase
parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
/parameter
parameter
namepathname/name
valueconf/tomcat-users.xml/value
/parameter
/ResourceParams
/GlobalNamingResources

Service name=Tomcat Standalone
Connector className=org.apache.coyote.tomcat4.CoyoteConnector 
port=8080 minProcessors=5 maxProcessors=75 enableLookups=true/Connector
Engine name=Standalone defaultHost=localhost debug=0
Host name=localhost debug=0 appBase=webapps 
unpackWARs=true autodeploy=true
!--Context path= docBase=ROOT 
debug=0/Context--
/Host
/Engine
/Service
/Server


Many thanks
Didier


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



Re: what I'm I missing

2003-11-04 Thread Didier Wiroth
ok, sorry, problem solved!


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