[JBoss-user] [Beginners Corner] - JBoss and logging
I have just written my first jboss EAR application, and now I would like to add logging. I was looking at log4, but from docs I see that the log4j.jar goes on the client side. Does JBoss have logging that can be called from both client and server side and writes to the same file if the application is running on the same JVM. If there is and there is a link of how to set this up can you post it on this forum. Thanks Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3850490#3850490 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3850490 --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Tutorial for building J2EE Applications using JBOSS and ECLI
I am currently running the Tutorial for building J2EE Applications using JBOSS and ECLIPSE chapter 6 the tutorial shows you how to create a CMP. One of the methods is findByPrimaryKey. The problem is that when I call the findByPrimaryKey method : SupplierLocal supplier = this.suppLocalHome.findByPrimaryKey(suppID); It returns a null pointer value. According to the tutorial the findByPrimaryKey is set by the container. Using a search I can find reference to the findByPrimaryKey in two files: SupplierHome public au.com.tusc.cmp.Supplier findByPrimaryKey(java.lang.String pk) throws javax.ejb.FinderException,java.rmi.RemoteException; SupplierLocalHome public au.com.tusc.cmp.SupplierLocal findByPrimaryKey(java.lang.String pk) throws javax.ejb.FinderException; But it has not generated any reference to the findByPrimaryKey method in the deployment descriptors. What I need to know is how to set the findByPrimaryKey method within the deployment descriptors. Or how to set it up with xdoclet. Thanks for any help. Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3848000#3848000 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3848000 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: HELP: Installed JBoss, started it up, but can't hit ser
If your port is set to 8080, when you start it http://localhost:8080/ should load the JBoss startup page. What message are you getting on your page. Also check in your log files and on the Command Prompt you may be getting an error message that JBoss can not bind to that port because another application is using it. On my PC Oracle is using port 8080 so I did a search of the JBoss config files and changed 8080 to another port in my case 9000. I hope this helps. Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846801#3846801 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846801 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: javax.naming.NameNotFoundException: StoreAccessBean not
Hi Vishal, I started from scratch and managed to get chapter 3 up and running, but ended up with the same problem in Chapter 5. javax.naming.NameNotFoundException: StoreAccessBean not bound. I really want to get to the bottem what causes this problem, can you give me any hints on how to debug JBoss. The problem is without a rough idea of what causes it I am not sure of how to find out what the problem is. I would be grateful for any help. Thanks Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846557#3846557 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846557 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: javax.naming.NameNotFoundException: StoreAccessBean not
Sorted the problem the tag in StoreAccessBean @ejb.ejb-ref ejb-name=Customer view-type=local ref-name=CustomerLocal generates the following in the ejb-jar ejb-local-ref ejb-ref-nameCustomerLocal/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type local-homeau.com.tusc.bmp.CustomerLocalHome/local-home au.com.tusc.bmp.CustomerLocal ejb-linkCustomer/ejb-link /ejb-local-ref what I did was then add ejb in front of CustomerLocal ejb-ref-nameejb/CustomerLocal/ejb-ref-name which solved the problem. Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846561#3846561 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846561 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: javax.naming.NameNotFoundException: StoreAccessBean not
Thanks Vishal, but the proplem is not found in that thread. The problem is that the tutorial was set up for jboss-3.2.1 and I am using version jboss-3.2.5. with jboss jboss321all.server a ejbGenerate file is generated with jboss325all.server a xdoclet file is generated. And I have a feeling its how the DataAccessObject is accesed, if I remover the DAO tag from StoreAccessBean.java the StoreAccessBean is picked up ok. Do you know of any other tutorials, this is a good tutorial but I have the feeling that I will spend so much time trying to get it work that I will not get any real benefit in learning how the J2EE components work with JBoss. Thanks Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846265#3846265 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846265 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - javax.naming.NameNotFoundException: StoreAccessBean not boun
I am running the following tutorial : Tutorial for building J2EE Applications using JBOSS and ECLIPSE Chapter 3. When I run the tutorial I get the following error : javax.naming.NameNotFoundException: StoreAccessBean not bound it seems to be a common problem although no one has yet posted a solution. The tutorial involves a session bean calling a DAO. Calling the session bean by itself there is no problem its when it calls a the DAO method it falls over. As I see it there must be a bug in the XDOCLET generation. If you have completed this tutorial or got past chapter can u give me the fix. If this is unfixable please let me know and I will spend my time working on another unworkable tutorial. Thanks Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846213#3846213 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846213 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Any recommendation for a good simple JBoss Tutorial using CM
Is there a good simple tutorial that sjows how to build J2EE applications including CMP and JMS. Not the Tutorial for building J2EE Applications using JBOSS and ECLIPSE that has too many unresolved problems, and I would rather spend time learning the code rather than spending time trying to figure out why eclipse or LOMBOZ is not working. Thanks for any pointers Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846223#3846223 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846223 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Missing required library jboss-boot.jar
I am running the following tutorial : Tutorial for building J2EE Applications using JBOSS and ECLIPSE . The example asks for Jboss 3.2.1 but I am using Jboss 3.2.5, when I try to build the example I get the following errors: Missing required library : jboss-boot.jar Missing required library : jdom.jar Missing required library : javagroups-2.0 Missing required library : jbossmqha.jar Missing required library : jts.jar Have these jars been depreciated in Jboss 3.2.5 if so what have they been replaced with or do I need to download them as seperate jars. I cannot find the Jboss 3.2.1.zip file and would rather continue working with Jboss 3.2.5 thanks for any help. Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3845890#3845890 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3845890 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Missing required library jboss-boot.jar
Sorted the problem out replaced jboss3251all.server with jboss325all.server This file can be found at : http://www.kawaz.jp/pukiwiki/?JBoss%203.2.3%A2%AA3.2.4 Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3845916#3845916 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3845916 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Connecting jboss-3.2.5 to Oracle 9i
Thanks everyone but still having problems, sorry I did not reply sooner, been of ill. Tony View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844846#3844846 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844846 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Dukes Bank jboss-build.xml anyone psot a version using Oracl
I am trying to connect my JBoss application to Oracle to use so that Dukes Bank is uses an Oracle Database instead of HyperStream I have tried to follow the tutorial in the Dukes Bank example using OracleXA: These are the steps I have carried out so far: 1) I have modified the oracle-ds and deployed it to : C:\jboss-3.2.5\server\default\deploy local-tx-datasource jndi-nameOracleDS/jndi-name connection-urljdbc:oracle:thin:@localhost:1521:BankDB/connection-url driver-classoracle.jdbc.driver.OracleDriver/driver-class user-namesystem/user-name manager !-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -- !--valid-connection-checker-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker/valid-connection-checker-class-name-- !-- Checks the Oracle error codes and messages for fatal errors -- exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name !-- sql to call when connection is created new-connection-sqlsome arbitrary sql/new-connection-sql -- !-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered check-valid-connection-sqlsome arbitrary sql/check-valid-connection-sql -- /local-tx-datasource 2)) Modified C:\jboss-3.2.5\server\default\conf\jboss-service.xml !-- The configurable Xid factory. For use with Oracle, set pad to true -- true 3) Copied classes12.jar to C:\jboss-3.2.5\server\default\lib 4) Copied oracle-xa-ds to C:\jboss-3.2.5\server\default\deploy xa-datasource jndi-nameXAOracleDS/jndi-name track-connection-by-tx/ isSameRM-override-valuefalse/isSameRM-override-value xa-datasource-classoracle.jdbc.xa.client.OracleXADataSource/xa-datasource-class xa-datasource-property name=URLjdbc:oracle:thin:@localhost:1521:BankDB/xa-datasource-property xa-datasource-property name=Usersystem/xa-datasource-property xa-datasource-property name=Passwordmanager/xa-datasource-property exception-sorter-class-nameorg.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter/exception-sorter-class-name !-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa -- no-tx-separate-pools/ /xa-datasource depends optional-attribute-name=TransactionManagerServicejboss:service=TransactionManager ** But I am not sure what to do next as regards the jboss-build.xml file: It makes references to the HyperSonic Build Tool, since I want to use Oracle I should delete all references to hsqldb in the jboss-build.xml, but not to sure what I should add to make sure that Dukes Bank points at Oracle. Thanks for any help. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3844848#3844848 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3844848 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user