Problems encountered when running the example in Seam

Source: Internet
Author: User
Tags mail example jboss jboss server jbpm

I have been dealing with seam for nearly a year, so the environment must be set up. The server downloads the seam framework, installs the JBoss server, and releases ant. According to the reference help documentation, in addition to the configured JDK environment, you can run out of seam with N multiple examples. Start JBoss, ant seam-examples, and run localhost, but it is 404. This indicates that the project is not deployed to the JBoss server, and server/deploy is enabled immediately. No xxx is available. ear, but the prompt is build
Successf. After checking the ant log, it was not copied to the server. To put it bluntly, the deployment of the project is not to copy the ear package to the deploy of the JBoss server, however, it cannot be deployed on the server. After a long period of troubleshooting, it is determined that it is a path problem and the build is set. JBoss in properties. the path slash for c: \ jboss-4.2.3.GA at home must be two in windows, otherwise the server will not be found.

The required software is as follows:

Ant1.8.2

JDK or later

Jbosses as 4.2

JBoss Seam 2.2.0

1: first configure build. properties under the JBoss Seam root directory, and add a line at the end of the line: JBoss. Home c: \ JBoss root directory

2: Start JBoss

3: deploy booking. In this example, run cmd to enter the \ booking path. A prompt is displayed on the console after ant deploy is completed, then go to the JBoss \ Server \ Default \ deploy directory to see if the deployment has been successful, if the deployment is successful, there will be a jboss-seam-booking.ear, jboss-seam-booking-ds.xml these two files are generated

4: Modify jboss-seam-booking-ds.xml

<? XML version = "1.0" encoding = "UTF-8"?>

<! Doctype datasources
Public "-// JBoss // DTD JBoss JCA config 1.5 // en"
Http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd>

<Datasources>
<Local-TX-datasource>
<JNDI-Name> bookingdatasource </JNDI-Name>
<Connection-URL> JDBC: HSQLDB: yourdb </connection-URL>
<Driver-class> org. HSQLDB. jdbcdriver </driver-class>
<User-Name> SA </user-Name>
<Password> </password>
</Local-TX-datasource>
</Datasources>

After the modification, you can go to your HSQLDB to find the generated data. JBoss can bring a tool to view the data. This tool is an AWT program and is in the JBoss console. --"

JBoss

Database = localdb, service = hypersonic --"

Void startdatabasemanager ()

Mbean operation.

Click invoke to start this tool. Change file --> connect --> URL to JDBC: HSQLDB: yourdb to view the automatically created table and initialization data after delopoy!

Run http: // localhost: 8080/seam-booking/to run the example.

In conclusion, if you clarify all the example of seam, you will basically understand almost all the content of seam, because example involves almost all the feature of seam:

This is the content in seam example.

Blog/the seam blog example, showing how to write
Restful applications using Seam

Booking/the seam booking Demo Application for ejbs 3.0

Contactlist/the seam contact list demo Demonstrating Use
Of the seam Application Framework

Drools/a version of the number guessing example that
Uses drools with jbpm

Dvdstore/the seam DVD store demo demonstrating jbpm
Support in Seam

Groovybooking/the seam booking demo ported to groovy

Hibernate/the seam booking demo ported to hibernate3

Icefaces/the seam booking demo with icefaces, instead
Ajax4jsf

Itext/a demo of the seam itext integration for generating PDFs

Jee5/booking the seam booking demo ported to
Java ee 5
Platforms

Jee5/remoting the seam remoting helloworld demo ported to
Java ee 5
Platforms

JPA/An example of the use of JPA (provided by hibernate), runs
On login platforms, including non-ee 5 platforms (including
Plain Tomcat)

Mail/the seam mail example demonstrating use
Facelets-based email Templating

Messages/the seam message list example demonstrating use
Of the @ datamodel Annotation

Nestedbooking/the booking example modified to show the use of nested
Conversations

Numberguess/the seam number guessing example, demonstrating
Jbpm pageflow

Quartz/a port of the seampay example to use the quartz dispatcher

Registration/a trivial example for the tutorial

Remoting/chatroom/the seam chat room example, demostrating Seam
Remoting

Remoting/GWT/An example of using GWT with seam remoting

Remoting/helloworld/a trivial example using Ajax

Remoting/progressbar/an example of an Ajax progress bar

Seambay/An example of using seam with Web Services

Seamdiscs/demonstrates seam, Trinidad, ajax4jsf and richfaces

Seampay/the seam payments demo demonstrating the use
Asynchronous Methods

Seamspace/the seam spaces demo demonstrating Seam
Security

Spring/demonstrates Spring framework integration

Todo/the seam todo list example demonstrating
Jbpm Business Process Management

UI/demonstrates some seam JSF controls

Wiki/A Fully featured wiki system based on seam, please
Read wiki/readme.txt for installation instruction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.