Advertisement

03.04.2005 at 08:56AM PST, ID: 21338036
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Folder Structure for J2EE applications

Tags: structure, folder, ear, j2ee
Hi,
I am new to websphere and I am not very sure about how the ear file is deployed on this server. From what I understand on J2EE, the ear file structure is supposed to be like this:
Ear
   -- WAR
   --JAR(EJB)
   --META-INF
               --application.xml

My War structure is like this:
 applicationName
        --JSP
       --image
       -- other folders like scripts, styles, tiles(i am working on a struts application)
       --WEB-INF
                 -- struts-config.xml
                 --web.xml
                 --classes
                          --application pacakage
                          --applicationresources.properties
                 --tld
                       --Contains the struts tld.
               
I have been working on Iplanet app server and in this server it is possible to include the ejb files in the ear file and the stub and skeletal classes are generated on deployment.
However, I am not sure about how the ejb folder structure should be in the ejb jar file in websphere.

what are the various classs files that are supposed to be in this jar(bean, remote,etc) and how does the websphere application server generate the stubs and skeletal classes for the ejb. Does it generate on deployment or we have to generate is before deployment, package the generated class files in a jar file for the ejb.

Basically I would like to know the what the entire folder structure of a EAR file should be and its sub components and their folder structure. How are the ejb's compiled, the entire deployment process. I am totally lost as of now and if any one could help me, I would be grateful to that person.
Thanks in advance.
Sumit
Start your free trial to view this solution
Question Stats
Zone: Software
Question Asked By: SumitSinghRawat
Solution Provided By: damonf
Participating Experts: 3
Solution Grade: A
Views: 260
Translate:
Loading Advertisement...
03.04.2005 at 09:40AM PST, ID: 13460804

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.04.2005 at 09:45AM PST, ID: 13460855

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.04.2005 at 10:13AM PST, ID: 13461080

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.04.2005 at 11:15AM PST, ID: 13461606

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.15.2005 at 09:08AM PST, ID: 13546509

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
03.04.2005 at 09:40AM PST, ID: 13460804

Rank: Master

EAR project:

>META-INF
  >application.xml

EJB project:
>ejbModule
 >META-INF
   >ejbJar.xml
   >MANIFEST.MF
 >com
   >youcompany
     >...

web project:
>WebContent
  >any files and folders you want
  >META-INF
    >MANIFEST.MF
  >WEB-INF
    >web.xml
    >any tlds
    >lib
      >any jars
    >classes
      >your packages

 
03.04.2005 at 09:45AM PST, ID: 13460855

Rank: Master

I think what you want to do is use the Application Assembly Toolkit (AAT), now known as WAS Assembly Toolkit.  You will assemble and EAR project, an EJB project, and a web project.  The web and EJB projects will be children of the EAR project.  Then you install the EAR on your server using the admin console.  The "wizard" that installs your app has a checkbox "deploy EJBs".  Check that, and it will generate the stubs and ties for you.  I think in the toolkit you can also generate stubs and ties before you build the EAR, in which case you won't need to redeploy when you actually install the EAR.

If you use WSAD, just run "generate deploy and RMIC code" and then build your EAR file.  Then you can just install it on the server.
Accepted Solution
 
03.04.2005 at 10:13AM PST, ID: 13461080
Hi,
Thanks for the folder structure, you are absolutely right on using the AAt but I have a trial version of WAS 5.1 and it does not have the AAT and I have tried getting hold of it but I have not been successful :(. Infact I spent the last 4 days hunting for it but it is not available and I got hold of one from the IBM site but the installer launches and then disappears, it does not proceed further.
Just of confirmation ,my understanding is, build the ear file(I am currently using the jar utility to generate the ear file), with the WAR and EJB jar inside the ear file and the folder structure of the EJB is clear to me (very similar to what it should be for weblogic ), and when I deploy the EAR file, the admin console of the server will generate the stubs and ties for me.
Correct me if I am wrong.
However if I get hold of the AAT then I dont have to do that also, the AAT will generate the stubs and ties for me. To be honest, I dont have any tools with me right now, I am doing this by manually writing and compiling things. The only tool that I have is eclipse, I know it is tough but I have to live and work with this till I get hold of the tools.
Is there any other thing that I need to consider while deploying the EAR file.
Thanks,
Sumit
 
03.04.2005 at 11:15AM PST, ID: 13461606

Rank: Master

the process you describe sounds right to me.  Good luck.
 
03.15.2005 at 09:08AM PST, ID: 13546509
If you have J2EE sdk 1.3 (WAS 5.1 supports J2EE 1.3), it includes a Application Assembly tool called "deploytool.bat" in bin folder. Its a gui tool, it helps you to create application bundle ranging from JAR, WAR and EAR. I believe it won't create any stub code. I think its the task of application server. Let you create the EAR file and leave the rest to the J2EE app server.
 
 
06.18.2008 at 01:56PM PDT, ID: 21817142
I personally recomment using ANT to create a build script which build your EAR. this way you can have different build scripts which create versions of your JARS, WARs and EAR as required for different scenarios. If you require examples, I will have to create one. Let me know and provide. This is the correct Enterprise way of doing things as it can also be augmented into auto deployment processes common in Enterprise level deployments. Learn to do this properly now, will pay dividends later.
 
 
 
20080236-EE-VQP-29