Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I used the sudo apt-get install tomcat7-examples.

They were installed in /usr/share/tomcat7-examples/examples directory.

Tomcat could not locate them from the URL :

127.0.0.1:8080/examples/    
HTTP Status 404 - /examples/

I attempted to copy them to the webapps directory but that failed.

$ sudo cp /usr/share/tomcat7-examples/examples/*  /var/lib/tomcat7/webapps/examples/.

cp: omitting directory 'jsp'    
cp: omitting directory 'servlets'  
cp: omitting directory 'WEB-INF' 

What am I missing?

Havingsame problem with docs, common, and admin.

share|improve this question

1 Answer 1

Use cp -r to copy over directories. Also make sure target directories exist

share|improve this answer
    
In it's current state, the answer is not very useful. Would you elaborate the answer to include more details like an example? –  Registered User Jun 17 at 3:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.