Post Subject : Tutorial on JBossIDE EJB3.0 Tools Dear UglyDuckling
Ref. 1 : JBoss IDE TrailBlazer : Hike 1 - EJB 3.0 Tools http://trailblazer.demo.jboss.com/IDETrail/ === Environment in use; - Windows XP SP2 - JDK 1.5.0_05 - JBoss AS 4.0.3SP1 - JBoss IDE1.5RC1 + Eclipse 3.1.1 In the case of incomplete deployment, it seems either 404 or 500 error occurs. e.g.; If deployed; | 1. no files ===> HTTP Status 404 - /authors/authors | 2. 'authors.war' only ===> HTTP Status 500 - | 3. 'authors-beans.ejb3' only ===> HTTP Status 404 - /authors/authors In order to complete deployment, it might be necessary to repeat a cycle of undeploy/packaging/deploy/check_results. (see Note1 and 2 on the Trail 6 in my last post.) --- Ref. Messages in the Console at each step --- Trail 5: Package an EJB 3.0 Application - on completion of packaging (see "packaging-build.xml" in my last post), the message is; Buildfile: E:\workspace\articles\packaging-build.xml | N65540: | N65557: | _packaging_generation_: | BUILD SUCCESSFUL | Total time: 5 seconds Trail 6: Deploy and Debug - keep JBoss AS running. - with Windows Explorer, check if there are 'authors.war' and 'authors-beans.ejb3' under '../jboss-4.0.3SP1/server/all/deploy'. - if exist, Undeploy both of them. = in the Package Explorer, right-click 'authors.war' -> Deployment -> Undeploy = The message in the console is; 23:38:03,855 INFO [TomcatDeployer] undeploy, ctxPath=/authors, warUrl=.../tmp/deploy/tmp28493authors-exp.war/ = and then, right-click 'authors-beans.ejb3' -> Deployment -> Undeploy 23:38:14,250 INFO [Ejb3Deployment] Create EntityManager with JNDI name: authors-beans | 23:38:14,260 INFO [SessionFactoryImpl] closing | 23:38:14,260 INFO [SchemaExport] Running hbm2ddl schema export | 23:38:14,270 INFO [SchemaExport] exporting generated schema to database | 23:38:14,270 INFO [SchemaExport] schema export complete = confirm undeployment of the two files using Windows Explorer. - Deploy them again. 1. 'authors.war' = in the Package Explorer, right-click 'authors.war' -> Deployment -> Deploy To... -> Target Choice Box = click and highlight 'JBoss4.0.3SPI [file:/E:/jboss-4.0.3SP1/server/all/deploy/]' in blue, then click 'OK'. 23:38:29,662 INFO [TomcatDeployer] deploy, ctxPath=/authors, warUrl=.../tmp/deploy/tmp28496authors-exp.war/ 2. 'authors-beans.ejb3' = in the Package Explorer, right-click 'authors-beans.ejb3' -> Deployment -> Deploy To... -> Target Choice Box = click and highlight 'JBoss4.0.3SPI [file:/E:/jboss-4.0.3SP1/server/all/deploy/]' in blue, then click 'OK'. 23:38:50,752 INFO [JaccHelper] Initialising JACC Context for deployment: authors-beans.ejb3 | 23:38:51,003 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=org.jboss.ejb3demo.AuthorsBean, class=org.jboss.ejb3demo.AuthorsBean, type=STATELESS | 23:38:51,383 INFO [JaccHelper] org.jboss.ejb3demo.AuthorsBean has no @SecurityDomain - skipping JACC configuration | 23:38:51,463 INFO [Ejb3Deployment] default entity manager name: authors-beans | 23:38:51,473 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.ejb3demo.Article | 23:38:51,483 INFO [Ejb3Configuration] found EJB3 Entity bean: org.jboss.ejb3demo.Author | 23:38:51,594 INFO [Configuration] processing extends queue | : | : (Total 74 lines of message) | : | 23:38:52,305 INFO [Ejb3Deployment] Create EntityManager with JNDI name: authors-beans | 23:38:52,305 INFO [JaccHelper] JACC Policy Configuration for deployment has been put in service | 23:38:52,305 INFO [Ejb3Deployment] EJB3 deployment time took: 1553 | 23:38:52,695 INFO [ProxyDeployer] no declared remote bindings for : org.jboss.ejb3demo.AuthorsBean | 23:38:52,705 INFO [ProxyDeployer] there is remote interfaces for org.jboss.ejb3demo.AuthorsBean | 23:38:52,705 INFO [ProxyDeployer] default remote binding has jndiName of org.jboss.ejb3demo.Authors | 23:38:52,946 INFO [EJB3Deployer] Deployed: file:/E:/jboss-4.0.3SP1/server/all/deploy/authors-beans.ejb3 = using Windows Explorer, confirm the two files deployed under '../jboss-4.0.3SP1/server/all/deploy'. - go to URL "http://localhost:8080/authors/authors" and check the results. jbosszone View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918719#3918719 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918719 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user