[jboss-user] [JBoss Tools (users)] - Re: 64 bit version

2008-01-30 Thread pettersonfp
Hi,

I tried to follow the instructions from naveed.hassam, but when I start the 
eclipse it crashes and generates a huge log, the begin of it:


  | #
  | # An unexpected error has been detected by HotSpot Virtual Machine:
  | #
  | #  SIGFPE (0x8) at pc=0x2b8e71ff8b83, pid=17008, tid=47890803582672
  | #
  | # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_14-b03 mixed mode)
  | # Problematic frame:
  | # C  [ld-linux-x86-64.so.2+0x7b83]
  | #
  | 
  | ---  T H R E A D  ---
  | 
  | Current thread (0x40116310):  JavaThread main [_thread_in_vm, 
id=17008]
  | 
  | siginfo:si_signo=8, si_errno=0, si_code=1, si_addr=0x2b8e71ff8b83
  | 
  | Registers:
  | RAX=0x043e4d73, RBX=0x, RCX=0x, 
RDX=0x
  | RSP=0x7fff38ab08e0, RBP=0x7fff38ab0ad0, RSI=0x043e4d73, 
RDI=0x2aaac03a21ff
  | R8 =0x2e800bd0, R9 =0x, R10=0x, 
R11=0x
  | R12=0x7fff38ab0a90, R13=0x2e800920, R14=0x, 
R15=0x2aaabff8a270
  | RIP=0x2b8e71ff8b83, EFL=0x00010246, CSGSFS=0x0033, 
ERR=0x
  |   TRAPNO=0x
  | 
  | Top of Stack: (sp=0x7fff38ab08e0)
  | 0x7fff38ab08e0:   2aaa 
  | 0x7fff38ab08f0:   7fff38ab0a90 2aaac03a2150
  | 0x7fff38ab0900:   043e4d73 2aaac03a21ff
  | 0x7fff38ab0910:    0008
  | 0x7fff38ab0920:   2aaabff8a810 2aaabff8ac56
  | 0x7fff38ab0930:    
  | 0x7fff38ab0940:   2b8e7221ea42 2aaab0349ed8
  | 0x7fff38ab0950:   0002 2b8e72321000
  | 0x7fff38ab0960:   7fff38ab0920 2e8015e0
  | 0x7fff38ab0970:   7fff38ab0ad0 7fff38ab0a90
  | 0x7fff38ab0980:   043e4d73 
  | 0x7fff38ab0990:   2aaac03a21ff 2b8e71ff8f9a
  | 0x7fff38ab09a0:    2b8e0001
  | 0x7fff38ab09b0:    2aaa
  | 0x7fff38ab09c0:   7fff38ab0980 7fff38ab0c90
  | 0x7fff38ab09d0:   2aaabff8abcc 
  | 0x7fff38ab09e0:   00040001 40110d10
  | 0x7fff38ab09f0:    2e8015d8
  | 0x7fff38ab0a00:   7fff38ab0b88 2e801290
  | 0x7fff38ab0a10:    2aaab033a0e0
  | 0x7fff38ab0a20:   7fff38ab09e0 7fff38ab0c90
  | 0x7fff38ab0a30:   2aaabff8abb3 2b8e71ffb5c4
  | 0x7fff38ab0a40:   0001 2b8e72009ab0
  | 0x7fff38ab0a50:   7fff38ab0a10 7fff38ab0c90
  | 0x7fff38ab0a60:   2aaabff8aba8 2b8e71ffb5c4
  | 0x7fff38ab0a70:   0001 2e800920
  | 0x7fff38ab0a80:   7fff38ab0a40 00140004
  | 0x7fff38ab0a90:    
  | 0x7fff38ab0aa0:   59d6401219cd37e7 2e801290
  | 0x7fff38ab0ab0:   2aaac03a1000 0006
  | 0x7fff38ab0ac0:   2e801290 2aaac03a2af0
  | 0x7fff38ab0ad0:   7fff38ab0bc0 2b8e71ffa669 
  | 
  | Instructions: (pc=0x2b8e71ff8b83)
  | 0x2b8e71ff8b73:   8b 85 20 03 00 00 48 89 44 24 48 48 8b 44 24 20
  | 0x2b8e71ff8b83:   48 f7 f3 49 8b 85 e0 02 00 00 44 8b 24 90 45 85 
  | 
  | Stack: [0x7fff388b9000,0x7fff38ab9000),  sp=0x7fff38ab08e0,  
