Tomcat 6 and Apache Derby

2009-03-11 Thread Robert K. Vanderhoek

I'm having some trouble getting Apache Derby embedded inside Tomcat 6 so I can 
access a database threw my webapp.  I am receiving the following error in the 
catalina.out log file: /Class Not Found: java.lang.ClassNotFoundException: 
jdbc:derby/.  This is generated in the log when the webapp is accessed.  I have 
set the classpath locally with derbys setEmbeddedCP command.  I am thinking I 
also have to specify the classpath in Tomcat too.  Is this done by modifying 
the server.xml globally or the web.xml for each webapp?  When I look online for 
help, most of what I'm finding says all you have to do is copy the derby.jar to 
$CATALINA_HOME/lib and tomcat will automatically load any jar files it finds, 
is that true?  Any help or feedback on this will be much appreciated, thank you.

Software running on server
- RHEL4u3
- Java6u7
- Tomcat6.0
- Derby 10.4.2.0

Directory structure
- /usr/apache-tomcat-6.0.18 (CATALINA_HOME)
- /usr/apache-tomcat-6.0.18/lib/derby.jar (copied in from DERBY_HOME/lib, 
figuring tomcat would automatically load it on startup for each webapp)
- /usr/java/jdk1.6.0_07 (JAVA_HOME)
- /usr/db-derby-10.4.2.0-bin (DERBY_HOME)

Robert



using derby.jar with tomcat 6

2009-03-09 Thread Robert K. Vanderhoek

I am receiving the following error in the catalina.out log file: /Class Not 
Found: java.lang.ClassNotFoundException: jdbc:derby/.  This is generated in the 
log when the webapp is accessed.  I have set the classpath locally with derbys 
setEmbeddedCP command.  I am thinking I also have to specify this in Tomcat 
too.  Is this done by modifying the server.xml globally or the web.xml for each 
webapp?  Any help or feedback on this will be much appreciated, thank you.

Software running on server
- RHEL4u3
- Java6u7
- Tomcat6.0
- Derby 10.4.2.0

Directory structure
- /usr/apache-tomcat-6.0.18 (CATALINA_HOME)
- /usr/apache-tomcat-6.0.18/lib/derby.jar (copied in from DERBY_HOME/lib, 
figuring tomcat would automatically load it on startup for each webapp)
- /usr/java/jdk1.6.0_07 (JAVA_HOME)
- /usr/db-derby-10.4.2.0-bin (DERBY_HOME)

Robert



Re: The requested resource (/manager/) is not available.

2008-09-09 Thread Robert K. Vanderhoek
Check to see if your webapps directory contains the /manager and 
/tomcat-docs folders.  Also make sure your server.xml file is pointing 
to the /webapps directory as its starting place.


[EMAIL PROTECTED] wrote:

See Thread at: http://www.techienuggets.com/Detail?tx=6039 Posted on behalf of 
a User

try:
/manager/html instead!


In Response To: 


Hi list,

I'm trying to use the manager webapp for the custom Ant tasks on Tomcat 
6.0.9 with Sun Solaris 10. I've gone into the tomcat-users.xml file and 
created a username/password admin/admin that has the manager role. 
However, when I try to connect to the manager webapp by pointing my 
browser to http://localhost:port/manager, I get the error:


_The requested resource (/manager/) is not available.

_I know I must be missing something obvious. I've searched Google for 
suggestions and I've read the Manager How-To online but to no avail. 
Perhaps I am missing some directories in my Tomcat installation? When I 
try to navigate to http://localhost:port/tomcat-docs I receive the same 
error.


Is it possible I have a directory in the wrong place? I doubt that would 
be the case because I simply downloaded the Tomcat 6.0.9 core 
distribution and followed the instructions. Do I need the deployer or 
something?


Thanks,
Dan

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.

  


--
Robert K. Vanderhoek
(603) 772-2305
Computer Technician
IT Department
Connor  Connor
16 Kingston Rd Unit #5
Exeter, NH 03833


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Can you help me to figure out what is ia64?

