[jboss-user] [JBoss Seam] - probelm with asynchronous methods and timers

2007-05-09 Thread frehan
I have a usecase where I want to have a recurring service checking some db 
information and send out mails i nessesary. I started with a simple scheduled 
service that worked fine. Then I wanted to use Seam to send out my mails but I  
got problems with failed rendering because I was outside of the seam context in 
my scheduled service bean. So I switch to using seam asynchronous methods and 
timers. 
 
I have a bootstrap action annotated with 
@Startup(depends={"org.jboss.core.jndi", "org.jboss.core.jta"}) 
and then a @Create annotated method to start the asynchronous action with a 
timer. 
The boostrap action is application scoped and stores the timer instance for the 
duration of the application lifecycle. The timer is destroyed in the @destroy 
method. When the timer is created it is stored by the application server in the 
timer db table and removed when the server is stoped or my application 
undeployed. 

Now to the problem :-)
Sometimes the timer is not removed from the db when the server is stopped. Then 
when I start the server again a new timer is created in my bootstrap action and 
now I have to timers running making my service run more often then I want.

How can I avoid this problem?  Is this the wrong solution for my usecase or can 
I somehow check for exising timers when bootstrapinig or can I shedule my 
asynchronous methos in the same way that i schedule my service in a xml file or 
... ?

Thankfull for all input!

Best regards Fredrik


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

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


[jboss-user] [JBoss Seam] - Sending (Seam) mail from a scheduled service

2007-04-05 Thread frehan
Hi I am tryin to send seam mails from a service and I can't get it to work.

My service checks my db every 1o minutes for updates and if it finds any a mail 
schould be sent.

>From my service I look up a stateless session bean using

InitialContext ctx = new InitialContext();
mailer =  (se.test.Mailer) ctx.lookup("Camitz/Mailer"); 

I now that I can't inject in a service so I have to do a lookup

My session been is annotated like  this:

@Stateless
@Name("mailerAction")
@Interceptors(SeamInterceptor.class)
@LocalBinding (jndiBinding="Camitz/Mailer")
@Scope(ScopeType.CONVERSATION)


The method for sending the mails :
public void sendAlarm(String to, String subject, String message){

  AlarmMailBean mailBean = new AlarmMailBean(to,subject,message,link);
  Contexts.getConversationContext().set("alarmMail", mailBean);
 try {
 Renderer.instance().render("/mail/mailTemplate.xhtml");
  } 
  catch (Exception e) {
  e.printStackTrace();
  }
 } 

When the renderer is called I strangely get 2 different kinds off exceptions.

1. 
11:35:05,559 ERROR [AlarmService] java.lang.RuntimeException: java.lang.NoClassD
efFoundError: org/jboss/seam/ui/JSF
javax.ejb.EJBException: java.lang.RuntimeException: java.lang.NoClassDefFoundErr
or: org/jboss/seam/ui/JSF
at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.ja
va:69)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java
:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInt
erceptor.java:76)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(Stateles
sInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(Authentic
ationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3Auth
enticationInterceptor.java:102)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterce
ptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(Asynchrono
usInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.
java:101)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessCont
ainer.java:211)
at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalPro
xy.java:79)
at $Proxy186.test(Unknown Source)
at se.camitz.admin.service.AlarmService.perform(AlarmService.java:59)


2. 
12:32:36,647 ERROR [STDERR] -- nested exception start --
java.lang.IllegalStateException: No application context active
at org.jboss.seam.Component.forName(Component.java:1577)
at org.jboss.seam.Component.getInstance(Component.java:1627)
at org.jboss.seam.Component.getInstance(Component.java:1610)
at org.jboss.seam.Component.getInstance(Component.java:1589)
at org.jboss.seam.Component.getInstance(Component.java:1584)
at org.jboss.seam.mail.MailSession.instance(MailSession.java:266)
at org.jboss.seam.mail.ui.UIMessage.getMailSession(UIMessage.java:63)
at org.jboss.seam.mail.ui.UIMessage.getMimeMessage(UIMessage.java:78)
at org.jboss.seam.mail.ui.UIMessage.encodeBegin(UIMessage.java:101)
at org.jboss.seam.ui.JSF.renderChild(JSF.java:171)
at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRend
erer.java:150)
at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.ja
va:112)
at se.camitz.admin.mail.MailerAction.sendAlarm(MailerAction.java:77)



