Author Message
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
I'm developing the front end of my EDP snap-in.
But after I put all the resources files (.css, .js, .wav, .jpg) under "src/main/webapp/resources" folder and deploy my snap-in to the server, those files cannot be located (css, js files cannot be found by using relative URL "resources/css/index.css")

I created the snap-in under instruction of the tutorial videos on DevConnect. Is there any other configuration I need to do for mapping the resources URL like in the "pom.xml" ?
  • [Thumb - 2.jpg]
[Disk] Download
  • [Thumb - 1.jpg]
[Disk] Download
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
There seems to be a problem with the Eclipse CE Plugin.

For some reason if I redeployed a service unsuccessfully in Eclipse, it will cause this issue that my resources files cannot be located any more.

I have tested hundred times and this is the conclusion so far I have
liu159
Joined: Jan 19, 2015
Messages: 96
Offline
And once a service is damaged like this (failed to redeploy through Eclipse CE plugin), it will never find those resources files.

If I create a new project and put in exactly the same code, it will work.

Any thought how I can solve this problem, or I have to create a new project and manually redeploy it after that to avoid the project to be damaged ?
Go to:   
Mobile view