[jboss-user] [JBoss Tools (users)] - How to add hibernate console

2007-08-01 Thread krasig
I have hibernate application and want to add hibetnate console to test my new 
mappings.
After "Create Hibernate Console WIZARD" I have hibernate console , bit when 
click on it :
org.hibernate.InvalidMappingException: Could not parse mapping document from 
file 
D:\EclipseEuropa\eclipse\MyWorks\FormApi\com\indexbg\dc\formapi\model\SchemeItemUnits.hbm.xml
  | Could not parse mapping document from file 
D:\EclipseEuropa\eclipse\MyWorks\FormApi\com\indexbg\dc\formapi\model\SchemeItemUnits.hbm.xml
  |   org.hibernate.DuplicateMappingException: Duplicate class/entity mapping 
com.indexbg.dc.formapi.model.SchemeItemUnits
  |   Duplicate class/entity mapping 
com.indexbg.dc.formapi.model.SchemeItemUnits
  | org.hibernate.DuplicateMappingException: Duplicate class/entity mapping 
com.indexbg.dc.formapi.model.SchemeItemUnits
  | Duplicate class/entity mapping 
com.indexbg.dc.formapi.model.SchemeItemUnits
  | 
  | 

This SchemeItemUnits is  the first mapping file.

Where is problem???

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

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


[jboss-user] [JBoss jBPM] - Re: JBPM Processor Designer not working with Eclipse 3.2

2007-08-01 Thread dleerob
Okay that worked. So simple, but easy to miss as it isn't really mentioned 
anywhere in the docs. Usually you just copy across the plugins and features 
folders to add an Eclipse plugin.

You simply need to copy across the "links" folder as well. So copy all the 
folders in "jbpm-jpdl-3.2.1\designer\eclipse\" into your own Eclipse directory. 
These folders inlcude "plugins", "features" AND "links".

Thanks everyone for your help.

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

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


[jboss-user] [JBoss Seam] - Re: JBoss scheduler (processor) problem on Tomcat...

2007-08-01 Thread [EMAIL PROTECTED]
Do you have EJB3 installed on Tomcat? I believe the seam-pay example uses EJB3 
Timers. 

Also, our test coverage on JDK 1.6 is very limited. 

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

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


[jboss-user] [JBoss jBPM] - Re: JBPM Processor Designer not working with Eclipse 3.2

2007-08-01 Thread dleerob
I did copy the plugins across. I basically copied across 
\jbpm-jpdl-3.2.1\designer\eclipse\features\*.* and 
\jbpm-jpdl-3.2.1\designer\eclipse\plugins\*.* across into the eclipse\features 
and eclipse\plugins folder. The plugins folder includes the 
org.jbpm.gd.jpdl.core_3.0.13.1.jar and org.jbpm.gd.jpdl.ui_3.0.13.1.jar files. 
One thing I haven't tried yet, is copying the "links" folder across as well. 
Let me try that, and I will get back to you.

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

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


[jboss-user] [EJB 3.0] - Re: EJBs and XML-RPCs

2007-08-01 Thread aroppone
I checked everything JNDI related but can't find out if the correct value nor 
the other values stated in the dep.desc. above. I quess that the problem is the 
way NB deploys the EJBs. any ideas how to solve that?

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

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


[jboss-user] [JBoss Seam] - Re: JBoss scheduler (processor) problem on Tomcat...

2007-08-01 Thread Stateless Bean
I also tried to run your example -jboss-seam-pay and this doesn't work to on 
tomcat 5.5 with java 1.6,

On JBoss 4.0.5 this works,
In your example I get:

  | javax.servlet.ServletException: Error calling action method of component 
with id _id15:_id32:_id47
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
  | at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
  | at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
  | at java.lang.Thread.run(Unknown Source)
  | 08:42:08,937 ERROR [ExceptionFilter] exception root cause
  | javax.faces.FacesException: Error calling action method of component with 
id _id15:_id32:_id47
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | 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:329)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
  | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
  | at 
org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
  | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardC

[jboss-user] [JBoss Seam] - Re: Bind a string property by reference

2007-08-01 Thread jbuechel
Can someone shortly take time to tell me if my approach makes sence at all?

Would be great!

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

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


[jboss-user] [JBoss/Spring Integration] - HI i am getting an exception java.lang.ClassNotFoundExceptio

2007-08-01 Thread jackpagal
Hi,
  can anyone help  in resolving this issue while deploying my application in 
jboss.
  While i am trying to use activemq 4.1.0 on jboss-4.2.0.GA
Is this an issue in jboss-spring integration.
 
2007-08-02 11:27:20,562 DEBUG 
[org.springframework.beans.factory.xml.PluggableSchemaResolver] Loaded schema 
mappings: 
{http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd,
 
http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd,
 
http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd,
 
http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd,
 
http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd,
 
http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd,
 
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd,
 http://www.springframework.org/schema/lang/spring-l!
 ang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, 
http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd,
 
http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd,
 
http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd,
 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd}
