- This topic has 8 replies, 2 voices, and was last updated 18 years, 1 month ago by Ghazalawahid.
-
AuthorPosts
-
GhazalawahidMemberHi,
I am working on a web project,problem is :
– if i am making changes in java files,class files are not being updated.
– if i am adding new java files in src folder ,the class files are not being generated in (WEB_INF/classes) folder.
it was working fine in the begining e.g class files were being generated and updated but now no updation or creation of class files.What could be the reason?
support-snjezaMemberGhazalawahid ,
You should check if :
– WEB_INF/classes is output folder for your project.
– the action ‘Project-Build Automatically’ is selected
– the application server has been started in debug mode.Regards,
Snjeza
GhazalawahidMember– Build automatically is checked.
– Source output folder was “/WebRoot/WEB-INF/lib” I have changed it to /WebRoot/WEB-INF/classes
– How can i start an application server in Debug mode ?
support-snjezaMemberGhazalawahid,
– Windows-Preferences-MyEclipse-Application Servers-<your server>-Launch and check ‘Debug mode’
or
– right-click the Server node in the Servers view and choose ‘Debug server’.
Snjeza
GhazalawahidMemberI started JBOSS in debug mode, as soon as it starts,its gives following error :
Thread [main](Suspended(exception ClassNotFoundException))
ClassLoader.findBootstrapClass(String) line : not available(native method)
……………..
so on,When i start server in run mode it does not give any error.
support-snjezaMemberGhazalawahid ,
What version of JBoss and JDK do you use?
Snjeza
GhazalawahidMemberHi,
– I am using Jboss-3.2.5
– and, j2sdk1.4.1
support-snjezaMemberGhazalawahid ,
It is possible that you have a breakpoint problem.
If you have set some breakpoints in your workspace, switch to debug perspective, remove all breakpoints and start JBoss in debug mode.PS
My advice is to switch over to JDK >=1.4.2 because ‘hot code replace’ has been enhanced in the newer versions.Snjeza
GhazalawahidMemberHi,
Thanks for all your help. I have not set any breakpoints in my workspace,so what i did is that I cretaed a new web project and copy all my code ,it took time but it is working (class files are being generated) .I don’t know what was wrong.So if i have any problem in future,I might come back to the forum.
Thanks again.
-
AuthorPosts