free space=2014k
  | Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native 
code)
  | C  [ld-linux-x86-64.so.2+0x7b83]
  | C  [ld-linux-x86-64.so.2+0x9669]
  | C  [libc.so.6+0xfc623]
  | C  [ld-linux-x86-64.so.2+0xb7d1]
  | C  [libdl.so.2+0x1115]
  | 
  | Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
  | j  java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V+0
  | j  java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;)Z+300
  | j  
java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V+48
  | j  java.lang.Runtime.load0(Ljava/lang/Class;Ljava/lang/String;)V+57
  | j  java.lang.System.load(Ljava/lang/String;)V+7
  | j  
org.mozilla.xpcom.internal.JavaXPCOMMethods.registerJavaXPCOMMethods(Ljava/io/File;)V+96
  | j  org.mozilla.xpcom.internal.MozillaImpl.initialize(Ljava/io/File;)V+1
  | j  org.mozilla.xpcom.Mozilla.initialize(Ljava/io/File;)V+199
  | j  
org.jboss.tools.vpe.xulrunner.browser.XulRunnerBrowser.initXulRunner()V+38
  | j  
org.jboss.tools.vpe.xulrunner.browser.XulRunnerBrowser.init(Lorg/eclipse/swt/widgets/Composite;)V+22
  | j  
org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor.init(Lorg/eclipse/swt/widgets/Composite;)V+2
  | j  
org.jboss.tools.vpe.editor.mozilla.MozillaEditor$4.init(Lorg/jboss/tools/vpe/editor/mozilla/MozillaEditor;Lorg/eclipse/swt/widgets/Composite;)V+7
  | j  
org.jboss.tools.vpe.editor.mozilla.MozillaEditor.createPartControl(Lorg/eclipse/swt/widgets/Composite;)V+462
  | j  

[jboss-user] [JBoss Seam] - HTTP Request via POST

2008-01-10 Thread pettersonfp
Hi all,

I understand this question may be a little stupid, but...

Is there any util, or annotation, or something like that in seam to help making 
a HTTP request to a external server and parsing the results?

Thanks,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4118874#4118874

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4118874
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: pdf redirects to blank page

2007-12-11 Thread pettersonfp
Hi, 
I have the same problem.

Anyone founds a solution to it?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4111998#4111998

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111998
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Submit form and open results in new window

2007-12-11 Thread pettersonfp
Hi,

And if I want that my new window doesn't have menus?

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4112009#4112009

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112009
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Submit form and open results in new window

2007-12-11 Thread pettersonfp
Hi,

That's what I feared :-)

I hate javascript...

Thanks

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4112119#4112119

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112119
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: pdf redirects to blank page

2007-12-11 Thread pettersonfp
Thanks again Norman,

Your are fast :-)

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4112120#4112120

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112120
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Submit form and open results in new window

2007-12-11 Thread pettersonfp
Jason that is exactly what I was needing, 

Thanks a lot

P.S.:  Terry, your idea is really good also.  I 'll use it to solve another 
problem :-)




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4112127#4112127

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4112127
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: boring Login attemption --- authenticate() invocation pr

2007-12-06 Thread pettersonfp
You're welcome

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110874#4110874

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110874
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Plain Tomcat + Quartz + Mail work together?

2007-12-06 Thread pettersonfp
Problem solved.

Thanks Pete

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110876#4110876

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110876
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Plain Tomcat + Quartz + Mail work together?

2007-12-05 Thread pettersonfp
Hi,


Anybody knows when can I get more information about this problem?

Thanks,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110485#4110485

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110485
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Plain Tomcat + Quartz + Mail work together?

2007-12-05 Thread pettersonfp
I think you solved it, I 'll try to put the template inside WEB-INF/classes..