2007-08-02 11:27:20,562 DEBUG 
[org.springframework.beans.factory.xml.PluggableSchemaResolver] Loading schema 
mappings from [META-INF/spring.schemas].
2007-08-02 11:27:20,578 DEBUG 
[org.springframework.beans.factory.xml.PluggableSchemaResolver] Loaded schema 
mappings: 
{http://www.springframework.org/schema/aop/spring-aop-2.0.xsd=org/springframework/aop/config/spring-aop-2.0.xsd,
 
http://www.springframework.org/schema/util/spring-util.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd,
 
http://www.springframework.org/schema/util/spring-util-2.0.xsd=org/springframework/beans/factory/xml/spring-util-2.0.xsd,
 
http://www.springframework.org/schema/jee/spring-jee.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd,
 
http://www.springframework.org/schema/beans/spring-beans.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd,
 
http://www.springframework.org/schema/lang/spring-lang-2.0.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd,
 
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd,
 http://www.springframework.org/schema/lang/spring-l!
 ang.xsd=org/springframework/scripting/config/spring-lang-2.0.xsd, 
http://www.springframework.org/schema/aop/spring-aop.xsd=org/springframework/aop/config/spring-aop-2.0.xsd,
 
http://www.springframework.org/schema/tx/spring-tx.xsd=org/springframework/transaction/config/spring-tx-2.0.xsd,
 
http://www.springframework.org/schema/jee/spring-jee-2.0.xsd=org/springframework/ejb/config/spring-jee-2.0.xsd,
 
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd=org/springframework/beans/factory/xml/spring-beans-2.0.xsd}
2007-08-02 11:27:20,593 INFO  
[org.springframework.beans.factory.xml.XmlBeanDefinitionReader] Loading XML 
bean definitions from class path resource [commonApplicationContext.xml]
2007-08-02 11:27:20,593 DEBUG 
[org.springframework.beans.factory.xml.DefaultDocumentLoader] Using JAXP 
provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl]
2007-08-02 11:27:20,593 DEBUG 
[org.springframework.beans.factory.xml.ResourceEntityResolver] Attempting to 
resolve DTD [http://www.springframework.org/dtd/spring-beans.dtd] using 
[org.springframework.beans.factory.xml.BeansDtdResolver]
2007-08-02 11:27:20,593 DEBUG 
[org.springframework.beans.factory.xml.BeansDtdResolver] Trying to resolve XML 
entity with public ID [-//SPRING//DTD BEAN//EN] and system ID 
[http://www.springframework.org/dtd/spring-beans.dtd]
2007-08-02 11:27:20,593 DEBUG 
[org.springframework.beans.factory.xml.BeansDtdResolver] Trying to locate 
[spring-beans.dtd] in Spring jar
2007-08-02 11:27:20,593 DEBUG 
[org.springframework.beans.factory.xml.BeansDtdResolver] Found beans DTD 
[http://www.springframework.org/dtd/spring-beans.dtd] in classpath
2007-08-02 11:27:20,734 DEBUG 
[org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver] Loaded 
mappings 
[{http://www.springframework.org/schema/p=org.springframework.beans.factory.xml.SimplePropertyNamespaceHandler,
 
http://www.springframework.org/schema/lang=org.springframework.scripting.config.LangNamespaceHandler,
 
http://activemq.org/config/1.0=org.apache.xbean.spring.context.v2.XBeanNamespaceHandler,
 
http://www.spring

[jboss-user] [JBossWS] - Re: SSL & Authorization

2007-08-01 Thread FabBoco
Please gurus,

can you provide to me some pointers to step-by-step documentation ?

Thanks

Fab.

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

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


[jboss-user] [JBoss jBPM] - Re: when i end the TaskInstance, an LazyInitializationExcepti

2007-08-01 Thread vtysh
I don't know, maybe it is an oracle problem. Try to search forum i saw some 
topics where users describe theirs problems with oracle environment.
My proposition is to start from simple code open and close context. Then add 
ProcessInstance creation, then add other parts of code... Also you can try your 
code with default hypersonic datasource to be sure, that problem is not in 
source.

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

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


[jboss-user] [JBoss Seam] - Re: Component configuration with complex types

2007-08-01 Thread jbuechel
Wow! Thanks a lot for your effort. I'll give it a try.

jonas


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

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


[jboss-user] [JBoss Seam] - Re: external authentication-any pointers for a beginner?

2007-08-01 Thread mwkohout
And since I'm bossy and like looking gift help in the mouth :),  I'm not sure 
I'm all that hot on the use of the Pages component as part of the 
authentication system.  It kinda smells like 
TIMTOWTDI(http://en.wikipedia.org/wiki/There's_more_than_one_way_to_do_it) and 
I was never a big fan of MTOW( More Than One Way ).

If I were designing this framework, for the default SeamLoginModule that uses 
NameCallback and PasswordCallback I'd do away with the login-view attribute on 
Pages.  The only thing Pages would do is call Identity.isLoggedIn(true).  I 
would also make the two JAAS Callbacks Seam components, and have the redirected 
"login page" view as an attribute of them.

But I'm not designing this framework, and every asshole has an opinion.

Mike Kohout

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

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


[jboss-user] [JBoss Seam] - Re: Page action not called

2007-08-01 Thread Sammy8306
Any ideas based on this information, Pete?

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

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


[jboss-user] [JBoss jBPM] - Re: when i end the TaskInstance, an LazyInitializationExcepti

2007-08-01 Thread foolpcman
sorry , I send the wrong hibernate.cfg.xml

  | org.hibernate.dialect.Oracle9Dialect
  | 
  | 
  | oracle.jdbc.OracleDriver
  | jdbc:oracle:thin:@localhost:1521:zbq
  | wlsrndf
  | wlsrndf
  | 
  | 
  | org.hibernate.cache.HashtableCacheProvider
  | 

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Evaluating JBoss, need some help

2007-08-01 Thread modulo2
Dears,
Currently, We are considering to have another application server -we r 
already having IBM websphere- used in our production environment.

I'm making comparison between JBossAS & "Sun Java System Application Server 
Platform Edition 9.0" 
(http://www.sun.com/software/products/appsrvr_pe/index.xml).

I have some points I need to cover in this comparison, please post a reply for 
JBoss if you can help.

1- Ability to be deployed on IBM UNIX AIX -I know it is pure 100% Java-, but I 
need somewhere to mention it explicitly or someone who already deployed it 
there.

2- In the near future, we are considering using "IBM WebSphere Process Server" 
(http://www-306.ibm.com/software/integration/wps/). Did anyone try integration 
or deployment of application that connects to IBM process server or not? Or 
even if you have article discussing JBoss connectivity with SOA solutions.

Thanks in advance

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

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


[jboss-user] [JBossCache] - Re: performance again

2007-08-01 Thread genman
To answer Manik's question for him, I ran some tests in JBCache and the 
performance for a plain synchronized HashSet compared to CopyOnWriteArraySet 
was worse, by about 10-20%. This is on a dual-core laptop, and probably for a 
four or eight-way, the difference might be more noticeable.

COWAL actually does have some heavy synchronization for add and remove in JDK 
1.5. For JDK 1.6, a read-write lock is used. (not sure this would help., as 
every operation done is a add or remove.) COWAL is more designed for more 
readers than writers.


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

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


[jboss-user] [JBoss jBPM] - Re: when i end the TaskInstance, an LazyInitializationExcepti

2007-08-01 Thread foolpcman
You are so kindly! thank you!
I'm not sure if my wording is right,Sorry!
I debug the code you wrote,The same exception(org.hibernate.SessionException: 
Session is closed!) was threw at this line:
jbpmContext.save(pi);
My jbpm version is 3.2GA and use default(jbpm.cfg.xml is null) config files 
except the following code in hibernate.cfg.xml

  | org.hibernate.dialect.HSQLDialect
  | 
  | 
  | org.hsqldb.jdbcDriver
  | jdbc:hsqldb:mem:jbpm
  | sa
  | 
  | 
  | 
  | org.hibernate.cache.HashtableCacheProvider
  | 
I'll have a try use jbpm3.2.1 version to debug same code.
 I can never thank you enough for your help.

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

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


[jboss-user] [JNDI/Naming/Network] - Re: Proxy ClassCastException after successful EJB lookup

2007-08-01 Thread jaikiran
Have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassCastExceptions. 
Specifically, try out the jmx-console method mentioned over there.

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

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


[jboss-user] [JBoss Seam] - Re: Dynamic navigation

2007-08-01 Thread matt.drees
Sweet.  I was just working on one.

http://jira.jboss.com/jira/browse/JBSEAM-1746

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

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


[jboss-user] [JBoss Seam] - Re: Possible to use jPDL-based pageflows without all the jBP

2007-08-01 Thread kukeltje
do you have logging that shows what time is spend in what parts? Maybe some 
parts can be turned off.

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

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


[jboss-user] [JBoss Seam] - Re: Seam security working in Facelets but not via annotation

2007-08-01 Thread omilian3
Okay, that makes sense. Thanks for the speedy response.

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

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


[jboss-user] [JBoss Seam] - Re: Error when running TestNG tests for booking example

2007-08-01 Thread pmengelt
Hi

I have the same problem with a seam-generated test for a form

seam 1.2.1GA
jboss as 4.0.5GA

thanx for help!

regards pascal

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

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


[jboss-user] [JBoss jBPM] - Re: when i end the TaskInstance, an LazyInitializationExcepti

2007-08-01 Thread vtysh
Try to debug this piece of code starting with some simple action gradually 
adding all other lines to see which code is broke your application. But it 
looks very strange, that after any write operation you get jbpmContext 
autoclose. Maybe something is wrong in hibernate or jbpm configuration? Do you 
use standart one, or some specific? And do you use last jbpm 3.2.1?

About closing context after creating process instance, i meant this


  | ProcessInstance pi = pd.createProcessInstance();
  | TaskInstance ti = 
pi.getTaskMgmtInstance().createStartTaskInstance();
  | long id=ti.getId();
  | jbpmContext.save(pi);
  | jbpmContext.close();
  | jbpmContext=jbpmConfiguration.createJbpmContext();
  | ti=jbpmContext.getTaskMgmtSession().loadTaskInstance(id);
  | 

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

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


[jboss-user] [JBoss Seam] - Re: Shouldn't captcha.validate also clear response?

2007-08-01 Thread [EMAIL PROTECTED]
No, I can't think of a way to do this in JSF, not without calling the JSF 
component directly.

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

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


[jboss-user] [JBoss Seam] - Re: Dynamic navigation

2007-08-01 Thread [EMAIL PROTECTED]
Actually I would like to support this so please, submit a patch.

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

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


[jboss-user] [JBoss Seam] - Re: @DataModel on Stateful beans (broken?)

2007-08-01 Thread [EMAIL PROTECTED]
Are you sure you declared the getter method on the local interface of the SFSB? 

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

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


[jboss-user] [JBoss Seam] - Re: external authentication-any pointers for a beginner?

2007-08-01 Thread mwkohout
Thanks for your help so far, Shane.

NoMy users are authenticating against a web application on a different 
server developed by a different group...so I've got to forward them to a login 
page that isn't in my Seam app.

This is the simplified sequence of events:
1) an unauthenticated user tried to access my seam app.
2) my app(via my JAAS Handler) looks for a "secure" cookie for the domain.  It 
doesn't see it.  So, it forwards them on to http://authenticate.institution.edu 
where they are presented with a form and authenticate to that app.  That app 
then sets the domain-wide cookie and then forwards them back to my seam app.
3) my app sees the cookie and from the cookie knows who they are and they are 
then authenticated.  Then they are then assigned roles(assigning roles is 
trivial and is not something I'm having trouble with) and they use my seam app.
4) After authentication, for every request I check(through a WS) and make sure 
the cookie is still valid.

I do believe(because I'm not at work and don't have my app in front of me) the 
NotLoggedInException is thrown from Pages.redirectToLoginView() if the login 
view isn't set.  Why didn't I set my login view?  Because I don't want to 
redirect to a view in my app-I wanna force the JAAS Handler I wrote to run 
instead of redirect them.  My JAAS Handler will force a redirect if necessary.

Instead of forwarding to a view from the exception handler in pages.xml, is 
there any way I can force the authentication stuff to happen?



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

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


[jboss-user] [JBoss Seam] - Re: Seam and Top Ajax frameworks

2007-08-01 Thread [EMAIL PROTECTED]
Seam aims to work really great with "top" open-source Ajax frameworks. We don't 
prioritize by which commercial products  pay infoworld the most advertising 
dollars ;-)

By the way, did you look at the pricing listed in that article? OMG!! 

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

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


[jboss-user] [JBoss Seam] - Re: Some doubts about Seam

2007-08-01 Thread [EMAIL PROTECTED]
1. You can implement any architectural "pattern" you like with Seam, it does 
not impose an architecture. Of course, some things that were needed in J2EE or 
in JSF/Spring/Hibernate are simply not necessary in Seam.

2. Check the documentation about Seam-managed transactions.

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

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


[jboss-user] [JBoss Seam] - Re: Check if conversations are active before session invalid

2007-08-01 Thread [EMAIL PROTECTED]
anonymous wrote : which is not good because it checks the whole conversation 
stack (including other connected clients or browsers) and not the ones related 
to the session I want to invalidate. 

ConversationEntries is session-scoped and contains only the conversations for 
the current session.

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

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


[jboss-user] [JBoss Seam] - Re: Much thanks!

2007-08-01 Thread [EMAIL PROTECTED]
Cheers, good luck! :-)

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

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


[jboss-user] [JBossWS] - Re: asynchronous webservice posible with jboss ?

2007-08-01 Thread jyc5131
good question, i am finding it now too, any help is appreciated

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

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


[jboss-user] [JBoss Seam] - Re: Seam security working in Facelets but not via annotation

2007-08-01 Thread [EMAIL PROTECTED]
That's correct behaviour.  Seam Security is used to secure action methods, not 
properties.

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

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


[jboss-user] [JBossCache] - Re: performance again

2007-08-01 Thread aditsu
"aditsu" wrote : is ConcurrentHashSet faster

I meant CopyOnWriteArraySet

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

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


[jboss-user] [JBoss Messaging] - Re: persisting messages for audit

2007-08-01 Thread lpiccoli
ok so i can use the following conf to add an audit aspect.


  | 
  |   
  |
  | 

now i guess this is system wide and not configurable to an individual queue 
basis.

I would like some reassurance that this is indeed the most useful mechanism to 
audit the messageQ.

thanks

-lp


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

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


[jboss-user] [JBossCache] - Re: performance again

2007-08-01 Thread aditsu
Thanks, it runs a tiny little bit faster now :p
It jumped from about 350 to 1500 transactions/s (!)

About the locks, is ConcurrentHashSet faster than a plain synchronized HashSet, 
when there are a lot of adds & removes?

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

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


[jboss-user] [EJB 3.0] - how to use timestamp

2007-08-01 Thread [EMAIL PROTECTED]
Hi,

I'm using mssql for jboss ejb 3, I've tried

@Column(name="my_date")
@Temporal(TemporalType.TIMESTAMP)
private java.util.Date  myDate;
 // or private java.sql.Timestamp

or  @Column(name="my_date")
private Date  creatingDate;

mapping to a table with timestamp column my_date

but when persist this entity, without setDate, got

Cannot insert an explicit value into a timestamp column. Use INSERT with a 
column list to exclude the timestamp column, or insert a DEFAULT into the 
timestamp column

the my_date is nullable, desn't need a value.

Can anyone tell me how to fix it?

Thanks
John

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

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


[jboss-user] [JBoss Seam] - Re: Shouldn't captcha.validate also clear response?

2007-08-01 Thread henrik.lindberg
rephrase - workaround would be to configure captcha to generate images that are 
easier to read.

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

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


[jboss-user] [JBoss Seam] - Re: Shouldn't captcha.validate also clear response?

2007-08-01 Thread henrik.lindberg
I contemplated writing some kind of wrapper that kept both the value and 
performed validation by delegation - but I could not quite figure out how to do 
it.

Hope someone can think of something - it is a quite irritating issue. (Coupled 
with the fact that the default captcha configuration generates really hard 
captchas - that is another issue that I have not had time to look into yet - 
but is certainly a sort of work around to input not being cleared when invalid).

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: problem with scheduling deployed classes

2007-08-01 Thread cyberblue
I'm using jboss3.2 because the code is for EJB2.1

The configure file conf/jboss-service.xml and deploy/scheduler-service make the 
scheduler works before the schedulable classes deployed.So the scheduler can't 
find them.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - problem with scheduling deployed classes

2007-08-01 Thread cyberblue
Hi all.

I have some deployed class in the deploy/ directory, I want them be used by 
JBoss Scheduler. But the configure file conf/jboss-service.xml and 
deploy/scheduler-service is loaded before the class deployed. So the scheduler 
can't find them.

Can I add the class to scheduler after it deployed?

Thanks.

The configure is here:


  | 
  |   true
  |   mypackage.TestClass
  |   
  |   
  |   NOW
  |   60
  |   -1
  | 
  | 


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

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


[jboss-user] [JBoss Portal] - URL to access content into CMS Portlet

2007-08-01 Thread tufla
Hello to all,

I'm working on Jboss Portal 2.6 and I don't know how should be a URL to access 
specific content from my CMS into one CMS Portlet window defined in any page in 
my site.

Could someone help with this instruction ?

Thank you in advance !

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

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


[jboss-user] [JBoss Seam] - Re: Seam messes up JNDI lookups from webtier in GlassFish

2007-08-01 Thread samdoyle
Looking at my previous version of the web.xml and comparing it to the seam-gen 
one I had and changed based on tutorials the format of the ejb-local-ref was 
different for this session bean.


  | ejb/GarageEntityBeanFacade
  | Session
  | 
  | com.myproject.ejb.entity.GarageEntityBeanFacadeLocal
  | FishermansWharf-ejb.jar#GarageEntityBeanFacade
  | 

In addition the seam-gen web-app version tag for web.xml was set to 2.4 not 2.5 
which is what I had previously had. I'm not sure if this made a difference or 
not but I was able to get it finally working after these changes.

Thanks.

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

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


[jboss-user] [JBoss Seam] - Re: Seam security working in Facelets but not via annotation

2007-08-01 Thread omilian3
I've now tried invoking the tryRulesEngine() from a command button (rather than 
via the property accessor) and it works. 

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

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


[jboss-user] [JBoss Seam] - Re: Seam messes up JNDI lookups from webtier in GlassFish

2007-08-01 Thread [EMAIL PROTECTED]
Can you produce a repeatable test case? Seam does not handle JNDI registration 
for EJBs. My suspicion is that your EJBs are somehow not deployed correctly in 
the Seam app?

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

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


[jboss-user] [JBoss Seam] - Re: Seam messes up JNDI lookups from webtier in GlassFish

2007-08-01 Thread samdoyle
Here is the stack trace. You can see it is passing through the Seam Filter 
which I suspect is doing something whacky.


  | javax.naming.NameNotFoundException: No object bound to name 
java:comp/env/ejb/GarageEntityBeanFacade
  | at 
com.sun.enterprise.naming.NamingManagerImpl.lookup(NamingManagerImpl.java:834)
  | at 
com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:173)
  | at 
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:337)
  | at javax.naming.InitialContext.lookup(InitialContext.java:392)
  | at 
com.covaluate.projects.fishermanswharf.web.client.ClientHandler.lookupGarageEntityBeanFacade(ClientHandler.java:61)
  | at 
com.covaluate.projects.fishermanswharf.web.client.ClientHandler.getGarages(ClientHandler.java:38)
  | 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:597)
  | at 