Exception 1. I dont understand but exception 2 is because I am not in a seam 
context.
How can I create a seam context or workaround this problem? 
I have tried to use org.jboss.seam.contexts.Lifecycle.beginCall(); in my method 
but it did not help.
Or is it impossible to use seam mail from a service?

Best Regards Fredrik


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

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


[jboss-user] [JBoss Seam] - Re: Problem with

2007-03-30 Thread frehan
I have created an issue in the JIRA.

http://jira.jboss.org/jira/browse/JBSEAM-1129

/Fredrik 

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

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


[jboss-user] [JBoss Seam] - Re: Problem with

2007-03-30 Thread frehan
I am using MyFaces version 1.1.4.

/Fredrik

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

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


[jboss-user] [JBoss Seam] - Problem with

2007-03-30 Thread frehan
Hi!

I am using seam 1.2.1 GA and I am trying out the new s:graphicImage component. 
But when I want to render an Image in a faclet page I get the following error:

10:04:26,354 WARN  [HtmlRenderKitImpl] Unsupported 
component-family/renderer-typ e: 
org.jboss.seam.ui.UIGraphicImage/javax.faces.Image

Anybody knows why?

Best Regards Fredrik

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

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


[jboss-user] [JBoss Seam] - Seam 1.1.6 and Hibernate validation problem

2007-03-02 Thread frehan
Hi!

I have a registration page for users to register. The entity class uses 
@Email to validate the entered email adress. 

In my registration jsp form I usearround the input fields.
and the email  is a none required field. So it could be empty but if entered it 
must validate to a correct adress.

When i try to save the entity with an empty email field I get the following 
error.

Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=Transaction
Impl:XidImpl[FormatId=257, GlobalId=seit1497/470, BranchQual=, localId=470] stat
us=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceExce
ption: org.hibernate.AssertionFailure: null id in se.camitz.par.User entry 
(don't flush the Session after an exception occurs))
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:372)
at org.jboss.tm.TxManager.commit(TxManager.java:240)
at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(Serve
rVMClientUserTransaction.java:140)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.commitOrRollback(Abstrac
tSeamPhaseListener.java:287)
... 35 more

I get an org.hibernate.AssertionFailure failure telling me that my entity has a 
null Id..
IF I enter a correct email then everything works fine.

Does anybody know why I get this kind of error?

Best regards Fredrik

 




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

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


[jboss-user] [JBoss Seam] - Persist problem with Seam 1.1.0 and selectitems-1.1.1beta4

2007-02-22 Thread frehan
hi!

I have a simple registration page where users can register. When they register 
they can select user  roles. USer and role has relationship many-to-many. I use 
selectitems-1.1.1beta4 to display a selectionbox where the user can select 0-n 
roles. 
I also use a Seam-managed persistence context since it is required by 
selectitems.

My action looks like this:


 @In(create=true)
private EntityManager entityManager;

@In(required = false) @Valid
private User user;

When I try to call entityManager.persist(user) I get the following strange 
error:

