[jboss-user] [JNDI/Naming/Network] - Map TransactionManager to external context

2008-06-01 Thread gena777
Hello,

is it possible to map the TransactionManager so, that it will be externally 
accessible?

I would use it from Hibernate console without changing of my persistence.xml.

I tried it with other AS as JBoss an it works.


Thanks, Gena


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

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


[jboss-user] [JBoss Seam] - Possible design weakness of Events.raiseEvent() ??

2008-02-10 Thread gena777
Hello,

the current implementation of the event observer pattern seems to be (in my 
opinion) unstable: the new one observer can throw an uncaught  runtime 
exception and so prevent other observer from the reaction to this event.


Are there any fail-safe design pattern known, how we should use the Seam event 
model?

Thanks, Gena


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

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


[jboss-user] [JBoss Seam] - Selector.java: rememberMe cookie doesn't disappear

2007-09-30 Thread gena777
Hello,

my remember me cookie doesn't disappear after at least one login with the 
rememberMe set to  true. I think the method clearCookieValue() should remove 
the cookie from the same path, as it was set once. So if i change the line 99 
of Selector.java from cookie.setPath(/) to cookie.setPath(cookiePath) it 
works for me.

Its also interesting to have an autologin functionality, if the cookie was 
found and doesn't expired. I implemented this feature by using one another 
cookie loggedOut, because after logout the session is invalidated and because 
of rememberMe cookie the autologin occurs each time isLoggedIn() is called

Gena.

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

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


[jboss-user] [JBoss Seam] - NotLoggedInException and no redirect to login page again

2007-09-03 Thread gena777
Hello,

i'm trying to use the built-in security handling. With the pages.xml it works 
fine. But, if i try to restrict some controller action, no redirect occurs and 
the application just throws an exception

  | 17:34:57,328 ERROR [[default]] Servlet.service() for servlet default threw 
exception
  | org.jboss.seam.security.NotLoggedInException
  | at 
org.jboss.seam.security.Identity.checkRestriction(Identity.java:222)
  | at de.rwo.login.Identity.checkRestriction(Identity.java:59)
  | at 
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:38)
  | at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
  | at 
org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
  | 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.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
  | at 
org.javassist.tmp.java.lang.Object_$$_javassist_22.buyNow(Object_$$_javassist_22.java)

The de.rwo.login.Identity.checkRestriction extends the Identity and only wraps 
the original checkRestriction call. If i catch the NotLoggedInException in such 
a wrapper and redirect manually (by using Pages.instance()...) to the login 
page, it works, but expect the correct behavior also/especially  in case of 
NotLoggedInException. 

Some application data(configuration as in the docu):

This view should be visible to all, but the only action of the page requires 
successful login to be proceeded. 

Firing action in view

  | h:commandButton action=#{buyNowController.buyNow} styleClass=submit 
value=Kaufen
  | s:conversationId/
  | /h:commandButton

The action itself

@Restrict(#{identity.loggedIn})
  | public String buyNow() {...}
  | 

Sounds simple but doesn't work :-(

Thanks for any help,

Gena


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

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


[jboss-user] [JBoss Seam] - Re: NotLoggedInException and no redirect to login page again

2007-09-03 Thread gena777
Ok, with s:button the redirection to login works properly also on method 
invocations, but not with h:commandButton, any idea why?!

I'm using trinidad 1.2.1 on the jsf-ri-1.2 latest with latest cvs build of 
jboss Seam2

Gena

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

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


[jboss-user] [JBoss Seam] - EJB3InterceptorsInterceptor instead of EE5SeamInvocationCont

2007-08-13 Thread gena777
Hello,

i'm trying to get the testng tests working.

Could please someone explain, why the method invocation on a POJO- Seam- 
component is correctly intercepted by  EE5SeamInvocationContext but each call 
to an ejb3 component is intercepted by  EJB3InterceptorsInterceptor if i use 
the  Jboss embedded. 

This small deviation results in a fully loss of injection on 
EJB3-Seam-components. The POJO-components receive their injections as expected.

Thanks, Gena

PS. With the full installed jboss all works fine


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

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


[jboss-user] [JBoss Seam] - Jndi problem with jboss embedded and testng

2007-08-12 Thread gena777
Hello

i'm trying to run a testng test. At the beginning it looks fine: 

  | 01:55:18,578 INFO  [Component] Component: offerLifecycle, scope: STATELESS, 
type: STATELESS_SESSION_BEAN, class: de.intermobil.appl.OfferLifecycleBean, 
JNDI: OfferLifecycleBean/local

but as soon es the test needs an injected value, the following exceptions are 
thrown:

FAILED CONFIGURATION: @BeforeClass init
  | org.jboss.seam.InstantiationException: Could not instantiate Seam 
component: offerLifecycle
  | at org.jboss.seam.Component.newInstance(Component.java:1955)
  | 
  | Caused by: javax.naming.NameNotFoundException: OfferLifecycleBean not bound
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:542)
  | at org.jnp.server.NamingServer.getBinding(NamingServer.java:550)