org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
  | at 
org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
  | at 
org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
  | at 
org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
  | at 
org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
  | at 
org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
  | at 
org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
  | at 
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:82)
  | at 
org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | 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:60)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:68)
  | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:149)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
  | at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
  | at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
  | at 
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
  | at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
  | 

[jboss-user] [JBoss Seam] - Seam messes up JNDI lookups from webtier in GlassFish

2007-08-01 Thread samdoyle
Gah, I thougth Seam was going to make things easy to integrate not harder?

Since Seam Remoting doesn't appear to work on GlassFish I am attempting to 
switchback to DWR which works fine as usual. But when I hit my server side 
object that does a JNDI lookup I get a no object bound to name exception. The 
exact same code works fine without using Seam.

Very basic lookup in GlassFish that works without Seam:


  |  private GarageEntityBeanFacadeLocal lookupGarageEntityBeanFacade() {
  |   try {
  |  Context c = new InitialContext();
  |  return (GarageEntityBeanFacadeLocal) 
c.lookup("java:comp/env/ejb/GarageEntityBeanFacade");
  |   } catch(NamingException ne) {
  |  Logger.getLogger(getClass().getName()).log(Level.SEVERE,"exception 
caught" ,ne);
  |  throw new RuntimeException(ne);
  |   }
  |}
  | 

With Seam I constantly get the exception

javax.naming.NameNotFoundException: No object bound to name exceptions.


I really think Seam has potential but perhaps it is not ready for use with 
GlassFish. I'm really encountering several snags that really bogs me down and 
is preventing me from getting stuff done.

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

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


[jboss-user] [JBoss Seam] - Re: Seam security working in Facelets but not via annotation

2007-08-01 Thread omilian3
A Facelet is referencing the name property of the "authenticator", as follows:

name = #{authenticator.name}



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

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


[jboss-user] [JBoss jBPM] - Re: when i end the TaskInstance, an LazyInitializationExcepti

2007-08-01 Thread foolpcman
Sorry,I forgot the log
09:36:53,328 [http8001-Processor22] DEBUG JbpmContextInfo : creating jbpm 
context with service factories '[tx, message, scheduler, logging, persistence, 
authentication]'
  | 09:36:53,328 [http8001-Processor22] DEBUG JbpmContext : creating [EMAIL 
PROTECTED]
  | 09:36:53,328 [http8001-Processor22] DEBUG DbPersistenceServiceFactory : 
