toukhir mujawar

Ranch Hand
+ Follow
since Oct 11, 2006
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 toukhir mujawar

Hi,

follow the procedure below.

go to "Tools" menu of the browser.

click on "Internet Options -- connections tab -- LAN settings"

here check the option "Bypass proxy setting for local addresses"

This should work.
13 years ago
Friends,

I am facing a problem while connection pooling.

The contents f web.cml file are




the contents of server.xml file are







The connection is created as below.





when the jsp is trying to create the connection i am getting the following exception.



exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


root cause

java.lang.NullPointerException
org.apache.jsp.DisplayZoneWiseCollection_jsp._jspService(org.apache.jsp.DisplayZoneWiseCollection_jsp:52)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


I am not able to resolve the problem. kindly help me.

I am using form based authentication.


Thanks in advance


Regards
Toukhir Mujawar
Friends,

I am facing a problem while connection pooling.

The contents f web.cml file are




the contents of server.xml file are





The connection is created as below.






when the jsp is trying to create the connection i am getting the following exception.



exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


root cause

java.lang.NullPointerException
org.apache.jsp.DisplayZoneWiseCollection_jsp._jspService(org.apache.jsp.DisplayZoneWiseCollection_jsp:52)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


I am not able to resolve the problem. kindly help me.

I am using form based authentication.


Thanks in advance


Regards
Toukhir Mujawar
13 years ago
Hi,

I am trying to implement connection pooling.

When I try to connect to the database get the followeing exception.


exception

javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null'
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.Welcome_jsp._jspService(org.apache.jsp.Welcome_jsp:163)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


root cause

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
org.apache.jsp.Welcome_jsp._jspService(org.apache.jsp.Welcome_jsp:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)




The contents of the server.xml file are


<context docBase=dailycollection path=/dailycollection debug="0" reloadable="true">
<Resource name="jdbc/WroxTC5"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc racle:thin:@192.168.1.101:1521:cmsdb"
factory = "org.apache.commons.dbcp.BasicDataSourceFactory"
username="dcol"
password="dcolmsedcl"
maxIdle="2" maxWait="5000"
maxActive="4"/>

</context>

This tag is written in <host> tag.

The contents of web.xml are

<resource-ref>
<res-ref-name>jdbc/WroxTC5</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Form</res-auth>
</resource-ref>


I am using form based authentication. the realm defined for this is


<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc racle:thin:@192.168.1.101:1521:cmsdb"
connectionName="dcol" connectionPassword="dcolmsedcl"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name"/>

I have the following jar file in tomcat/common/lib directory

commons-collections-3.1.jar
commons-dbcp-1.2.1.jar
commons-el.jar
commons-pool-1.2.jar
ojdbc14_g.jar

Kindly help me. Thanks in advance.
14 years ago
I have the following jar file in tomcat/common/lib directory

commons-collections-3.1.jar
commons-dbcp-1.2.1.jar
commons-el.jar
commons-pool-1.2.jar
ojdbc14_g.jar
The contents of server.xml are corrected as

<context docBase=dailycollection path=/dailycollection debug="0" reloadable="true">
<Resource name="jdbc/WroxTC5"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc racle:thin:@192.168.1.101:1521:cmsdb"
factory = "org.apache.commons.dbcp.BasicDataSourceFactory"
username="dcol"
password="dcolmsedcl"
maxIdle="2" maxWait="5000"
maxActive="4"/>

</context>
Hi,

I am trying to implement connection pooling.

When I try to connect to the database get the followeing exception.


exception

javax.servlet.ServletException: Cannot create JDBC driver of class '' for connect URL 'null'
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.Welcome_jsp._jspService(org.apache.jsp.Welcome_jsp:163)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


root cause

org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'
org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:780)
org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)
org.apache.jsp.Welcome_jsp._jspService(org.apache.jsp.Welcome_jsp:61)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)




The contents of the server.xml file are


<context docBase=dailycollection path=/dailycollection debug="0" reloadable="true">
<Resource name="jdbc/WroxTC5"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc racle:thin:@192.168.1.101:1521:cmsdb"
username="dcol"
password="dcolmsedcl"
maxIdle="2" maxWait="5000"
maxActive="4"/>

</context>

This tag is written in <host> tag.

The contents of web.xml are

<resource-ref>
<res-ref-name>jdbc/WroxTC5</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Form</res-auth>
</resource-ref>


I am using form based authentication. the realm defined for this is


<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc racle:thin:@192.168.1.101:1521:cmsdb"
connectionName="dcol" connectionPassword="dcolmsedcl"
userTable="users" userNameCol="user_name" userCredCol="user_pass"
userRoleTable="user_roles" roleNameCol="role_name"/>



Kindly help me. Thanks in advance.
you can try it once again from
control panel--administative tools -- services-- apache tomcat

here you can start the service.

one more way to do it is go to the tomcat bin directory from command prompt and invoke startup command.

even after this the serivce does not start then check the port on which you have installed. it might be conflicting with some other application.

you can change it from the conf directory---server.xml file.

this might help you.
14 years ago
hi,

i have installed all the instances on different ports.

like instance 1 -- 8080 - load balancer.
instance 2 -- 8180
instance 3 -- 8280
instance 4 -- 8090

i m trying to start using the startup from command line. when i invoke this command it works. but when i try to open tomcat manager it does not open and i checked the services that are running, there is no service of tomcat running.

is there some other method to install the multiple instances of tomcat on single machine?

please help...
14 years ago
hi,

i m trying to implement the load balancing using the balancer application of tomcat.

i am done with the settings that were mentioned. but now i m not able to start all the instances of tomcat at the same time.

i am using Windows XP for testing purpose. once i am successful in it. i will be implementing it on Linux.

kindly help me out. thanks in advance.

Regards
Toukhir Mujawar
14 years ago
hi i have a problem in reading the querystring....

if suppose i have the url "/abc?zone=053&circle=539"

how should i read the value of zone and circle.

is request.getQueryString() the only way to read it.

if yes it will read as "zone=053&circle=539" then how should i seperate it.

should i take the substring or there is any other way out. kindly throw some light on it.

thanks in advance

Regards
Toukhir Mujawar
14 years ago
JSP
thanks friends i got the solution...i had made a silly mistake...
for the first time i am using the following code....





here the amountCash,amountCheque, amountDeposited are the numeric fields...still it is working....

For the second instance when i am trying to insert the record it is showing the following exception...




and the error msg is like the above given....

note that the statement.....

insert into tbl_daily_collection (collection_date,user_code,circle,amountCash,amountDeposited,DATE_OF_DEPOSITION,BANK_NAME) values (to_date('12/12/06','dd/mm/yyyy'),'wmsec','530','450','450',to_date('12/12/06','dd/mm/yyyy'),'bom');

is also working fine at SQL prompt...

what can be the reason...
yes there are two numeric columns in the table....

but i want to know why is it working at other place?
hi friends,

i am getting this error while inserting the record...




the error is like...

java.lang.NumberFormatException: null
java.lang.Integer.parseInt(Unknown Source)
java.lang.Integer.parseInt(Unknown Source)
dailycollection.DailyCollectionEntry.processRequest(DailyCollectionEntry.java:75)
dailycollection.DailyCollectionEntry.doPost(DailyCollectionEntry.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)


no null value is being inserted....

using JDK 1.5....

i m using the insert statement at one more place and it is working very well....


please help me