at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=Transaction
Impl:XidImpl[FormatId=257, GlobalId=lia/192, BranchQual=, localId=192] status=ST
ATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceException
: org.hibernate.AssertionFailure: null id in se.camitz.par.User ent
ry (don't flush the Session after an exception occurs))

I says my Id is null. 

My user class has an autogenereated id so it should work:

@Id
@GeneratedValue(strategy=GenerationType.AUTO)
@Column(name="Id")
public Integer getId() {
return id;
}

The interesting thing is that if I create a new User object in my action and 
copy all values to the new object and call entityManager.persist(newUser) then 
it works fine! 

User newUser = new User();
newUser.setName(user.getName());
newUser.setRoles(user.getRoles());

entityManager.persist(newUser)


Any ideas someone???



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

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


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

2006-12-21 Thread frehan
When I upgraded from 4.0.4GA to 4.0.5GA I started to get problems with 
passivation, see below:

19:50:35,960 ERROR [SimpleStatefulCache] problem passivation thread 
javax.ejb.EJBException: Could not passivate; failed to save state 
at 
org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersist
 
enceManager.java:363) 
at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:196)
 
at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:129)
 
Caused by: java.io.IOException  
Caused by: java.lang.NoClassDefFoundError: org/jaxen/VariableContext 


I do not have any clustering turned on and should not have any caching but I 
still get this problem. The class org/jaxen/VariableContext is in the jar 
jaxen.jar in jboss_home/server/default/lib so why can Jboss not find his class 
and why is it needed. 

Any help is very much appreciated! 

/Fredrik 
 


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

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


[jboss-user] [JBoss Seam] - Re: Problem with detached enity

2006-12-13 Thread frehan
Aha so that is why! Thanks for your reply.

What is the best solution? To use a EXTENDED PersistenceContext or to to a 
manual refresh before deleting?

/Fredrik



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

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


[jboss-user] [JBossCache] - problem with org/jaxen/VariableContext

2006-12-13 Thread frehan
When I upgraded from 4.0.4GA to 4.0.5GA I started to get problems with

19:50:35,960 ERROR [SimpleStatefulCache] problem passivation thread
javax.ejb.EJBException: Could not passivate; failed to save state
at 
org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersist
enceManager.java:363)
at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:196)
at 
org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:129)
Caused by: java.io.IOException 
Caused by: java.lang.NoClassDefFoundError: org/jaxen/VariableContext


I do not have any clustering turned on and should not have any caching but I 
still get this problem. The class org/jaxen/VariableContext is in the jar 
jaxen.jar in jboss_home/server/default/lib so why can Jboss not find his class 
and why is it needed.

Any help is very much appreciated!

/Fredrik

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

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


[jboss-user] [JBoss Seam] - Problem with detached enity

2006-12-13 Thread frehan
My seam based application worked fine with  seam 1.0.1 GA and jboss 4.0.4 GA 
but when I upgraded to  seam 1.1.0 CR2 and jboss 4.0.5 GA a started to get 
problems with detached enity.

I have a @DataModel and a @DataModelSelection in a @Stateful session scoped 
bean. When I delete a item from the list I get:

19:36:03,890 ERROR [STDERR] java.lang.IllegalArgumentException: Removing a 
detached instance se.test.par.Establishment#35

I didnt have this problem before. Does anybody know why?

Best Regards Fredrik

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

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


[jboss-user] [JBoss Seam] - Problem with localeSelector when upgrading from Seam 1.0.1GA

2006-12-03 Thread frehan
Hi

I need to know the used locale in one of my sessionbeans so I inject the 
session context in a regular session bean:

@In private Context sessionContext;

then I get the localeSelector with sessionContext.get("localeSelector").

This worked fine when I was using Seam 1.0.1GA but when I switched to 1.1.0CR2 
I started to get null back instead of the localeSelector object.
Does anybody know why? 

Regards Fredrik

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

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


[jboss-user] [JBoss Seam] - Re: Seam and tomahawk-sandbox graphicimagedynamic

2006-11-08 Thread frehan
"frehan" wrote : "petemuir" wrote : 
http://jroller.com/page/pmuir?entry=dynamicimagecomponent_for_jsf
  |   | 
  |   | And, as pointed out, A4J has a component as well.  I would steer clear 
