I went through the Enterprise Java Beans tutorial exercises.. under lesson1
is a BonusApp that has an entity bean in it ( i think ). Works for me with
3.0beta (Solaris). Give this one a shot and goto

localhost:8080/BonusRoot/bonus.html

ampere jec partslists 1037> echo $JBOSS_DIST/
/homes/bell/JBoss/jboss-3.0.0beta/

09:34:56,761 INFO  [MainDeployer] Deploying:
file:/homes/bell/JBoss/jboss-3.0.0beta/deploy/BonusApp.ear
09:34:56,776 INFO  [EARDeployer] Init J2EE application:
file:/homes/bell/JBoss/jboss-3.0.0beta/deploy/BonusApp.ear
09:34:57,739 INFO  [MainDeployer] Deploying:
file:/homes/bell/JBoss/jboss-3.0.0beta/tmp/deploy/87.ejb-jar-ic.jar
09:34:58,048 INFO  [EJBDeployer] Deploying CalcBean
09:34:59,156 INFO  [MainDeployer] Deploying:
file:/homes/bell/JBoss/jboss-3.0.0beta/tmp/deploy/88.ejb-jar-ic4.jar
09:35:00,758 INFO  [EJBDeployer] Deploying BonusBean
09:35:04,274 INFO  [JDBCInitCommand] Table 'BonusBean' already exists
09:35:04,546 INFO  [EnterpriseContextCachePolicy] Cache policy scheduler
started
09:35:04,552 INFO  [MainDeployer] Deploying:
file:/homes/bell/JBoss/jboss-3.0.0beta/tmp/deploy/89.war-ic.war
09:35:04,639 INFO  [EmbeddedCatalinaServiceSX] deploy, ctxPath=/BonusRoot,
warUrl=file:/homes/bell/JBoss/jboss-3.0.0beta/tmp/deploy/89.war-ic.war
09:35:11,799 INFO  [EmbeddedCatalinaServiceSX] WebappLoader[/BonusRoot]:
Deploying class repositories to work directory
/homes/bell/JBoss/jboss-3.0.0beta/jakarta-tomcat-4.0.2/work/localhost/BonusR
oot
09:35:11,875 INFO  [EmbeddedCatalinaServiceSX] WebappLoader[/BonusRoot]:
Deploy class files /WEB-INF/classes to
/homes/bell/JBoss/jboss-3.0.0beta/jakarta-tomcat-4.0.2/work/localhost/BonusR
oot/WEB-INF/classes
09:35:12,582 INFO  [EmbeddedCatalinaServiceSX] StandardManager[/BonusRoot]:
Seeding random number generator class java.security.SecureRandom
09:35:12,631 INFO  [EmbeddedCatalinaServiceSX] StandardManager[/BonusRoot]:
Seeding of random number generator has been completed
09:35:14,819 INFO  [EmbeddedCatalinaServiceSX] ContextConfig[/BonusRoot]:
Added certificates -> request attribute Valve
09:35:15,724 INFO  [EmbeddedCatalinaServiceSX]
StandardWrapper[/BonusRoot:default]: Loading container servlet default
09:35:17,734 INFO  [EmbeddedCatalinaServiceSX] default: init
09:35:17,786 INFO  [EmbeddedCatalinaServiceSX]
StandardWrapper[/BonusRoot:invoker]: Loading container servlet invoker
09:35:18,081 INFO  [EmbeddedCatalinaServiceSX] invoker: init
09:35:19,135 INFO  [EmbeddedCatalinaServiceSX] jsp: init
09:35:24,965 INFO  [EARDeployer] Deploying J2EE application:
file:/homes/bell/JBoss/jboss-3.0.0beta/deploy/BonusApp.ear





----- Original Message -----
From: "Eric Jain" <[EMAIL PROTECTED]>
To: "Jboss-User" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 8:58 AM
Subject: [JBoss-user] Beta can't deploy my entity beans


> While TestSessionEJB alone can be deployed, deployment fails if I add an
> entity bean. Used to work with JBoss alpha!
>
>
> INFO  [MainDeployer] Deploying: file:/C:/Programme/JBoss/deploy/test.jar
> INFO  [EJBDeployer] Deploying TestEntityEJB
> INFO  [EJBDeployer] Deploying TestSessionEJB
> ERROR [EntityContainer] Exception in service lifecyle operation: create
> org.jboss.deployment.DeploymentException: expected one strategy tag
>     at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:95)
>     at
org.jboss.metadata.MetaData.getUniqueChildContent(MetaData.java:202)
>     at
>
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCReadAheadMetaData.<init>(JDBCRea
> dAheadMetaData.java:91)
> ...
>
>
> --
> Eric Jain
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>



**********************************************************************
This e-mail and any files transmitted with it are confidential and may
be legally privileged or otherwise exempt from disclosure under
applicable law. This e-mail and its files are intended solely for
the individual or entity to whom they are addressed and their content
is the property of Smiths Aerospace.  If you are not the intended
recipient, please do not read, copy, use or disclose this communication.
If you have received this e-mail in error please notify the e-mail 
administrator at [EMAIL PROTECTED] and then delete this e-mail, its
files and any copies.

This footnote also confirms that this e-mail message has been scanned
for the presence of known computer viruses.
***********************************************************************

Attachment: BonusApp.ear
Description: Binary data

Title: Writing Enterprise Applications
Java Technology Home Page
Help PagesA-Z Index

Java Developer Connection(SM)
Online Training

Downloads, APIs, Documentation
Java Developer Connection
Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide
Print Button

Members Only Requires login

Early Access Members Only

Downloads

Bug Database Members Only
Submit a Bug
View Database

Newsletters
Back Issues
Subscribe

