Custom Tag error

2004-08-19 Thread Java Techie
Hi,
Deploying my first Custom Tag Example; 
.tld, .jsp, .class are in place..any other
configuration reqd?
Thanks.

org.apache.jasper.JasperException: /hello.jsp(9,16)
Unable to load tag handler class Hello for tag
sample:hello

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:357)



___
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

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



Re: Custom Tag error

2004-08-19 Thread Java Techie
k. thx for the reply.
.jsp is in the app. root folder.
.tld is in same folder.
.class is also in same folder/tried in classes folder.
..not aware of .tld mappings...in web.xml
ref:
http://www.onjava.com/pub/a/onjava/2000/12/15/jsp_custom_tags.html
Thanks.

tld file.

?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE taglib PUBLIC -//Sun Microsystems,
Inc.//DTD JSP Tag Library 1.1//EN
http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd;
taglib
tlibversion1.0/tlibversion
jspversion1.1/jspversion
shortnameoreillySamples/shortname
infoOReilly Sample Tag library/info
  !--A Simple tag --
  tag
namehello/name
tagclassHello/tagclass
  !--Body content can have a value of 
 empty: no body 
  JSP: body that is evaluated by container, then
possibly processed by the tag 
  tagdependent: body is only processed by tag; JSP
in body is not evaluated.
   --
bodycontentempty/bodycontent
info
This is a simple hello tag.
/info
  !-- Optional attributes  --
  !-- personalized name --
  attribute
  namename/name
  requiredfalse/required
  /attribute
/tag
/taglib

--- QM [EMAIL PROTECTED] wrote:

 On Thu, Aug 19, 2004 at 03:17:50PM -0700, Java
 Techie wrote:
 : Deploying my first Custom Tag Example; 
 : .tld, .jsp, .class are in place..any other
 : configuration reqd?
 
 Details work wonders.
 Instead of saying in place, why not show:
 - where's the class file(s)
 - where's the tld(s)
 - the TLD mapping(s) in web.xml
 
 -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! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



ClassNotFoundException: OracleDriver

2004-08-12 Thread Java Techie
Hi,
in my struts-config:
im using

data-sources
data-source
type=org.apache.commons.dbcp.BasicDataSource
key=UserDB

set-property property=driverClassName
value=oracle.jdbc.driver.OracleDriver/
set-property property=url
value=jdbc:oracle:thin:@myPC:1521:newDB/

set-property property=username value=user1/
set-property property=password value=pass1/

/data-source
/data-sources
--

The following error occurs:
 27:57[ERROR]
27:57org.apache.commons.dbcp.SQLNestedException:
Cannot load JDBC
driver class 'oracle.jdbc.driver.OracleDriver', cause:
java.lang.ClassNotFoundException:
oracle.jdbc.driver.OracleDriver
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1340)
  at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1189)
  at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
  at java.lang.Class.forName0(Native Method)
  at java.lang.Class.forName(Class.java:140)
--

I have added the zip
file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the
classpath; what else do i need to give.

Thanks.



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



RE: ClassNotFoundException: OracleDriver

2004-08-12 Thread Java Techie
David,
Thanks. Actually i had classes102.zip and
nls_charset10.zip.
i renamed them to classes12.jar and nls_charset12.zip
and the error was gone.[is this ok..]
but the values are still not inserted in the DB.[no
error].. how is this possible.. do i need to have the
actual classes12 and the charset.. plz advice..
--- David Short [EMAIL PROTECTED] wrote:

 Do you have the Oracle classes .jar (classes12.jar)
 loaded in your
 Tomcat\common\lib directory.  Actually the file, as
 it comes from Oracle, is
 a .zip file (classes12.zip).  Just rename it.  It
 should reside in your
 C:\OraHome\jdbc\lib directory.  Move the
 nls_charset12.zip file over as
 well.
 
 -Original Message-
 From: Java Techie [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 12, 2004 2:13 PM
 To: [EMAIL PROTECTED]
 Subject: ClassNotFoundException: OracleDriver
 
 
 Hi,
 in my struts-config:
 im using
 
 data-sources
 data-source
 type=org.apache.commons.dbcp.BasicDataSource
 key=UserDB
 
 set-property property=driverClassName
 value=oracle.jdbc.driver.OracleDriver/
 set-property property=url
 value=jdbc:oracle:thin:@myPC:1521:newDB/
 
 set-property property=username value=user1/
 set-property property=password value=pass1/
 
 /data-source
 /data-sources
 --
 
 The following error occurs:
  27:57[ERROR]
 27:57org.apache.commons.dbcp.SQLNestedException:
 Cannot load JDBC
 driver class 'oracle.jdbc.driver.OracleDriver',
 cause:
 java.lang.ClassNotFoundException:
 oracle.jdbc.driver.OracleDriver
   at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
 der.java:1340)
   at

org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
 der.java:1189)
   at

java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:140)
 --
 
 I have added the zip
 file(D:\Oracle\Ora8i\jdbc\lib\classes102.zip) to the
 classpath; what else do i need to give.
 
 Thanks.
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail - 50x more storage than other providers!
 http://promotions.yahoo.com/new_mail
 

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



Tomcat as Win2k service

2004-08-04 Thread Java Techie
Hi,
I am using Tomcat5 on win2k Professional.
I want to use it as a windows service.

Please help.

Thanks.
Yogesh



__
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

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



Re: Tomcat as Win2k service

2004-08-04 Thread Java Techie

Thanks for replies.
Now I can see it as a service, but when i try to start
it it says Windows cant start the service... If its a
non microsoft service... and refer the service
specific error code 0

Thanks.

--- Java Techie [EMAIL PROTECTED] wrote:

 Hi,
 I am using Tomcat5 on win2k Professional.
 I want to use it as a windows service.
 
 Please help.
 
 Thanks.
 Yogesh
 
 
   
 __
 Do you Yahoo!?
 Yahoo! Mail - 50x more storage than other providers!
 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]



Error stating Tomcat5

2004-05-25 Thread Java Techie
Hi,
 I got a problem while starting tomcat5 on Win2k,
jre1.3.
 
 Unsuported JNI version 65537
 [2004-05-23 19:09:58] [770  prunsrv.c] [error]
 Failed initializing 
 java c:\tomcat\tomcat5\bin\bootstrap.jar
 [2004-05-23 19:09:58] 
 
 and therefore it will also not run as a service.
 
 can anyone help?
 
 Thanks.




__
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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