of tomahawk where possible and especially sandbox.
  | 
  | 
  | Thanks for your reply!
  | I have tried the A4J component, but I always get an Application context not 
available when using it with seam.
  | 
  | I have also tried your component, but I am not using faclets so I did a 
taglib to work with jsp/jsf (seam)  but I get exceptions about missing metohds, 
and more.. I will try to post the stacktrace..
  | 
  | /F




Stacktrace:


2006-11-08 14:47:35,406 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/camitzadmin].[jsp]]
 Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 99 in the jsp file: /app/imageUpload.jsp
Generated servlet error:
The method setPageContext(PageContext) is undefined for the type 
DynamicImageComponent

An error occurred at line: 99 in the jsp file: /app/imageUpload.jsp
Generated servlet error:
The method setParent(UIComponent) in the type UIComponentBase is not applicable 
for the arguments (Tag)

An error occurred at line: 99 in the jsp file: /app/imageUpload.jsp
Generated servlet error:
The method doStartTag() is undefined for the type DynamicImageComponent

Generated servlet error:
The method doEndTag() is undefined for the type DynamicImageComponent

Generated servlet error:
The method reuse(Tag) in the type TagHandlerPool is not applicable for the 
arguments (DynamicImageComponent)

Generated servlet error:
The method reuse(Tag) in the type TagHandlerPool is not applicable for the 
arguments (DynamicImageComponent)


at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
at 
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
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 
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:416)
at 
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
at 
org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
at 
org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:59)
at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:197)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter

[jboss-user] [JBoss Seam] - Re: Seam and tomahawk-sandbox graphicimagedynamic

2006-11-08 Thread frehan
"petemuir" wrote : 
http://jroller.com/page/pmuir?entry=dynamicimagecomponent_for_jsf
  | 
  | And, as pointed out, A4J has a component as well.  I would steer clear of 
tomahawk where possible and especially sandbox.


Thanks for your reply!
I have tried the A4J component, but I always get an Application context not 
available when using it with seam.

I have also tried your component, but I am not using faclets so I did a taglib 
to work with jsp/jsf (seam)  but I get exceptions about missing metohds, and 
more.. I will try to post the stacktrace..

/F

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

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


[jboss-user] [JBoss Seam] - Seam and tomahawk-sandbox graphicimagedynamic

2006-11-08 Thread frehan
Hi!

I am trying to use the graphicimagedynamic component of sandbox togheter with 
Seam. the graphicimagedynamic uses a ImageRenderer where the FacesContext is 
set using:

 public void setContext(FacesContext facesContext, ResourceContext 
imageContext) throws IOException

The problem is that when  facesContext.getApplication() is called it is null.
IF I then try with the Seam context Contexts.getApplicationContext() or 
Contexts.getSessionContext() it is also null in the renderer. 

Has anybody a solution for this problem. Or any other working method of 
diplaying a dynamic image in a web page using seam and jsf.?

/F

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

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


[jboss-user] [JBoss Seam] - Exception using jboss-4.05GA, seam-1.1.0.BETA1 and ajax4jsf

2006-11-06 Thread frehan
Hi all!

I am getting: 
java.lang.IllegalStateException: No application context active exception when 
tring to build a smal web app using seam and ajax4jsf.

I have tried the booking example shipped with seam-1.1.0BETA1 and it works 
fine.  The only big difference is that my app does not use faclets, just plain 
.jsp pages with jsf.

I used the the booking example source base and implemeted a repeater example 
where the typed text was repeated to the page using ajax4jsf, when I did that 
with faclets it worked fine but when I commented out the


org.ajax4jsf.VIEW_HANDLERS
org.jboss.seam.ui.facelet.SeamFaceletViewHandler


to only use plain jsp I got the above error.

Is faclets required to use seam and ajax4jsf togheter or does anybody know what 
the problem can be?

/F  



seam-1.1.0.BETA1

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

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