Thanks a lot,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110557#4110557

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110557
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam Login + Richfaces -- Stylesheet problem

2007-12-05 Thread pettersonfp
Hi,

I don't know if this can help you, but I faced some problems with stylesheet 
and I solved it all by changing the following line at the template.xhtml


  | link 
href=#{facesContext.externalContext.requestContextPath}/view/stylesheet/theme.css
 rel=stylesheet type=text/css /
  | 

Note the #{facesContext...}, in original template it doesn't exists.

Hope it helps,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110610#4110610

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110610
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: boring Login attemption --- authenticate() invocation pr

2007-12-05 Thread pettersonfp
Hi,

I had a similar problem, and I look into the code to understand why.  The 
problem is that #{identity.loggedIn}  tries a silent login.

Try using #{identity.isLoggedIn(false)} instead and see if it solves your 
problem.

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110644#4110644

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110644
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Plain Tomcat + Quartz + Mail work together?

2007-12-04 Thread pettersonfp
Hello,

  I've been trying to send an email inside a method annotated with 
@Asynchronous in plain tomcat using quartz.  The method is called properly and 
works fine, however, for some reason, the renderer cannot find the facelet 
template (xhtml).
  If I send the email in a normal method it works fine.
  After tracing the code I noticed that the problem occurs at the following 
code returning null:

  | package org.jboss.seam.util;
  | ...
  | public class Resources 
  | {
  | ...
  |public static URL getResource(String resource, ServletContext 
servletContext) 
  |{
  |   String stripped = resource.startsWith(/) ? 
  | resource.substring(1) : resource;
  |
  |   URL url  = null; 
  | 
  |   if (servletContext!=null)
  |   {
  |  try
  |  {
  | url = servletContext.getResource(resource);
  |  }
  |  catch (Exception e) {}
  |   }
  |   
  |   if (url==null)
  |   {
  | url = getResource(resource, stripped);
  |   }
  |   
  |   return url;
  |}
  | ...
  | }
  | 
I think that when at tomcat the quartz threads are unable to find the resources 
but I don't understand why.