2008-09-08 Thread Robert K. Vanderhoek
This is a copy and paste from wikipedia.  *Itanium* is the brand name 
for 64-bit Intel http://en.wikipedia.org/wiki/Intel microprocessors 
http://en.wikipedia.org/wiki/Microprocessor that implement the *Intel 
Itanium architecture* (formerly called *IA-64*). Intel has released two 
processor families using the brand: the original *Itanium* and the 
*Itanium 2*.


Nar Karapetyan wrote:
There is a ia64 dll for tomcat native library for a windows 64 platform. 
I used to know amd64 or x64, but unfamiliar with ia64.


What platform is that?

Thank you,
Regards
Nareg Garabedian



  
  


--
Robert K. Vanderhoek
(603) 772-2305
Computer Technician
IT Department
Connor  Connor
16 Kingston Rd Unit #5
Exeter, NH 03833



Re: Tomcat 6 (Unable to find servlet or load servlet jar from a client jar)

2008-09-05 Thread Robert K. Vanderhoek
Thank you all for the help that was the file i needed to find the 
servlet.  I'm just surprised it isn't stressed more to use a web.xml 
file for each webapp since it is so vital.  Thanks again


-Robert

Martin Gainty wrote:

sample web.xmlBR
?xml version=1.0 encoding=ISO-8859-1?BR
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;BR
web-appBR
 display-nameTest for Rob/display-nameBR
 servletBR
  servlet-namebeindxServlet1/servlet-nameBR
  servlet-classpackage.class/servlet-classBR
  init-paramBR
 param-nameorg.apache.velocity.properties/param-nameBR
 param-valuebeindxServlet1.properties/param-valueBR
  /init-paramBR
 /servletBR
servlet-mappingBR
BR
servlet-namebeindxServlet1/servlet-nameBR
url-pattern/beindxservlet/url-patternBR
 welcome-file-listBR
  welcome-fileindex.jsp/welcome-fileBR
 /welcome-file-listBR
 taglibBR
  taglib-uri/WEB-INF/struts-bean/taglib-uriBR
  taglib-location/WEB-INF/struts-bean.tld/taglib-locationBR
 /taglibBR
/web-appBR
BR
MartinBR 
__ BR
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 