creating persistence service
  | 09:36:53,328 [http8001-Processor22] DEBUG DbPersistenceService : creating 
hibernate session
  | 09:36:53,343 [http8001-Processor22] DEBUG DbPersistenceService : beginning 
hibernate transaction
  | Hibernate: 
  | select
  | rndf_s_report.nextval 
  | from
  | dual
  | Hibernate: 
  | /* named HQL query GraphSession.findLatestProcessDefinitionQuery */ 
select
  | * 
  | from
  | ( select
  | processdef0_.ID_ as ID1_4_,
  | processdef0_.NAME_ as NAME3_4_,
  | processdef0_.DESCRIPTION_ as DESCRIPT4_4_,
  | processdef0_.VERSION_ as VERSION5_4_,
  | processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN6_4_,
  | processdef0_.STARTSTATE_ as STARTSTATE7_4_ 
  | from
  | JBPM_PROCESSDEFINITION processdef0_ 
  | where
  | processdef0_.NAME_=? 
  | order by
  | processdef0_.VERSION_ desc ) 
  | where
  | rownum <= ?
  | Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | 09:36:53,359 [http8001-Processor22] DEBUG GraphElement : event 
'process-start' on 'ProcessDefinition(RNDFProcess)' for 'Token(/)'
  | 09:36:53,359 [http8001-Processor22] WARN  StatefulPersistenceContext : 
Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks 
==
  | Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | 09:36:53,375 [http8001-Processor22] DEBUG TaskController : creating task 
instance variable 'report_id' from process variable 'report_id', value 'null'
  | 09:36:53,375 [http8001-Processor22] DEBUG VariableContainer : create 
variable 'report_id' in 'TaskInstance[appendForm]' with value 'null'
  | 09:36:53,375 [http8001-Processor22] DEBUG GraphElement : event 
'task-create' on 'Task(appendForm)' for 'Token(/)'
  | Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | Hibernate: 
  | /* 
  | FROM
  | RndfVUserinfo 
  | WHERE
  | group_fid LIKE '102220100%' */ select
  | rndfvuseri0_.USERNAME as USERNAME32_,
  | rndfvuseri0_.PASSWORD as PASSWORD32_,
  | rndfvuseri0_.TRUENAME as TRUENAME32_,
  | rndfvuseri0_.COMPANY as COMPANY32_,
  | rndfvuseri0_.DEPARTMENT as DEPARTMENT32_,
  | rndfvuseri0_.DUTY as DUTY32_,
  | rndfvuseri0_.TELEPHONE as TELEPHONE32_,
  | rndfvuseri0_.EMAIL as EMAIL32_,
  | rndfvuseri0_.HANDSET as HANDSET32_,
  | rndfvuseri0_.GROUP_NAME as GROUP10_32_,
  | rndfvuseri0_.GROUP_DESCRIPTION as GROUP11_32_,
  | rndfvuseri0_.GROUP_SID as GROUP12_32_,
  | rndfvuseri0_.GROUP_FID as GROUP13_32_,
  | rndfvuseri0_.SEARCH_LEVEL as SEARCH14_32_,
  | rndfvuseri0_.LEVELS as LEVELS32_ 
  | from
  | WLSRNDF.RNDF_V_USERINFO rndfvuseri0_ 
  | where
  | group_fid like '102220100%'
  | 09:36:56,203 [http8001-Processor22] DEBUG GraphElement : event 
'task-assign' on 'Task(appendForm)' for 'Token(/)'
  | 09:36:56,203 [http8001-Processor22] DEBUG JbpmContext : closing JbpmContext
  | 09:36:56,203 [http8001-Processor22] DEBUG Services : closing service 
'persistence': [EMAIL PROTECTED]
  | 09:36:56,203 [http8001-Processor22] DEBUG DbPersistenceService : committing 
hibernate transaction
  | 09:36:56,203 [http8001-Processor22] ERROR DbPersistenceService : hibernate 
commit failed

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

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


[jboss-user] [JBoss Seam] - Re: Dynamic navigation

2007-08-01 Thread matt.drees
Yeah, but it'd be nice know at least a hint of what Gavin's thinking before 
putting work into it.  It's no fun to submit a patch and have it be rejected.

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

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


[jboss-user] [JBoss Seam] - Re: File upload to application folder

2007-08-01 Thread gmarcus
No exceptions were being thrown but the file was not being served.  Then I did 
a search on my hard drive and found that the files were being saved into 
$JBOSS_HOME\bin.

I added the following path to point to the deployed webroot:

  | OutputStream pictureFileStream = new 
FileOutputStream("../server/default/deploy/fresh.ear/fresh.war/content/" + 
pictureOriginalFilename);
  | 

Now files are getting saved in my webroot and displaying correctly on the page.

How do I programaticaly get the absolute system filepath of the webroot?  Is it 
somewhere in facesContext?


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

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


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

2007-08-01 Thread tynor
All,

Good news: I just noticed that Chiral posted a followup to my post on Michael's 
blog explaining the bug and proposing a workaround: 

http://www.michaelyuan.com/blog/2007/05/29/seam-book-examples-updated-to-jboss-as-420-ga

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

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


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

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

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

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


[jboss-user] [JBoss jBPM] - Re: when i end the TaskInstance, an LazyInitializationExcepti

2007-08-01 Thread foolpcman
I mean that ,After create the TaskInstance
TaskInstance ti = pi.getTaskMgmtInstance().createStartTaskInstance();
Whether i save ti or close jbpmcontext ,the same exception always throwed.

  | 09:27:24,765 [http8001-Processor25] ERROR DbPersistenceService : hibernate 