Following are the configurations, code and stack trace:


  | @Name(coollectScheduler)
  | @AutoCreate
  | @Install(true)
  | public class CoollectScheduler extends EntityController {
  | /**
  |  * 
  |  */
  | private static final long serialVersionUID = 1633034787217471953L;
  | 
  | private static final String WELCOME_MAIL_TEMPLATE = 
/registration/welcome-email.xhtml;
  | 
  | @Asynchronous
  | @Transactional(TransactionPropagationType.REQUIRED)
  | public QuartzTriggerHandle scheduleWelcomeEmail(@Expiration
  | Date when, @IntervalDuration
  | Long interval, int numberOfRetries, User user) {
  | try {
  | user = getEntityManager().find(User.class, user.getId());
  | Contexts.getEventContext().set(newUser, user);
  | Contexts.getEventContext().set(numberOfRetries, numberOfRetries);
  | info(Trying #{newUser.welcomeEmailRetries + 1} of 
#{numberOfRetries} to send welcome email for the new user: #{newUser.name});
  | render(WELCOME_MAIL_TEMPLATE);
  | user.welcomeEmailSuccessfullySent();
  | user.getQuartzHandle().cancel();
  | info(Welcome email was successfully delivered to #{newUser.name} 
at #{newUser.email}.);
  | } catch (Exception e) {
  | e.printStackTrace();
  | user.incWelcomeEmailRetries();
  | if (user.getWelcomeEmailRetries() = numberOfRetries ) {
  | warn(Welcome email was not delivered to #{newUser.name} at 
#{newUser.email} and the system will not try again.);
  | try {
  | user.getQuartzHandle().cancel();
  | } catch (SchedulerException swallow) {
  | error(swallow.getLocalizedMessage());
  | }
  | } 
  | else {
  | warn(Welcome email was not delivered to #{newUser.name} at 
#{newUser.email} due to: 
  | + e.getLocalizedMessage()
  | + , the system will try again automatically.);
  | }
  | }
  | getEntityManager().persist(user);
  | getEntityManager().flush();
  | return null;
  | }
  | 
  | public static CoollectScheduler instance() {
  | return (CoollectScheduler) Component
  | .getInstance(CoollectScheduler.class);
  | }
  | 
  | }
  | 

components.xhtml

  | ...
  | !-- Install the QuartzDispatcher --
  | async:quartz-dispatcher/
  | ...
  | 

Stacktrace

  | java.lang.IllegalArgumentException: resource doesn't exist: 
/welcome-email.xhtml
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer.resourceURL(FaceletsRenderer.java:184)
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer$1.process(FaceletsRenderer.java:160)
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:78)
  | at 
org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
  | at org.jboss.seam.framework.Controller.render(Controller.java:108)
  | at 
br.com.liax.coollect.schedule.CoollectScheduler.scheduleWelcomeEmail(CoollectScheduler.java:42)
  | 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.seam.util.Reflections.invoke(Reflections.java:21)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | at 

[jboss-user] [JBoss Seam] - Re: Plain Tomcat + Quartz + Mail work together?

2007-12-04 Thread pettersonfp
I think that is something related to Class Loaders.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110396#4110396

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110396
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Plain Tomcat + Quartz + Mail work together?

2007-12-04 Thread pettersonfp
I tried:


  | @BypassInterceptors
  | ...
  | public class CoollectScheduler {
  | ...
  | ...
  | 

The email now is properly send, but, as expected, not asynchronous anymore.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110413#4110413

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110413
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem locating resources

2007-12-03 Thread pettersonfp
I still couldn't figure out why I get this error when I send it through an 
@Asynchronous call.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4110073#4110073

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4110073
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Commiting after each statement (mysql)

2007-11-29 Thread pettersonfp
Thank you so much, It solved :-)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108871#4108871

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108871
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Transactional doubts

2007-11-29 Thread pettersonfp
The problema was in mysql,
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108871#4108871

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108876#4108876

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108876
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Transactional doubts

2007-11-28 Thread pettersonfp
Any Ideas?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108432#4108432

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108432
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Commiting after each statement (mysql)

2007-11-28 Thread pettersonfp
Hi,

I noticed that my app is commiting after each statement.

Eg:


  | tx.begin();
  | //some persistent modification
  | tx.rollback();
  | tx.commit();
  | 

The rollback does nothing.


  | Context 
  | debug=5
  |   reloadable=true crossContext=false
  |   Resource
  | name=jdbc/myDB 
  | auth=Container
  | type=javax.sql.DataSource 
  | driverClassName=com.mysql.jdbc.Driver
  | defaulAutoCommit=false
  | factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory 
  | 
url=jdbc:mysql://localhos:3306/mydb?autoReconnect=trueautoCommit=false
  | validationQuery=select current_date 
  | removeAbandoned=true 
  | removeAbandonedTimeout=30
  | useNaming=true 
  | logAbandoned=true
  | maxActive=5 
  | maxIdle=5
  | maxWait=15000 
  | username=xx
  | password=x/
  | /Context
  | 

persistence.xml

  | ?xml version=1.0 encoding=UTF-8?
  | persistence xmlns=http://java.sun.com/xml/ns/persistence; 
  |  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  |  xsi:schemaLocation=http://java.sun.com/xml/ns/persistence 
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd; 
  |  version=1.0
  |persistence-unit name=myDatabase transaction-type=RESOURCE_LOCAL
  |   providerorg.hibernate.ejb.HibernatePersistence/provider
  |   jta-data-sourcejava:comp/env/jdbc/myDB/jta-data-source
  |   properties
  |   
  |  property name=hibernate.hbm2ddl.auto value=update/  
  |  property name=hibernate.show_sql value=true/
  |  property name=hibernate.dialect 
value=org.hibernate.dialect.MySQLDialect/
  |  property name=hibernate.connection.autocommit value=false/
  | !--  property name=hibernate.datasource 
value=java:comp/env/jdbc/myDB/ --
  |  property name=hibernate.cache.provider_class 
value=org.hibernate.cache.HashtableCacheProvider/
  | property name=transaction.flush_before_completion value=true/
  | property name=transaction.factory_class 
value=org.hibernate.transaction.JDBCTransactionFactory/
  |  !-- RESOURCE_LOCAL
  |  property name=hibernate.transaction.manager_lookup_class 
value=org.hibernate.transaction.JBossTransactionManagerLookup/
  |  --
  |  !-- alternative
  |  property name=jboss.entity.manager.factory.jndi.name 
  |   value=java:/coollectBookingEntityManagerFactory/
  |  --
  |   /properties
  |/persistence-unit
  | /persistence
  | 

Any ideas?

Thanks,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108654#4108654

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108654
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @Transactional doubts

2007-11-27 Thread pettersonfp
Hello,

I think I don't understand how @Transactional works.

If I have a method:


  | @Transaction
  | public void myMethod() {
  | ...
  | }
  | 

and inside it I throw an exception like:


  | @ApplicationException(rollback=true) //the seam @ApplicationException
  | public class MyException ...
  | 

The transaction shouldn't be rolled back?

If yes, I don't get this behaviour.

If no, what I must do to rollback?

Thanks in advance,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108187#4108187

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108187
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Transactional doubts

2007-11-27 Thread pettersonfp
fix: @Transactional

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108188#4108188

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108188
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Transactional doubts

2007-11-27 Thread pettersonfp
I'm using it in a tomcat 5.5 without jboss embedded.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108200#4108200

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108200
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Server Technical Specifications

2007-11-22 Thread pettersonfp
Hi,

Is there any method to calculate the necessary hardware to run my seam-app?

Thanks in advance,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107154#4107154

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107154
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Server Technical Specifications

2007-11-22 Thread pettersonfp
Is this the proper forum?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4107182#4107182

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107182
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Problem locating resources

2007-11-01 Thread pettersonfp
Hello,

I have an application working fine in JBoss AS and I am migrating it to Tomcat 
5.5 without embedded jboss.

I got an resource not exists hen I try to render an email using 

Renderer.render(my_email_template)


I checked the path several times and it is right, I checked the generated war 
and the resource is there.

Any ideas about what can be wrong?

Thanks in advance,

Petterson



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100943#4100943

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100943
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem locating resources

2007-11-01 Thread pettersonfp
I am trying to post the stack trace but I am getting a 404 error ... 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100967#4100967

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100967
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem locating resources

2007-11-01 Thread pettersonfp
It was the quotes :-(

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100977#4100977

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100977
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem locating resources

2007-11-01 Thread pettersonfp

java.lang.IllegalArgumentException: resource doesnt exist: 
/registration/validation_email.xhtml
at 
org.jboss.seam.ui.facelet.FaceletsRenderer.resourceURL(FaceletsRenderer.java:184)
at 
org.jboss.seam.ui.facelet.FaceletsRenderer$1.process(FaceletsRenderer.java:160)
at 
org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:78)
at 
org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
at 
br.com.liax.core.action.util.AsynchronousMailProcessor.scheduleSend(AsynchronousMailProcessor.java:36)
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.seam.util.Reflections.invoke(Reflections.java:21)
at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at 
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at 
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at 
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at 
org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
at 
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
at 
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
at 
br.com.liax.core.action.util.AsynchronousMailProcessor_$$_javassist_1.scheduleSend(AsynchronousMailProcessor_$$_javassist_1.java)
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.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
at 
org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
at 
org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
at 
org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:114)
at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4100969#4100969

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100969
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Problem locating resources

2007-11-01 Thread pettersonfp
It was a problem sending the emai using assyncrhonousEmailProcessor.  When I 
send directly in my action the problem does not occur.

Any ideas about why?

Regards,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4101004#4101004

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101004
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Uses of seam-gen

2007-10-26 Thread pettersonfp
Thank you both,

It would be interesting if the seam-gen had some setup to the tomcat.

Regards,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099456#4099456

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099456
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Uses of seam-gen

2007-10-25 Thread pettersonfp
Hi,

I'm starting a new application and I need it to run in plain tomcat 5.5 (no 
embedded jboss for now).  Should I use seam-gen to create my new application or 
should I copy the hibernate2 example and customize it?