I don't know why it doesn't work. The full jboss version works fine just the 
embedded jboss doesn't work.

The configuration seems to be ok. Only the jndi lookup for 
OfferLifecycleBean/local fails. Could you give me a hint, what could be wrong?

Thanks, Gena


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

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


[jboss-user] [JBoss Seam] - No session context for @WebMethod-call

2007-07-21 Thread gena777
Hello 

i'm trying the @WebService example from the reference-documentation but i'm 
getting following exception on Identity.instance() call:

  | Caused by: java.lang.IllegalStateException: No active session context
  | at org.jboss.seam.security.Identity.instance(Identity.java:157)
  | 

what am i doing wrong?

Thanks,
Gena




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

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


[jboss-user] [JBoss Seam] - Re: No session context for @WebMethod-call

2007-07-21 Thread gena777
Sorry, configured, but didn't deploy.

Thank you for the hint!

Gena

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

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


[jboss-user] [JBoss Seam] - Re: Preserving querystring during redirect.captureCurrentVie

2007-07-08 Thread gena777
Try to use the page parameters in pages.xml:

  | page view=/edit_user.xhtml login-required=true
  |  param name=userId value=#{editUser.userId}/
  | /page
  | 
if you request /edit_user.seam?userId=someId , after login succeeded, you 
should be redirected to the page with userId set.

Gena

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

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


[jboss-user] [JBoss Seam] - Locale switch doesn't remove bundles from context

2007-07-08 Thread gena777
Hello, 

i think, to get the last changes on locale/bundles working, the line 68 in 
LocaleSelector.java should be changed from
Contexts.removeFromAllContexts(org.jboss.seam.core.resourcebundle);
to
Contexts.removeFromAllContexts(org.jboss.seam.core.resourceBundle);


Gena

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

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


[jboss-user] [EJB 3.0] - Re: Can SLSB be dirty after new injection?

2007-07-07 Thread gena777
@wolfc thank you for the answer!

its a pity, that a small error (misunderstanding of this aspect of ejb-spec) 
results in a total instability of a whole application. I think, its really 
confusing, to get a dirty new injected STATELESS bean from a container. 

Couldn't it be better, to purge the dirty SLSB and from some threshold to fill 
the pool with new instances?

Are there some important reason why the SLSBs aren't one way? Is it really so 
expensive, to create asynchronously thousands  of whole instances of a bean and 
put them on demand to the method-ready pool?


Isn't the throwing an exception an expensive way to remove the dirty instance?

Thank you and excuse my nosiness!

Gena




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

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


[jboss-user] [EJB 3.0] - Correct recovery with optlock and extended PC

2007-07-07 Thread gena777
Hello all,

some entity was changed otherwise during it was editing in web. This entity is 
associated with an extended persistent context. After trying to persist the 
changes, it naturally (as expected) throws an exception. My idea is

  | Entity merged = em.merge(dirtyEntity) ;
  | if(merged.isModifiable())
  |   em.persist(merged);
  | 

quite simple, but the merge returns an entity with old version number (doesn't 
hit the DB). So this simple case doesn't work.

What is the best way to recover from the optimistic lock exception/issue?

Thank you for advise, Gena

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

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


[jboss-user] [EJB 3.0] - Can SLSB be dirty after new injection?

2007-07-06 Thread gena777
Hello
just one stupid question.  I invoke 3 method on one injected stateless bean 
instance. During the invocation chain this SLSB  holds the internal state. 
After  the the work is done, i forget this SLSB. 

