[JBoss-user] [EJB 3.0] - Re: EmbeddedId annotation generates AnnotationException

2006-06-16 Thread gvl
Thanx,

 that was the problem, I had used NetBeans 5.5 beta to generate these classes 
and it inserted automatically the @Id annotiation in the @Embeddable PK class.

--
George

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951240#3951240

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951240


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - EmbeddedId annotation generates AnnotationException

2006-06-15 Thread gvl
I am using jboss 4.0.4.GA, EJB3 RC8 and seam 1.0.0.GA.

I have defined the following entity:

  | @Entity
  | @Table(name = "info")
  | public class Info implements Serializable {
  | 
  | private static final long serialVersionUID = 5773273754919628260L;
  | 
  | @EmbeddedId
  | protected InfoPK infoPK;
  | 
  |   
  | }
  | 

where InfoPK is 


  | 
  | @Embeddable
  | public class InfoPK implements Serializable {
  | 
  | @Id
  | @Column(name = "FirstCode", nullable = false)
  | private int firstCode;
  | 
  | @Id
  | @Column(name = "SecondCode", nullable = false)
  | private int secondCode;
  | 
  | 
  | 
  | }
  | 

when I try to deploy this I get the following exception:

  | org.hibernate.AnnotationException: gr.aegek.invent.entity.InfoPK has no 
persistent id property
  | at org.hibernate.cfg.AnnotationBinder.bindId(AnnotationBinder.java:1686)
  | at 
org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1170)
  | at 
org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:699)
  | at 
org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:353)
  | at 
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:265)
  | at 
org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1034)
  | at 
org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1015)
  | at 
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
  | at 
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:751)
  | at 
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
  | at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
  | at 
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:99)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy51.start(Unknown Source)
  | at 
org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:82)
  | at 
org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:626)
  | at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:475)
  | at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
o

[JBoss-user] [JBoss Seam] - Re: Possible to list all sessions currently active and then

2006-05-22 Thread gvl
Thanx for the suggestions I'll give them a try!

--


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945349#3945349

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945349


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Possible to list all sessions currently active and then

2006-05-19 Thread gvl
Well,

 I can see your point if I was able to change (or in some cases view) data from 
sessions other than the one I am currently in.

 But what I am getting at is a way to make a page with current statistics of my 
application.

--
George


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944834#3944834

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944834


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Possible to list all sessions currently active and then retr

2006-05-18 Thread gvl
I am trying to build an administration page. I would like to be able to view 
all sessions that are currently active for an application and then discover 
info for each one of them, such as the conversations running or attributes 
stored in them (for example user information). 

I guess with a HttpSessionListener I can keep track of the IDs of the active 
sessions but how could I then get the actual session object?

--
George


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944601#3944601

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944601


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: jboss-seam-1.0.0.CR2 infinite loop instantiating localeS

2006-05-02 Thread gvl
Thanx for the info,

 I actually tried setting 


  |
  |   
  |
  | 

in \jboss-4.0.4CR2\server\default\conf\log4j.xml

 under   

 and that also fixed the issue.

--


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940637#3940637

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940637


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: jboss-seam-1.0.0.CR2 infinite loop instantiating localeS

2006-05-02 Thread gvl
Well  tuomas,

 that didn't make much sense (I am new to JBoss, JSF). do you mean that there 
is something that we could do, a property file or something else to change?

--


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940611#3940611

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940611


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration & Deployment] - Re: Use Log4J to audit the user / sql statements.

2006-04-13 Thread gvl
Good question,

 if you find a way to do this please post it here for others to know as well!

thanx
--
George

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937105#3937105

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937105


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Entity Manager is null in session bean (jboss 4.0.4 CR2)

2006-04-12 Thread gvl
Actually 

 just found the problem: it was in the way I was calling the session bean from 
the web page.

;-)

--


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936880#3936880

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936880


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Entity Manager is null in session bean (jboss 4.0.4 CR2)

2006-04-12 Thread gvl
I am  trying to use jboss 4.0.4CR2 with the ejb3 option but at the moment
when I try to use an EntityManager from within my session bean the entity
manager is always null.

I have a stateless session bean where I load the entity manager:


  | @Stateless
  | public class CategorySessionBean implements CategoryView {
  | @PersistenceContext(unitName = "inventPU")
  | protected EntityManager manager;
  | 
  | ...
  | public load(){
  | //HERE THE manager is NULL
  |Query q = manager.createQuery("FROM Category");
  | }
  | ...
  | }
  | 

I am deploying the application in an ear with the following structure:
invent.ear

  | ...|-META-INF
  | ...|-META-INF|-application.xml
  | ...|-invent.par
  | ...|-invent.war
  | 

application.xml:

  | 
  | invent
  | 
  | 
  | invent.war
  | /invent
  | 
  | 
  | 
  | invent.par
  | 
  | 
  | 

invent.par:

  | ...|-META-INF
  | ...|-META-INF|-persistence.xml
  | ...|-gr (the entity and session beans)
  | 

persistence.xml

  | 
  | 
  | 
  |  AEGEK invent pesrsistent unit
  | java:/inventDS
  | 
  | 
  | 
  | 
  | 
  | 
  | 

invent.war:
(jsp and other web related stuff)


HELP!
Thanx ...


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936858#3936858

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936858


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user