[jboss-user] [EJB 3.0] - Re: java.lang.NoClassDefFoundError: org/jaxen/VariableContex

2007-11-19 Thread pete.b.
Hi,

so what did you actually do to solve that problem? 

Thx!
Pete

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106139
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:formattedText parser problem?

2007-11-19 Thread pete.b.
That's exactly what i am looking for! Up to now the parsing issue is left to 
the user of this tag. So are there plans to introduce a build in validation 
function?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106181
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: s:formattedText parser problem?

2007-11-19 Thread pete.b.
Ok, i found one ;-) 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084707#4084707

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106183
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Query over two tables causes 'Transaction is not active...'

2007-09-10 Thread pete.b.
Hi,

performing the following query causes the error/exception as displayed bellow:

SELECT c, cd FROM Category c, CategoryDetails cd WHERE c.categoryID != 1 AND 
c.categoryID = cd.category.categoryID AND cd.locale = 'de' ORDER BY cd.name

10:47:54,984 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: null
  | 10:47:54,984 ERROR [JDBCExceptionReporter] Transaction is not active: 
tx=TransactionImple < ac, BasicAction: -3f574d9c:474:46e503c2:44 status: 
ActionStatus.ABORT_ONLY >; - nested throwable: 
(javax.resource.ResourceException: Transaction is not active: 
tx=TransactionImple < ac, BasicAction: -3f574d9c:474:46e503c2:44 status: 
ActionStatus.ABORT_ONLY >)
  | 10:47:55,000 ERROR [STDERR] Sep 10, 2007 10:47:54 AM 
com.sun.facelets.FaceletViewHandler handleRenderException
  | SEVERE: Error Rendering View[/home.xhtml]
  | javax.ejb.EJBTransactionRolledbackException: 
org.hibernate.exception.GenericJDBCException: Cannot open connection
  | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:87)
  | at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:204)
  | at 
org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:100)
  | at $Proxy135.init(Unknown Source)
  | 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.seam.util.Reflections.invoke(Reflections.java:20)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
  | at 
org.jboss.seam.interceptors.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:40)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.interceptors.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
  | at 
org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
  | at 
org.javassist.tmp.java.lang.Object_$$_javassist_2.init(Object_$$_javassist_2.java)
  | 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.seam.util.Reflections.invoke(Reflections.java:20)
  | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
  | at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
  | at org.jboss.seam.Component.getInstanceFromFactory(Component.java:1696)
  | at org.jboss.seam.Component.getInstance(Component.java:1633)
  | at org.jboss.seam.Component.getInstance(Component.java:1610)
  | at org.jboss.seam.Component.getInstance(Component.java:1604)
  | at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
  | at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  | at 
com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  | at org.apache.el.p

[jboss-user] [EJB/JBoss] - Re: Query over two tables causes 'Transaction is not active.

2007-09-10 Thread pete.b.
Maybe some more snippets of my code should be beneficial.

The DB schema:
/* category */
  | create table category
  | (
  |   categoryID int not null primary key auto_increment,
  |   image varchar(50)
  | ) type = innodb;
  | 
  | /* categorytree */
  | create table categorytree
  | (
  |   parentID int not null,
  |   childID int not null
  | ) type = innodb;
  | 
  | /* categorydetails */
  | create table categorydetails
  | (
  |   categorydetailsID int not null primary key auto_increment,
  |   categoryID int not null,
  |   locale varchar(10),
  |   name varchar(50),
  |   description mediumtext
  | ) type = innodb;

The appropriate entity beans:
@Entity
  | @Name("category")
  | @Table(name="category")
  | @NamedQueries([EMAIL PROTECTED](name="find_all_categories",query="SELECT c 
FROM Category c"),
  | @NamedQuery(name="find_all_categories_but_root",query="SELECT 
c, cd " +
  |   "FROM 
Category c, CategoryDetails cd " +
  |   
"WHERE c.categoryID != 1 " +
  |   
"AND c.categoryID = cd.category.categoryID " +
  |   
"AND cd.locale = 'de' " +
  |   
"ORDER BY cd.name"),
  | @NamedQuery(name="find_category_root",query="SELECT c FROM 
Category c WHERE c.categoryID = 1")})
  | public class Category
  | implements Serializable
  | {
  | private static final long serialVersionUID = 4195849772297525701L;
  | 
  | private Integer categoryID;
  | private String image;
  | private Collection categoryDetails;
  | private Category parent;
  | private Collection children;
  | 
  | public Category()
  | {
  | super();
  | }
  | 
  | /**
  |  * @return the categoryID
  |  */
  | @Id
  | @GeneratedValue(strategy=GenerationType.AUTO)
  | public Integer getCategoryID()
  | {
  | return categoryID;
  | }
  | 
  | /**
  |  * @param categoryID the categoryID to set
  |  */
  | public void setCategoryID(Integer categoryID)
  | {
  | this.categoryID = categoryID;
  | }
  | 
  | /**
  |  * @return the image
  |  */
  | public String getImage()
  | {
  | return image;
  | }
  | 
  | /**
  |  * @param image the image to set
  |  */
  | public void setImage(String image)
  | {
  | this.image = image;
  | }
  | 
  | /**
  |  * @return the categoryDetails
  |  */
  | 
@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER,mappedBy="category")
  | public Collection getCategoryDetails()
  | {
  | return categoryDetails;
  | }
  | 
  | /**
  |  * @param categoryDetails the categoryDetails to set
  |  */
  | public void setCategoryDetails(Collection 
categoryDetails)
  | {
  | this.categoryDetails = categoryDetails;
  | }
  | 
  | /**
  |  * @return the parent
  |  */
  | @ManyToOne
  | @JoinTable(name="categorytree",
  | [EMAIL PROTECTED](name="childID")},
  | [EMAIL PROTECTED](name="parentID")})
  | public Category getParent()
  | {
  | return parent;
  | }
  | 
  | /**
  |  * @param parent the parent to set
  |  */
  | public void setParent(Category parent)
  | {
  | this.parent = parent;
  | }
  | 
  | /**
  |  * @return the children
  |  */
  | @ManyToMany(cascade=CascadeType.ALL)
  | @JoinTable(name="categorytree",
  | [EMAIL PROTECTED](name="parentID")},
  | [EMAIL PROTECTED](name="childID")})
  | public Collection getChildren()
  | {
  | return children;
  | }
  | 
  | /**
  |  * @param children the children to set
  |  */
  | public void setChildren(Collection children)
  | {
  | this.children = children;
  | }
  | }
  | 
  | 
  | 
  | @Entity
  | @Name("categorydetails")
  | @Table(name="categorydetails")
  | public class CategoryDetails
  | implements Serializable
  | {
  | private static final long serialVersionUID = -8279365282184781250L;
  | 
  | private Integer categoryDetailsID;
  | private Category category;
  | private String locale;
  | private String name;
  | private String description;
  | 
  | public CategoryDetails()
  | {
  | super();
  | }
  | 
  | /**
  |  * @return the categoryDetailsID
  |  */
  | @Id
  | @GeneratedValue(strategy=GenerationType.AUTO)
  | public Integer getCategoryDetailsID()
  | {
  | return categoryDetailsID;