And now the question, if i repeat the operation described above in the next 
converational step (web request)  can i receive a dirty SLSB injected from the 
contaner? 

I hope no, but if its possible to make a SLSB dirty for the container (and all 
user), how can i remove this bean from the pool instead of cleaning it up?

Thanks, Gena

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

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


[jboss-user] [JBoss Seam] - Re: h:selectManyCheckbox replaces PersistentBag with Arrays.

2007-07-03 Thread gena777
This is well within the contract for JSF - It simply says that the value 
attribute of the UISelectMany should be an array or List - it doesn't say that 
it is a PersistentBag. 

PersistentBag is an implementation of java.util.List and i don't see any need 
in a replacement of an existing and not empty PersistentBag, especially with an 
Arrays.ArrayList - which is not a full implementation of the List interface.


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

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


[jboss-user] [JBoss Seam] - Re: core:pages https-port ignored

2007-07-02 Thread gena777
thank you!

it was the navigation.


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

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


[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam

2007-07-02 Thread gena777
i think, it could, but we use now two different ds one for JBoss and one for 
our application. In the future, we plan to switch the jboss ds to our 
production one. Do you think, the XA  were the performance killer or a source 
of system instability?

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

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


[jboss-user] [JBoss Seam] - s:graphicImage decreases the image quality

2007-07-01 Thread gena777
Hello,

i think, it should be possible to use the byte[] as is (+custom content type) 
with s:graphicImage.

I prepare the images with JAI and if use the s:graphicImage the quality 
decreases. If i comment the preparation of BufferedImage out and put the   
input array to output thru, i get an expected quality.


  |   /*
  | byte[] b = (byte[]) input;
  | readImage(new ByteArrayInputStream(b));
  |*/
  | // no transformation needed GB01072007
  | output  = (byte[]) input;
  | 



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

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


[jboss-user] [JBoss Seam] - Re: s:graphicImage decreases the image quality

2007-07-01 Thread gena777
Ok, JIRA issue is now open

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

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

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


[jboss-user] [JBoss Seam] - h:selectManyCheckbox replaces PersistentBag with Arrays.Arra

2007-07-01 Thread gena777
Hi

During em.merge( ) operation i'm getting an exception, because the 
Arrays.ArrayList doesn't provide the AbstractList.remove functionality.

As the collection was retrieved from DB, it was an instance of PersistentBag. 
After form submission it becomes Arrays.ArrayList. So someone 
(h:selectManyCheckbox ?) did replace the collection! Is it a known issue? Does 
someone have a workaround or its simple (as usual) my mistake?

Thanks, Gena

PS. I'm using  JSF 1.2_04 P01 + latest facelets (from seam-cvs)

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

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


[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error

2007-06-23 Thread gena777
Hi,
is it possible, you are getting some where an uncaught exception (i would say 
null pointer) and seam interceptor rolls back the transaction? In the next step 
your page will rerender and touch a really null (or corrupt) objects. 


Gena
  

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

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


[jboss-user] [JBoss Seam] - Re: s:conversationPropagation has no effect with h:commandBu

2007-05-28 Thread gena777
Thank you for the answer! 
The problem is, for example i need to submit form and persist an object in an 
old long running conversation. Then i must initiate a redirect to a new page, 
take some parameters from an old conversation and begin a new long running 
conversation. Optionally, it would be helpful sometimes to end an old 
conversation. 

With pages.xml i issue a redirect to a new page which would make a new 
conversation to a long running one. But if i use a h:commandButton (with @End 
or then with end-conversation/ in pages.xml) and then issue a redirect, i get 
an old conversation id and the back-button causes a problems.

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

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


[jboss-user] [JBoss Seam] - s:conversationPropagation has no effect with h:commandButton

2007-05-26 Thread gena777
Hello

it seems, that the s:conversationPropagation doesn't affect the h:commandButton 
behaivour. 

This code works, but doesn't cause a submition of  form values
s:button  propagation=begin action=offer/createOffer  value=#{uib.Next} 
styleClass=submit 
  | /s:button
  | 

the following snipplet submits all values correct but doesn't open a new 
conversation as expected:

h:commandButton  action=offer/createOffer  
value=#{uib.Next} styleClass=submit 
  | s:conversationPropagation type=begin/
  | 
  | /h:commandButton

pages.xml is for both cases identical.

many thanks, Gena

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

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


[jboss-user] [JBoss Seam] - a:support request causes

2007-05-20 Thread gena777
Hi

i'm using an ajax4jsf enabled page, which works proper until i send even a   
smallest  ajax event. Then i get a PersistentObjectException (detached 
entity...).  The conversation seems to be long running, the session has manual  
 flash mode. The entity, which is the cause of an exception is mapped as 
CascadeType.ALL (so auto merge should occur).


The workflow step is: An complex entity is loaded into the conversation to be 
changed. Any changes without an ajax (also cascaded deletions) can be 
persisted. 


Page snipplet, caused the error (but all ajax-enabled components produces this 
exception after first usage)


  | h:inputText styleClass=large  #{rwo:hasMessages('model','ERROR')  ? 
'rscInputFailed' : ''}
  |id=model   
   
  |value=#{inOffer.item.model} 
  |required=true
  |requiredMessage=#{uib.ModelRequired}  

  | a:support event=onblur requestDelay=100 
reRender=model
  |  s:conversationId/
  |   /a:support
  | /h:inputText  
  | 


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

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


[jboss-user] [JBoss Seam] - a:support request causes

2007-05-20 Thread gena777
Hi

i'm using an ajax4jsf enabled page, which works proper until i send even a   
smallest  ajax event. Then i get a PersistentObjectException (detached 
entity...).  The conversation seems to be long running, the session has manual  
 flash mode. The entity, which is the cause of an exception is mapped as 
CascadeType.ALL (so auto merge should occur).


The workflow step is: An complex entity is loaded into the conversation to be 
changed. Any changes without an ajax (also cascaded deletions) can be 
persisted. 


Page snipplet, caused the error (but all ajax-enabled components produces this 
exception after first usage)


  | h:inputText styleClass=large  #{rwo:hasMessages('model','ERROR')  ? 
'rscInputFailed' : ''}
  |id=model   
   
  |value=#{inOffer.item.model} 
  |required=true
  |requiredMessage=#{uib.ModelRequired}  

  | a:support event=onblur requestDelay=100 