Is there any setup for seam-gen create a build file including tomcat deploy?

Thanks in advance,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4099071#4099071

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099071
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Converters and Validators Problem

2007-10-18 Thread pettersonfp
That is it, ByPassInterceptors did the trick :-)

Thanks

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096491#4096491

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096491
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Complex Validation

2007-10-18 Thread pettersonfp
Hi,

It's pretty easy to validate the single fields using seam.  But how can I 
perform validations that depends of several fields instead of a single field 
and return this errors to the user?

Thanks in advance,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096650#4096650

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096650
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Complex Validation

2007-10-18 Thread pettersonfp
Example:

public class Range {
  Integer begin;
  Integer end;

 // ...
};

Suppose that if you set the begin you have to set the end as well and 
vice-versa.  How can I enforce this validation?  Is it possible to write a 
Validator that to this?



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=409#409

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=409
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Converters and Validators Problem

2007-10-17 Thread pettersonfp
Hi,

In JSF the fields in a form are first converted to the proper types, then 
validated.  How can I check if the value is proper for conversion?
Example: in a time field, the value XYZ is not proper.  Then the converter 
raises an exception and I get a debug page.  I need that the field be 
highlighted with a message ...

How can I do that?

Thanks in advance,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096193#4096193

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096193
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Converters and Validators Problem

