[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-08-04 Thread supernovasoftware.com
I have seen this exception, but in my case is was always due to an error on my part and disappeared after I fixed it. I am currently using Seam 1.2.1 on JBAS 4.2.1 in production. I will switch to Seam 2.0 as soon as it comes out though. View the original post :

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-08-01 Thread tynor
I am seeing exactly the same bizzare behavior. My app works fine (s:hasRole() apparently working since my menu.xhtml is evaluating ok), until I click on a Save button (though oddly, I can click Delete on the same form without any trouble). Exception at the bottom of this post. I have a Seam

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-08-01 Thread tynor
In hopes that this is a clue to one of the Seam developers (specifically Michael Yuan who seems to have done quite a bit of porting to various new environments and may recognize the symptoms): I notice that with the above configuration, everything works as expected until I try to submit a

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-08-01 Thread tynor
I dont know how i missed this the first time, but in fact, there was also a Facelets exception complaining about class loading. 2007-08-01 17:24:11,602 ERROR [STDERR] java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.seam.security.SecurityFunctions | 2007-08-01

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-08-01 Thread [EMAIL PROTECTED]
Can you try with the latest CVS version of Seam? I believe we made some changes after 1.2.1 to fix this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4069853#4069853 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069853

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-08-01 Thread tynor
Thanks Shane, I don't doubt that this is fixed in 2.0 or CVS latest, but I can't easily migrate my app to the new Seam config. I'd hoped to be able to do a partial migration of a still Seam 1.2.1-based app, but running with JSF 1.2 (we've had some problems that appear fixed by the newer JSF) -

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-08-01 Thread [EMAIL PROTECTED]
Yeah, the problem with the examples for the book is that security is the last chapter to be added to the book just before it goes off to the printers. So, I did not have a runnable example application in the source code bundle to test out the security annotations. My apologies to my readers!

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-08-01 Thread tynor
All, Good news: I just noticed that Chiral posted a followup to my post on Michael's blog explaining the bug and proposing a workaround: http://www.michaelyuan.com/blog/2007/05/29/seam-book-examples-updated-to-jboss-as-420-ga View the original post :

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-31 Thread SmokingAPipe
I was too quick when I said it works. It works most of the time, but not all the time. I get errors like: javax.faces.FacesException: javax.el.ELException: /layout/menu.xhtml @12,51 rendered=#{s:hasRole('admin')}: Function 's:hasRole' not found | at

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-31 Thread SmokingAPipe
It seems to be happening when I invoke an action from that page by clicking a button, which hits some action in my FooHome extends EntityHome object. I can research this some more if it would help. View the original post :

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread SmokingAPipe
And it looks like the problem is in org.jboss.seam.util.EL: | import com.sun.el.ExpressionFactoryImpl; | import com.sun.el.lang.VariableMapperImpl; | which means that Seam is still dependent on the Sun EL RI, while JBoss AS has switched, and packaging the Sun RI in the EAR causes

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread SmokingAPipe
Further checking, the Sun RI is used in only two files in Seam: ./main/org/jboss/seam/util/EL.java:import com.sun.el.ExpressionFactoryImpl; | ./main/org/jboss/seam/util/EL.java:import com.sun.el.lang.VariableMapperImpl; | ./main/org/jboss/seam/jsf/SeamELFunctionMapper.java:import

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread [EMAIL PROTECTED]
I think you may need to have that JAR around. FWIW, this all works fine in the upcoming Seam 1.3. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068761#4068761 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068761

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread SmokingAPipe
[EMAIL PROTECTED] wrote : I think you may need to have that JAR around. It seems like that jar would mess up other things. Reading Michael Yuan's blog: http://www.michaelyuan.com/blog/2007/05/29/seam-book-examples-updated-to-jboss-as-420-ga/ There is now a JIRA open on it:

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread [EMAIL PROTECTED]
Yes - Seam 2.0. I got confused. :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068812#4068812 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068812 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread SmokingAPipe
By the way this shows why classes which are not public should not be labeled public. My guess is that com.sun.el.*Impl should have default permissions so external projects couldn't specify them directly. View the original post :

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread [EMAIL PROTECTED]
anonymous wrote : | It seems like that jar would mess up other things. Reading Michael Yuan's blog: | Let me clarify: the el-*.jar entires in application.xml mess up things. It does not hurt to leave the JARs in the EAR/WAR classpath -- at least this is what I think ... cheers Michael

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread SmokingAPipe
When I put the jars in the war/WEB-INF/lib, I get: SEVERE: Error Rendering View[/index.xhtml] | com.sun.facelets.FaceletException: Could not instantiate feature[compiler.ExpressionFactory]: org.jboss.seam.ui.facelet.SeamExpressionFactory | at

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread [EMAIL PROTECTED]
Can you try to put just the implementation classes not the interfaces in the lib dir? Thanks. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068863#4068863 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068863

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread SmokingAPipe
I put el-ri.jar in the WEB-INF/lib, and got the same java.lang.NoClassDefFoundError: com/sun/el/ExpressionFactoryImpl. I then put the el-ri.jar directly in the ear, and added it as a module in application.xml, and... it works! I tested it and it lets me run the restricted factory method. I

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread [EMAIL PROTECTED]
SmokingAPipe, Is this AS 4.2.1 GA? Thanks cheers Michael View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068883#4068883 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068883 ___

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread SmokingAPipe
Yes, it's AS 4.2.1 GA. Release ID: JBoss [Trinity] 4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068890#4068890 Reply to the post :

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-30 Thread SmokingAPipe
Built on Friday the 13th, note! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4068891#4068891 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4068891 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Seam 1.2.1, AS 4.2.1, @Restricted method gives NoClassDe

2007-07-29 Thread SmokingAPipe
I looked some more and the missing class is defined in el-ri.jar . But I thought that that jar should no longer be used in JBoss 4.2.1. This means that some Seam class is compiled to look for the com.sun.el.ExpressionFactoryImpl class. Is there a work-around for this? Everything else is