reRender=model
  |  s:conversationId/
  |   /a:support
  | /h:inputText  
  | 


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

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


[jboss-user] [JBoss Seam] - Re: ELSupport exception on javasisst-proxies (coerceToType)

2007-05-16 Thread gena777
Hi

the small example is attached to Jira. I hope, it will be helpful.

Gena

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

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


[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam

2007-05-03 Thread gena777
Ok, i've found it!

Since the new jboss ts implementation supports only one local-tx-resource per 
distributed transaction, the timer can not be commited until a bean uses more 
then one local-tx resource. Timers are hosted by default within the non xa 
hsqldb. So if we use in our transaction also one another local-tx data source, 
the exception above occurs!

I've switched from local-tx to xa data source and the timers work fine!

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

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


[jboss-user] [JBoss Seam] - Does s:fileUpload work with trinidad?

2007-05-02 Thread gena777
Hello all 
i'm using s:fileUpload as a replacement of trinidad upload tag as described by 
the seam docs and example. Since two weeks i've got a recent implementation of 
trinidad  and tried to use it. It works so far but the s:fileUpload doesn't 
work correct anymore. I'm not sure, if the problem presents since i've enabled 
trinidad again or because of Seam-updates? 

If i try to debug, i can see the Seam proceeding a multi part request. On some 
filtering stage, i see the correct size and  content type of my file. But in my 
backing bean i'm getting empty values instead. In the filter chain i saw the 
upload multi part request wrapper from trinidad and i think, it could be a 
problem.

I use:
1. fresh Seam from CVS
2. JBoss 4.2.0 cr2
3. JSF 1.2 ri
4. trinidad 1.2  (recent build)

The page and backing bean code are similar to seam examples and did work till 2 
weeks ago.


Thanks, Gena

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

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


[jboss-user] [JBoss Seam] - Re: Timmer problem

2007-05-02 Thread gena777
Are any workarounds/patches or corrections available now?

Thx 

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

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


[jboss-user] [JBoss Seam] - Re: Timmer problem

2007-05-02 Thread gena777
I've got it! Since the new jboss ts implementation supports only one 
local-tx-resource per distributed transaction, the timer can not be commited 
until your bean is using more then one local-tx resource. Timers are hosted by 
default within the non xa hsqldb. So if we use in our transaction also one 
another local-tx data source, the exception above occurs! I've switched from 
local-tx to xa data source and the timers work fine. 

I hope some one will find this post helpful!

 

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

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


[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam

2007-05-02 Thread gena777
Ok, i've found it!

Since the new jboss ts implementation supports only one local-tx-resource per 
distributed transaction, the timer can not be commited until a bean uses more 
then one local-tx resource. Timers are hosted by default within the non xa 
hsqldb. So if we use in our transaction also one another local-tx data source, 
the exception above occurs!

I've switched from local-tx to xa data source and the timers work fine!

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

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


[jboss-user] [JBoss Seam] - Re: ELSupport exception on javasisst-proxies (coerceToType)

2007-04-25 Thread gena777
Hello,

i'm using the freshest CVS Seam on JBoss4.2.0CR2 with trinidad, ajax4jsf and 
jsf 1.2ri (all jars from AS or Seam-dist).

Stack trace:


  | SCHWERWIEGEND: Error Rendering View[/offer/step1.xhtml]
  | java.lang.IllegalArgumentException: Cannot convert (id=1868 token=REPAIRED 
title=repaired) of type class de.intermobil.model.feature.AccidentState to 
class de.intermobil.model.feature.AccidentState_$$_javassist_33
  | at org.jboss.el.lang.ELSupport.coerceToType(ELSupport.java:358)
  | at 
org.jboss.el.ExpressionFactoryImpl.coerceToType(ExpressionFactoryImpl.java:46)
  | at 
com.sun.faces.renderkit.html_basic.RadioRenderer.renderOption(RadioRenderer.java:87)
  | at 
com.sun.faces.renderkit.html_basic.SelectManyCheckboxListRenderer.encodeEnd(SelectManyCheckboxListRenderer.java:146)
  | at 
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:286)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
  | at 
org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:79)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:282)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
  | at 
