Sankar Srinivasan

Greenhorn
+ Follow
since Sep 23, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sankar Srinivasan

I am trying to create a database connection pool using the Oracle 9i database, but I am getting following error

I am using tomcat version 5.0.19

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null', cause: No suitable driver

I have copied the classes12.jar to /common/lib folder of tomcat installation.

Following are my entries config files as follows

in server.xml
<GlobalNamingResources>

<Resource name="jdbc/myoracle" auth="Container" type="javax.sql.DataSource"/>

<ResourceParams name="jdbc/myoracle">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>driverClassName</name>
<value>oracle.jdbc.driver.OracleDriver</value>
</parameter>
<parameter>
<name>url</name>
<value>jdbc racle:thin:@10.60.4.25:1521:mydb</value>
</parameter>
<parameter>
<name>username</name>
<value>scott</value>
</parameter>
<parameter>
<name>password</name>
<value>tiger</value>
</parameter>
<parameter>
<name>maxActive</name>
<value>20</value>
</parameter>
<parameter>
<name>maxIdle</name>
<value>10</value>
</parameter>
<parameter>
<name>maxWait</name>
<value>-1</value>
</parameter>
</ResourceParams>

<!-- 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>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>

</GlobalNamingResources>

Following are entries in my application context xml named as jsp-examples.xml

<context path="/jsp-examples" docBase="/jsp-examples" debug="1">
<ResourceLink global="jdbc/myoracle" name="jdbc/myoracle" type="javax.sql.DataSource" />
</context>

I have also included following lines in my WEB-INF/web.xml file

<resource-ref>
<description>Oracle Datasource example</description>
<res-ref-name>jdbc/myoracle</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

Could some please help me in solving this problem, I struggling with this issue for more than a week.

Thanks
Sankar Srinivasan
[ March 17, 2006: Message edited by: Sankar Srinivasan ]
16 years ago
I getting following exception while trying to view JSP page developed using Struts. The page works fine in Tomcat and other application servers. Please help me solving this issue.

Thanks in advance.

Regards
Sankar Srinivasan
---------------------------------------------------------------------------
java.io.IOException: javax.servlet.jsp.JspException: The taglib validator rejected the page: "tag = 'if' / attribute = 'test': An error occurred while parsing custom action attribute "test" with value "${runtimeForm.fromPage == \"synaptris\" && runtimeForm.queryCount == 1 && runtimeForm.permission == \"W\" }": Encountered "\", expected one of [<INTEGER_LITERAL>, <FLOATING_POINT_LITERAL>, <STRING_LITERAL>, "true", "false", "null", "(", "-", "not", "!", "empty", <IDENTIFIER>], "
---------------------------------------------------------------------------
16 years ago
I need clarfication with reference to static elements in JSP file.

I have JSP file which is convereted into HTML file by application server and the same is returned to the web server where the request was originated.

Assume there are few images files referenced within the JSP page.

I would like to know whether image files will be forwarded by the AppServer to Weberver and Webserver will forward the images+HTML to browser client ?
(OR)
The Webserver will parse the HTML file again and send the related image files to browser client ?

Thanks in Advance
Sankar
17 years ago
JSP
Exactly when does the EJB container managing CMP beans commit the data to the database. Is there any method call in EJB that is used for performing commit to the database ?

Thanks in advance.

Sankar.