facebook

JBoss HAR Deployment

💡
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 Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #260280 Reply

    Sunny
    Member

    Dear All,

    Before I posted my problem, I have already search through the forum about the deployment method of the HAR.

    https://www.genuitec.com/forums/topic/creating-hibernate-har-files-with-myeclipse-closed/&highlight=har&sid=01b6cb7eb198bae0a003dcc35c1903d9
    Basically, I have read and following the above article in order to deploy my application in the JBoss.

    However, while I check the HAR in the Application server, I can find it, but it was an empty file (Zero byte file). Could anyone can explicitly tell me what should I set under the project deployment policy of EAR project please?

    I have awared there is a notice that mention the setting of MAINIFEST.MF. But which MAINIFEST.MF should I set, the one in EAR project or the one in HAR project, moreover, what should I set inside the MAINIFEST.MF file, a full jar command?

    Please help, many thanks in advance!!

    #260493

    Riyad Kalla
    Member

    Zolar,
    Can you detail your project dependency and deployment settings for me in a hierarchical manner so I can get an idea of what your setup is and what you are trying to do? NOTE: Please wrap your dir layout using code blocks (button below) to keep the formatting correct.

    #260878

    Sunny
    Member

    Hi,

    Here is the details about my project:
    I have created 3 project; They are Test (The EAR), Test.har, and TestWeb as the following structure:

    |-Test <DIR>
    |——-META-INF <DIR>
    |—————application.xml
    |—————jboss-app.xml
    |—————MAINFEST.MF
    |
    |-Test.har <DIR>
    |——-org.test.persistent.objects <DIR>
    |—————Tblcustomer.java
    |—————Tblcustomerorder.java
    |——-META-INF <DIR>
    |—————hibernate-service.xml
    |—————MAINFEST.MF
    |——-Tblcustomer.hbm.xml
    |——-Tblcustomerorder.hbm.xml
    |
    |-TestWeb <DIR>
    |——-src <DIR>
    |——-WebRoot <DIR>
    |—————META-INF <DIR>
    |———————–MAINFEST.MF
    |—————WEB-INF <DIR>
    |———————–lib <DIR>

    In the “Properties”>”Project References” of the Test (EAR), I have checked on both Test.har and TestWeb.
    In the “Properties”>”Project References” of the Test.har, I have checked nothing.
    In the “Properties”>”Project References” of the TestWeb, I have checked nothing too.
    In “Windows”>”Preferences”, then select “My Eclipse”>”J2EE Project”>”EAR Prioject” in the tree control. I have set “Jar dependent Java projects (see Notice)” as my options. However, I haven’t checked any options in “Library Deployment Policies” and “Module Manifest Overwrite Policy”.

    Thanks in advance!!

    Best Regards,
    Zolar

    #260879

    Sunny
    Member

    PS: The Testing environment:
    OS: Windows XP SP2
    JDK 1.5.0_08
    MyEclipse 5.0GA
    JBoss 4.0.4GA

    #260893

    Riyad Kalla
    Member

    Zolar,
    It sounds like things are almost setup correctly, can you describe what is or isn’t working right now? What does your deployment look like once it’s deployed?

    #260990

    Sunny
    Member

    Dear Riyad,
    As I mentioned in my first message, I can successfully deploy my EAR in the JBoss, but I got an empty Test.har file with ZERO byte!!! Beside this problem, all the other things alright….. Can you simulate this situation in your site???

    Ecliplise version is: 3.2.1

    Regards,
    Zolar

    #260995

    Riyad Kalla
    Member

    Zolar,
    I couldn’t reproduce this with my test projects, they are here if you want to downnload then and try them locally (maybe see what I did differently… notice my EAR deployment settings for starters to help).

    #261007

    Sunny
    Member

    Dear Riyad,

    Thank you very much. I will compare your projects with mine, and see whether they work or not. If I have any findings, I will post it here to let you know.

    Regards,
    Sunny

    #261017

    Sunny
    Member

    Dear Riyad,

    I’ve found out the differences between your project and mine. In the EAR of your project, under “Properties”>”Builders”, there are five check boxes. However, while I examined mine project and there are only 4 check boxes. The check box “Java Builder” was missing. Could you please tell me how to add this back. Because while I try to create a new EAR project, I also can’t see this check box in the same screen.

    Thank in advance.

    Regards,
    Sunny

    #261021

    Riyad Kalla
    Member

    Sunny,
    Actually when I view the EAR on my site, there is no Java Builder added… I’m not sure why you are seeing one. I only see 4 builders:
    J2EEProjectValidator
    DeploymentDescriptorValidator
    Validation
    DeploymentBuilder

    #261039

    Sunny
    Member

    Dear Riyad,

    First of all, thanks for your excellent support…..
    Finally, I figured out what is the problem. The problem happened in my HAR project. While I created my HAR project, I used “Use project folder as root for sources and class files” as my project layout. I really don’t know whether this is a bug or not, but I do think you can try to simulate it in your site.

    In addition, I am looking forward MyEclipse can formally support the HAR deployment in the coming version.

    Again, many thanks and I’ve decided to subscribe the Professional Version before my trial period expiry in order to support the continue development of MyEclipse! ^_^

    My Best Regards,
    Zolar (Sunny)

    #261062

    Riyad Kalla
    Member

    Zolar,
    Thank you for your support. I believe you are right, this does sound like a bug… I would encourage you strongly to try and always separate your class and source files though (separate dirs)… I’ve seen programmers that liked to combine them get hit by lightning, it’s very sad 🙂

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: JBoss HAR Deployment

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