org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
  | at 
org.ajax4jsf.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:79)
  | at 
javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  | at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  | at 
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:571)
  | at 
javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
  | at 
org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:174)
  | at 
org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  | at 
org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
  | at 
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  | at 
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
  | at 
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:209)
  | at 
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:166)
  | at 
org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
  | at 
org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at de.intermobil.util.CommonFilter.doFilter(CommonFilter.java:33)
  | at 

[jboss-user] [JBoss Seam] - ELSupport exception on javasisst-proxies (coerceToType)

2007-04-24 Thread gena777
Hello, i 've got an Exception, that OneType is not of type OneType_javassist... 
in method coerceToType.
My workaround (works for me but possible isn't a finest solution)

  if (type == null || Object.class.equals(type) || 
obj.getClass().isAssignableFrom(type))

Please check this and describe in some words the problem, if i did a mistake 
and need an imporovement of model to avoid this problem if a future .  

Thanks! 


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

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


[jboss-user] [JBoss Seam] - Re: Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam

2007-04-23 Thread gena777
Hello, i'm using the seam-wrapper for EJB3 timers via @Asynchronous. In a 
simple case it works fine:

Timer iface:
@Local
  | public interface TimerTester {
  | @Asynchronous
  | public abstract Timer say(String what, @Expiration
  | Date expireTime, @IntervalDuration
  | Long intervallDuration,  @Duration Long duration);
  | }

Timer Bean:
@Name(timerTester)
  | @AutoCreate
  | @Stateless
  | public class TimerTesterImpl implements TimerTester{
  | @In
  | Timer timer;
  | @Resource
  | TimerService timerService;
  | public Timer say(String what, Date expireTime, Long intervallDuration, 
Long duration) {
  | System.out.println(what);
  | return timer;
  | }
  | }

controller (stateless bean with local iface):

public void sayHello() {
  | Timer timer =timerTester.say(hello, new 
Date(System.currentTimeMillis()+1000), 1l,10l); 
  | log.info(timer, null);
  | }

Page

  | h:commandLink value=Say Hello! action=#{sampleController.sayHello}/


My case, which doesn't work anymore: 

SFSB:

  | ...
  | @In(create = true)
  | OfferLifecycle offerLifecycle;
  | ...
  | if (persistOffer()) {
  | if (schedule) {
  | 
  | timer = 
offerLifecycle.scheduleOfferStart(inOffer.getId(), inOffer.getStartTimestamp());
  | 
  | debug(offer start pending with timer );
  | 
  | timer = 
offerLifecycle.scheduleOfferEnd(inOffer.getId(), inOffer.getEndTimestamp());
  | 
  | debug(offer end pending with timer);
  | }
Timer bean:

@Local
  | public interface OfferLifecycle {
  | @Asynchronous
  | public abstract Timer scheduleOfferStart(Long offerId, @Expiration
  | Date startTime);
  | @Asynchronous
  | public abstract Timer scheduleOfferEnd(Long offerId, @Expiration
  | Date expireTime);   
  | }

@Stateless
  | @Name(offerLifecycle)
  | public class OfferLifecycleBean implements OfferLifecycle {
  | 
  | @In(create = true)
  | OfferDAO offerDAO;
  | @In
  | Timer timer;
  | @Resource
  | TimerService timerService;
  | 
  | public Timer scheduleOfferStart(Long offerId, Date startTime) {
  | offerStart(loadOffer(offerId));
  | return timer;
  | }
  | public Timer scheduleOfferEnd(Long offerId, Date expireTime) {
  | 
  | offerEnd(loadOffer(offerId));   
  | return timer;
  | }
  | private Offer loadOffer(Long offerId) {
  | return offerDAO.findById(   offerId,
  | 
LockMode.UPGRADE);
  | }

persistOffer() has  flushed the session (because of flush mode manual)

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

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


[jboss-user] [JBoss Seam] - Can not persist EJB3 Timer since Jboss 4.2.0cr2 + seam from

2007-04-22 Thread gena777
Hi, while i'm trying to persist one start and one end timer, i get following 
exception. Some details on the unit of work: I persist my object (object graph) 
at the end of long running conversation with extended persistent context. Then 
i do em.flash() and (if all succeeded)  i wish to schedule two timers (for one 
execution in a future). Then i get this exception: 


  | 03:07:07,448 ERROR [STDERR] 
org.jboss.resource.connectionmanager.JBossLocalXAException: Trying to start a 
new tx when old is not complete! old:  131075, 29, 27, 
1--3f57feec:1029:462bf231:671-3f57feec:1029:462bf231:6f1
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.start(TxConnectionManager.java:886)
  | 03:07:07,464 ERROR [STDERR] at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:701)
  | 03:07:07,464 ERROR [STDERR] at 
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:446)
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.enlist(TxConnectionManager.java:773)
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:564)
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:337)
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin.insertTimer(GeneralPurposeDatabasePersistencePlugin.java:199)
  | 03:07:07,464 ERROR [STDERR] at 