commit failed
  | org.hibernate.SessionException: Session is closed
  | at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:116)
  | at 
org.hibernate.transaction.JDBCTransaction.commitAndResetAutoCommit(JDBCTransaction.java:139)
  | at 
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:115)
  | at 
org.jbpm.persistence.db.DbPersistenceService.commit(DbPersistenceService.java:253)
  | at 
org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:211)
  | at org.jbpm.svc.Services.close(Services.java:222)
  | at org.jbpm.JbpmContext.close(JbpmContext.java:139)
  | at buesiness.BusinessEngine.SaveGo(BusinessEngine.java:113)
  | at buesiness.BusinessEngine.exectue(BusinessEngine.java:62)
  | at 
org.apache.jsp.order_005fexec_jsp._jspService(order_005fexec_jsp.java:99)
  | at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  | at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
  | at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
  | at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
  | at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
  | at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
  | at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
  | at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
  | at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
  | at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
  | at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
  | at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
  | at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:670)
  | at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:517)
  | at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
  | at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
  | at java.lang.Thread.run(Thread.java:595)
  | 

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

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


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

2007-08-01 Thread tynor
Thanks Shane,

I don't doubt that this is fixed in 2.0 or CVS latest, but I can't easily 
migrate my app to the new Seam config. I'd hoped to be able to do a partial 
migration of a still Seam 1.2.1-based app, but running with JSF 1.2 (we've had 
some problems that appear fixed by the newer JSF) - we'll eventually port the 
rest of the app to Seam 2.0, but we'll probaby have to wait for an official GA 
release.

Comments on Michael Yuan's blog and his success at porting his book's Seam 
1.2.1 apps to Jboss 4.2 
(http://www.michaelyuan.com/blog/2007/05/29/seam-book-examples-updated-to-jboss-as-420-ga)
 made me think this was possible. I'm no longer so sure -- too many others have 
reported this same classloader problem and I've seen no analysis / workarounds.


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

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


[jboss-user] [JBoss jBPM] - Re: when i end the TaskInstance, an LazyInitializationExcepti

2007-08-01 Thread foolpcman
Before save operation ,I never close context.see this:
try {
  | hsession.save(businessReport);
  | ProcessDefinition pd = 
jbpmContext.getGraphSession().findLatestProcessDefinition("RNDFProcess");
  | ProcessInstance pi = pd.createProcessInstance();
  | //pi.getContextInstance().setVariable("username", 
from_username);
  | TaskInstance ti = 
pi.getTaskMgmtInstance().createStartTaskInstance();
  | jbpmContext.close();
  | ti.setVariable("report_id", businessReport.getReportId());
  | ti.end();
  | } catch (Exception e) {
  | System.out.println("Unknown error in the SaveGo().");
  | return_code = Property.SQL_ERROR;
  | message = "?";
  | event_type = "";
  | e.getMessage();
  | e.printStackTrace();
  | jbpmContext.setRollbackOnly();
  | }finally{
  | jbpmContext.close();
  | }

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

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


[jboss-user] [JBoss Seam] - Re: Seam security working in Facelets but not via annotation

2007-08-01 Thread [EMAIL PROTECTED]
How are you accessing the tryRulesEngine() method?

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

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


[jboss-user] [JBoss Seam] - Re: Disable built-In filter

2007-08-01 Thread [EMAIL PROTECTED]
I'm pretty sure you can just set installed=false in components.xml to disable a 
filter.

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

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


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

2007-08-01 Thread [EMAIL PROTECTED]
Can you try with the latest CVS version of Seam?  I believe we made some 
changes after 1.2.1 to fix this.

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

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


[jboss-user] [Security & JAAS/JBoss] - Re: NPE in ExtendedFormAuthenticator

2007-08-01 Thread leegreiner
I ended up writing my own authenticator, one that guarded against the NPE.

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

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


[jboss-user] [JBoss Seam] - Re: Dynamic navigation

2007-08-01 Thread [EMAIL PROTECTED]
It won't hurt to submit a patch.  The worst that can happen is that Gavin 
rejects it :)

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

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


[jboss-user] [JBoss Seam] - Re: Client-side Seam remoting calls from a static web page o

2007-08-01 Thread [EMAIL PROTECTED]
Does the request hit ExecutionHandler?  Set a breakpoint in 
ExecutionHandler.handle() and see if it gets hit when you send your request.

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

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


[jboss-user] [JBoss Seam] - Re: external authentication-any pointers for a beginner?

2007-08-01 Thread [EMAIL PROTECTED]
anonymous wrote : Setting the login-requred parameter to true resulted in me 
being forwarded to seam-gen's login.xhtml view. 

Isn't that the result that you wanted?  BTW the exception handler for 
NotLoggedInException is unrelated to the login-required attribute.

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

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


[jboss-user] [JBoss Seam] - Re: SOS-Creating WebService with Seam

2007-08-01 Thread [EMAIL PROTECTED]
I suggest you head over to the JBossWS forum, as this isn't a Seam issue.

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

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


[jboss-user] [JBoss Seam] - Re: Shouldn't captcha.validate also clear response?

2007-08-01 Thread [EMAIL PROTECTED]
This won't clear the captcha response, as the state isn't read again from the 
Captcha component if validation fails.  Off the top of my head I can't think of 
an easy way around this.

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

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


[jboss-user] [JBoss Seam] - Re: Dynamic navigation

2007-08-01 Thread matt.drees
So, if I submitted a patch to do this, would you put it in Seam 2?

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

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


[jboss-user] [JBoss Seam] - Re: File upload to application folder

2007-08-01 Thread [EMAIL PROTECTED]
Your code looks ok to me, is it throwing an exception?  Serving it back with 
s:graphicImage should be a snap, as it supports loading the image from a file 
directly.  Here's what the docs say:

anonymous wrote : Attributes
  | 
  | *   value ? image to display. Can be a path String (loaded from the 
classpath), a byte[], a java.io.File, a java.io.InputStream or a java.net.URL. 
  | Currently supported image formats are image/png, image/jpeg and image/gif.
  | *   fileName ? if not specified the served image will have a generated 
file name. If you want to name your file, you should specify it here. 
  | This name should be unique 

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

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


[jboss-user] [JBoss Seam] - Seam security working in Facelets but not via annotations

2007-08-01 Thread omilian3
Hi,

Following the Seam reference, I've setup a login page using the identity 
management facilities. The log in works fine, and in my Facelets I can use the 
following successfully:


  | YOU ARE LOGGED IN
  | 

I've also setup the JBoss Rules engine, so the following also works:


  | YOU HAVE CUSTOMER DELETE
  | 

and;


  | YOU HAVE POWER ROLE
  | 

So far so good. These pages all reference a simple backing bean as follows:

  | package au.gov.austrac.ao.prototype;
  | 
  | import org.jboss.seam.annotations.In;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.security.Restrict;
  | import org.jboss.seam.security.Identity;
  | 
  | @Name("authenticator")
  | public class ExampleAuthenticator {
  | 
  | @In
  | Identity identity;
  | 
  | public String name = "bill";
  | 
  | public String getName() {
  | tryRulesEngine();
  | return name;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | }
  | 
  | @Restrict("#{identity.loggedIn}")
  | public void tryRulesEngine() {
  | System.out.println("logged in? " + identity.isLoggedIn());
  | }
  | 
  | public boolean authenticate() {
  | identity.addRole("power");
  | return true;
  | }
  | }

This bean is available under the name "authenticator" in my pages via the @Name 
annotation, and the authenticate() method is invoked by the identity code, so 
it would seem that the framework knows about this class and the Seam 
annotations are being invoked (at least @Name is), yet when I'm not logged in I 
can still access the tryRulesEngine() method. Note that the section of the page 
controlled by the first code snippet above is not displayed. 

It appears that the @Restrict annotation is not working or is not being invoked?


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069842
___
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 disable the query cache?

2007-08-01 Thread matt.drees
You'd probably want to ask this on a different forum.  It's not really a Seam 
question.

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

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


[jboss-user] [JBossWS] - Availability of Jbossws-2.1.0

