[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - java.lang.NoClassDefFoundError: javax/faces/component/UIData
hi, i've followed the wiki for faces install and get the following error. I've obviously missed something but I cannot work out what it is. I have also confirmed that the war file has the jsf libraries in. Any suggestions will be appreciated. Thanks Andrew 00:03:15,812 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception | javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: javax/faces/component/UIData | at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:206) | at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:154) | at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:386) | at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1009) | at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1036) | at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:749) | at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:429) | at com.sun.faces.taglib.html_basic.DataTableTag.doStartTag(DataTableTag.java:473) | at org.apache.jsp.storelist_jsp._jspx_meth_h_dataTable_0(org.apache.jsp.storelist_jsp:452) | at org.apache.jsp.storelist_jsp._jspx_meth_h_form_0(org.apache.jsp.storelist_jsp:420) | at org.apache.jsp.storelist_jsp._jspx_meth_f_view_0(org.apache.jsp.storelist_jsp:193) | at org.apache.jsp.storelist_jsp._jspService(org.apache.jsp.storelist_jsp:98) | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) | at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) | at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) | at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) | at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) | at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) | at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) | at
[JBoss-user] [Beginners Corner] - Re: Mail not bound error
I am really stuck, I cannot find a resolution. Any ideas would be appreciated. thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3903923#3903923 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3903923 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Mail not bound error
hi when trying to get the session to be able to send an email from a bean i am told that mail is not bound. I have a mail-service.xml in the deply folder !DOCTYPE server | server | mbean code=org.jboss.mail.MailService | name=jboss:service=mail/JFrMail | attribute name=JNDINamejava:/mail/JFrMail/attribute | !-- | Use these if your outgoing server requires authentication | attribute name=Usernobody/attribute | attribute name=Passwordpassword/attribute | -- | attribute name=Configuration | configuration | property name=mail.transport.protocol value=smtp/ | property name=mail.smtp.host value=mail.dummy.com/ | property name=mail.from value=[EMAIL PROTECTED]/ | property name=mail.debug value=false/ | /configuration | /attribute | /mbean | /server to get the session I do the following : mailsession = (Session) ctx.lookup(java:/mail/JFrMail); and i get the following when Jboss delpoys the xml anonymous wrote : 07:21:06,437 INFO [MailService] Mail Service bound to java:/mail/JFrMail my jndi.properties : java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory | java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces | java.naming.provider.url=localhost and i'm using jboss 4.0.3 i've missed something but after a lot of googling I can't see what thanks Andrew View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3902925#3902925 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3902925 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Mail not bound error
my apologies... Exception in thread main javax.naming.NameNotFoundException: mail not bound | at org.jnp.server.NamingServer.getBinding(NamingServer.java:514) | at org.jnp.server.NamingServer.getBinding(NamingServer.java:522) | at org.jnp.server.NamingServer.getObject(NamingServer.java:528) | at org.jnp.server.NamingServer.lookup(NamingServer.java:252) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) | at sun.rmi.transport.Transport$1.run(Unknown Source) | at java.security.AccessController.doPrivileged(Native Method) | at sun.rmi.transport.Transport.serviceCall(Unknown Source) | at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) | at java.lang.Thread.run(Unknown Source) | at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source) | at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source) | at sun.rmi.server.UnicastRef.invoke(Unknown Source) | at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610) | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572) | at javax.naming.InitialContext.lookup(Unknown Source) | at client.XMLClient.LoadContext(XMLClient.java:136) | at client.XMLClient.main(XMLClient.java:62) | | | there is nothing in server.log about mail but the following is displayed on the Eclipse console when I changed debug to true | | 00:11:12,890 INFO [MailService] Mail service 'java:/mail/JFrMail' removed from JNDI | | 00:11:13,109 INFO [STDOUT] DEBUG: JavaMail version 1.3.1 | | 00:11:13,109 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_02\lib\javamail.providers (The system cannot find the file specified) | | 00:11:13,156 INFO [STDOUT] DEBUG: !anyLoaded | | 00:11:13,156 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.providers | | 00:11:13,171 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.providers | | 00:11:13,171 INFO [STDOUT] DEBUG: Tables of loaded providers | | 00:11:13,171 INFO [STDOUT] DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]} | | 00:11:13,171 INFO [STDOUT] DEBUG: Providers Listed By Protocol: {imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]} | | 00:11:13,187 INFO [STDOUT] DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map | | 00:11:13,187 INFO [STDOUT] DEBUG: !anyLoaded | | 00:11:13,203 INFO [STDOUT] DEBUG: not loading resource: /META-INF/javamail.address.map | | 00:11:13,203 INFO [STDOUT] DEBUG: java.io.FileNotFoundException: C:\Program Files\Java\jre1.5.0_02\lib\javamail.address.map (The system cannot find the file specified) | | 00:11:13,203 INFO [MailService] Mail Service bound to java:/mail/JFrMail | | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3903135#3903135 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3903135 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Mbean examples
the following snippets are based on the Jboss trailblazer MBeanServer server = MBeanServerLocator.locate(); | | jfrman = (jfrManager) MBeanProxyExt.create( | jfrManager.class, jfr:service=manager, server); | | @Service (objectName=jfr:service=manager) | public class jfrManager implements jfrManagerMBean{ | private boolean started; | @Management | public interface jfrManagerMBean { | public void start() throws Exception; | public void stop () throws Exception; | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3900990#3900990 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900990 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Mbean examples
hi, i can't get access to my mbean which is running. Can anyone point me to some example code coz what I have found so far hasn't helped. thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3900550#3900550 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900550 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: Mbean examples
I am still missing something. I have a simple MBean to pass a value back to the EJB. I'm using JB 4.0.2. For instance I follow the trailblazer example and I get Exception in thread main java.util.NoSuchElementException | at java.util.AbstractList$Itr.next(Unknown Source) | at org.jboss.mx.util.MBeanServerLocator.locate(MBeanServerLocator.java:67) | at org.jboss.mx.util.MBeanServerLocator.locate(MBeanServerLocator.java:80) | at client.XMLClient.main(XMLClient.java:52) | | I am hot deploying and know the mbean is started. | | Please help as I am getting absolutely nowhere. | | thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3900737#3900737 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3900737 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - No data type for node: Error on a namedquery - Why ?
i get a No data type for node: on this namedquery @NamedQuery(name=getStoreTxnsTotal, queryString= | SELECT SUM(total) FROM TransactionCMP t, CustomerCMP c WHERE c.code = :code AND t.store = :store) total is defined as a double in the table/entity. Any pointers ? thanks Andrew 21:32:31,968 ERROR [Ejb3Module] Initialization failed jboss.j2ee:service=EJB3,module=entities.par | java.lang.IllegalStateException: No data type for node: org.hibernate.hql.ast.tree.AggregateNode | \-[AGGREGATE] AggregateNode: 'SUM' | \-[IDENT] IdentNode: 'total' {originalText=total} | | at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:139) | at org.hibernate.hql.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:596) | at org.hibernate.hql.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:463) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:633) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:269) | at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:217) | at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:211) | at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:153) | at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:100) | at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:459) | at org.hibernate.impl.SessionFactoryImpl.checkNamedQueries(SessionFactoryImpl.java:420) | at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:323) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1033) | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:439) | at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:272) | at org.jboss.ejb3.Ejb3Deployment.initializeManagedEntityManagerFactory(Ejb3Deployment.java:476) | at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:219) | at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:34) | at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:238) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:220) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897) | at $Proxy0.create(Unknown Source) | at org.jboss.system.ServiceController.create(ServiceController.java:330) | at org.jboss.system.ServiceController.create(ServiceController.java:275) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) | at $Proxy16.create(Unknown Source) | at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:178) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:918) | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:910) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:774) | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738) | at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) | at
[JBoss-user] [Beginners Corner] - Best practice - entities and defaults
hi i have some entity beans that would be good to set defaults from a properties file. Whats the best way to do this ? I was thinking either in the create (which could mean a pile of disk accesses or create an mbean to hand it out at creation etc. thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3898567#3898567 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3898567 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Whats wrong with this namedquery ?
This query works when I do a CreateQuery but when trying it as a namedquery it fails with a could not resolve property: error on deployment. @NamedQuery(name=findCustomer, queryString=SELECT OBJECT(c) FROM CustomerCMP c where c.name = :name) Andrew View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3897641#3897641 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3897641 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Hibernate: 1-to-Many, help!
dave, from what i've been able to suss out is that you don't use merge, Jboss/hibernate is supposed to update when you leave the function. I can now add a new relationship but if I want to add a new child then it either doesn't update of if I use merge it starts to duplicate. Andrew View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3896527#3896527 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3896527 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - One table or many tables ?
I was wondering if someone could comment on the following. I have an employer entity that has a 1 to many relationship with employees. The employer has it's own address and obviously each employee has their own address. Would it be better to have a table that contains all addresses including the employers address or have one table for employer details and one table for employees ? Or maybe there is another option that i'm not seeing. tia Andrew View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3895727#3895727 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895727 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: ManyToOne question
I have checked some Jboss examples and there is nothing that I can see in the web.xml that helps. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3895456#3895456 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895456 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - JBoss OneToMany Retrieval
I am a newbie and am trying to get these entities to talk. I can write to the data to the db (I check with the db manager and the store is in the db) but when I retrieve the data I get the customer details including the address but the StoreList is empty. Any ideas ? Thanks @Entity | @Table(name = CUSTOMER) | public class CustomerCMP implements java.io.Serializable{ | | private Long id; | private String name; | private String contact; | private AddressCMP address; | private ListStoreCMP StoreList; | | public CustomerCMP(){} | | public CustomerCMP(String Name, String Contact) | { | // Debug.print(Create, this); | this.name = Name; | this.contact = Contact; | } | | @Id(generate = GeneratorType.AUTO) | @Column(name = customerId, nullable = false) | public Long getId() { | return id; | } | public void setId(Long id) { | this.id = id; | } | | @Column(name=NAME) | public String getName() { | return name; | } | public void setName(String name) { | this.name = name; | } | | @Column(name=CONTACT) | public String getContact() { | return contact; | } | public void setContact(String contact) { | this.contact = contact; | } | | @OneToOne(cascade = {CascadeType.ALL}) | @JoinColumn(name = addressId) | public AddressCMP getAddress() { | return address; | } | public void setAddress(AddressCMP address) { | this.address = address; | } | | @OneToMany(targetEntity=com.meerkat.jfr.par.StoreCMP.class, | cascade={CascadeType.ALL}, | fetch=FetchType.EAGER, | mappedBy=customer) | public ListStoreCMP getStoreList() | { | return StoreList; | } | public void setStoreList(ListStoreCMP StoreList) | { | this.StoreList = StoreList; | } | | public StoreCMP addToStoreList(StoreCMP store) | { | if (this.StoreList == null) | { | this.StoreList = new ArrayListStoreCMP(); | } | store.setCustomer(this); | getStoreList().add(store); | return store; | } | public StoreCMP removeFromStoreList(StoreCMP store) | { | getStoreList().remove(store); | store.setCustomer(null); | return store; | } | } | | @Entity | @Table(name = STORE) | public class StoreCMP implements Serializable | { | private Long id; | private String name; | private AddressCMP address; | private String code; | private CustomerCMP customer; | | public StoreCMP() | { | } | public StoreCMP(Long id, String Name, AddressCMP address, String code ) | { | setId(id); | setName(name); | setAddress(address); | setCode(code); | } | | @Id(generate = GeneratorType.AUTO) | @Column(name=StoreId, nullable=false) | public Long getId() { | return id; | } | public void setId(Long id) { | this.id = id; | } | | @OneToOne(cascade = {CascadeType.ALL}, fetch=EAGER) | @JoinColumn(name = ADDRESSID) | public AddressCMP getAddress() { | return address; | } | public void setAddress(AddressCMP address) { | this.address = address; | } | @Column(name=CODE) | public String getCode() { | return code; | } | public void setCode(String code) { | this.code = code; | } | @Column(name=NAME) | public String getName() { | return name; | } | public void setName(String name) { | this.name = name; | } | @ManyToOne | @JoinColumn(name=customerId) | //@JoinColumn(name=customerId, nullable=false) | public CustomerCMP getCustomer() | { | return customer; | } | public void setCustomer(CustomerCMP customer) | { | this.customer = customer; | } | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3895244#3895244 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895244 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list
[JBoss-user] [Beginners Corner] - Re: ManyToOne question
I realised that the storelist was null in a new customer, so I added if (this.StoreList == null) | { | this.StoreList = new ArrayListStoreCMP(); | } | the store record is created but when I retrieve it via getstorelist it returns nothing. Why ? tia Andrew View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3895038#3895038 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895038 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Hibernate: 1-to-Many, help!
hi Dave, i can't even retrieve my pictures in a onetomany relationship. I can see my next challenge will be like yours. please let me know how you get on. Andrew View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3895060#3895060 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895060 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - ManyToOne question
hi Lets say I have customer that can have many different stores. How do I create the relationship between them. I get the OneToOnes but can't seem to master the ManyToOne relationships. I have included the latest (non) working attempt. Can someone please point me in the right direction. thanks @Entity | @Table(name = CUSTOMER) | public class CustomerCMP implements java.io.Serializable{ | | private Long id; | private String name; | private String contact; | private AddressCMP address; | private ListStoreCMP StoreList; | | public CustomerCMP(){} | | public CustomerCMP(String Name, String Contact) | { | // Debug.print(Create, this); | this.name = Name; | this.contact = Contact; | } | | @Id(generate = GeneratorType.AUTO) | @Column(name = customerId, nullable = false) | public Long getId() { | return id; | } | public void setId(Long id) { | this.id = id; | } | | @Column(name=NAME) | public String getName() { | return name; | } | public void setName(String name) { | this.name = name; | } | | @Column(name=CONTACT) | public String getContact() { | return contact; | } | public void setContact(String contact) { | this.contact = contact; | } | | @OneToOne(cascade = {CascadeType.ALL}) | @JoinColumn(name = addressId) | public AddressCMP getAddress() { | return address; | } | public void setAddress(AddressCMP address) { | this.address = address; | } | | @OneToMany(mappedBy=customerCMP, cascade={CascadeType.PERSIST}, fetch=FetchType.EAGER) | @JoinColumn(name=customerId) | public ListStoreCMP getStoreList() | { | return StoreList; | } | public void setStoreList(ListStoreCMP StoreList) | { | this.StoreList = StoreList; | } | public StoreCMP addToStoreList(StoreCMP store) | { | getStoreList().add(store); | store.setCustomer(this); | return store; | } | public StoreCMP removeFromStoreList(StoreCMP store) | { | getStoreList().remove(store); | store.setCustomer(null); | return store; | } | } | @Entity | @Table(name = STORE) | public class StoreCMP implements Serializable | { | private Long id; | private String name; | private AddressCMP address; | private String code; | private CustomerCMP customer; | | public StoreCMP() | { | } | public StoreCMP(Long id, String Name, AddressCMP address, String code ) | { | setId(id); | setName(name); | setAddress(address); | setCode(code); | } | | @Id(generate = GeneratorType.AUTO) | @Column(name=StoreId, nullable=false) | public Long getId() { | return id; | } | public void setId(Long id) { | this.id = id; | } | | @OneToOne(cascade = {CascadeType.ALL}, fetch=EAGER) | @JoinColumn(name = ADDRESSID) | public AddressCMP getAddress() { | return address; | } | public void setAddress(AddressCMP address) { | this.address = address; | } | @Column(name=CODE) | public String getCode() { | return code; | } | public void setCode(String code) { | this.code = code; | } | @Column(name=NAME) | public String getName() { | return name; | } | public void setName(String name) { | this.name = name; | } | @ManyToOne | @JoinColumn(name=customerId) | public CustomerCMP getCustomer() | { | return customer; | } | public void setCustomer(CustomerCMP customer) | { | this.customer = customer; | } | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894824#3894824 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894824 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - java.lang.NoClassDefFoundError: antlr/RecognitionException
My bean adds to the DB fine, I can see it in the HSQL DB Manager but whichever way I try to retieve the info it comes up with the following error. Exception in thread main java.lang.NoClassDefFoundError: antlr/RecognitionException at java.lang.Class.getDeclaredFields0(Native Method) at java.lang.Class.privateGetDeclaredFields(Unknown Source) at java.lang.Class.getDeclaredField(Unknown Source) at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source) at java.io.ObjectStreamClass.access$600(Unknown Source) at java.io.ObjectStreamClass$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.io.ObjectStreamClass.(Unknown Source) at java.io.ObjectStreamClass.lookup(Unknown Source) at java.io.ObjectStreamClass.initNonProxy(Unknown Source) at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) at java.io.ObjectInputStream.readClassDesc(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.defaultReadFields(Unknown Source) at java.io.ObjectInputStream.readSerialData(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:72) at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:244) at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:117) at org.jboss.remoting.Client.invoke(Client.java:201) at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:41) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:88) at $Proxy0.getCustomer(Unknown Source) at client.Client.main(Client.java:34) package com.meerkat.jfr.ejb; | | import java.util.Collection; | import java.util.List; | | import javax.ejb.Stateful; | import javax.ejb.Stateless; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | import javax.transaction.Transaction; | | import org.jboss.aspects.Current; | | import com.meerkat.jfr.par.CustomerCMP; | | @Stateless | public class CustomerBean implements Customer { | | @PersistenceContext(unitName = cust) | private EntityManager em; | @Current Transaction tx; | | public CustomerCMP addCustomer(String Name, String Contact) | { | CustomerCMP cust = new CustomerCMP(Name, Contact); | em.persist(cust); | em.flush(); | return cust; | } | public CustomerCMP getCustomer(String Name) | { | return (CustomerCMP) em.createQuery(from Customer c where c.Name =:Name) | .setParameter(Name, Name) | .getSingleResult(); | } | public List getCustomers() | { | return em.createQuery(from Customer c).getResultList(); | } | | } | import javax.persistence.*; | | @Entity | @Table(name = CUSTOMER) | public class CustomerCMP implements java.io.Serializable{ | | private Long id; | private String name; | private String contact; | // private Address address; | // private ListStore StoreList; | | public CustomerCMP(){} | | public CustomerCMP(String Name, String Contact) | { | // Debug.print(Create, this); | this.name = Name; | this.contact = Contact; | } | | @Id(generate = GeneratorType.AUTO) | @Column(name = ID,
[JBoss-user] [Beginners Corner] - Re: java.lang.NoClassDefFoundError: antlr/RecognitionExcepti
vlokesh wrote : What configuration are you using for your deployment? default or all? The error says that you dont have antlr.jar in your classpath. If you are deploying the ejb app under all configuration then it will not throw that exception. antlr.jar is used to constructing the queries. | | Regards. | | Lokesh. hi, i am using all but I included antlr-2.7.5.H3.jar and now I get the following error. If I can write why not read ? Exception in thread main javax.ejb.EJBException: null; CausedByException is: Customer is not mapped. [from Customer c] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:46) at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:70) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:195) at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:107) at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:69) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:325) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:201) at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:259) at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:327) at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:147) org.hibernate.hql.ast.QuerySyntaxException: Customer is not mapped. [from Customer c] at org.hibernate.hql.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:145) at org.hibernate.hql.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:86) at org.hibernate.hql.ast.tree.FromClause.addFromElement(FromClause.java:72) at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:260) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3019) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2908) at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:676) at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:532) at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:269) at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:217) at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:211) at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:153) at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:100) at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:459) at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:904) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:854) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74) at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:41) at com.meerkat.jfr.ejb.CustomerBean.getCustomers(CustomerBean.java:38) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:99) at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:32) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:66) at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88) at
[JBoss-user] [Beginners Corner] - Re: java.lang.NoClassDefFoundError: antlr/RecognitionExcepti
vlokesh wrote : Your Query is wrong | | Change this | | return (CustomerCMP) em.createQuery(from Customer c where c.Name =:Name).getSingleResult() | | return em.createQuery(from Customer c).getResultList(); | | To | | return (CustomerCMP) em.createQuery(from CustomerCMP c where c.Name =:Name).getSingleResult() | | return em.createQuery(from CustomerCMP c).getResultList(); | | in both method calls. | | Regards. | | Lokesh. | | Hi Lokesh, the getCustomers works great. The getCustomer (code see below) now generates the exception below. The server is still running and I can rerun the client with the same results. What did I screw up ? tia exception in thread main java.lang.reflect.UndeclaredThrowableException at $Proxy0.getCustomer(Unknown Source) at client.Client.getOneCust(Client.java:47) at client.Client.main(Client.java:31) Caused by: java.rmi.ConnectException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is: java.net.SocketTimeoutException: Read timed out private static void getOneCust() | { | System.out.println(Getting); | CustomerCMP cust1 = cust.getCustomer(Andrew); | System.out.printf(%s %s\r\n, cust1.getName(), cust1.getContact()); | System.out.println(done); | } | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894371#3894371 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894371 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: What does no classloaders found mean ?
gulaplaarajasekhar wrote : The container is not able to load com.meerkat.jfr.par.Address class and so the ClassNotFound Exception | It might be due to various reasons. Few which I know are | | 1. If we user more than 1 container, then there should be mapping in one container saying the path of the other container. | | 2. If using only one container, then the path is not set correctly.. | | | Rajasekhar Hi Rajasekhar, can you give me more info ? Thanks Andrew View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3893325#3893325 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893325 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - cannot find symbol primaryKey
I get the following when building my entity beans. I just cant seem to work this out. [javac] F:\workspace\JFr\src\com\meerkat\jfr\par\LineItem.java:55: cannot find symbol [javac] symbol : method primaryKey() [javac] location: @interface javax.persistence.Column [javac] @Column(name=ID, primaryKey=true, nullable=false) [javac] ^ [javac] F:\workspace\JFr\src\com\meerkat\jfr\par\LineItem.java:146: incompatible types [javac] found : java.lang.String [javac] required: java.lang.Class [javac] @ManyToOne(targetEntity=com.meerkat.jfr.Transaction, fetch=EAGER) [javac] ^ My build.xml is as follows : ?xml version=1.0? !-- === -- !-- JBoss build file -- !-- === -- !-- Build classpath -- !-- So that we can get jndi.properties for InitialContext -- !-- === -- !-- Prepares the build directory-- !-- === -- !-- === -- !-- Compiles the source code-- !-- === -- !-- -- !-- === -- !-- Cleans up generated stuff -- !-- === -- thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3893114#3893114 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893114 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: cannot find symbol primaryKey
Sorry about that ?xml version=1.0? | | !-- === -- | !-- JBoss build file -- | !-- === -- | | project name=Meerkat default=ejbjar basedir=. | |property environment=env/ |property name=src.dir value=${basedir}/src/ |property name=jboss.home value=${env.JBOSS_HOME}/ |property name=build.dir value=${basedir}/build/ |property name=build.classes.dir value=${build.dir}/classes/ |property name=eclipse.home value=F:/eclipse/ | |!-- Build classpath -- |path id=classpath | fileset dir=${jboss.home}/lib | include name=**/*.jar/ | /fileset | fileset dir=${jboss.home}/server/all/lib | include name=**/*.jar/ | /fileset | fileset dir=${jboss.home}/server/all/deploy/ejb3.deployer | include name=*.jar/ | /fileset |fileset dir=${jboss.home}/server/all/deploy/jboss-aop-jdk50.deployer | include name=*.jar/ | /fileset | fileset dir=${jboss.home}/client |include name=*.jar/ | /fileset | fileset dir=${jboss.home}/lib |include name=*.jar/ | /fileset | fileset dir=${jboss.home}/server/all/lib |include name=*.jar/ | /fileset | fileset dir=${eclipse.home}/plugins/org.jboss.ide.eclipse.jdt.j2ee.core_1.5.0.M2/lib/j2ee-1.4 |include name=*.jar/ | /fileset | fileset dir=${eclipse.home}/plugins/org.jboss.ide.eclipse.jdt.aop.core_1.1.0.beta3 |include name=*.jar/ | /fileset | | | pathelement location=${build.classes.dir}/ | !-- So that we can get jndi.properties for InitialContext -- | pathelement location=${basedir}/ |/path | |property name=build.classpath refid=classpath/ | |!-- === -- |!-- Prepares the build directory -- |!-- === -- |target name=prepare | mkdir dir=${build.dir}/ | mkdir dir=${build.classes.dir}/ |/target | |!-- === -- |!-- Compiles the source code -- |!-- === -- |target name=compile depends=prepare | javac srcdir=${src.dir} | destdir=${build.classes.dir} | debug=on | deprecation=on | optimize=off | includes=** | classpath refid=classpath/ | /javac |/target | |target name=ejbjar depends=compile | jar jarfile=build/jfrentity.ejb3 | fileset dir=${build.classes.dir}/com/meerkat/jfr/par | include name=**/*.class/ | /fileset | /jar | copy file=build/jfrentity.ejb3 todir=${jboss.home}/server/all/deploy/ |/target | |target name=entity2xml depends=prepare | java fork=yes failOnError=true className=com.meerkat.jfr.par.EntityToHibernateXml | classpath refid=classpath/ | arg value=com.meerkat.jfr.par.Address/ | arg value=com.meerkat.jfr.par.Customer/ | arg value=com.meerkat.jfr.par.LineItem/ | arg value=com.meerkat.jfr.par.Store/ | arg value=com.meerkat.jfr.par.TenderItem/ | arg value=com.meerkat.jfr.par.Transaction/ | /java |/target | !-- |target name=run depends=ejbjar | java classname=org.jboss.tutorial.entity.client.Client fork=yes dir=. | classpath refid=classpath/ | /java |/target | -- |!-- === -- |!-- Cleans up generated stuff -- |!-- === -- |target name=clean.db | delete dir=${jboss.home}/server/all/data/hypersonic/ |/target | |target name=clean | delete dir=${build.dir}/ | delete file=${jboss.home}/server/all/deploy/tutorial.ejb3/ |/target | | | /project | View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3893116#3893116 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893116 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing
[JBoss-user] [Beginners Corner] - What does no classloaders found mean ?
what does this mean ? 05:24:29,546 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=jfrentity.ejb3 java.lang.RuntimeException: java.lang.ClassNotFoundException: No ClassLoaders found for: com.meerkat.jfr.par.Address at org.jboss.ejb3.Ejb3Module.createHibernateSessionFactory(Ejb3Module.java:218) at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:263) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222) at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:418) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy16.start(Unknown Source) at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:166) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:964) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:775) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:738) at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:121) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127) at org.jboss.mx.server.Invocation.invoke(Invocation.java:74) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy8.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:325) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:501) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204) at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222) at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80) at org.jboss.mx.server.Invocation.invoke(Invocation.java:72) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:897) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:418) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
[JBoss-user] [Beginners Corner] - Re: Tutorial wont run
I found that one of the jars was not in the deploy folder. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3893135#3893135 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893135 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Tutorial wont run
hi i'm trying to get anything working and to date nothing does. So i decided to go back to scratch and download the stateless tutorial and it compiles, deploys and after having to add some external libs i now get the following message. Exception in thread main java.lang.NoClassDefFoundError: EDU/oswego/cs/dl/util/concurrent/ThreadFactory at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:38) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66) at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:44) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66) at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:38) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66) at org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:32) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:66) at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:82) at $Proxy0.add(Unknown Source) at jboss.tutorial.stateless.client.Client.main(Client.java:21) I must be doing something wrong coz it just can't be this hard. I've spent days dicking around trying to get things to run but to no avail. help I don't have enough hair to lose any more. btw i'm using eclipse 3.1 JB 1.5.0 M2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3892972#3892972 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3892972 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Need to specify class name in environment or system prop
i'm using eclipse run as java app. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3892975#3892975 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3892975 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Need to specify class name in environment or system property
hi when i try running the client i get Exception in thread main javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.lookup(Unknown Source) at org.meerkat.fraud.client.Client.main(Client.java:12) the client source is package org.meerkat.fraud.client; import javax.naming.InitialContext; import org.meerkat.fraud.ejb.JFraud; public class Client { public static void main(String[] args) throws Exception { InitialContext ctx = new InitialContext(); JFraud test = (JFraud) ctx.lookup(JFraud.class.getName()); System.out.println(Creating 1); test.addCustomer(Andrews Place, Andrew ); System.out.println(Done); } } any ideas ? tia Andrew View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3891703#3891703 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891703 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - Re: Need to specify class name in environment or system prop
I have put it in the projects root dir, package (clients) dir to no avail. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3891707#3891707 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891707 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Getting Started Documentation] - Re: problem creating db-table in getting started
Hi, I'm getting the same thing but can't see anything about clearing the data. Please help tia Andrew View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=369#369 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=369 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Getting Started Documentation] - Re: problem creating db-table in getting started
Hi, I went into HSQL Database Manager dropped ITEM INVOICE tables, tried creating and all is well. Andrew View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=370#370 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=370 --- SF.Net email is Sponsored by the Better Software Conference EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile Plan-Driven Development * Managing Projects Teams * Testing QA Security * Process Improvement Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user