org.jboss.ejb.txtimer.DatabasePersistencePolicy.insertTimer(DatabasePersistencePolicy.java:120)
  | 03:07:07,464 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 03:07:07,464 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 03:07:07,464 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 03:07:07,464 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:597)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 03:07:07,479 ERROR [STDERR] at $Proxy30.insertTimer(Unknown Source)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:256)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.ejb.txtimer.TimerServiceImpl.createTimer(TimerServiceImpl.java:222)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.ejb3.timerservice.jboss.TimerServiceFacade.createTimer(TimerServiceFacade.java:61)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.seam.core.Dispatcher.schedule(Dispatcher.java:224)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.seam.core.Dispatcher.scheduleInvocation(Dispatcher.java:205)
  | 03:07:07,479 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 03:07:07,479 ERROR [STDERR] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 03:07:07,479 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 03:07:07,479 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:597)
  | 03:07:07,479 ERROR [STDERR] at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  | 
The problem is, it did work on jboss 4.0.5 with seam 1.2.0. Could someone 
please explain, if there are some changes  in the implementation or where is my 
error. 

Many thanks,

Gena

View the original post : 

[jboss-user] [JBoss Seam] - Re: Seam injection doesn't work while testing with testng!

2007-01-30 Thread gena777
I hope yes:

My ejb-jar.xml:

...
  |  assembly-descriptor
  |   interceptor-binding
  |  ejb-name*/ejb-name
  |  