2007-08-01 Thread ragr
Is there a beta or daily build of Jbossws-2.1.0 available for pre-release 
trials?

When is the beta or GA date for Jbossws-2.1.0?

Thank you.

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

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


[jboss-user] [JBoss Portal] - IPC - Event not fired

2007-08-01 Thread explorer
Hi,
I was trying to work with the example given for IPC but with some custom code 
of mine. I was not able to achieve any result. Please advice.

I have a myportal.sar where in i put the jboss-service.xml with the following 
code.


  | 
  | 
  | 
  | portal:service=ListenerRegistry
  | PortalInitListener
  | 
  | gov.sba.bgportal.jboss.examples.PortalInitService
  | 
  |   
  |
  |
  |portal:service=ListenerRegistry
  |NodeEventListener
  |
  | gov.sba.bgportal.jboss.examples.MyEventPortlet$Listener
  |
  |   
  |   
  | 

My first listener PortalInitListener is of type PortalEventListener and works 
good for SessionEvents.

Second one is a PortalNodeEventListener. This never gets fired.
There are two portlets communicating the information through parameters.

FirstPortlet:
public class AlfrescoRenditionPrtlet extends GenericPortlet
  | {   
  |protected void doView(RenderRequest rRequest, RenderResponse rResponse) 
throws PortletException, IOException, UnavailableException
  |{
  | String renditionFileURL = 
rRequest.getPreferences().getValue("renditionFileURL", "/AdminHome/404.html");
  | String PropegatedValue = rRequest.getParameterMap().toString();
  | String s = "parameterMAP AlfrescoRenditionPrtlet 
>"+PropegatedValue;
  | String s1 = "fromContext AlfrescoRenditionPrtlet 
>"+getPortletContext().getAttribute("fromContext");
  | rResponse.setContentType("text/html");
  | PrintWriter writer = rResponse.getWriter();
  |   writer.println("");
  |   writer.println(" ");   
  
  |   writer.println("");
  |   writer.println("");
  |   writer.println(s+""+s1);
  |   writer.close();
  |  }
  | }
  | 
SecondPortlet:


  | public void processAction(ActionRequest request, ActionResponse response) {
  | String PropegatedValue = request.getParameter("EventPropegatedValue");
  | response.setRenderParameter("PropegatedValue", PropegatedValue);

  | }
  | 
  | protected void doView(RenderRequest rRequest, RenderResponse response) 
throws PortletException, IOException, UnavailableException
  | {
  | String PropegatedValue = rRequest.getParameterMap().toString();
  | String s = "PropegatedValue MyEventPortlet >"+PropegatedValue;
  | String renditionFileURL = 
rRequest.getPreferences().getValue("renditionFileURL", "/AdminHome/404.html");
  | String s1 = "fromContext MyEventPortlet 
>"+getPortletContext().getAttribute("fromContext");
  | response.setContentType("text/html");
  | PrintWriter writer = response.getWriter();
  | writer.println(s+""+s1);
  | writer.close();
  | }
  | 

Listener:

  | public static class Listener implements PortalNodeEventListener{
  | public PortalNodeEvent onEvent(PortalNodeEventContext context, 
PortalNodeEvent event) { 
  |  PortalNode node = event.getNode();
  |  String nodeName = node.getName();
  |  WindowActionEvent newEvent = null;
  |  if (nodeName.equals("ARPWindow1") && event instanceof 
WindowActionEvent)
  |  {
  | WindowActionEvent wae = (WindowActionEvent)event;
  | PortalNode window2 = node.resolve("../MEPWindow2");
  | if (window2 != null)
  | {
  |newEvent = new WindowActionEvent(window2);
  |Map map = new HashMap();
  |map.put("EventPropegatedValue", "~This is the 
value");
  |map.putAll(wae.getParameters());
  |newEvent.setParameters(map);
  | }
  |  }
  |  if (newEvent != null)
  |  {
  | return newEvent;
  |  }
  |  else
  |  {
  | return context.dispatch();
  |  }
  |   }
  | }
  | 

I am unable to locate the problem. Any one there to advice me.
Any sort of help is thanked.




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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: svn co http://anonsvn.jboss.org/repos/jbossas/trunk/ jbo

2007-08-01 Thread PeterJ
Downloading from trunk gets you the latest 5.0 beta software. The build-ability 
of that has fluctuated greatly in the past several months. If I were you, I 
would either download a binary package from the download page, or get one of 
the tags. For example, to get the 4.2.1 source, use:

svn co http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_4_2_1_GA/ jbossas

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

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


[jboss-user] [JBoss Portal] - Re: Unable to Access a preference values from portlet-instan

2007-08-01 Thread shanportal
Hi Peter, Thanks a lot for you help

It is working for me now.  I  removed the following from the render-obejct.xml

 
  | 
  | default
  | overwrite
  | 
  |   cmsrenderInstance
  |   render.CMSRender
  | 
  |   
  | 

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

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


[jboss-user] [JBoss Messaging] - onMessage not being fired for message on a queue

2007-08-01 Thread HibsMax
Hi, Group.

This question is vague and I apologise for that up front.  I'm mainly looking 
for pointers to help me determine where to start looking.

I have an application that:
1. produces a message
2. writes the message to a database
3. pushes the message to queue
4. update the record in the database
5. sends the message to a topic
6. a consumer then consumes the messages on the topic

steps 1-3 happen in a servlet running on server1
steps 4-5 happen in the onMessage method in an MDB running on server2

All the messages make it to the database so I know that steps 1, 2 and 3 are 
all working.  I have a debug statement in the onMessage method and I can see 
that it's not being called for every message e.g. I send 450 messages but the 
onMessage is only executed 210 times.  When I look in the JBM_MSG table I see 
what I believe are the missing messages (I check the headers column using the 
SQL below).

Can anyone suggest a reason why the onMessage method would not be called for 
every message?  I know it's being called sometimes, just not all the time.  I 
think I must be missing a config parameter or something.

I am using JBM 1.3 GA and Oracle.

Peace, Anders

SQL to check jbm_msg.headers:
SELECT UTL_RAW.CAST_TO_VARCHAR2 (DBMS_LOB.SUBSTR (headers))
FROM   jbm_msg
/


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

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


[jboss-user] [Clustering/JBoss] - Re: Session Replication deadlock

2007-08-01 Thread stringaling
Moving to Jboss-Cache 1.4.1 SP4 and Jgroups 2.4.1SP3 seems to resolve this 
issue. 

There is an interesting memory usage pattern occuring though: After the server 
starts up we see a gradual increase in memory usage on one node in the cluster. 
It approaches the Maximum allocated to the instance, then drops off and behaves.

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

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


[jboss-user] [EJB 3.0] - Timerservice: expiring next method call before the previous

2007-08-01 Thread shundavid
Hello everybody,

I'm having issues with the Timerservice:

I'm creating a timer that expires every 5 min, but my @Timeout method sometimes 
takes more than 5 min to return. So I noticed that when this happens, my method 
starts to act weird, no exceptions, no warnings.

Is there anyway to keep the @Timeout method from running if the previous one 
haven't finished?

Thanks

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

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


[jboss-user] [JBossCache] - Performing cache operations while in a catch() section

2007-08-01 Thread dfraser
Hi all,

  the application I have written, when handling exceptions in one part, 
performs a cache operation (setting a node's value) to inform the other members 
of the cluster as to what is happening with a resource shared amongst the 
cluster.  

everything looks and acts fine, then a minute or two later after the dust has 
settled, a warning pops up in server.log

17:56:19,454 WARN  [TreeCache] status is 1 (not ACTIVE or PREPARING); returning 
null)
java.lang.Throwable
at org.jboss.cache.TreeCache.getCurrentTransaction(TreeCache.java:5805)
at org.jboss.cache.TreeCache.getCurrentTransaction(TreeCache.java:5775)
at org.jboss.cache.TreeCache.put(TreeCache.java:3831)
at sun.reflect.GeneratedMethodAccessor116.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy56.put(Unknown Source)
at 
com.mec.management.mbeans.TreeCacheFacade.setValue(TreeCacheFacade.java:296)

[and so on]

there are a few of these - it seems every cache related operation done while 
handling an exception has problems.  there is a transaction timeout message 
before all this

17:55:17,034 WARN  [TransactionImpl] Transaction 
TransactionImpl:XidImpl[FormatId=257, GlobalId=xbod-app01.xb-online.com/37, 
BranchQual=, localId=37] timed out. status=STATUS_ACTIVE

the cache is in REPL_SYNC mode, but I don't know what else to say as I'm not 
sure what else is important

I am sensing that this general idea of using the cache to update information 
within catch() blocks is not a good idea.  I am lost as how to deal with this - 
is there some general principles I should follow or should I move the cache 
operation out of the exception handling all together (and how to?)?

yeah, they're only warnings but they look important.  If someone could possibly 
explain what is going on, I would greatly appreciate it

doug


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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - svn co http://anonsvn.jboss.org/repos/jbossas/trunk/ jbossas

2007-08-01 Thread anders3
I would loke to build the application server

1) svn co http://anonsvn.jboss.org/repos/jbossas/trunk/ jbossas
2) cd jbossas
3) build/build.sh clean most

