- This topic has 7 replies, 3 voices, and was last updated 21 years, 1 month ago by support-michael.
-
AuthorPosts
-
Larry D. WilsonMemberNew to MyEclipse – and am trying to port an application built with “plain” Eclipse (and Lomboz).
Problem is that after every build, both user.properties and roles.properties are deleted prior to deployment. We use these files to control a very limited security list; obviously no one can login.
I’ve tried creating the files from MyEclipse, and have the same behavior. Cannot locate any settings to control this – is this an ant configuration issue?
What am I missing?
Running:
Eclipse 2.1.0
MyEclipse 2.6.4
Jboss 3.2.3RC1
JDK 1.4.2
Andrew FreemanMemberPut the file in your source folder. When the project is rebuilt, it will be copied to the classes folder automatically.
Larry D. WilsonMemberThanks – that worked.
Along the same lines, apparently, is where do you place supporting files, like css, javascript, etc? In my previous environment, they all existed in directories under the web root, and everything worked fine. Haven’t found a workable place in MyEclipse yet (and cannot locate any documentation about where it expects these kinds of files).
support-michaelKeymasterWeb resource should be located under the <web root> folder that you specified when you created or convert the web project. Just think of the <web root> folder as the root of your web application when it is deployed. So locate resources accordingly except for the dynamic contents of the <web root>/WEB-INF/classes folder. As CasaDelNorte identified that folder’c contents are over written by during a project rebuild.
Note the JSP/HTML preview mode does not yet support rendering of linked resources such as css and javascript files. So don’t let that confuse you.
Michael
MyEclipse Support
Larry D. WilsonMemberThat’s what I’d understood; it’s the way the project is currently setup. Unfortunately, nothing in the css, image, js, etc is available at runtime.
Here’s my directory structure:
/MyProject
/MyProject/src
/MyProject/(JRE and system libs and other jars)
/MyProject/Web Root
/MyProject/Web Root/META-INF
/MyProject/Web Root/WEB-INF
/MyProject/Web Root/WEB-INF/classes
/MyProject/Web Root/WEB-INF/lib
/MyProject/Web Root/css
/MyProject/Web Root/image
/MyProject/Web Root/js
(etc)I must be missing something – I’ve tried placing the css (the easiest to test) in every other directory, rebuilding, deploying, and it just does’t show up. It worked fine in “plain” Eclipse and Lomboz.
Any thoughts? I’m just stumped.
support-michaelKeymasterA few more questions:
0) What type of project are you developing (Enterprise or Web)?
1) Does the Eclipse instance for which MyEclipse was installed include 3rd plugins, e.g., Lomboz?
2) Describe the process used to to port your project from Lomboz? I’m assuming you created a new web project?
3) How are you deploying your webapp (exploded/packaged) and are you using the MyEclipse deployment features to perform this task?
4) If you are using exploded deployment have you inspected the JBoss auto-deployment area to confirm/deny that css/images/js files are deployed?Michael
MyEclipse Support
Larry D. WilsonMemberThanks for your response.
Before I answer, I have some crow to eat. I’d assumed it was a problem with the mapping – turns out that servlets aren’t being instantiated correctly. Since most – actually all in this case – of my “look and feel” stuff use servlets I made an incorrect assumption about the cause. Creating a test page with an image and css coded directly into the jsp page worked fine.
I’ll investigate Monday and see what I find out.
Again, thanks for the assistance.
support-michaelKeymasterThanks for the feedback. Please keep us posted on the outcome and if we can be of further assistance.
Michael
MyEclipse Support -
AuthorPosts