Date: Wed, 3 Sep 2008 16:00:30 -0400
From: [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject: Re: Tomcat 6 (Unable to find servlet or load servlet jar from a client 
jar)






  



Thank you for responding to the post.  I have looked at the web.xml in
the /usr/apache-tomcat-6.0.18/conf directory.  I've tried creating my
own web.xml under the /usr/apache-tomcat-6.0.18/webapps/belknap/WEB-INF
directory which i will attach.  It would be greatly appreciated if you
have any advice on changes i should make to it in order to get it to
work, thank you.



Robert



Pid wrote:

  Robert K. Vanderhoek wrote:
  
  
Unable to find servlet or load servlet jar from a client jar, can this

be done with the default conf files?  Do i have to create a web.xml file
for each webapp?

  
  Yes, if you want to use servlets.

web.xml provides the means to map the servlet(s) to url patterns.


p



  
  
I'm using jar files created for Apache Jserv back in

1998 probably using the servlet specification 2.1 could this be part of
the problem?

Software running on server
- RHEL4u3
- Java6u7
- Tomcat6.0

Directory structure
- /usr/apache-tomcat-6.0.18 (CATALINA_HOME)
- /usr/apache-tomcat-6.0.18/webapps/belknap (webapp folder)
- /usr/apache-tomcat-6.0.18/webapps/belknap/*.gif, *.html, *.jar (client)
-
/usr/apache-tomcat-6.0.18/webapps/belknap/WEB-INF/lib/beindxServlet1.jar
(servlet)

Unpacked beindxServlet1.jar
- /beindxservlet/beindxServlet1.class
- /META-INF/

Thank you,

Robert


  
  
-

To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.

  




  


--
Robert K. Vanderhoek
(603) 772-2305
Computer Technician
IT Department
Connor  Connor
16 Kingston Rd Unit #5
Exeter, NH 03833


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 6 (Unable to find servlet or load servlet jar from a clientjar)

2008-09-05 Thread Robert K. Vanderhoek

thanks again

Caldarale, Charles R wrote:

From: Robert K. Vanderhoek [mailto:[EMAIL PROTECTED]
Subject: Re: Tomcat 6 (Unable to find servlet or load servlet
jar from a clientjar)

I'm just surprised it isn't stressed more to use a web.xml
file for each webapp since it is so vital.



Read the servlet spec - a prerequisite for using any servlet container.  The 
Tomcat doc avoids duplicating information contained in the spec.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.

  


--
Robert K. Vanderhoek
(603) 772-2305
Computer Technician
IT Department
Connor  Connor
16 Kingston Rd Unit #5
Exeter, NH 03833



Tomcat 6 (Unable to find servlet or load servlet jar from a client jar)

2008-09-03 Thread Robert K. Vanderhoek
Unable to find servlet or load servlet jar from a client jar, can this 
be done with the default conf files?  Do i have to create a web.xml file 
for each webapp?  I'm using jar files created for Apache Jserv back in 
1998 probably using the servlet specification 2.1 could this be part of 
the problem?


Software running on server
- RHEL4u3
- Java6u7
- Tomcat6.0

Directory structure
- /usr/apache-tomcat-6.0.18 (CATALINA_HOME)
- /usr/apache-tomcat-6.0.18/webapps/belknap (webapp folder)
- /usr/apache-tomcat-6.0.18/webapps/belknap/*.gif, *.html, *.jar (client)
- 
/usr/apache-tomcat-6.0.18/webapps/belknap/WEB-INF/lib/beindxServlet1.jar 
(servlet)


Unpacked beindxServlet1.jar
- /beindxservlet/beindxServlet1.class
- /META-INF/

Thank you,

Robert


Re: Tomcat 6 (Unable to find servlet or load servlet jar from a client jar)

2008-09-03 Thread Robert K. Vanderhoek
Thank you for responding to the post.  I have looked at the web.xml in 
the /usr/apache-tomcat-6.0.18/conf directory.  I've tried creating my 
own web.xml under the /usr/apache-tomcat-6.0.18/webapps/belknap/WEB-INF 
directory which i will attach.  It would be greatly appreciated if you 
have any advice on changes i should make to it in order to get it to 
work, thank you.


Robert

Pid wrote:

Robert K. Vanderhoek wrote:
  

Unable to find servlet or load servlet jar from a client jar, can this
be done with the default conf files?  Do i have to create a web.xml file
for each webapp?



Yes, if you want to use servlets.
web.xml provides the means to map the servlet(s) to url patterns.


p



  

I'm using jar files created for Apache Jserv back in
1998 probably using the servlet specification 2.1 could this be part of
the problem?

Software running on server
- RHEL4u3
- Java6u7
- Tomcat6.0

Directory structure
- /usr/apache-tomcat-6.0.18 (CATALINA_HOME)
- /usr/apache-tomcat-6.0.18/webapps/belknap (webapp folder)
- /usr/apache-tomcat-6.0.18/webapps/belknap/*.gif, *.html, *.jar (client)
-
/usr/apache-tomcat-6.0.18/webapps/belknap/WEB-INF/lib/beindxServlet1.jar
(servlet)

Unpacked beindxServlet1.jar
- /beindxservlet/beindxServlet1.class
- /META-INF/

Thank you,

Robert





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.

  


--
Robert K. Vanderhoek
(603) 772-2305
Computer Technician
IT Department
Connor  Connor
16 Kingston Rd Unit #5
Exeter, NH 03833

servlet-mapping

servlet-namebeindxServlet1/servlet-name
url-pattern/beindxservlet/url-pattern

/servlet-mapping

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]