Sampath Thigulla

Greenhorn
+ Follow
since Jul 26, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Sampath Thigulla

hi,
i am working on a project and i need some way to convert a double byte to unicode. in java

can provide me a code to do this.





8 years ago
Hi
i have created a webservice and now iam trying to create a Webservice Client . iam using the weblogic 12.1.3 application server
iam getting the following error while iam trying to create the client after providing the WSDL file. note: i have validated the WSDL file.
Error:Generated ant script for ClientGen failed ;see details.


any help will be really appreciated..i am new to webservices.
thank you in advance
9 years ago
well its coming in my eclipse as source not found when i run my tomcat in debug mode.
hello guys
iam unable to run my tomcat server in debug mode.
i have started my tomcat server in debug mode and i got Source not found.in my eclipse..


below is my log file:

Jul 27, 2014 2:11:39 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Java\jdk1.7.0_60\bin;.
Jul 27, 2014 2:11:39 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ServletLevel2' did not find a matching property.
Jul 27, 2014 2:11:39 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8082"]
Jul 27, 2014 2:11:39 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 27, 2014 2:11:39 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1189 ms
Jul 27, 2014 2:11:39 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 27, 2014 2:11:39 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
hey guys...
i have fixed my issue
my code was correct but i was getting the error because i dint had had ojdbc6.jar in my folder "D:\apache-tomcat-7.0.54\lib"
So when i placed the ojdbc6.jar file in apachetomcat/lib and tried running my servlet i got it right. it displayed a welcome message for valid emailId and password and error message for invalid emailId and password
thanks guys for your valuable time ..

9 years ago
@Paul Ngom

well as i said i used the same method ValidateUser() is working fine when i place it in a new class and run...it is returning true if i give valid emailId and password but when i place the same method in the servlet and call it in my ServLogin.java it is giving only false value no matter i give a valid email and password or invalid email and password. yes emailId="hr" and password="hr" are valid ..i checked in my database ..they are present in the table "registeruser". ans also dopost method of my servlet LoginServ is being called..as when if i give a print statment before calling validateUser() it is printing that message.
9 years ago
can someone deploy my code into your system and see whats wrong please i have been trying to fix this bug since yesterday morning .....and iam not getting any sleep since i dont find solution i love coding please help
9 years ago
HI
yes i have run my servlet program using the version 2 code which is using the ValidateUser method i dont get any errors in my log file: log file is as follows:
Jul 27, 2014 10:01:05 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\oraclexe\app\oracle\product\11.2.0\server\bin;;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Java\jdk1.7.0_60\bin;.
Jul 27, 2014 10:01:05 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:ServletLevel2' did not find a matching property.
Jul 27, 2014 10:01:05 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:samJdbcFirstApp' did not find a matching property.
Jul 27, 2014 10:01:05 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8082"]
Jul 27, 2014 10:01:05 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jul 27, 2014 10:01:05 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1045 ms
Jul 27, 2014 10:01:05 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 27, 2014 10:01:05 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.54
Jul 27, 2014 10:01:07 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-7.0.54\webapps\docs
Jul 27, 2014 10:01:07 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-7.0.54\webapps\docs has finished in 73 ms
Jul 27, 2014 10:01:07 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-7.0.54\webapps\examples
Jul 27, 2014 10:01:08 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 27, 2014 10:01:08 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 27, 2014 10:01:08 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@969f4cd')
Jul 27, 2014 10:01:08 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-7.0.54\webapps\examples has finished in 510 ms
Jul 27, 2014 10:01:08 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-7.0.54\webapps\host-manager
Jul 27, 2014 10:01:08 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-7.0.54\webapps\host-manager has finished in 112 ms
Jul 27, 2014 10:01:08 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-7.0.54\webapps\manager
Jul 27, 2014 10:01:08 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-7.0.54\webapps\manager has finished in 77 ms
Jul 27, 2014 10:01:08 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-7.0.54\webapps\ROOT
Jul 27, 2014 10:01:08 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-7.0.54\webapps\ROOT has finished in 62 ms
Jul 27, 2014 10:01:08 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8082"]
Jul 27, 2014 10:01:08 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 27, 2014 10:01:08 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2665 ms



though iam entering a valid emaildId and password in the fields and clicking on submit button iam getting this message:
"Hello cutepie your mail id is: hr You have entered wrong emailId or password"

9 years ago
This is suprising....
well i have made a separate class and deployed my validateUser method and when i run it i get the return value as true with valid emailId and password and with invalid emailId and password it returning false value.
but the same method when i am trying to use it in LoginServ.java it is returning always boolean value false



please help me guys !!
9 years ago
well i have made changes to my code.iam able to enter emailId and password and click on submit button when i hit submit button iam getting httpstatus 500 error message in eclipse.iam sure there is problem with code after the line "String pwd = request.getParameter("password");" in LoginServ.this is because when i replace the method returnUserInfo with method Validate user it is login in but it is not validating . i will post the code using two different methods below:

note: the LoginServ.java is being called and it is enterting into the dopost method and printing "Hello cutepie your mail id is:" but it is failing after this...because when i print a simple message in dopost witout any logic it is printing that message..

version 1
index.html



web.xml


LoginServ.java using returnUserInfo method



Validate.java



WelcomeServ.java


Myfile structure is as follows:
ServletLevel2 //my project
-Java Resources
-src
-com.peg.servUserLogin
-LoginServ.java
-Validate.java
-WelocmeServ.java

WEB-INF
-lib
-web.xml
-index.html


The full stack trace of the root cause which is available in the Apache Tomcat/7.0.54 logs is as follows:

127.0.0.1 - - [26/Jul/2014:21:27:29 -0700] "GET / HTTP/1.1" 200 11418
127.0.0.1 - - [26/Jul/2014:21:27:30 -0700] "GET /ServletLevel2/index.html HTTP/1.1" 200 491
127.0.0.1 - - [26/Jul/2014:21:27:36 -0700] "POST /ServletLevel2/login HTTP/1.1" 500 1432




*************************************************************************************************************************************************************************************
version 2 code
iam able to login but when i click on submit button iam getting the message"Hello cutepie your mail id is: hr You have entered wrong emailId or password " and iam redirected to index.html page

index.html


web.xml


LoginServ.java using validateUser method



Validate.java


WelcomeServ.java



kindly suggest me a solution to my problem... you could deploy my code in your system and see what is the exact problem.thank you for spending your valuable time and for your patience....
9 years ago
i couldnot attach the image of my folder structure

below is my fodler structure

ServletLevel2 //my project
-Java Resources
-src
-com.peg.servUserLogin
-LoginServ.java
-Validate.java
-WelocmeServ.java

WEB-INF
-lib
-web.xml
-index.html


9 years ago
@@Jeanne Boyarsky

here is my folder structure in eclipse
9 years ago
@Jeanne Boyarsky
iam a noob in servlets
so i didnot understand by context root in my web app...do you mean web.xml file??

web.xml
9 years ago
@Jeanne Boyarsky

i did change my index.html file by giving the url pattern of web.xml but iam still getting the same error when i enter valid emailId and password and click on submit button

index.html



web.xml
9 years ago