facebook

about weblogic restart ???

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #242380 Reply

    Baby1937
    Member

    HI,
    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!!!!

    #242408

    Riyad Kalla
    Member

    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

    So only some classes restart and other’s don’t?

    #242490

    Baby1937
    Member

    Some of the classes will restart !!!
    i use the JB2005 and weblogic8.1 SP4 , do the same thing , the server will not restart?? why ????

    #242514

    Riyad Kalla
    Member

    The 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.

    #242566

    Baby1937
    Member

    i’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!!!

    #242577

    Riyad Kalla
    Member

    Are you using a packaged deployment?

    #242599

    Baby1937
    Member

    NO, i using exploded deployment.

    #242608

    Riyad Kalla
    Member

    What JDK are you using to run WebLogic?

    #242610

    Baby1937
    Member

    1.4.2_08, the same as in the myeclipse

    #242612

    Riyad Kalla
    Member

    It 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.html

    #242736

    Baby1937
    Member

    Thanks 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!!!

    #242758

    Riyad Kalla
    Member

    But, 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.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: about weblogic restart ???

You must be logged in to post in the forum log in