interceptor-classorg.jboss.seam.ejb.SeamInterceptor/interceptor-class
  |   /interceptor-binding
  |/assembly-descriptor
  | ...

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

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


[jboss-user] [JBoss Seam] - Re: Seam injection doesn't work while testing with testng!

2007-01-30 Thread gena777
...
  | 11:43:48,804 INFO  [Component] Component: utilWeb, scope: EVENT, type: 
JAVA_BEAN, class: de.intermobil.util.UtilWeb
  | 11:43:48,804 DEBUG [Component] interceptor stack: 
[Interceptor(org.jboss.seam.interceptors.MethodContextInterceptor), 
Interceptor(org.jboss.seam.interceptors.ConversationInterceptor), 
Interceptor(org.jboss.seam.interceptors.RollbackInterceptor), 
Interceptor(org.jboss.seam.interceptors.OutcomeInterceptor)]
  | 11:43:48,804 INFO  [Component] Component: org.jboss.seam.core.conversation, 
scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
  | 11:43:48,804 INFO  [Component] Component: offerPagePreparator, scope: 
STATELESS, type: STATELESS_SESSION_BEAN, class: 
de.intermobil.appl.exchange.OfferPagePreparator, JNDI: OfferPagePreparator/local
  | 11:43:48,804 DEBUG [Component] interceptor stack: 
[Interceptor(org.jboss.seam.interceptors.MethodContextInterceptor), 
Interceptor(org.jboss.seam.interceptors.ConversationInterceptor), 
Interceptor(org.jboss.seam.interceptors.OutcomeInterceptor), 
Interceptor(org.jboss.seam.interceptors.BijectionInterceptor)]
  | 11:43:48,820 INFO  [Lifecycle] starting up: org.jboss.seam.core.events
  | 11:43:48,820 DEBUG [Component] instantiating Seam component: 
org.jboss.seam.core.events
  | 11:43:48,820 DEBUG [Component] initializing new instance of: 
org.jboss.seam.core.events
  | 11:43:48,820 DEBUG [Component] done initializing: org.jboss.seam.core.events
  | 11:43:48,820 DEBUG [Events] Processing 
event:org.jboss.seam.postSetVariable.org.jboss.seam.core.events
  | 11:43:48,820 INFO  [Events] no events.xml file found
  | 11:43:48,820 DEBUG [Events] Processing 
event:org.jboss.seam.postCreate.org.jboss.seam.core.events
  | 11:43:48,820 INFO  [Lifecycle] starting up: org.jboss.seam.core.ejb
  | 11:43:48,820 DEBUG [Component] instantiating Seam component: 
org.jboss.seam.core.ejb
  | 11:43:48,820 DEBUG [Component] initializing new instance of: 
org.jboss.seam.core.ejb
  | 11:43:48,820 DEBUG [Component] done initializing: org.jboss.seam.core.ejb
  | 11:43:48,820 DEBUG [Events] Processing 
event:org.jboss.seam.preSetVariable.org.jboss.seam.core.ejb
  | 11:43:48,820 DEBUG [Events] Processing 
event:org.jboss.seam.postSetVariable.org.jboss.seam.core.ejb
  | 11:43:48,820 INFO  [Ejb] starting the embedded EJB container
  | 11:43:49,164 DEBUG [EJB3StandaloneBootstrap] !!loadMBeanServer servers 0
  | 11:43:49,164 DEBUG [EJB3StandaloneBootstrap] !!loadMBeanServer creating...
  | 11:43:49,632 WARN  [BeanSchemaBinding] You should use the 2.0 version of 
the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
  | 11:43:49,882 DEBUG [UserTransactionImpl] new UserTx: [EMAIL PROTECTED]
  | 11:43:50,961 INFO  [LocalTxDataSource] Bound datasource to JNDI name 
'java:/rwoDatasource'
  | 11:43:50,961 DEBUG [EJB3StandaloneBootstrap] !!! 
