d3n7s / esnippet

Automatically exported from code.google.com/p/esnippet
0 stars 0 forks source link

Deployed war file is looking up one level too high #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I downloaded the svn source and followed all instructions to setup the 
setting file, mysql db, and performed the maven build.  I deployed the 
built war file to my apache tomcat directory located at D:\Program 
Files\Apache Software Foundation\Tomcat 6.0\webapps\ which resulted in the 
snippet-1.0 directory getting created as the war file was named snippet-
1.0.war.  So the path is D:\Program Files\Apache Software 
Foundation\Tomcat 6.0\webapps\snippet-1.0.  When I navigate to the webpage 
http://localhost:8080/snippet-1.0/index.jsp, I do not see the images or 
application.  The images are pointing to one level higher, 
http://localhost:8080/statics/images/projects/snippet_tool_window.png.  
Seems this might be a bug as this is the built war file?  Where can I fix 
the code to look in the same directory?  So the path should be  
http://localhost:8080/snippet-
1.0/statics/images/projects/snippet_tool_window.png

thanks!

Original issue reported on code.google.com by preus...@gmail.com on 17 Oct 2009 at 8:08

GoogleCodeExporter commented 8 years ago
I have had to do this so far in the portal.jsp file and the repository.js file.

<link type="text/css" rel="stylesheet" href="/snippet-
1.0/statics/javascript/syntaxhighlighter2/styles/shCore.css"/>

Original comment by preus...@gmail.com on 17 Oct 2009 at 8:30