After download of thirdparties I get over 100 errors

Am I doing the right thing to build the server?
JVM 1.5
Apache Ant version 1.6.5 compiled on July 2 2006



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

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


[jboss-user] [Clustering/JBoss] - Re: HA-JNDI problem in the cluster environment

2007-08-01 Thread konkimalla
Well, I solved my problem by starting the server using "run -c all -b 
(ipaddress)". At the client, I just configured to localhost:1100. I am not sure 
whether there is an xml entry to "Bind address for all JBoss services" with the 
node ip address. 

I successfully tested both fail over and loadbalancing, which can be easily 
tested by running several client applications that continuously access the ejb 
in a loop. 


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

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


[jboss-user] [Clustering/JBoss] - Re: Clustering and load balancing EJB 2.x

2007-08-01 Thread konkimalla
Well, I solved my problem by starting the server using "run -c all -b ". At the 
client, I just configured to localhost:1100. I am not sure whether there is an 
xml entry to "Bind address for all JBoss services" with the node ip address.

I successfully tested both fail over and loadbalancing, which can be easily 
tested by running several client applications that continuously access the ejb 
in a loop.


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

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


[jboss-user] [JBoss Seam] - Re: Seam 2.0 BETA

2007-08-01 Thread asookazian
and what about integration with JBoss federated SSO or other SSO 
frameworks/software like PingFederated and Quest Vintela???

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

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


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

2007-08-01 Thread tynor
I dont know how i missed this the first time, but in fact, there was also a 
Facelets exception complaining about class loading.  
2007-08-01 17:24:11,602 ERROR [STDERR] java.lang.ClassNotFoundException: No 
ClassLoaders found for: org.jboss.seam.security.SecurityFunctions
  | 2007-08-01 17:24:11,602 ERROR [STDERR]  at 
org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
  | 2007-08-01 17:24:11,602 ERROR [STDERR]  at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:514)
  | 2007-08-01 17:24:11,602 ERROR [STDERR]  at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:408)
  | 2007-08-01 17:24:11,602 ERROR [STDERR]  at 
  | ...
This is in fact almost identical symptoms to those described (and as far as I 
can tell never solved) at: 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056730 (i.e., the 
security functions work some times, and fail after a submit - in my case, 
continue to work after some submits, but seem to fail when a Validator fails)

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

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


[jboss-user] [JBoss Seam] - Re: I'm back

2007-08-01 Thread tim_ph
Pete,
Please look at my issue on accessing row in datatable on this link
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=114929

I believe it's the most frustrate part of using Seam right now. I can't believe 
how hard it is to use the thing correctly.


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

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


[jboss-user] [JBoss Portal] - Re: Calling JAAS

2007-08-01 Thread gersonjohan

I treated to login using a LoginContext as the following: 


  | 
  | String username = request.getParameter("username");
  | String password = request.getParameter("password");
  | 
  | boolean loginOk = false;
  | 
  | if (username != null && password != null){
  | 
  | LoginContext lc = null;
  | 
  | try {
  | ClienteCallbackHandler handler = new 
ClienteCallbackHandler(username, password.toCharArray());
  | lc = new LoginContext("portal", handler);
  | lc.login();
  | loginOk = true;
  | } catch (LoginException e) {
  | logger.error("Login incorrecto.", e);
  | }
  | }
  | 


I create my callback and everything works without errors, but the portal 
continues sending to the login page when it is tried to accede to a safe 
context.


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

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


[jboss-user] [JBoss Tools (users)] - Disable the internal browser in the nightly tools?

2007-08-01 Thread andrew.rw.robinson
I keep having Eclipse continuously crash on me. There seems to be some kind of 
conflict between the code completion using the browser and the jboss tools 
using the browser. 

If I open an XHTML file, I can no longer use the code completion (crashes 
eclipse in the XUL shared library). 

If I open a Java file and use the code completion, trying to open an XHTML file 
causes eclipse to crash.

Trying to open the code completion inside of an XHTML file seems to crash 
eclipse when it closes.

All these problems seem to stem from the visual and preview support from the 
red hat web page editor from the jboss tools. I only edit these files in source 
mode, so I wouldn't mind permanently disabling these features if it stops 
eclipse from crashing.

Any ideas?

Environment: 
eclipse 3.3 using GTK version on linux
JBossTools-200707210217-nightly-ALL-linux-gtk.zip



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

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


[jboss-user] [Security & JAAS/JBoss] - strange behavior in getting caller principal in ejb

2007-08-01 Thread jainsau
Sorry for the long post, but I have tried to explain the problem in detail.
We are facing strange issues in getting the caller principal in our EJBs. Here 
is the envt we have:

We are using JBoss 4.2.0 GA. We are not using JAAS for authentication. A custom 
service is validating the credentials and returns a custom principal. The 
custom principal and password are set on the initial context: 
credentials.put(Context.SECURITY_PRINCIPAL, 
customPrincipalInstance);
credentials.put(Context.SECURITY_CREDENTIALS, "dummy");
context = new InitialContext(credentials);
along with other usual details.

This context is used to lookup the remote proxy in the client. So the invoked 
bean should now have the sessionContext populated with the 
customPrincipalInstance. 
We also have an EJB interceptor that intercepts any ejb method invocation. If 
the principal available in the interceptor is not an instance of our 
CustomPrincipal it throws an exception.

We have the following invocation steps (along with interceptors) which we are 
testing:
client->interceptor->EJB1->interceptor->EJB2.

Now when I start JBoss app server and access the client, the above steps should 
be undertaken. I am able to get the correct caller principal in EJB2 (EJB2 is 
injected into EJB1 using @EJB annotation) only at the third attempt. Here's 
what happens in each attempt:

First Attempt: Client passes customPrincipalInstance. In interceptor, the 
callerPrincipal returned by sessionConext is customPrincipalInstance. But, in 
EJB1, the callerPrincipal returned by sessionContext is SimplePrincipal 
(unauthenticated). So, when EJB1 invokes EJB2, the second interceptor fails, as 
the principal now in the context is SimplePrincipal.

Second Attempt: Client passes customPrincipalInstance. In interceptor, the 
callerPrincipal is customPrincipalInstance. This time in EJB1 also, the 
callerPrincipal is customPrincipalInstance. When EJB1 invokes EJB2, the second 
interceptor gets customPrincipalInstance. So EJB 2 gets invoked, but when I 
print the caller principal here, the value is SimplePrincipal (unauthenticated).

Third Attempt: Now everything works fine. Both the EJBs and the interceptors 
get customPrincipalInstance. No errors anywhere. 
All further attempts also work fine. 

I dont know why the first two invocations give error. I certainly cannot tell 
the client to login 3 times to get the app to work :). What could be the issue? 
I checked the JBoss code, and found that threadPrincipal.get() in 
SecurityAssociation.getCallerPrincipal() returns the principal. But cannot 
understand why it doesnt work in first two attempts but works later.
Any help/input is appreciated.

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

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


[jboss-user] [JBoss jBPM] - Re: task-assign event firing

2007-08-01 Thread karstendausb
Sorry, didn't get it: What exactly is the bug? That the task-assign-event is 
fired in case 1, or that it is not fired in case 2? 



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

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