deployment.getInstalledContexts() [EMAIL PROTECTED] [EMAIL PROTECTED] 
bean=org.jboss.resource.adapter.jdbc.local.LocalTxDataSource 
properties=[connectionURL, maxSize, blockingTimeout, initialContextProperties, 
transactionManager, driverClass, password, cachedConnectionManager, jndiName, 
userName, idleTimeout, minSize] constructor=null}name=rwoDatasourceBootstrap 
[EMAIL PROTECTED] state=Installed [EMAIL 
PROTECTED]@a5f99b{name=rwoDatasourceBootstrap dependsOn=TransactionManager 
whenRequired=Configured dependentState=Installed resolved=true}, [EMAIL 
PROTECTED] dependsOn=InitialContextProperties whenRequired=Configured 
dependentState=Installed resolved=true}, [EMAIL PROTECTED]
 trap dependsOn=CachedConnectionManager whenRequired=Configured 
dependentState=Installed resolved=true}] [EMAIL PROTECTED] 
dependsOn=TransactionManager whenRequired=Configured dependentState=Installed 
resolved=true}, [EMAIL PROTECTED] dependsOn=InitialContextProperties 
whenRequired=Configured dependentState=Installed resolved=true}, [EMAIL 
PROTECTED] dependsOn=CachedConnectionManager whenRequired=Configured 
dependentState=Installed resolved=true}]}}, [EMAIL PROTECTED] [EMAIL PROTECTED] 
bean=java.lang.Object properties= [EMAIL PROTECTED] [EMAIL PROTECTED] 
dependentState=Installed} factoryMethod=getDatasource}}name=rwoDatasource 
[EMAIL PROTECTED]
 8 state=Installed [EMAIL PROTECTED]
[EMAIL PROTECTED] dependsOn=rwoDatasourceBootstrap whenRequired=Instantiated 
dependentState=Installed resolved=true}] [EMAIL PROTECTED] 
dependsOn=rwoDatasourceBootstrap whenRequired=Instantiated 
dependentState=Installed resolved=true}]}}]
  | 11:43:50,961 DEBUG [EJB3StandaloneBootstrap] !! context 
rwoDatasourceBootstrap class java.lang.String [EMAIL PROTECTED] class 
org.jboss.resource.adapter.jdbc.local.LocalTxDataSource
  | 11:43:50,961 DEBUG [EJB3StandaloneBootstrap]   failed to register 
rwoDatasourceBootstrap Key properties cannot be empty
  | 11:43:50,961 DEBUG [EJB3StandaloneBootstrap] !! context rwoDatasource class 
java.lang.String [EMAIL PROTECTED] class 
org.jboss.resource.adapter.jdbc.WrapperDataSource
  | 11:43:50,961 DEBUG 

[jboss-user] [JBoss Seam] - Re: Seam injection doesn't work while testing with testng!

2007-01-30 Thread gena777
Not only my components but also no one Seam component can be injected 
(facesMessages, applicationContext, log etc. are nulls!!)

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

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


[jboss-user] [JBoss Seam] - Re: Seam injection doesn't work while testing with testng!

2007-01-30 Thread gena777
Ok, i don't know why, but it works now. I've tried the Seam-generated example 
as described on Wiki. And it did work! 

The only difference was the eclipse project kind: my project is a simple 
application, but seam-tutorial is an Enterprise Application. So i was missing 
the EAR-libraries. In my case, i got an exception within an 
EJB3InterseptorsInterseptor. In case of enterprise application the 
EE5SeamInterceptor has done it work! 

If anybody wants to know, my workaround is:
1. Create new empty EAR-Project as described in Seam-gen tutorial
2. Put references to my main project and to all jar from seam-distribution an 
some necessarly libs.

Testng suits run correct now.


Thanks to all guys who answered this boring posting!






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

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


[jboss-user] [JBoss Seam] - Seam injection doesn't work while testing with testng!

2007-01-29 Thread gena777
Hi, i've got probably a stupid injection issue but i need a hint:

1. While testing with testng no one Seam component can be injected. However, 
@EJB components can be!

2. All components seem to be correctly installed/registered during start up

3. Component.getInstance(..) and so on work properly, but i have also @In, 
@Out POJO injections,  which can not be resolved (NullPointerException, because 
the attributes are nulls)

4. @In, @Out Injection in Servlets works irregularly (is it possible to use 
Seam within servlet/filter?)

I think, it's a configuration problem, but i've checked my config with Seam 
examples and haven't found any conflicts (btw tomcat deployment works fine 
except Servlet Injection, which wasn't tested on tomcat)

I use the cvs version of Seam from 29.01.2007

Thanks for any help!




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

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