2007-10-17 Thread pettersonfp
I'm throwing a ConverterException and the seam is not catching it.

I'm using SEAM 2.0CR1

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4096223#4096223

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4096223
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Seam 2 and RichFaces 3.1.0

2007-09-25 Thread pettersonfp
Thanks,

That solved my problem  :-)

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4088519#4088519

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4088519
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam 2 and RichFaces 3.1.0

2007-09-24 Thread pettersonfp
Hello,

Does anybody here already setup the seam 2 with RichFaces 3.1?

I'm having this exception:

java.lang.IllegalArgumentException: argument type mismatch
...
...
Caused by: javax.faces.FacesException: java.lang.IllegalArgumentException: 
argument type mismatch
...
Caused by: java.lang.IllegalArgumentException: argument type mismatch
at org.apache.commons.digester.Digester.createSAXException(Digester.java:2792)
...
...
11:35:57,677 ERROR [[/vcpontual]] Exception sending context initialized event 
to listener instance of class 
org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
javax.faces.FacesException: 
org.ajax4jsf.framework.renderer.ChameleonRenderKitFactory


Best Regards,

Petterson


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4087980#4087980

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4087980
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodException when acessing protected methods in

2007-07-20 Thread pettersonfp
Any Ideas?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066174#4066174

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066174
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodException when acessing protected methods in

2007-07-20 Thread pettersonfp
I discovered that if I remove the final in the execute method the problems go 
away.

Anybody knows what I'm doing wrong? 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066215#4066215

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066215
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodException when acessing protected methods in

2007-07-20 Thread pettersonfp
Is it wrong to use final in this case?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066312#4066312

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066312
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: NoSuchMethodException when acessing protected methods in

2007-07-19 Thread pettersonfp
Please, ignore this until my next post, I posted the wrong sample code.
I'm fixing the sample and I'll post again.

Sorry

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066022#4066022

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066022
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - NoSuchMethodException when acessing protected methods in sup

2007-07-19 Thread pettersonfp
Hi,

I having weird NoSuchMethodExceptions that I cannot understand, I made a very 
simple example that reproduces my problem.  Someone can help me understand what 
I am doing wrong?

Thanks in advance,
Petterson

Base.java

  | public class Base {
  | 
  | protected void printProtected() {
  | System.out.println(printProtected);
  | }
  | 
  | }
  | 

Derived.java

  | import org.jboss.seam.annotations.Name;
  | 
  | @Name(derived)
  | public class Derived extends Base {
  | 
  | @Override
  | public void printProtected() {
  | System.out.println(DerivedProtectedPrint);
  | super.printProtected();
  | }
  | }
  | 