[jboss-user] [Performance Tuning] - Re: RMI per call overhead?

2007-08-01 Thread caultonpos
Yes, direct IP.  I found that caching everything to do with the bean lookup 
helped - got it down to 250ms so that was an improvement.

I have all the reference data cached with infrequent checks.  Activity data I 
just check if it has changed. I was able to get the application reasonable over 
the internet.  If I could batch a number of calls together that would certainly 
help in some cases though there are not that many opportunities.

Managing caches to prevent stale data is tough but I think I can do it.

It still doesnt make sense to me that there is that much overhead on a single 
RMI call over the internet.  Does one Boolean call with no parameters pass a 
lot of additional content?  But regardless if I can ftp at 100's of KB per 
second...

There must be something still to be tuned there, doesn't quite add up.

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

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


[jboss-user] [JBoss Messaging] - Re: JBM and JAAS Client authentication

2007-08-01 Thread btsibr
On a related note, when, in an EJB we're attempting to get a connection to 
JmsXA we're getting javax.resource.spi.SecurityException: No Password 
credentials found at 
org.jboss.resource.adapter.jms.JmsCred.getJmsCred(JmsCred.java:75).

The resource ref is configured with container authentication and we actually 
_are_ passing a username and password to getConnection() (however, we would 
prefer if it simply used the EJB caller's information).

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

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


[jboss-user] [JBoss jBPM] - Re: JBPM Processor Designer not working with Eclipse 3.2

2007-08-01 Thread jdickins
Did you copy over the necessary plugins from the plugin folder in your jbpm 
download? They're in the suite's eclipse folder and they go into eclipse's 
plugin directory. Hope this helps, 

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

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


[jboss-user] [JBoss Portal] - Re: JBoss Portal and Version Control

2007-08-01 Thread PeterJ
I prefer to configure the portal layout using *-object.xml files. It is then 
easy to package the portal with the necessary files for deployment anywhere. 
The only thing I have not been able to figure out how to include in my package 
is user accounts and roles - there does not appear to be a way to define these 
in configuration files.

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

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


[jboss-user] [Installation, Configuration & DEPLOYMENT] - EAR deployment listener

2007-08-01 Thread lucdew
Hi,
 i'd like to know if there's the equivalent of Weblogic's ApplicationListener 
which is basically a listener packaged in the EAR which is notified via 
callback methods of deployment lifecycle events.

I thought of packaging a webapp in my ear with a ServletContextListener and 
ordering the deployment of j2ee modules within my ear (by setting module-order 
to strict mode in jboss-app.xml).
Is there a more elegant solution or jboss standard way for that ?

For undeployment i guess that modules are undeployed in the inverse order that 
they are deployed.

Thanks in advance,
Luc

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

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


[jboss-user] [JBoss Portal] - Re: JBoss Portal and Version Control

2007-08-01 Thread alanoregan
Thanks Peter,

I don't suppose you have any ideas what the best practice is in terms of 
creating a portal in development and promoting it to a production environment.

Not sure if it would make more sense to import the data to the production 
database or whether we should just recreate the portal in production.

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

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


[jboss-user] [JBoss jBPM] - Re: JBPM 3.2.1 web app?does not display deployed process

2007-08-01 Thread jdickins
Hey all,

I am still getting the same error I started out with and am still unable to get 
my process definition to display on the jBPM web app.

Here are the steps I've taken thus far
1) I downloaded a new copy of Eclipse (Version: 3.2.2) 
2) Downloaded jbpm runtime and suite (both 3.2.1). 
3) Setting the runtime (Window-> Preferences-> Jbpm-> JBPM Runtime) to ?JBoss 
Jbpm Runtime 3.2.1?
4) Deleting my old versions of jbpm (starter kit 3.1.3 and 3.2.1) and Eclipse 
(3.3)
5) Using the advice in this post 

http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963971#3963971

5 cont.) to deal w/ the message I received upon startup with my new eclipse "An 
internal error occurred during: "Initializing Java tooling"". The stack trace I 
had was exactly the same as the one in the forum post above. Is there a Jira 
Issue for this? I searched the Jira site using [EMAIL PROTECTED] name and the 
date range I thought it might have been reported in and found nothing. Not a 
big deal as the forum post covers how to fix the problem pretty extensively.
6) Resetting the workspace (cleared up the other errors I had been experiencing)
7) Importing my project from my previous workspace
8) Attempted to deploy my project.

I attempted to deploy the processdefinition from the web app and received the 
error: 

anonymous wrote : 
  | Error deploying process: An exception of type "org.jbpm.jpdl.JpdlException" 
was thrown.  The message is: [[ERROR] no processdefinition.xml inside process 
archive]

Thanks to msandoz, I tried deploying locally in Eclipse. When I deployed the 
process archive from the web app it produced the an error (but was still more 
constructive than the processdefinition error ;-D). Here is the error it 
produced:

anonymous wrote : Error deploying process: An exception of type 
"org.jbpm.jpdl.JpdlException" was thrown.  The message is: [[ERROR] couldn't 
parse process definition]

When I try to deploy from Eclipse's deployment tab I receive the error:

anonymous wrote : An exception happened during the deployment of the process. 
Reason: an unexpected exception caused the deployment to fail.  

Here is the stack-trace:

java.io.FileNotFoundException: http://localhost:8080/jbpm/upload
  | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown 
Source)
  | at org.jbpm.ui.util.ProcessDeployer.deployProcessWithServlet(Unknown Source)
  | at org.jbpm.ui.util.ProcessDeployer.access$3(Unknown Source)
  | at org.jbpm.ui.util.ProcessDeployer$1.run(Unknown Source)
  | at 
org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
  | at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
  | at 
org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:479)
  | at org.jbpm.ui.util.ProcessDeployer.showProgressMonitorDialog(Unknown 
Source)
  | at org.jbpm.ui.util.ProcessDeployer.deploy(Unknown Source)
  | at 
org.jbpm.ui.editor.form.deployment.DeploymentForm$1.widgetSelected(Unknown 
Source)
  | at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
  | at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
  | at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
  | at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
  | at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
  | at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
  | at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
  | at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
  | at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  | at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
  | at 
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
  | at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
  | at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
  | at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
  | at org.eclipse.core.launcher.Main.run(Main.java:977)
  | at org.eclipse.core.launcher.Main.main(Main.java:952)

In my current IDE version, other than changing my jbpm server preferences, I am 
not sure how to tell the IDE to deploy to jbpm-console instead of jbpm/deploy 
(which appears to be the first complain in the stack trace). This, however, is 
a side issue 

[jboss-user] [JBoss Seam] - Re: Seam 2.0 BETA

2007-08-01 Thread asookazian
Where can we find guidelines concerning best practices when 
designing/developing SEAM apps (e.g., when to use stateless SB's rather than 
stateful as it seems conversations require stateful SB's).

And the SEAM books don't cover IDE integration much at all...

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

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


[jboss-user] [JBoss Seam] - Is MyFaces tomahawk lib compatible with Seam 1.2.1/RichFaces

2007-08-01 Thread tonylmai
Hello all,

I have a need to use t:column from MyFaces tomahawk lib. Does anyone have a 
problem using MyFaces' tomahawk lib with Seam 1.2.1 with RichFaces 3.0.1 and 
AJAX4JSF 1.1.1?

Thanks
-tony

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

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


[jboss-user] [JBoss jBPM] - Re: task-assign event firing

2007-08-01 Thread kukeltje
sounds more like just a small bug to me.

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

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


[jboss-user] [JBoss Portal] - Re: JBoss Portal and Version Control

2007-08-01 Thread PeterJ
Yes, it is all database driven.

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

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


[jboss-user] [JBoss Seam] - Re: gSOAP and WS in SEAM

2007-08-01 Thread szaccaria
I found a solution, If someone wants to know as I have made, left one demanded 
here. Bye

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

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


[jboss-user] [JBoss Seam] - Re: Remoting does not invoke my @WebRemote ?

2007-08-01 Thread samdoyle
I have opened up bug http://jira.jboss.com/jira/browse/JBSEAM-1751 regarding 
this. The latest HelloWorld example in the 2.0 cvs head branch results in the 
same problem.

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

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


  1   2   3   4   >