Learning Centers
Articles
Bookshelf
Code Samples
New to Java
Question of the Week
Quizzes
Tech Tips
Tutorials

Forums

Technology Centers
SELECT - Community Source Area - Enterprise - Jini Network Technology - Wireless - more . . .
Training Index | J2EE Tech Center

Writing Enterprise Applications
with JavaTM 2 Platform, Enterprise Edition

By Monica Pawlan
June 2000


Download

This tutorial introduces you to the APIs, tools, and services provided in the JavaTM 2 Enterprise Edition (J2EETM) Reference Implementation. You can get the J2EE Reference Implementation as a free download for demonstrations, prototyping, and educational use.

To support these uses the J2EE Reference Implementation comes with J2EE development and deployment tools, Java WebServerTM, Cloudscape database, Java Software application server, Extensible Markup Language (XML) support, and the J2EE APIs.


PDF Version: Click to view and Shift-Click to download.
Updated June 2, 2000,.
HTML Version: Click to view.
Updated June 5, 2000,.
Zip File with PDF file and example code: Click to download.
Updated June 2, 2000,.
Adobe Acrobat Reader is free and lets you view PDF files in your browser or on your machine.

Course Outline

This is an outline of the topics covered in the PDF and HTML versions available above.

Lesson 1: A Simple Session Bean

Lesson 1 Zip file contains example

  • Example Thin-Client Multitiered Application
  • J2EE Software and Setup
  • J2EE Application Components
    • Create the HTML File
    • Create the Servlet
    • Create the Session Bean
  • Compile the Session Bean and Servlet
  • Start the J2EE Application Server
  • Start the J2EE Deployer Tool
    • Assemble the J2EE Application
    • Specify JNDI name and Root Context.
    • Verify and Deploy the J2EE Application
  • Run the J2EE Application

Lesson 2: A Simple Entity Bean

Lesson 2 Zip file contains example

  • Create the Entity Bean
  • Change the Servlet
  • Compile
  • Start the Platform and Tools
  • Assemble and Deploy
    • Uninstall the Application
    • Delete and Create New WAR file
    • Create EJB JAR for Entity Bean
  • Run the J2EE Application

Lesson 3: Enterprise Bean Communications

Lesson 3 Zip file contains example

  • Change the Session Bean
  • Change the Servlet
  • Compile
  • Start the Platform and Tools
  • Assemble and Deploy
  • Run the J2EE Application

Lesson 4: JavaServerTM Pages

Lesson 4 Zip file contains example

  • Create the JavaServer Page
  • Start the Platform and Tools
  • Remove the WAR File
  • Assemble new WAR File
  • Verify and Deploy the J2EE Application
  • Run the J2EE Application
  • More Information

Lesson 5: Adding JavaBeansTM Technology to the Mix.

Lesson 5 Zip file contains example

  • About the Example
  • Create bonus.jsp
  • Create the JavaBeans Class
  • Bean Properties
  • Remove the WAR File
  • Assemble New WAR FIle
  • Verify and Deploy the J2EE Application
  • Run the J2EE Application
  • More Information

Lesson 6: Extensible Markup Langauge (XML)

Lesson 6 Zip file contains example

  • Change the JavaBean Class
  • The APIs
  • Assemble, Verify, Deploy, and Run
  • More Information

Lesson 7: JDBCTM Technology and Bean-Managed Persistence

Lesson 7 Zip file contains example

  • Bean Lifecycle
  • Change the BonusBean Code
  • Create the Database Table
  • Uninstall J2EE Application
  • Delete and Create EJB JAR File
  • Verify and Deploy the J2EE Application
  • Run the J2EE Application
  • More Information

Related Information

Other J2EE-related topics are listed here. Some are not yet available in the J2EE platform, but you can find information on those that are currently available in the documents noted.

Managing Transactions

The Java 2, Enterprise Edition, Developer's Guide has a good section on Transactions.

Mail and Messaging

The Java Message Service API is not currently available. Chapter 10 of Designing Enterprise Applications also called J2EE Blueprints has an example of the email API.

Security

The Java 2, Enterprise Edition, Developer's Guide has a good section on Security.

RMI-JRMP and RMI-IIOP

JRMP is the Java technology-specific RMI protocol for looking up and referencing remote objects. Because of J2EE security restrictions, only application clients can create and reference an RMI object, but all J2EE application component types can be clients of (looked up and referenced by) RMI objects. J2EE application component types are application clients, applets, servlets/JSP pages, and Enterprise JavaBeans components.

RMI over Internet Inter-ORB Protocol (IIOP) lets RMI code reference and look up an object using the CORBA CosNaming service. This gives you greater interoperability between architectures with little change to your existing RMI code. Enterprise JavaBean code is based on RMI, but currently the specification does not require support for being accessed by way of IIOP. This will change in a future version of the specification.

Monica Pawlan, a staff writer for the Java Developer ConnectionSM (JDC), is author of Essentials of the Java Programming Language: A Hands-On Guide (Addison-Wesley, 2000), and co-author of Advanced Programming for the Java 2 Platform (Addison-Wesley, 2000).


Reader Feedback

Tell us what you think of this article.

Very worth reading Worth reading Not worth reading

If you have other comments or ideas for future articles, please type them here:

[TOP]


Print Button
[ This page was updated: 2-Jan-2002 ]
Products & APIs | Developer Connection | Docs & Training | Online Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Glossary | Help Pages
For answers to common questions and further contact
information please see the java.sun.com Help Pages.
Sun Microsystems, Inc.
Copyright � 1995-2002 Sun Microsystems, Inc.
All Rights Reserved. Terms of Use. Privacy Policy.

Reply via email to