For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 11 replies, 2 voices, and was last updated 19 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
Baby1937MemberHI,
I am using eclipse3.0.2 and myeclipse3.8.4, my AppServer is weblogic8.1 SP4,
I deployed my web-application(struts+hibernate) to the server , then I run my server.
my problem is : i modify a Action Class one of my web-application ,then i run this Action Class , the weblogic will auto restart !!!
the domain of the server is development , and server start model is Debug in the myeclipse.
how do i solve this problem like this , i modify a Action Class one of my web-application , then i run this Action Class , the weblgoic will NOT restart , and I use the modifyed Action Class right now???
thanks!!!!December 1, 2005 at 11:27 am #242408
Riyad KallaMemberhow do i solve this problem like this , i modify a Action Class one of my web-application , then i run this Action Class , the weblgoic will NOT restart , and I use the modifyed Action Class
So only some classes restart and other’s don’t?
December 1, 2005 at 9:07 pm #242490
Baby1937MemberSome of the classes will restart !!!
i use the JB2005 and weblogic8.1 SP4 , do the same thing , the server will not restart?? why ????December 2, 2005 at 9:57 am #242514
Riyad KallaMemberThe restarting of the WebLogic context is not related to the IDE, but rather is related to how you have WebLogic setup. For example, in Tomcat, if you set a contex to “reloadable=’true'”, then some changes, like modifying your web.xml file, will cause your context to reload.
You can try modifying and resaving your web.xml file to get your context to reload, or keep a browser window open to the administrative console for WebLogic and use that to restart the context.
If I didn’t answer your question, please restate what it is you want to happen, or exactly what your question is, I am having a little trouble understanding exactly what you are asking.
December 2, 2005 at 8:27 pm #242566
Baby1937Memberi’m so sorry, my english is very poor!!!
1.
i deploy my project to the weblogic use myeclipse, then i run the server,
I run my project , but I found one of my Action Class is wrong, i modify it, then i use this Action Class again,
the question come, the server can’t keep the context, I found weblogic classloader didn’t reload the that Action Class, the server automatic restart.2.
But i found if i use the weblogic’s web console redeploy the project , i can use the modifyed Action Class again, the server will not restart.Can you tell me , if my don’t do “2”, I can use my modifyed Action Class again and don’t restart my server.
Thanks!!!December 3, 2005 at 1:35 pm #242577
Riyad KallaMemberAre you using a packaged deployment?
December 4, 2005 at 3:25 am #242599
Baby1937MemberNO, i using exploded deployment.
December 4, 2005 at 1:16 pm #242608
Riyad KallaMemberWhat JDK are you using to run WebLogic?
December 4, 2005 at 6:33 pm #242610
Baby1937Member1.4.2_08, the same as in the myeclipse
December 4, 2005 at 10:03 pm #242612
Riyad KallaMemberIt sounds like hot-syncing is failing. What you can do to force a redeploy from the web application is outlined in this thread:
http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-8873-highlight-redeploy+weblogic.htmlDecember 6, 2005 at 11:28 pm #242736
Baby1937MemberThanks rkalla. i saw it.
support-scott told us :
To force WebLogic to reload an application, you can create a file at /META-INF/REDEPLOY in your application. When you “touch” the file, WebLogic will redeploy the application. The file can be empty, or contain anything you want since it isn’t actually read. It’s just looked at for an edit time.
But, what is the type of the file “REDEPLOY” ?? xml or others????
what’s the content of the file??? empty or others??
i don’t understand this word :
“contain anything you want since it isn’t actually read. It’s just looked at for an edit time.”At last ,i want to know if do it as he told us , can i solve the question of weblogic restart ???
Thank you!!!
December 7, 2005 at 10:53 am #242758
Riyad KallaMemberBut, what is the type of the file “REDEPLOY” ?? xml or others????
It is just an empty text file, the name and timestamp on the file are the key that WebLogic looks for. Use File > New > File > REDEPLOY > “Finish” to create it.
what’s the content of the file??? empty or others??
empty
i don’t understand this word :
“contain anything you want since it isn’t actually read. It’s just looked at for an edit time.”He just means that what WebLogic is looking at is:
1) If a file named “REDEPLOY” exists
2) If it does, then look at the timestamp on the file, if it has changed since it was last seen, reload the web application.See, it doesn’t care what’s in the file, it just uses it as a trigger. So if you want to reload your app, open the REDEPLOY file, and add a space to it, and hit save. WebLogic will notice the changed timestamp and reload your application.
-
AuthorPosts