Pavlos Chatzidimitriou

Greenhorn
+ Follow
since Aug 18, 2008
Merit badge: grant badges
For More
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 Pavlos Chatzidimitriou

Hi all i tried to write my very first web service with axis2 and eclipse having as example the tutorial mentioned here .While i generated the service stub wrote the skeleton and then generate the client stub and wrote the client i get the following exception when i run the client :


Here is my wsdl file :


The service skeleton :


And my client class :


Does anyone have any idea what may went wrong?
14 years ago
Hi all i just started learning servlets and i want to make a program in order to understand database connection pooling in tomcat.My problem is that when i run the servlet i created i get this error :

And that from tomcat log from netbeans :

.I configured tomcat server.xml file like this :
This is the resource reference i have in my web app web.xml file :

And this is my servlet class :

Any suggestions?
[ October 17, 2008: Message edited by: Pavlos Chatzidimitriou ]
Hi all i start learning servlets now and i have a question about how can in one servlet send an html page and a file such as a photo in the response.I have this servlet :

It runs but i get only the html page without downloading the file.Now i wonder if i have to make a second servlet for the file but then how can i do this.Any suggestions?
15 years ago
I think you should remove and and it will be ok.You can look here for more details.
15 years ago
Problem solved.I just changed the encoding in UTF-8 in web.xml and is working

Thanks for all your answers and time spend to solve my problem
15 years ago
Thanks again for your answers.I tried but no luck.I successfully created a user to manage tomcat and in the web application manager i see that the ch1 application isn't running and when i click start i get that

FAIL - Application at context path /ch1 could not be started

.I also changed the to
but still the same error.Does anyone have a clue how to fix this?
15 years ago
Thanks for your replies.No my Ch1Servlet.class isn't inside a package.Here is the Ch1Servlet.java file

I am calling the servlet with the below command

I checked the web.xml file and it doesn't have a space before servlet-name.Any suggestions?
15 years ago
Hi all i just started reading the "Head First Servlets and JSP" book and when i want to deploy the first servlet in tomcat i got a 404 resource not found error.I am using ubuntu linux where i have installed netbeans 6.1(as user) with the integrated tomcat 6.0.16 and there i just put a directory ch1 in the tomcat's webapps folder with the WEB-INF folder and there is my web.xml and the classes folder with the Ch1Servlet.class .Here is the web.xml file :

I start tomcat with the startup.sh script ok (without running netbeans) and the servlets examples and the jsp examples are working ok.Anyone has an idea why tomcat can't find the servlet?
15 years ago