testDerived.xhtml

  | !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  |   
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | ui:composition xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:s=http://jboss.com/products/seam/taglib;
  | xmlns:ui=http://java.sun.com/jsf/facelets;
  | xmlns:f=http://java.sun.com/jsf/core;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:rich=http://richfaces.ajax4jsf.org/rich;
  | template=layout/template.xhtml
  | 
  | ui:define name=body
  | 
  | h:messages styleClass=message/
  | 
  | h:form id=printTest
  | 
  | div class=actionButtons
  | h:commandButton value=Protected 
action=#{derived.Protected}/
  | /div
  |   
  | /h:form
  | 
  |  /ui:define 
  | /ui:composition
  | 


And the Stack Trace got when I press the button...


  | 00:59:24,562 ERROR [DebugPageHandler] redirecting to debug page
  | javax.el.MethodNotFoundException: /testDerived.xhtml @18,79 
action=#{derived.Protected}: Method not found: [EMAIL PROTECTED]()
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:72)
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:383)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346)
  | at 
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
  | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
  | at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  

[jboss-user] [JBoss Seam] - Re: NoSuchMethodException when acessing protected methods in

2007-07-19 Thread pettersonfp
Hello again,

I was having a problem in a machine with linux / jboss 4.2.0.GA and seam 2.0.
Now I am in home and the only difference is that I have windows xp.

Instead of NoSuchMethodException now I am getting another one.

Following are the code and the stack trace.

Disregard my previous message.

Thanks,
Petterson

Base.java

  | public class Base {
  | 
  | public final void execute() {
  | System.out.println(Base-execute);
  | doExecute(); //  the error occurs here
  | }
  | 
  | protected void doExecute() {
  | System.out.println(Base-doExecute);
  | }
  | 
  | 
  | }
  | 

Derived.java

  | import org.jboss.seam.annotations.Name;
  | 
  | @Name(derived)
  | public class Derived extends Base {
  | 
  | @Override
  | protected void doExecute() {
  | System.out.println(Derived-doExecute);
  | }
  | 
  | }
  | 

testDerived.xhtml

  | !DOCTYPE composition PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
  |   
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
  | ui:composition xmlns=http://www.w3.org/1999/xhtml;
  | xmlns:s=http://jboss.com/products/seam/taglib;
  | xmlns:ui=http://java.sun.com/jsf/facelets;
  | xmlns:f=http://java.sun.com/jsf/core;
  | xmlns:h=http://java.sun.com/jsf/html;
  | xmlns:rich=http://richfaces.ajax4jsf.org/rich;
  | template=layout/template.xhtml
  | 
  | ui:define name=body
  | 
  | h:messages styleClass=message/
  | 
  | h:form id=printTest
  | 
  | div class=actionButtons
  | h:commandButton value=Execute action=#{derived.execute}/
  | /div
  |   
  | /h:form
  | 
  |  /ui:define 
  | /ui:composition
  | 
  | 

Stack Trace [partial]

  | Caused by: java.lang.IllegalAccessException: Class 
org.jboss.seam.util.Reflections can not access a member of class 
br.com.liax.test.Derived with modifiers protected
  | at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
  | at java.lang.reflect.Method.invoke(Method.java:578)
  | at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
  | at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
  | at 
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | at 
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | at 
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
  | at 
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
  | at 
br.com.liax.test.Derived_$$_javassist_0.doExecute(Derived_$$_javassist_0.java)
  | at br.com.liax.test.Base.execute(Base.java:8)
  | 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.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
  | at 
org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338)
  | at 
org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
  | at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
  | at 
org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
  | at 
com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
  | at 
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
  | ... 44 more
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4066026#4066026

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4066026
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: m:message and s:link problems

2007-07-17 Thread pettersonfp
Any Ideas about what can I doing wrong?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064995#4064995

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064995
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Is it possible extend EntityHome and use it through configur

2007-07-17 Thread pettersonfp
Hi,

I know I can use EntityHome without extending it through configuration in the 
xml, is it possible to extend EntityHome and use the extended class in 
configuration?

Thanks in advance
Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065121#4065121

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065121
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Is it possible extend EntityHome and use it through conf

