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 18 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
SunnyMemberDear 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!!
October 16, 2006 at 12:11 pm #260493
Riyad KallaMemberZolar,
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.October 25, 2006 at 3:17 am #260878
SunnyMemberHi,
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,
ZolarOctober 25, 2006 at 3:27 am #260879
SunnyMemberPS: The Testing environment:
OS: Windows XP SP2
JDK 1.5.0_08
MyEclipse 5.0GA
JBoss 4.0.4GAOctober 25, 2006 at 10:36 am #260893
Riyad KallaMemberZolar,
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?October 26, 2006 at 12:27 pm #260990
SunnyMemberDear 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,
ZolarOctober 26, 2006 at 1:41 pm #260995
Riyad KallaMemberZolar,
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).October 26, 2006 at 11:58 pm #261007
SunnyMemberDear 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,
SunnyOctober 27, 2006 at 11:33 am #261017
SunnyMemberDear 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,
SunnyOctober 27, 2006 at 11:45 am #261021
Riyad KallaMemberSunny,
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
DeploymentBuilderOctober 28, 2006 at 1:46 pm #261039
SunnyMemberDear 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)October 30, 2006 at 8:12 am #261062
Riyad KallaMemberZolar,
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 🙂 -
AuthorPosts