Jump to content

Recommended Posts

Posted

Hi. I'm bfpsw on Johnny.

 

I deployed some jsp and java class files under my home directory (folder JAW under public_html folder). If I try to point my index.jsp page, I get a 404 error saying that "/bfpsw_JAW/index.jsp is not available".

 

Where am I wrong?

 

Thank you

 

Posted

Yes, it is. If you remember, several days ago I asked you to undeploy my war file in order to verify if deploying my jsps and java classes one by one would have been working. I have created a folder named JAW under my public_html folder and copied the structure I have under my local Tomcat. But if I try to point index.jsp I get the error given in my first message. In addiction, why does it try to get "/bfpsw_JAW/index.jsp" file? Why the "_" and not the "/"?

Posted

Oh yeah, sorry, I remember that now. I just undeployed the .war file as requested. I didn't delete the apache .conf file that proxies the apache web requests to tomcat though. It's deleted now and the change should go into effect within 12 hours.

Posted

Hi. Sorry for the delay in response, but I couldn't before.

 

Now I can reach the application, but when I try to invoke a servlet it says it does not exist. I have my web.xml file in the WEB-INF folder of the web app (public_html/JAW/WEB-INF) and all the servlets are described there, but none of them can be reached.

 

What's the problem?

 

Thank you

Posted

So the only way to have servlets is to deploy a war file?

 

Also, if I put in the war file an empty folder, can the web app create files into it?

Posted

I got no response, so I post my questions again:

 

- the only way to have servlets is to deploy a war file?

- if I put in the war file an empty folder, can the web app create files into it?

 

Thanks

Posted

- the only way to have servlets is to deploy a war file?

Yes.

 

- if I put in the war file an empty folder, can the web app create files into it?

No.

 

You can try extracting the .war file on your home pc, and uploading all the files individually, but I don't think it will work.

Posted

Thanks for the response.

 

My web app needs to create some files. Where could it have rights to create them? Would it be able to put them in /home/bfpsw folder? Or where else?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...