2007-07-17 Thread pettersonfp
Thanks and sorry, I should have looked first at documentation

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4065162#4065162

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4065162
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: m:message and s:link problems

2007-07-16 Thread pettersonfp
Is fixed in version 2.0BETA1? 
Because I'm using this version.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4064673#4064673

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4064673
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Starting pageflow with decisions

2007-07-11 Thread pettersonfp
Is it possible start a pageflow in a decision node?

I'm writing a registration procedure for a website and part of the procedure is 
to send a validation email, then the user clicks in a link that redirect him to 
a page where the validation can be finished.

However I'd like to check if that account already was validated, if the 
validationId (received as parameter through the link) is valid, etc.  Depending 
on that decisions I need to go to a different page.

How is the proper way to accomplish that?

Thanks and sorry by my English,

Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062960#4062960

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062960
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - How can I get the source code? (stupid question?)

2007-07-11 Thread pettersonfp
Is it possible to get the seam source code?
If yes, how can I do that?  I prefer using subversion, if possible.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062972#4062972

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062972
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: How can I get the source code? (stupid question?)

2007-07-11 Thread pettersonfp
Thank you both

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062983#4062983

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062983
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: What must I do to make the back button stop working?

2007-07-05 Thread pettersonfp
I thought that just disabling the back in seam's configuration should do the 
trick.  Am I wrong?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060907#4060907

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060907
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: What must I do to make the back button stop working?

2007-07-05 Thread pettersonfp
  I thought that seam somehow did put some javascript to avoid a user to go 
back in a pageflow with the back button.
  Thanks for your explanation.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060956#4060956

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060956
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - What must I do to make the back button stop working?

2007-07-03 Thread pettersonfp
Hi,

Following are the configurations I'm using.

Thanks in advance,

Petterson

-- registration.jpdl.xml
start-page back=disabled name=Choose Type 
view-id=/registration/chooseRegisterType.xhtml


  

  /start-page
  page name=Fill Form view-id=/registration/registerStep1.xhtml 
  back=disabled


  

  
  page name=Greetings view-id=/registration/greetings.xhtml
  back=disabled

end-conversation/
  

pages.xml
  page view-id=/registration/chooseRegisterType.xhtml
begin-conversation join=true pageflow=registration/
  


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060121#4060121

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060121
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: What must I do to make the back button stop working?

2007-07-03 Thread pettersonfp
By stop working I mean, redirect to the page it was before the back was pressed.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4060123#4060123

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4060123
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Tools (users)] - Re: NullPointerException when trying the create a new Pagefl

2007-07-02 Thread pettersonfp
Hi,

Have you found a solution for this problem?

I'm having exactly the same problem.

Thanks

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059633#4059633

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059633
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Seam, JBPM and pageflow doubts

2007-07-02 Thread pettersonfp
Hi,

  I'm trying to create a business process using pageflows but I'm having some 
doubts.
  I'd like to create a user registration process with the following 
interactions:
1) Fill data;
2) Enqueue a send validation email process (e.g: just try to send the email 5 
times);
3) Show a page instructing the user to check his email for further instructions;
4) When the user receive the email, he clicks in a link that points to a 
validation page;
5) The user validates his registration;
6) Show a welcome page;
7) End;

How should this be defined with pageflows/process definitions?

Thanks in advance,

Petterson F. Paula

P.S: Sorry about my english

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4059710#4059710

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4059710
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-27 Thread pettersonfp
Hi Peter,

Thanks, I´ll do that.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4058095#4058095

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4058095

___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - @Length throws InvalidStateException when String is null or

2007-06-26 Thread pettersonfp
Hi,

If I have a property annotated with @Length and the field is not required in 
the form.  A InvalidStateException is thrown complaining that the property's 
lenght must be between min and max.

Anyone knows if there is a way to use @Length in nullable fields?

Thanks in advance,
Petterson

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057862#4057862

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057862
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: @Length throws InvalidStateException when String is null

2007-06-26 Thread pettersonfp
Unfortunatelly the property is already annotated with @Column(nullable=true) as 
well.


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4057883#4057883

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4057883
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user