[JBoss-user] [EJB 3.0] - Problems Scanning classpath in the embedded-tutorial/simple-

2006-03-22 Thread sisepago
Hi all and Hi Bill, 

since yesterday I try to solve the problem in a standalone application. First I 
do not use JBoss-4.0.4RC1 AS to run my application. I use 
JBoss-EJB-3.0_Embeddable_ALPHA_5 and thus my error in the console of eclipse 
look like this: 

DEBUG 22-03 08:45:57,203 (KernelFactory.java:assembleNewKernel:86)  -Starting 
JBoss Kernel construction...
DEBUG 22-03 08:45:57,281 (KernelFactory.java:assembleNewKernel:112)  -Completed 
JBoss Kernel construction.  Duration: 63 milliseconds
DEBUG 22-03 08:45:57,812 (BeanXMLDeployer.java:deploy:91)  -Parsing 
file:/C:/dev/workspace/embedded-ejb3/bin/embedded-jboss-beans.xml took 516 
milliseconds
DEBUG 22-03 08:45:57,968 (UserTransactionImpl.java:start:61)  -new UserTx: 
[EMAIL PROTECTED]
INFO  22-03 08:45:58,015 (LocalTxDataSource.java:bindConnectionFactory:117)  
-Bound datasource to JNDI name 'java:/DefaultDS'
DEBUG 22-03 08:45:58,046 (BeanXMLDeployer.java:deploy:98)  -Deploying 
file:/C:/dev/workspace/embedded-ejb3/bin/embedded-jboss-beans.xml took 750 
milliseconds
Exception in thread main java.lang.RuntimeException: Problems scanning 
classpath
at 
org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:245)
at de.mathema.doa.beans.Main.main(Main.java:32)
DEBUG 22-03 08:45:58,312 (EJB3StandaloneBootstrap.java:createDeployer:266)  -No 
MBeanServer
DEBUG 22-03 08:45:58,328 (JaccHelper.java:initialiseJacc:61)  -Initialising 
JACC Context for deployment: bin
INFO  22-03 08:45:58,515 (Ejb3AnnotationHandler.java:getContainers:156)  -found 
EJB3: ejbName=CustomerDAOBean, class=de.mathema.doa.beans.CustomerDAOBean, 
type=STATELESS
DEBUG 22-03 08:45:58,531 
(ProxyDeployer.java:initializeRemoteBindingMetadata:133)  -no declared remote 
bindings for : CustomerDAOBean
DEBUG 22-03 08:45:58,546 
(ProxyDeployer.java:initializeRemoteBindingMetadata:136)  -there is remote 
interfaces for CustomerDAOBean
DEBUG 22-03 08:45:58,546 
(ProxyDeployer.java:initializeRemoteBindingMetadata:138)  -default remote 
binding has jndiName of CustomerDAOBean/remote
INFO  22-03 08:45:58,562 (Ejb3Deployment.java:create:444)  -EJB3 deployment 
time took: 234
DEBUG 22-03 08:45:58,562 (JaccHelper.java:initialiseJacc:61)  -Initialising 
JACC Context for deployment: jboss-serialization
INFO  22-03 08:45:58,640 (Ejb3Deployment.java:create:444)  -EJB3 deployment 
time took: 78
DEBUG 22-03 08:45:58,640 (JaccHelper.java:initialiseJacc:61)  -Initialising 
JACC Context for deployment: ehcache
INFO  22-03 08:45:58,656 (Ejb3Deployment.java:create:444)  -EJB3 deployment 
time took: 16
DEBUG 22-03 08:45:58,656 (JaccHelper.java:initialiseJacc:61)  -Initialising 
JACC Context for deployment: META-INF
INFO  22-03 08:45:58,671 (Ejb3Deployment.java:create:444)  -EJB3 deployment 
time took: 15
DEBUG 22-03 08:45:58,671 (JaccHelper.java:initialiseJacc:61)  -Initialising 
JACC Context for deployment: jboss-xml-binding
INFO  22-03 08:45:58,843 (Ejb3Deployment.java:create:444)  -EJB3 deployment 
time took: 172
DEBUG 22-03 08:45:58,875 (EJBContainer.java:initialiseInterceptors:708)  
-Initialising interceptors for CustomerDAOBean...
DEBUG 22-03 08:45:58,875 (EJBContainer.java:initialiseInterceptors:710)  
-Default interceptors: null
DEBUG 22-03 08:45:58,875 (EJBContainer.java:initialiseInterceptors:713)  -Class 
interceptors: []
DEBUG 22-03 08:45:58,875 (EJBContainer.java:initialiseInterceptors:729)  -All 
applicable interceptor classes: []
INFO  22-03 08:45:58,875 (MCKernelAbstraction.java:install:79)  -installing 
bean: jboss.j2ee:service=EJB3,jar=bin,name=CustomerDAOBean with dependencies:
INFO  22-03 08:45:58,875 (MCKernelAbstraction.java:install:82)  -   [EMAIL 
PROTECTED]:unitName=custdb}
DEBUG 22-03 08:45:58,890 (Ejb3Deployment.java:registerEJBContainer:415)  -Bound 
ejb3 container jboss.j2ee:service=EJB3,jar=bin,name=CustomerDAOBean
ERROR 22-03 08:45:58,906 (KernelErrors.java:validate:107)  -
*** DEPLOYMENTS MISSING DEPENDENCIES:
jboss.j2ee:service=EJB3,jar=bin,name=CustomerDAOBean depends on: 
 persistence.units:unitName=custdb'{Create:NOT FOUND}
 persistence.units:unitName=custdb'{Start:NOT FOUND}



---

In the Classpath i have 

- resources/META-INF/persistence.xml
  and it looks like this
  
  ?xml version=1.0 encoding=UTF-8?
  
 persistence-unit name=custdb
jta-data-sourcejava:/DefaultDS/jta-data-source

   

 /persistence-unit
  
  

- and all config-files in conf/
  
  + embedded-jboss-beans.xml
  + jboss-jms-beans.xml
  + ejb3-interceptors-aop.xml
  + default.persistence.properties
  + log4j.xml
  
and then thus my pojos, bean and interfaces look like this

- Customer.java

@Entity
@Table (name=CUSTOMER_)
public class Customer {
private int id;
private String name;

public Customer(){}

@Id @GeneratedValue(strategy=GenerationType.AUTO)
public int getId() {
return id;
}

public void setId(int id) 

[JBoss-user] [JBoss jBPM] - Re: How to exit a fork? (besides the join node)

2006-03-22 Thread kukeltje
mennen wrote : Hi,
  | 
  | 
  | Any clues as to how to get out of this fork?
  | 
  | 
  | 

give the state an additional 'exception transition' and do not show that in the 
ui. That way you can signal the token in that stat to take the exception route 
which e.g. goes to the join.

Ronald

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: SQL error while loading a process instance

2006-03-22 Thread Hannes
Did you directly take a look at the tables (MySql Query Browser)?
If there are things missing, perhaps hibernate itself could fix the ddl by 
adding: update  to the hibernate.cfg.xml

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Stateless EJB not pooled at JBOSS startup

2006-03-22 Thread abhayd
Sir,

I have made following configuration in JBOSS.xml 

container-configuration
instance-poolorg.jboss.ejb.plugins.StatelessSessionInstancePool/instance-pool
  instance-cache/instance-cache
  persistence-manager/persistence-manager
  container-pool-conf
100
5
  /container-pool-conf
/container-configuration

I am still not able to see the print statements in ejbCreate() on console.
It appears that JBOSS is not instantiating bean on server start up.

Can some one guide me?

Thanks,
Abhay 

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: SQL error while loading a process instance

2006-03-22 Thread david.trattnig
Thank you Hannes,

but i don't know what to update in the hibernate.cfg.xml..

Yes, i directly took a look at the table jbpm_processinstance where the 
process instance #318 is existing. The table jbpmtest.jbpm_dynprocess_node 
doesn't exist, that's true - but what is it for? There is no info at the 
source, web or anywhere else...
 

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - How to trace the SQL statements?

2006-03-22 Thread gfzhang
I want to know if there is any setting in *-ds.xml so that the SQL statements 
issued in the applicaton could be logged.

The application uses JDBC API, and does not CMP or O/R mapping. The datasource 
is retrieved by JNDI.

Thanks for your help very much.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: How to exit a fork? (besides the join node)

2006-03-22 Thread mennen
kukeltje wrote : mennen wrote : Hi,
  |   | 
  |   | 
  |   | Any clues as to how to get out of this fork?
  |   | 
  |   | 
  |   | 
  | 
  | give the state an additional 'exception transition' and do not show that in 
the ui. That way you can signal the token in that stat to take the exception 
route which e.g. goes to the join.
  | 
  | Ronald

Thanks for your reply.But is there a way not to show this exception transition 
in the graph or ui (other than manually do it in the jsp pages)?

Thanks again,



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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Dynamic registration of a custom login module?

2006-03-22 Thread [EMAIL PROTECTED]
Here is something from our testsuite.


form-auth.ear
==

  | = form-auth-roles.properties
  | =form-auth-users.properties
  | =form-auth.war
  | =jboss-service.xml
  | META-INF
  | |
  | - application.xml
  | - jboss-app.xml
  | - security-config.xml
  | 

Let me show you the important files:


jboss-service.xml
-

  | ?xml version=1.0 encoding=UTF-8?
  | 
  | server
  |!-- The custom JAAS login configuration that installs 
  |a Configuration capable of dynamically updating the
  |config settings
  |--
  |mbean code=org.jboss.security.auth.login.DynamicLoginConfig
  |   name=jboss.security.tests:service=LoginConfig
  |   attribute name=AuthConfigMETA-INF/security-config.xml/attribute
  |   depends optional-attribute-name=LoginConfigService
  |  jboss.security:service=XMLLoginConfig
  |   /depends
  |   depends optional-attribute-name=SecurityManagerService
  |  jboss.security:service=JaasSecurityManager
  |   /depends
  |/mbean
  | /server
  | 


security-config.xml
--

  | ?xml version='1.0'?
  | !DOCTYPE policy PUBLIC
  |   -//JBoss//DTD JBOSS Security Config 3.0//EN
  |   http://www.jboss.org/j2ee/dtd/security_config.dtd;
  | 
  | !-- The JAAS login configuration file for the java:/jaas/jbossweb-form-auth
  | security domain used by the security-spec test case
  | --
  | policy
  | 
  | application-policy name = jbossweb-form-auth
  |authentication
  |   login-module code = 
org.jboss.security.auth.spi.UsersRolesLoginModule
  |  flag = required
  |  module-option name = 
unauthenticatedIdentitynobody/module-option
  |  module-option 
name=usersPropertiesform-auth-users.properties/module-option
  |  module-option 
name=rolesPropertiesform-auth-roles.properties/module-option
  |   /login-module
  |/authentication
  | /application-policy
  | /policy
  | 


jboss-app.xml


  | ?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE jboss-app
  | PUBLIC -//JBoss//DTD J2EE Application 1.3V2//EN
  | http://www.jboss.org/j2ee/dtd/jboss-app_3_2.dtd;
  | 
  | jboss-app
  |module
  |   servicejboss-service.xml/service
  |/module
  | /jboss-app
  | 


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: How to exit a fork? (besides the join node)

2006-03-22 Thread mennen
rafaelle wrote : Sorry, it is Mar 17.
  | Here is the link: 
http://www.jboss.com/index.html?module=bbop=viewtopict=79398
  | 
  | :)

Thank you Rafelle for the link, i added a post to your question..



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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: How to prevent multiple authentications in same thread

2006-03-22 Thread [EMAIL PROTECTED]
Since the web and the ejb layers are bound by the same security domain. 
subsequent auth requests(for the ejb calls) after the first successful auth to 
the web layer, go thru the cache that exists in the JaasSecurityManager. This 
is normal behavior.  You will see auth requests going out to the 
JaasSecurityManagerService(Is this what you are concerned about?)

Every request on the serverside goes thru security. Thats the reason we have a 
timed cache for performance.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Web to EJB authentication

2006-03-22 Thread [EMAIL PROTECTED]
Enable trace level logging on the security layer as outlined in item 4 of:
http://wiki.jboss.org/wiki/Wiki.jsp?page=SecurityFAQ

That will give you good idea as to what is happening under the hood.


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Error Jboss 4.0.2

2006-03-22 Thread epuenteg
I have this problem with Jboss 4.0.2 when I trying to call ejbs with a web 
application:

javax.naming.NamingException: Could not dereference object 
[Root exception is java.lang.IllegalStateException: Failed to find method for 
hash
:-884175917852741154]

Thanks.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Standalone Tomcat to JBoss - SecurityAssociation mixup

2006-03-22 Thread [EMAIL PROTECTED]
You are not forced to use the direct contract on SecurityAssociation, in your 
client programs. You can specify the ClientLoginModule in your jaas config on 
the client side.

http://wiki.jboss.org/wiki/Wiki.jsp?page=ClientLoginModule

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - JBoss 3.2.3

2006-03-22 Thread ruchir.shah
We are using JBoss 3.2.3 for our development. 
And we are currently working as per JSP 1.2 standard.

We are planning to use JSP 2.0. 

Does JBoss 3.2.3 support JSP 2.0?

If not, which version of JBoss supports JSP 2.0?

Thanks.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re:

2006-03-22 Thread sisepago
I know yet where my problem was. I seem from the brginning that the 
PersistenceXmlLoader does not find the persistence.xml file. This means you 
have to make sure that the persistence.xml is in the classpath located.  

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: is the Join-node mandatory???

2006-03-22 Thread [EMAIL PROTECTED]
a token that arrives in an end state causes the process to be ended.

that is the definition of the end state.

if you want all concurrent paths to finish before the process is ended, use a 
join before the end state.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Confused by Client login

2006-03-22 Thread [EMAIL PROTECTED]
http://wiki.jboss.org/wiki/Wiki.jsp?page=SecurityFAQ
Item 4: Enable trace level logging on the serverside and see the log for 
information. 

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - java.lang.RuntimeException with deploy (setting of persisten

2006-03-22 Thread kumachan
Hello.
The deploy error occurs when persistence.xml is put in deploy directory. 
Is the writing of persistence.xml wrong though it is written 
Caused by: javax.naming.NameNotFoundException: ejb3mn not bound in deploy 
error log?
Or, are other configuration files insufficient?
Please help me.


Environment
JBOSS4.0.3SP1(Installation from jboss-4.0.3SP1-installer.jar)
jdk1.5.0_06
Postgres8.1.2

Session Bean class:
@Stateful
  | @javax.ejb.Remote(Test001_001.class)
  | 
  | public class Test001_001Bean implements Test001_001, Serializable{
  | 
  | private String  userId;
  | private String  passwd;
  | private String  name;
  | 
  | @PersistenceContext(unitName=ejb3mn)
  | protected  EntityManager em;
  | 
  | public Value doBiz(Hashtable param){
  | boolean ret = true;
  | String  page = /jsp/MH003.jsp;
  | String  error = ;
  | Value value = new Value();
  | 
  | UserBean obj = em.find(UserBean.class, userId);
  | String pass = obj.getPasswd();
  | 
  | User user = new User(userId, passwd, obj.getName());
  | 
  | value.setAttribute(user, obj);
  | value.setForwardPage(page);
  | 
  | return value;
  | 
  | }
  | }


persostence.xml:
?xml version=1.0 encoding=EUC-JP? 
  | 
  | persistence
  | persistence-unit name=ejb3mn
  | providerorg.hibernate.ejb.HibernatePersistence/provider
  | jar-fileejb.ejb3/jar-file
  | jta-data-sourcejava:/PostgreDS/jta-data-source
  | properties
  | property name=hibernate.hbm2ddl.auto value=update/
  | property name=hibernate.dialect 
value=org.hibernate.dialect.HSQLDialect/
  | /properties
  | /persistence-unit
  | /persistence



postgres-ds.xml:

datasources
  |   local-tx-datasource
  | jndi-namePostgreDS/jndi-name
  | connection-urljdbc:postgresql://localhost:5432/test/connection-url
  | driver-classorg.postgresql.Driver/driver-class
  | user-namepostgres/user-name
  | passwordxx/password
  |   metadata
  |  type-mappingPostgreSQL 8.1/type-mapping
  |   /metadata
  |   /local-tx-datasource
  | /datasources


error from JBOSS :
java.lang.RuntimeException: unable to find: java:/managedEntityFactories/ejb3mn
at 
org.jboss.ejb3.injection.PersistenceContextHandler.getManagedEntityManagerFactory(PersistenceContextHandler.java:85)
at 
org.jboss.ejb3.injection.PersistenceContextHandler.loadFieldInjectors(PersistenceContextHandler.java:169)
at 
org.jboss.ejb3.injection.PersistenceContextHandler.loadInjectors(PersistenceContextHandler.java:134)
at org.jboss.ejb3.EJBContainer.resolveInjectors(EJBContainer.java:397)
at org.jboss.ejb3.EJBContainer.initializePool(EJBContainer.java:330)
at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:283)
at org.jboss.ejb3.SessionContainer.start(SessionContainer.java:48)
at 
org.jboss.ejb3.stateful.StatefulContainer.start(StatefulContainer.java:69)
at 
org.jboss.ejb3.stateful.StatefulManager.startService(StatefulManager.java:91)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
at sun.reflect.GeneratedMethodAccessor4.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:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:428)
at sun.reflect.GeneratedMethodAccessor6.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:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at 

[JBoss-user] [JBoss jBPM] - Re: Exception Handling in JBPM

2006-03-22 Thread send2shriram
Can anybody help on this ?

This is a serious problem !! 
as we are loading a taskInstance, where the taskId  actually doesn;t exists... 
but jbpm doesn;t throw any exception when loading taskInstance.

Shriram

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Stateless EJB not pooled at JBOSS startup

2006-03-22 Thread tterm
Hello,

there is no pooling during the startup. You can see your log statement after 
you do an create().

Thomas


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: when i deploy an ejb with jboss4.0.4,those exceptions oc

2006-03-22 Thread tterm
Hello,

It would be good if you would have an ejbCreate() method in your SB.

That is the first message from the exception! 

Thomas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - generic bpm applications

2006-03-22 Thread jcruise
The current business process annotations e.g. StartTask, CreateProcess et. al. 
make it difficult to write generic code for working with process defined at 
runtime because  the parameters for things like process and transition are 
defined at compile time. 

Supporting expressions for those parameters, remedies the problem.

Cheers
J

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - can not catch exception thrown by EJB in a servlet

2006-03-22 Thread Nibuzer
Hello everybody.

I created an exception class InvalidDataException derived from Exception. This 
exception is thrown in an EJB session.
In my servlet I wrote two catch blocks. The first one is : 

catch(InvalidDataException ex) and the second one is catch(Exception ex).
The InvalidDataException is not catched in the InvalidDataException block but 
in the Exception block. And in the Exception block I display the class of the 
catched exception, the class is the class of my InvalidDataException.

I hope my explanation is clear...

Any ideas ??

Thank you for your help

Here is the stacktrace, there are french words, dont be afraid :-)


  | 10:20:48,261 INFO  [STDOUT] avant lancement exception invalidData
  | 10:20:48,264 ERROR [[BookServlet]] Servlet.service() for servlet 
BookServlet threw exception
  | pipeline.MyExceptions.InvalidDataException: La date de d\ubut doit 
\utre ant\urieure \u la date de fin du projet
  | at pipeline.ejb.FacadeBean.verifDates(FacadeBean.java:169)
  | at pipeline.ejb.FacadeBean.reserverRess(FacadeBean.java:125)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
  | at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:228)
  | at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
  | at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
  | at 
org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:71)
  | at 
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
  | at 
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
  | at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
  | at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
  | at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:206)
  | at 
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:136)
  | at 
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:643)
  | at org.jboss.ejb.Container.invoke(Container.java:917)
  | at 
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
  | at 
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
  | at $Proxy110.reserverRess(Unknown Source)
  | at pipeline.web.BookServlet.doPost(BookServlet.java:235)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
  | at 

[JBoss-user] [Installation, Configuration Deployment] - JBoss slow with starting

2006-03-22 Thread bgonline
Hello,

I'm using JBoss as application server, and its start is very slow.
Is there a way to know what takes a lot of time ?
Does it exist an application allowing us to see what is loading ?

Thanks in advance.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - f:convertNumber doesn't work with h:selectOneMenu

2006-03-22 Thread liudan2005
Here is my jsf code:

  | h:selectOneMenu id=selectCar  value=#{carBean.currentCar}
  |   f:convertNumber /
  |   f:selectItems   value=#{carBean.carList} /
  | /h:selectOneMenu 
  | 

carBean.carList is a type of List and the selectItems have int values.

The page is displayed correctly but when I made a choice and click on submit. 
nothing happens. Chaning values to String type would solve the problem. It 
seems f:convertNumber doesn't work with facelets. Has anyone had same problem 
before?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Performance Tuning] - JBoss slow with starting

2006-03-22 Thread bgonline
Hello, 

I'm using JBoss as application server, and its start is very slow. 
Is there a way to know what takes a lot of time ? 
Does it exist an application allowing us to see what is loading ? 

Thanks in advance.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Re: JBoss slow with starting

2006-03-22 Thread jaikiran
Are any applications deployed on the server? They might be taking time to 
deploy. You might want to use profiling tool to find out what activity is 
taking a lot of time:
http://www.ej-technologies.com/products/jprofiler/overview.html



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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Packaging Issue

2006-03-22 Thread Cybernd
Found the cause of my Problem.

The ErrorMessage was missleading. I thought that he cant find the Dummy.class, 
but he was unable to find another dependency.

Dummy was enhanced by jibx for xml serialisation purposes. He just lacked on 
the jibx-run.jar. 

In such a case i would expect some kind of ErrorMessage telling me, that he 
need an additional Class to be able to load the dummy class. 

Something like:
NoClassDefError: Dummy.class
Caused by: NoClassDefError SomeJibx.class

mfg
Bernhard

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Transaction is not active

2006-03-22 Thread mlefevre
Hi,

When I have a long process (a few minutes) and then perform a database 
operation. I have the following exception:
ERROR 21 Mar 2006 15:50:54,910 util.EJBHomeFactory - 
org.jboss.util.NestedSQLException: Transaction is not active: 
tx=TransactionImpl:XidImpl[FormatId=257, 
GlobalId=dimitrawcmtest.agri.cec.eu.int/309, BranchQual=, localId=309]; - 
nested throwable: (javax.resource.ResourceException: Transaction is not active: 
tx=TransactionImpl:XidImpl[FormatId=257, 
GlobalId=dimitrawcmtest.agri.cec.eu.int/309, BranchQual=, localId=309])
org.jboss.util.NestedSQLException: Transaction is not active: 
tx=TransactionImpl:XidImpl[FormatId=257, 
GlobalId=dimitrawcmtest.agri.cec.eu.int/309, BranchQual=, localId=309]; - 
nested throwable: (javax.resource.ResourceException: Transaction is not active: 
tx=TransactionImpl:XidImpl[FormatId=257, 
GlobalId=dimitrawcmtest.agri.cec.eu.int/309, BranchQual=, localId=309])   
at 
org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:79)
   at

Any idea of what I should look at?

Thanks

Marc Lefèvre


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - i am not able to create multiple trees in my cache...

2006-03-22 Thread myself_biswajit
hi all,

From the documentation i came to know a TreeCache can have multiple roots, 
allowing for a number of different trees to be present in the cache.
But i am not able to create multiple trees in my cache.

pliz  give me appropriate solution for this problem so that i can create 
multiple tree in my cache.

thanks in advance,

Regards,
Biswajit.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: EJB not bound Exception

2006-03-22 Thread david_wilfy
jyotitushir wrote : After adding some client jars my code is running fine.
  | Thanks for your support

Could u please tell me what client jars u added, coz I have the same problem

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Nightly builds

2006-03-22 Thread JamesWoodward
They've stopped again!

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: is the Join-node mandatory???

2006-03-22 Thread mennen
[EMAIL PROTECTED] wrote : if you want all concurrent paths to finish before 
the process is ended, use a join before the end state.

Thank you for your reply. All i want to do is end the process, and i tried to 
end it, and there are tokens (children of the fork) that are still active even 
after the process end. I can see the tasks on the tasklist of the user.

In order so kill thoses tasks, i had to do it manually:

 

  
  |   Collection listTasks = pi.getTaskMgmtInstance().getTaskInstances();
  |   if (listTasks.size()0) {
  | for (Iterator iter = listTasks.iterator(); iter.hasNext(); ) {
  |   
  | TaskInstance ti = (TaskInstance) iter.next();
  | if (!ti.hasEnded()) {
  |   ti.setSignalling(false);
  |   ti.cancel();
  |   ti.setEnd(new java.util.Date());
  |   log.debug(task instance  + ti.getName() +  has ended);
  |   Token tk = ti.getToken();
  |   tk.end();
  |   log.debug(token  + tk.getName() +  has ended);
  | }
  | }
  |   }

I don't know if there is another way, a simpler way, to do it.

I have a question though: are the children of the fork still active after the 
process end because i have more than one end state?

Thanks in advance,

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - FacesMessages

2006-03-22 Thread JamesWoodward
First of all, nice work on integrating the Internationalization features.

A couple of suggestions:

1) Can you make it more lenient when a message does not exist in the resource 
bundle. Currently it gives a stack trace, it would be more forgiving for it to 
show the name of the missing resource as per JSF and MyFaces e.g. ??? 
applicationTitle ???

2) Can you make it search for resources in more than one messages.properties 
file. I currently have a cascading resource bundle scheme, where if it doesn't 
find a resource in the current applications bundle, it then delegates to a 
shared bundle. This allows global resources, such as copyright messages, to be 
changed in one place only.

Here's how it hangs together:

In the application I have:
MessageBundle.class
Messages.properties

I reference the properties file from the faces-config.xml:

message-bundleuk.co.mclgroup.ncc.resources.MessageBundle/message-bundle
  | 

The application MessageBundle.class is as follows:
public class MessageBundle extends shared.MessageBundle {
  | public MessageBundle() {
  | super(MessageBundle.class);
  | }
  | }
  | 

The application Messages.properties contains application specific resources:
applicationName=My Test Application

In the shared JAR I have:
MessageBundle.class
Messages.properties

The shared MessageBundle.class is as follows:
public abstract class MessageBundle extends ResourceBundle {
  | 
  | private ResourceBundle bundle;
  | 
  | protected MessageBundle(Class clazz) {
  | super();
  | bundle = ResourceBundle.getBundle(clazz.getPackage().getName() + 
.Messages);
  | 
setParent(ResourceBundle.getBundle(MessageBundle.class.getPackage().getName() + 
.Messages));
  | }
  | 
  | protected Object handleGetObject(String key) {
  | Object obj = null;
  | 
  | try {
  | obj = bundle.getObject(key);
  | } catch (MissingResourceException e) {
  | }
  | 
  | return obj;
  | }
  | 
  | public Enumeration getKeys() {
  | return bundle.getKeys();
  | }
  | }
  | 

The shared Messages.properties contains common resources:
copyright=Copyright © 2006 My Company Name
  | version=Version: #{initParam.version}



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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Eclipse IDE (users)] - XHTML content assistant supported?

2006-03-22 Thread Frank.Weber
I am working on some of the JSF/Facelets related JBoss demo apps in the current 
JBoss IDE. 

The content assistant works with JSPX files for JSF and Facelets tags, but I 
could not get it to work with XHTML files. 

Please could someone give me a hint how to configure it correctly? 

Thanks in advance, Frank

Other details:
JBossIDE-1.5.1.GA-ALL.zip
Eclipse 3.1.2
JDK 1.5.0_06-b05
SUSE Linux 10



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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - Custom server base path / Classloader not found

2006-03-22 Thread sebastien.helbert
Hi,

I'm trying to run JBOSS 4.0.3 with a custom server base path using : 

-Djboss.server.base.url=file://C:/java/workspaces/local/server
-Djboss.server.base.dir=C:/java/workspaces/local/server

but the server boot fails with a DeploymentException No ClassLoaders found 
for: org.jboss.logging.Log4jService

The Log4jService class file is located in jboss.jar and if I look at the 
boot.log, I see that this jar file is deployed by the SARDeployer, but next, 
when configuring the log4j service, the class is not found  (note that if I 
remove the service configuration the problem occurs with the next one)


  | 11:43:38,311 INFO  [Server] Server Home Dir: 
C:\java\workspaces\local\server\default
  | 11:43:38,311 INFO  [Server] Server Home URL: 
file://C:/java/workspaces/local/server/default/
  | 11:43:38,311 DEBUG [Server] Server Data Dir: 
C:\java\workspaces\local\server\default\data
  | 11:43:38,311 INFO  [Server] Server Temp Dir: 
C:\java\workspaces\local\server\default\tmp
  | 11:43:38,311 DEBUG [Server] Server Config URL: 
file://C:/java/workspaces/local/server/default/conf/
  | 11:43:38,311 DEBUG [Server] Server Library URL: 
file://C:/java/workspaces/local/server/default/lib/
  | 11:43:38,311 INFO  [Server] Root Deployment Filename: jboss-service.xml
  | [...]
  | 11:43:42,909 DEBUG [MainDeployer] Starting deployment of package: 
file://C:/java/workspaces/local/server/default/conf/jboss-service.xml
  | 11:43:42,909 DEBUG [MainDeployer] Starting deployment (init step) of 
package at: 
file://C:/java/workspaces/local/server/default/conf/jboss-service.xml
  | 11:43:42,909 DEBUG [MainDeployer] Copying 
file://C:/java/workspaces/local/server/default/conf/jboss-service.xml - 
C:\java\workspaces\local\server\default\tmp\deploy\tmp39290jboss-service.xml
  | 11:43:42,909 DEBUG [MainDeployer] using deployer [EMAIL PROTECTED]
  | 11:43:43,003 DEBUG [SARDeployer] Found classpath element: [classpath: null]
  | 11:43:43,003 DEBUG [SARDeployer] codebase URL is 
file://C:/java/workspaces/local/server/default/lib/
  | [...]
  | 11:43:43,018 DEBUG [SARDeployer] deployed classes for 
file://C:/java/workspaces/local/server/default/lib/jboss.jar
  | [...]
  | 11:43:43,844 DEBUG [RepositoryClassLoader] Added url: 
file://C:/java/workspaces/local/server/default/lib/jboss.jar, to ucl: [EMAIL 
PROTECTED] 
url=file:/C:/java/workspaces/local/server/default/tmp/deploy/tmp39290jboss-service.xml
 ,addedOrder=2}
  | [...]
  | 11:43:48,894 DEBUG [SARDeployer] create operation failed for package 
file://C:/java/workspaces/local/server/default/conf/jboss-service.xml
  | org.jboss.deployment.DeploymentException: No ClassLoaders found for: 
org.jboss.logging.Log4jService; - nested throwable: 
(java.lang.ClassNotFoundException: No ClassLoaders found for: 
org.jboss.logging.Log4jService)
  | at 
org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:178)
  | at 
org.jboss.system.ServiceController.install(ServiceController.java:215)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:1

Any idea?

Thanks

Seb.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: User login

2006-03-22 Thread pathi
Hi all... 

After the Login I am getting the following result...

HTTP Status 403 - Access to the requested resource has been denied


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Jboss Portal 2.0 Security

2006-03-22 Thread deidlk
Hi all

Iam using
jboss portal 2.0
Jboss AS 4.0.2
Oracle9i

I want to athunticate the users for the jboss portal using the oracle database. 
I have created tables, Principals and Roles and Iam using 
DatabaseServerLoginModule in my Login-config.xml(default/conf/login-config.xml).

I have done all the steps as mentioned in the jboss Portal manual and Jboss AS 
manual;and also read the fourums.But couldn't find a solution. I am trying this 
for 3 weeks.

Can anyone plz give me the steps to do the above configuration.

Thanx.


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: @SecurityDomain Annotation clarification.

2006-03-22 Thread nkoranne
This is working .. 

I changed the package to org.jboss.annotation.security.SecurityDomain
and everything started working like a breeze. 

but still the question remains, why it is not working with 
org.jboss.aspects.security.SecurityDomain package. 

Any hints ? 

Thanks
Nik




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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Questions about stateless session bean life cycle from c

2006-03-22 Thread tterm
Hello

2) Is it safe to make multiple calls through the same proxy on multiple 
threads? Do I have to think about managing pools of them to save on create() 
calls, or can I just get one and use it freely? 


This is from the ejb specification and should answer this question:

The container must ensure that only one thread can be executing an instance at 
any time. If a client
request arrives for an instance while the instance is executing another 
request, the container may throw
the java.rmi.RemoteException to the second request if the client is a remote 
client, or the
javax.ejb.EJBException if the client is a local client.[6]
Note that a session object is intended to support only a single client. 
Therefore, it would be an
application error if two clients attempted to invoke the same session object.
One implication of this rule is that an application cannot make loopback calls 
to a session bean instance.

If you have multiple threads for one proxy, than you would try to use the same 
bean instance. That's how I would understand this!

Thomas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: How to protect an object from concurrent access in EJB3.

2006-03-22 Thread adver11
anonymous wrote : @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
  | @TxSynchronized

REQUIRES_NEW?The annotated method is executed within a newly generated 
transaction.If the caller method is already in a transaction, it is suspended. 
@TxSynchronized : When a @TxSynchronized member method is called, the object 
instance's lock monitor is held for the duration of  the transaction, until it 
commits or  rolls back. When a @TxSynchronized annotated static method or 
constructor  is invoked, the Class's lock monitor  is held for the duration of 
the transaction.  This lock works like synchronized, in that the lock is only 
acquired when a tagged member is called.

I think it can solve the clash.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - encapsulate entity beans?

2006-03-22 Thread Eekboom
Now that entity beans are simply POJOs: Is it still considered best practice to 
pass value objects  to the client?
Most of the EJB 3 examples I have seen so far use entity beans directly in the 
JSF/client layer.

I tried to encapsulate getters/setter of entity beans in an interface and use 
only that in the JSF layer, but of course that does not work because entity 
beans must also be created on the client side.

What do others do?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Javassist user questions] - Strange stack trace calling JNDI lookup

2006-03-22 Thread bonzai44
When I use EJB3 and call the JNDI lookup method from an OSGi bundle client, 
I'll get this stack trace:

java.lang.ArrayStoreException: org.jboss.ejb3.remoting.IsLocalInterceptor
  | at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
  | at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
  | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
  | at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
  | at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
  | at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
  | at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
  | at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
  | at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
  | at 
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
  | at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
  | at 
de.berkom.ehome.j2ee.JBossAdaptor.getContextEntries(JBossAdaptor.java:202)
  | at 
org.sercho.osgi.hsp.ra.BundleActivator.addingService(BundleActivator.java:71)
  | at 
org.osgi.util.tracker.ServiceTracker$Tracked.track(ServiceTracker.java:830)
  | at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:226)
  | at org.sercho.osgi.hsp.ra.BundleActivator.start(BundleActivator.java:57)
  | at 
com.prosyst.mbs.impl.framework.module.security.SecurityImpl.run(SecurityImpl.java:218)
  | at java.security.AccessController.doPrivileged(Native Method)
  | at 
com.prosyst.mbs.impl.framework.module.security.SecurityImpl.doPrivileged(SecurityImpl.java:197)
  | at 
com.prosyst.mbs.impl.framework.BundleImpl.startIt(BundleImpl.java:1981)
  | at 
com.prosyst.mbs.impl.framework.BundleImpl.simpleStart(BundleImpl.java:699)
  | at com.prosyst.mbs.impl.framework.BundleImpl.start0(BundleImpl.java:662)
  | at com.prosyst.mbs.impl.framework.BundleImpl.start(BundleImpl.java:574)
  | at com.prosyst.mbs.impl.framework.BundleImpl.start(BundleImpl.java:367)
  | at 
com.prosyst.mbs.impl.services.pmp.Administration.startBundle(Administration.java:178)
  | at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
com.prosyst.mbs.impl.services.pmp.InvocationThread.run(InvocationThread.java:78)
  | at com.prosyst.util.impl.tpt.threadpool.Executor.run(Executor.java:110)
  | 

I have tried 4.0.3-SP1 as well as 4.0.4-RC1, but nothing changed.

Has anyone of you seen this before?

Thanks for any help,
kind regards,

Andreas

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Help running HelloTest...

2006-03-22 Thread elvishou
criess wrote : If you want to get the jBPM GUI Eclipse plugin to work 
properly you can:
  | 
  | - Check out the jbpm.ide module from CVS 
  | - Rebuild the org.jbpm.ui package (you are going to new Eclipse WST support 
to do this)
  | - Take the class files from org.jbpm.ui and create a ui.jar file 
  | - Drop the new ui.jar file into your eclipse plugin directory: 
C:\eclipse-eclipse-3.1\plugins\org.jbpm.ui_3.0.8
  | 
  | Of course it would be nicer if the JBoss team just released a new version 
of the plugin.

Hi, criess:
  After i did these steps as u mentioned, i still got the same error message. i 
don't know how shoud i do now. i am using windows xp sp2, 
jdk1.5.0_05, Eclipse 3.1.1. Could u send me the well-done ui.jar by email 
([EMAIL PROTECTED]), thanks a lot.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Migrating from one node to others in planned downtime..

2006-03-22 Thread ehskaga
In JBoss cluster if there are some planned maintenance to be done on various 
nodes, how can it be achieved without interrupting the service.
 Is there a way by which we can migrate the services running on a node and stop 
any new request coming to that node so that the machine can be patched up for 
the maintenance activity and then restarted to re-join the cluster.


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: @PrimaryKeyJoinColumns is disallowed annotation

2006-03-22 Thread adver11
nobody can explain?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - How to create jboss-web.xml ,jboss.xml files

2006-03-22 Thread nalinw
Hi ,
I m prety new to jboss deployment.What i want to know is how to write 
jboss.xml,jboss-web.xml and files like application.xml files , is there any 
tools to do this and can we do it without using a tool.please help me...
thanks,


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation, Configuration Deployment] - mySQL: NoClassDefFound forName(Native method)

2006-03-22 Thread mr. burns
Hello,

I use the birt-viewer application under JBoss AS.
My report works well under Eclipse/BIRT development environment.
But if I deploy teh same report to JBoss AS and try to run it, I get just a 
blank page back, instead of a chart which I developed.

The log of the BIRT application says:

...
22.03.2006 09:46:42 org.eclipse.birt.report.model.metadata.ChoicePropertyType 
validateXml
FEIN: return internal name for choice hyperlink
22.03.2006 09:46:42 org.eclipse.birt.report.engine.api.impl.RunAndRenderTask run
SCHWERWIEGEND: Error happened while running the report.
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1041)
at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1031)
...

I installed the JBoss AS as described in the documentation.

My system:

JBoss is 4.0.3SP1
JDK 1.4.2_06
Eclipse 3.1.1
BIRT 2.0.0

Any help is highly appreciated! Thanks!

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: is there any plan to let Jboss portal run on other apps

2006-03-22 Thread [EMAIL PROTECTED]
Hi
I looked at jira and i did not see anything about version 3.0 of jboss portal
so can you help me about two following item


is it true tha : none of jboss portal run on tomcat until version 3.0 , so i 
can not deploy 2.2 on tomcat?


is there any schedule for jboss portal version 3.0 ?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: @PrimaryKeyJoinColumns is disallowed annotation

2006-03-22 Thread elkner
Rough guess:
@EmbeddedId

What tables do you expect to join ?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Error in deploying JBoss portal

2006-03-22 Thread aneiba
Dear All,

I am trying to install and deploy Jboss portal in my machine, i follow the 
whole instruction in the user guide and tried to deploy it but the below error 
shows up, Any idea why i am having this error. By the way, i am using the 
follow:

Windows 2000
Jboss 4.3
postgres 8.0
postgresql-8.0-315.jdbc3.jar and my portal-postgresql-ds.xml looks like:

 ?xml version=1.0 encoding=UTF-8 ? 
- 
- local-tx-datasource
  jndi-nameAwareportalDB/jndi-name 
  
connection-urljdbc:postgresql://localhost:5432/AwareportalDB/connection-url 
  driver-classorg.postgresql.Driver/driver-class 
  user-namepostgres/user-name 
  stafford 
  /local-tx-datasource
  



The Error Message:

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:service=DataSourceBinding,name=PortalDS
  State: NOTYETINSTALLED
  Depends On Me:
portal:service=CMS
portal:service=TreeCache,type=persistent
portal:service=TreeCache,type=transient
portal:service=Hibernate
portal:service=Hibernate,type=globalinstance
portal:service=Hibernate,type=globalportal


11:59:19,787 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on 
http-0.0.0.0-8080
11:59:19,896 INFO  [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
11:59:19,912 INFO  [JkMain] Jk running ID=0 time=0/32  config=null
11:59:19,943 INFO  [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: 
CVSTag=JBoss_4_0_3_SP1 date=200510231751)] Started in 27s:
890ms
11:59:58,833 ERROR [[PortalServletWithPathMapping]] Servlet.service() for 
servlet PortalServletWithPathMapping threw exception
java.lang.NullPointerException
at 
org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getObject(PersistentPortalObjectContainer.ja
va:129)
at 
org.jboss.portal.core.impl.model.portal.PersistentPortalObjectContainer.getContext(PersistentPortalObjectContainer.j
ava:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:84)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at 
org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:182)
at 
org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:61)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanInvoker.java:343)
at 
org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:541)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:106)
at $Proxy46.getContext(Unknown Source)
at 
org.jboss.portal.core.model.portal.DefaultPortalCommandMapper.doMapping(DefaultPortalCommandMapper.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy50.doMapping(Unknown Source)
at org.jboss.portal.core.CoreController.handle(CoreController.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 

[JBoss-user] [JBossWS] - Re: using a webservice in jboss-4.0.4rc1

2006-03-22 Thread Dust_Puppy
great! the WSclientAppl aproch seems to be the simplest, il try it out =)

/Anders

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: How to protect an object from concurrent access in EJB3.

2006-03-22 Thread elkner
Not sure, what you are trying to accomplish with it, however, where do you 
know, 
1) that's the EM has only ONE instance of an SLSB? 
2) that there is only one EM, which manages the SLSB?
3) that not another instance of something accesses your bean from within 
another ClassLoader?
4) Scaleability is not an issue for you ?

Even if it would work like synchronized, what do you expect/does it buy you? Do 
you expect, that the method gets always an entity passed, with the latest 
committed state? If so, I think you have wrong assumptions...

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Using hibernate annotation with jBPM

2006-03-22 Thread tibocu
Hi,

I just spend a few houres to figure how to use Hibernate Annotaiton with jBPM.
 
Here is the receipt (can probably be improved):

1-- Create an implementation of the db persistence service:
-

package com.btc.fwk.jbpm;

   [Cut imports]

public class PersistenceService extends DbPersistenceServiceFactory {
private static final Log _log = 
LogFactory.getLog(PersistenceService.class);

private Configuration _configuration;

public PersistenceService() {
super();
_log.info(Creating Persistence Service);
}

public synchronized Configuration getConfiguration() {
_log.info(Creating AnnotationConfiguration);

if (_configuration == null) {
String hibernateCfgXmlResource = null;
if (JbpmConfiguration.Configs

.hasObject(resource.hibernate.cfg.xml)) {
hibernateCfgXmlResource = 
JbpmConfiguration.Configs

.getString(resource.hibernate.cfg.xml);
}
String hibernatePropertiesResource = null;
if 
(JbpmConfiguration.Configs.hasObject(resource.hibernate.properties)) {
hibernatePropertiesResource = 
JbpmConfiguration.Configs.getString(resource.hibernate.properties);
}

_configuration = new AnnotationConfiguration();
_log.info(XML configuration file =  + 
hibernateCfgXmlResource);
_log.info(Resource file =  + 
hibernatePropertiesResource);

_configuration.configure(hibernateCfgXmlResource);

if( hibernatePropertiesResource != null ) {
_log.debug(Setting Persistence hibernate 
properties from  + hibernatePropertiesResource);

Properties properties = new Properties();

InputStream is = null;
try {
is = 
PersistenceService.class.getClassLoader().getResourceAsStream(hibernatePropertiesResource);

properties.load(is);
} catch(Exception e) {
_log.error(e);
_log.debug(Hibernate properties  + 
hibernatePropertiesResource +  not found);
} finally {
if( is != null )
try {
is.close();
} catch (IOException e) {
_log.error(e);
}
}

_configuration.setProperties(properties);
}
}

return _configuration;
}
}


2-- Declare the service
---
In jbpm.cfg.xml:

  jbpm-context
!--

--


3-- Declare the annotated classes
-


Declare the annotated classes into the hibernate.cfg.xml file.




Hope this help

Thibault Cuvillier
http://www.btcweb.com


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Dynamic nodes addition thru apache plugin..

2006-03-22 Thread ehskaga
While configuring the apache plugin for jboss, it was observed that the list of 
app server nodes need to be statically defined in the worker.properties file. 
Does this infer that the list of app server is static for the plugin to load 
balance, so if another server (node) is dynamically added to the cluster (by 
auto-discovery feature) it will not be used by the plug-in.
This is being compared to the weblogic plug-in wherein the information about 
the available nodes are dynamically accounted for so that if a node is added or 
dropped, it is reflected correctly in the plug-in load balancer. While 
configuring it takes a static list of nodes to contact but on every invocation 
it downloads the cluster configuration w.r.t the nodes alive/dead and 
accrodingly changes its routing.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Problem with a topic

2006-03-22 Thread sid337
My cluster consist of two nodes. I have deployed Message Driven Bean using 
farm. This MDBean listens to a topic. But when I send message to this topic, 
instance of MD bean on each node processes this message. Is it possible to make 
it work such way that MD bean on only one node (any one) will process incoming 
message.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - SEAM configuration problem

2006-03-22 Thread crnip
Hello

I have tried to install and run SEAM configured Web application. I did make an 
EAR (symass.ear) archive which contains the folowing (symass is the name of the 
application:

  /META-INF/application.xml
  /META-INF/jboss-app.xml
  /jboss-seam.jar
  /symass.war

application.xml contains the folowing:


display-nameSymAss/display-name 
SymAss Prototype 


web-urisymass.war/web-uri
context-root/symass/context-root




jboss-app.xml contains the folowing:

jboss-app
loader-repositoryseam.jboss.org:loader=symass/loader-repository 
/jboss-app

Symass war is packaged like this

  /index.xhtml
  /main.xhtml
  /WEB-INF/web.xml
  /WEB-INF/faces-config.xml
  /WEB-INF/faces-config-seam.xml
  /WEB-INF/lib contains all relevant libraries for facelets

web.xml is defined like this:

?xml version=1.0?

!--
 * Copyright 2004 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
--

web-app version=2.4 
xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd; 

!-- Seam Listener, that does all the startup work (configuration, 
init). --
  
listener-classorg.jboss.seam.servlet.SeamListener/listener-class


!-- Seam - global JNDI name pattern for jboss EJB3 (change for other 
servers) --
context-param
param-nameorg.jboss.seam.core.init.jndiPattern/param-name
param-valuesatchmo/#{ejbName}/local/param-value
/context-param

context-param

param-nameorg.jboss.seam.core.init.componentClasses/param-name
param-valueorg.jboss.seam.core.Jbpm/param-value
/context-param

!-- 300 second conversation timeout --
context-param
param-nameorg.jboss.seam.core.manager.conversationTimeout/param-name
param-value30/param-value
/context-param

!-- JSF config files --
context-param
param-namejavax.faces.CONFIG_FILES/param-name

param-value/WEB-INF/faces-config.xml,/WEB-INF/faces-config-seam.xml/param-value
/context-param

!-- JSF default suffix for view documents --
context-param
param-namejavax.faces.DEFAULT_SUFFIX/param-name
param-value.xhtml/param-value
/context-param

!-- Propagate conversations across redirects --

filter-nameSeam Redirect Filter/filter-name
filter-classorg.jboss.seam.servlet.SeamRedirectFilter/filter-class


filter-mapping
filter-nameSeam Redirect Filter/filter-name
url-pattern*.seam/url-pattern
/filter-mapping

!-- MyFaces specific filter extensions --

filter-nameextensionsFilter/filter-name

filter-classorg.apache.myfaces.component.html.util.ExtensionsFilter/filter-class
init-param
param-nameuploadMaxFileSize/param-name
param-value100m/param-value
/init-param
init-param
param-nameuploadThresholdSize/param-name
param-value100k/param-value
/init-param
!--init-param
param-nameuploadRepositoryPath/param-name
param-value/temp/param-value
Set the path where the intermediary files will be stored.

/init-param--


filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern*.seam/url-pattern
/filter-mapping

!-- MyFaces --


listener-classorg.apache.myfaces.webapp.StartupServletContextListener/listener-class


context-param
param-nameorg.apache.myfaces.ALLOW_JAVASCRIPT/param-name
param-valuetrue/param-value
/context-param

context-param
param-nameorg.apache.myfaces.DETECT_JAVASCRIPT/param-name
param-valuetrue/param-value
/context-param

context-param
param-nameorg.apache.myfaces.PRETTY_HTML/param-name
param-valuetrue/param-value
/context-param

!-- JSF state saving configuration --
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
/context-param

!-- Facelets configuration parameters --
context-param

[JBoss-user] [JBoss Seam] - Re: SEAM configuration problem

2006-03-22 Thread crnip
By the way what I additionaly foud out is that jboss-seam.jar was not loaded  
into loader repository which I registered in jboss-app.xml but it was loaded in 
SEAM examples. Is there somethin I should configure additionally so that 
jboss-seam.jar will be picked up.

Silvo Koren

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss AOP] - Re: deploying precompiled apps in jboss

2006-03-22 Thread eprst
Changing UseJBossWebLoader to true didn't help..
We're using compile-time instrumentation. All aspects are deployed in a single 
.aop file.

May be the problem is caused by the fact that aspectized class is called  by 
it's own deployer?

anonymous wrote : 
  | [...]
  | at 
com.supportwizard.gui2.servlets.patchers.KbCheckServlet.init(KbCheckServlet.java:94)
  | at javax.servlet.GenericServlet.init(GenericServlet.java:211)
  | at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091)
  | [...]
  | at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
  | at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
  | 

so here we have a class from partially deployed .war file, which calls EJB from 
another .jar, which indirectly calls back aspectized class from the first .war

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - PersistentObjectException: detached entity passed to persist

2006-03-22 Thread kryptontri
Hi, I have some entities persisted, when i delete one entity
which has relationships to it which are cascaded ie 1 to many,
the deletion process throws the following error


  | 13:17:22,527 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
  | javax.faces.FacesException: Error calling action method of component with 
id _tagId2_1:_tagId9
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:106)
  | at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
  | at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:92)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  | at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  | at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  | at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
  | at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
  | at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  | at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: javax.faces.el.EvaluationException: /createProfile.xhtml 
@100,103 action=#{profileManager.create}: javax.ejb.EJBException: org
  | hibernate.PersistentObjectException: detached entity passed to persist: 
com.iplay.cms.model.user.Profile
  | at 
com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
  | at 
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
  | ... 34 more
  | Caused by: javax.ejb.EJBException: org.hibernate.PersistentObjectException: 
detached entity passed to persist: com.iplay.cms.model.user.P
  | ofile
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:192)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 

[JBoss-user] [Security JAAS/JBoss] - Re: JAAS Authentication

2006-03-22 Thread j2ee_junkie
susitha,

One major problem I noticed is an incorrect security-domain setting in web.xml. 
 This should be 'java:/jaas/protal' for your case.  The thread you posted has a 
different application-policy name (example2) than yours.

Some TRACE logging of security layer would be helpfull to.

see if that helps,cgriffith

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Injection in interceptors

2006-03-22 Thread kcounsell
Thanks for the clarification.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Configuring SEAM test with junit

2006-03-22 Thread JXerXes
Thanks for the quick answer! I'll try that...

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Configuring SEAM test with junit

2006-03-22 Thread JXerXes
Hi to everybody and thanks for the big job you have done!
i know that i am asking a silly question...

i need some help with my first SEAM app.
(i already posted this in the seam forum and gavin told me i should post it 
here because Emmanuel would know the answer)
i already have a working app with a sybase ASA9 database.
i'm using seam beta 1 and jboss 4.0.3SP1 without ejb rc4.
works fine. i want to wait till everything is final until i migrate.

now i want to write a test with junit. my problem is that i cant get the 
configuration into the entitymanagerfactory. the code looks like this:

  | EntityManagerFactory emf;
  | ...
  | emf = Persistence.createEntityManagerFactory(test); 
  | 
persistence.xml looks like:

  | entity-manager
  | name
  | test
  | /name
  |
  |providerorg.hibernate.ejb.HibernatePersistence/provider
  |
  |properties
  |property name=hibernate.dialect 
value=org.hibernate.dialect.SybaseAnywhereDialect/
  |  property name=hibernate.hbm2ddl.auto value=update/
  |  property name=hibernate.connection.driver_class 
value=com.sybase.jdbc2.jdbc.SybDriver/
  |  property name=hibernate.connection.username value=.../
  |  property name=hibernate.connection.password value=.../
  |  property name=hibernate.connection.url 
value=jdbc:sybase:Tds:localhost:same as in my app/
  |  property name=hibernate.max_fetch_depth value=3/
  |/properties
  | /entity-manager 
  | 
i have also tried 

  | persistence
  |persistence-unit name=test transaction-type=RESOURCE_LOCAL
  |
  |  providerorg.hibernate.ejb.HibernatePersistence/provider
  |   
  |   properties
  |  property name=hibernate.dialect 
value=org.hibernate.dialect.SybaseAnywhereDialect/
  |  property name=hibernate.hbm2ddl.auto value=update/
  |  property name=hibernate.connection.driver_class 
value=com.sybase.jdbc2.jdbc.SybDriver/
  |  property name=hibernate.connection.username value=.../
  |  property name=hibernate.connection.password value=.../
  |  property name=hibernate.connection.url 
value=jdbc:sybase:Tds:same as in my app/
  |  property name=hibernate.max_fetch_depth value=3/
  |/properties
  |/persistence-unit
  | /persistence 
  | 
or the programmatic way:

  | HashMap map = new HashMap();
  | 
  |  map.put(hibernate.connection.driver_class, 
com.sybase.jdbc2.jdbc.SybDriver);
  |  map.put(hibernate.connection.url, 
jdbc:sybase:Tds:localhost:same as in my app);
  |  map.put(hibernate.connection.username, ...);
  |  map.put(hibernate.connection.password, ...);
  | 
  | emf = Persistence.createEntityManagerFactory(test,map);
  | 
it always goes as far as:

  | 21.03.2006 10:33:09 org.hibernate.cfg.Environment clinit
  | INFO: Hibernate 3.1
  | 21.03.2006 10:33:09 org.hibernate.cfg.Environment clinit
  | INFO: hibernate.properties not found
  | 21.03.2006 10:33:09 org.hibernate.cfg.Environment clinit
  | INFO: using CGLIB reflection optimizer
  | 21.03.2006 10:33:09 org.hibernate.cfg.Environment clinit
  | INFO: using JDK 1.4 java.sql.Timestamp handling
  | 
and then i get a persistenceException: no provider for entity manager named 
test.

please help me, i don't know what i have forgotten...




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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - difference beetween swimlane,role and user

2006-03-22 Thread jmix2006
hi,
my question is what's differance between  swimlane role and user .
how to atribute user to a role and role to swimlane
 

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Connect to security service?

2006-03-22 Thread j2ee_junkie
louisaj_work,

Your assumptions are incorrect with regard to Tomcat security layer.

Tomcat has a server.xml file that configures the server.  With Tomcat 5.5 
embeded (and so I assume Tomcat 4.1), this server.xml file is in tomcat sar.  I 
am interested in seeing what Realm you are using.   In your example 
distribution, I see no designation of how your Tomcat server is configured. 

The application policy does not 'act in the same fashion as declaring a realm'. 
 The realm needs to be the org.jboss.web.tomcat.seucrity.JBossSecurityMgrRealm 
which delegates authentication/authoriztion to the security manager of your 
JBoss server for the application-policy you designate as your security-domain.  
Thus, what realm are you using?

maybe you should read [/url]http://wiki.jboss.org/wiki/Wiki.jsp?page=Tomcat, 
cgriffith

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: SEAM configuration problem

2006-03-22 Thread kcounsell
How are you building the EAR/WAR?  The Class-Path entry might not be populated 
in the manifest for your web app.  Make sure that this line appears:
Class-Path: jboss-seam.jar

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Locking contention hotspot on root Node

2006-03-22 Thread fungrim
Hello,

I'm presently evaluating JBoss Cache for a large system state replication 
mechanism. However, we're looking at a cache where certain sub-trees may change 
frequently wheras others may stay fairly static for a long time but may mutate 
rapidly in certain periods. As such, this problem seemed interesting. 

We're looking at a multi-CPU setup. If all sub-trees are contenting for a write 
lock on the root node we may have to split the cache into several instances, 
which is certainly doable, but also less appealing.

I found the JIRA issue but could not figure out what the resolution was. Can 
you advice me if this is still a problem?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Component Binding to conversation does not work

2006-03-22 Thread scraatz
Hi,

we are trying to bind a faces UI component to a conversation.scope Java bean 
with SEAM 1.0B2 and myFaces 1.1.1/facelets.
Whenever the form is postet SEAM complains that no conversation is active and 
throws an exception.


  | h:inputText value=#{conversation.input} 
binding=#{conversation.inputComponent} /
  | 

Question: Am I doing something wrong? Is there a workaround?

Thanks
Stefan

P.S.: 
After looking at the SEAM and myFaces source I believe that the problem is, 
that SEAM restores the current conversation in the AFTER_PHASE listener of 
RESTORE_VIEW,


  |   public void afterPhase(PhaseEvent event)
  |{
  |   log.trace( after phase:  + event.getPhaseId() );
  | 
  |   if ( event.getPhaseId() == RESTORE_VIEW )
  |   {
  |  restoreAnyConversationContext(event);
  |   }
  |   else if ( event.getPhaseId() == RENDER_RESPONSE )
  | 
  | 

and myFaces sets the bindings before calling the AFTER_PHASE listener


  | 
  | recursivelyHandleComponentReferencesAndSetValid(facesContext, 
viewRoot);
  | 
  | informPhaseListenersAfter(facesContext, PhaseId.RESTORE_VIEW);
  | 
  | 
  | 

Just moving the SEAM-code to the other Phase does not work, because the 
restoreAnyConversationContext(event); method accesses the component tree. 

When is the conversationID stored in the request-params and when attached to 
the UIViewRoot?



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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Stored Procedure

2006-03-22 Thread JXerXes
Hello again!

Ich have another problem with data base access (still jboss 4.0.3SP1 without 
ejb rc4; sybase ASA9):

I have to use stored procedures. I mapped two of them with a hbm.xml file. 
worked fine with result sets with only one row. but now i want to use this for 
a procedure that returns muliple rows. the list that i get contains as many 
objects as the procedure returns rows. but they are all the same. just copies 
of the first one.

the configuration looks like this:


  | 
  | class name=xy.classname
  | 
  |   id name=xxx type=integer column=xxx/
  |   property name=yyy type=string column=yyy/
  | ...
  |/class
  | 
  | sql-query name=QUERYNAME callable=true
  | return  class=xy.classname
  |   return-property name=xxx column=xxx/
  |   return-property name=yyy  column=yyy/
  |  ...
  | /return
  | {  call stp_procedurename(:param1,:param2,) }
  | /sql-query
  | 
  | 

is this not possible or have i made a mistake?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Runtime change of @Where clause

2006-03-22 Thread lcoetzee
Hi,

Is it possible to change the @Where clause at runtime, thus implementing some 
kind of polymorphic query on my collection ?

As an example I have the following:

  | @OneToMany(mappedBy = service)
  | @MapKey(name=id)
  | @Where(clause=topic_type='CMS')
  | public MapInteger,Topic getTopics() {
  | return topics;
  | }

This retrieves all the topics of type 'CMS'. At runtime I would like to set the 
topic_type to 'DF' for instance, which will return only the topics with 
topic_type  'DF'.  Any suggestions would be welcome.

Regards
Louis

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Locking contention hotspot on root Node

2006-03-22 Thread bdueck
There have been a number of changes made since my post that dramatically 
improve scalability and performance of JBossCache, and a few of those 
optimizations alleviate some of root node contention.

However, the fundamental problem that is described in this thread still exists. 
The right approach is most likely to allow for multiple root nodes within the 
cache.

Brian.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Standalone Tomcat to JBoss - SecurityAssociation mixup

2006-03-22 Thread j2ee_junkie
cssmith4,

Sorry, I though I responded to your questions.  Must of got sidetracked.

  | 1: SecurityAssociationValve gets added to pipeline by TomcatDeployer
  | 
  | 2: The Principal is not necessarily stored under any key.  The Tomcat 
Session implementation has a Principal object that gets set to the 
authenticated Principal.
  | 
  | 3: RTFM
  | 
  | 4: No, it is not a contradiction if jaco is using a separated Tomcat 
instance, and my comments are describing the embedded instance.
  | 
  | 
  | If you are having problems, and you have read documentation, start a 
thread.  cgriffith

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: SEAM configuration problem

2006-03-22 Thread crnip
Thank you S MUCH!!

Silvo Koren

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Doubt regarding the Timer Task?

2006-03-22 Thread ramazanyich
In fact then you define timer in your processdefinition it is not executed.
It will be created in special table jbom_timer suring executing of 
process_instance. . And you should have a schedulerthread running: it will 
execute timers that are created. To start scheduler thread you can call special 
servlet which is included into jbpm.war

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Connection handle is not currently associated with a Man

2006-03-22 Thread [EMAIL PROTECTED]
You only answered question 1 of 34!

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: ManyToMany biderectional

2006-03-22 Thread rberehoudougou
Any more ideas ?

thanks

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: Connection handle is not currently associated with a Man

2006-03-22 Thread [EMAIL PROTECTED]
I created that page such that I wouldn't have to make 4 posts to a thread
to get the most logging, config, etc.

You've had your chance.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - setEntityContext method in EntityBean EJBs.

2006-03-22 Thread Ayusman
Hi All,
I have an EJB that implements EntityBean.
public void setEntityContext( EntityContext ejbCtx ) throws RemoteException
{
this.ejbCtx = ejbCtx; //this.ejbCtx  is an EJBContext object.
}

I am trying to print several values of the 'EntityContext' that is being passed 
please see the code pasted at the end.

Is this approach wrong? I am getting error while trying to print the values.
If I am not wrong does the EJB Container sets the EJB context while calling the 
setEntityContext method automatically??
Does JBoss AS provides the context to the EJB container, as the EJB container 
is managed by the JBoss AS?

Please suggest.


public void setEntityContext( EntityContext ejbCtx ) throws RemoteException
{
this.ejbCtx = ejbCtx;
   //Get the caller identity.
java.security.Identity identity = ejbCtx.getCallerIdentity();
System.out.println(identity for this ejb context is ::+identity.toString());
   //Get the environment properties for the enterprise bean.
System.out.println(---EJB Properties STARTS---);
java.util.Properties pr= ejbCtx.getEnvironment();
Enumeration en= pr.propertyNames();
 while(en.hasMoreElements())
 {
   String key = en.nextElement().toString();
   String value = pr.getProperty(key,---NONE---);
   System.out.println(KEY ::+key+--VALUE ::+value);
  }
 System.out.println(---EJB Properties ENDS---);
 System.out.println(---caller principal STARTS---);
 java.security.Principal principal=ejbCtx.getCallerPrincipal();
 System.out.println(Principal name is ::+principal.getName());
 System.out.println(---caller principal ENDS---);
}




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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: setEntityContext method in EntityBean EJBs.

2006-03-22 Thread Ayusman
IF THE CODE IS SCRAMBLED, PLEASE COPY AND PASTE THE CONTENT IN A TEXT EDITOR.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Security JAAS/JBoss] - Re: Confused by Client login

2006-03-22 Thread amayingenta
This is what I see in the log:

2006-03-22 09:10:21,009 TRACE [org.jboss.security.SecurityAssociation] 
getPrincipal, principal=null
2006-03-22 09:10:21,015 TRACE 
[org.jboss.security.plugins.JaasSecurityManager.identity] Begin isValid, 
principal:null, cache info: null
2006-03-22 09:10:21,015 TRACE 
[org.jboss.security.plugins.JaasSecurityManager.identity] defaultLogin, 
principal=null
2006-03-22 09:10:21,015 TRACE 
[org.jboss.security.auth.login.XMLLoginConfigImpl] Begin 
getAppConfigurationEntry(identity), size=9
2006-03-22 09:10:21,015 TRACE 
[org.jboss.security.auth.login.XMLLoginConfigImpl] End 
getAppConfigurationEntry(identity), authInfo=AppConfigurationEntry[]:
[0]
LoginModule Class: com.ingenta.ics.client.SessionLoginModule
ControlFlag: LoginModuleControlFlag: required
Options:


Then there's some println's from my custom login module, confirming that the 
NameCallback I provided to the CallbackHandler did not have it's name set.

I don't see anything in this output that explains what is happening, apart from 
confirming that there doesn't appear to be a principal propergated to the 
server.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: SEAM configuration problem

2006-03-22 Thread dwayneb
An other option (when you can't overwrite Manifest like me) is to add the 
following code into application.xml :

  |   module
  | javajboss-seam-1.0-beta2.jar/java
  |   /module
  | 

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: adf libs in server/default/libs breaks seam pageflows

2006-03-22 Thread ido_tamir
I checked:
fresh install of jboss.
seam from cvs.
numberguess works.
added adf libs in: server/default/deploy/jbossweb-tomcat55.sar/jsf-libs
numberguess broken*
removed adf libs 
numberguess works.
added adf libs
seam beta 2 
numberguess works
seam from cvs
numberguess broken

The warning from the AdfFacesFilterImp.. also comes up with the old seam.

*after submitting the form for the first time

Should I file a JIRA issue?
thanks 
Ido


14:13:25,119 ERROR [STDERR] Mar 22, 2006 2:13:25 PM 
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl verifyFilterIsInstalled
WARNING: The AdfFacesFilter has not been installed.  ADF Faces requires this 
filter for proper execution.
14:13:25,142 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces 
Servlet threw exception
java.lang.ClassCastException: org.jbpm.graph.node.StartState
at org.jboss.seam.core.Pageflow.getPage(Pageflow.java:89)
at org.jboss.seam.core.Manager.prepareBackswitch(Manager.java:588)
at 
org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:61)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520)
at 
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:23)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:54)
at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)





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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Stateless EJB not pooled at JBOSS startup

2006-03-22 Thread abhayd
Tomas,

Thanks for your quick response. But I am not sure , why documentation talks 
about configuration in JBOSS.xml.
Configuration is for instance pool  has MaximumSize/MinimumSize as child 
elements.

Can you please comment?

I am quite sure ejbCreate() will get called, when ejb client calls create()
on Home object reference.

Anyone else also most welcome to discussion thread 


Thanks,
Abhay



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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Locking contention hotspot on root Node

2006-03-22 Thread fungrim
Thank you for your quick reply. It was my impression though that the root node 
contention was an issue whther you had multiple roots in a tree or not. Or am 
I missing something?

Just for safety, let me expand a bit: onsider three domain which are keeping 
state in the cache as /a, /b and /c. Domain a has consistent high 
mutation rate in it's sub-trees whereas b and c has a burst-like activity 
in parts of, or their entire, sub-tree. However, it is critical for the system 
that the load differences between the domains does not cross the domain 
boundaries. For example, the high activity in a must not degrade preformance 
for the c domain should it enter a prolonged burst of activity and mutations. 

Should I understand that the different roots in this scenario now are separated 
in regards to write-locks? Or is there still dependencies on the main root 
(/)? In short, would you rcommend one or multiple cache instances in the 
scenario above?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Error while loading BPEL Hello World example using sybase

2006-03-22 Thread afzal34
Hi I am getting following exception while deploying hello bpel example.  The 
exception says that there are any too many tables in the query. The maximum 
allowable tables is 50. I want if any one else has similar exception. I know 
this seems to be database limitation. But is there any way that I can change 
hibernate setting to reduce the number of tables .

Below is the exception thanks  for your help.


2006-03-21 17:21:39,950 DEBUG [org.hibernate.util.JDBCExceptionReporter] could 
not initialize a collection: [org.jbpm.graph.def.ProcessDefinition.nodes#1] 
[select nodes0_.PROCESSDEFINITION_ as PROCESSD4_52_, nodes0_.ID_ as ID1_52_, 
nodes0_.NODECOLLECTIONINDEX_ as NODECOL34_52_, nodes0_.ID_ as ID1_1_51_, 
nodes0_.NAME_ as NAME3_1_51_, nodes0_.PROCESSDEFINITION_ as PROCESSD4_1_51_, 
nodes0_.ACTION_ as ACTION5_1_51_, nodes0_.SUPERSTATE_ as SUPERSTATE6_1_51_, 
nodes0_.SUBPROCESSDEFINITION_ as SUBPROCE7_1_51_, nodes0_.DECISIONDELEGATION as 
DECISION8_1_51_, nodes0_.SIGNAL_ as SIGNAL9_1_51_, nodes0_.CREATETASKS_ as 
CREATET10_1_51_, nodes0_.SUPRJOINFAILURE_ as SUPRJOI11_1_51_, 
nodes0_.COMPOSITEACTIVITY_ as COMPOSI12_1_51_, nodes0_.JOINCONDITION_ as 
JOINCON13_1_51_, nodes0_.RECEIVER_ as RECEIVER14_1_51_, nodes0_.CREATEINSTANCE_ 
as CREATEI15_1_51_, nodes0_.REPLIER_ as REPLIER16_1_51_, nodes0_.INVOKER_ as 
INVOKER17_1_51_, nodes0_.FAULTNAMELOCALPART_ as FAULTNA18_1_51_, 
nodes0_.FAULNAMETPATH_ as FAULNAM19_1_51_, nodes0_.FAULTVARIABLE_ as 
FAULTVA20_1_51_, nodes0_.ALARM_ as ALARM21_1_51_, nodes0_.SCOPE_ as 
SCOPE22_1_51_, nodes0_.CONDITION_ as CONDITION23_1_51_, nodes0_.WHILE_ as 
WHILE24_1_51_, nodes0_.STARTSTRUCTURE_ as STARTST25_1_51_, 
nodes0_.ENDSTRUCTURE_ as ENDSTRU26_1_51_, nodes0_.IMPLICIT_ as 
IMPLICIT27_1_51_, nodes0_.ISOLATED_ as ISOLATED28_1_51_, nodes0_.ACTIVITY_ as 
ACTIVITY29_1_51_, nodes0_.FAULTLOCALPART_ as FAULTLO30_1_51_, 
nodes0_.FAULTPATH_ as FAULTPATH31_1_51_, nodes0_.HDLRRECEIVER_ as 
HDLRREC32_1_51_, nodes0_.HDLRALARM_ as HDLRALARM33_1_51_, nodes0_.CLASS_ as 
CLASS2_1_51_, action1_.ID_ as ID1_4_0_, action1_.NAME_ as NAME3_4_0_, 
action1_.ISPROPAGATIONALLOWED_ as ISPROPAG4_4_0_, action1_.REFERENCEDACTION_ as 
REFERENC5_4_0_, action1_.ACTIONDELEGATION_ as ACTIONDE6_4_0_, action1_.EVENT_ 
as EVENT7_4_0_, action1_.PROCESSDEFINITION_ as PROCESSD8_4_0_, action2_.ID_ as 
ID1_4_1_, action2_.NAME_ as NAME3_4_1_, action2_.ISPROPAGATIONALLOWED_ as 
ISPROPAG4_4_1_, action2_.REFERENCEDACTION_ as REFERENC5_4_1_, 
action2_.ACTIONDELEGATION_ as ACTIONDE6_4_1_, action2_.EVENT_ as EVENT7_4_1_, 
action2_.PROCESSDEFINITION_ as PROCESSD8_4_1_, delegation3_.ID_ as ID1_6_2_, 
delegation3_.CLASSNAME_ as CLASSNAME2_6_2_, delegation3_.CONFIGURATION_ as 
CONFIGUR3_6_2_, delegation3_.CONFIGTYPE_ as CONFIGTYPE4_6_2_, 
delegation3_.PROCESSDEFINITION_ as PROCESSD5_6_2_, processdef4_.ID_ as 
ID1_0_3_, processdef4_.NAME_ as NAME3_0_3_, processdef4_.VERSION_ as 
VERSION4_0_3_, processdef4_.ISTERMINATIONIMPLICIT_ as ISTERMIN5_0_3_, 
processdef4_.STARTSTATE_ as STARTSTATE6_0_3_, processdef4_.TARGETNAMESPACE_ as 
TARGETNA7_0_3_, processdef4_.ENABLECOMPENSATION_ as ENABLECO8_0_3_, 
processdef4_.EXPRESSIONLANG_ as EXPRESSI9_0_3_, processdef4_.QUERYLANG_ as 
QUERYLANG10_0_3_, processdef4_.ABSTRACT_ as ABSTRACT11_0_3_, 
processdef4_.CLASS_ as CLASS2_0_3_, startstate5_.ID_ as ID1_1_4_, 
startstate5_.NAME_ as NAME3_1_4_, startstate5_.PROCESSDEFINITION_ as 
PROCESSD4_1_4_, startstate5_.ACTION_ as ACTION5_1_4_, startstate5_.SUPERSTATE_ 
as SUPERSTATE6_1_4_, superstate6_.ID_ as ID1_1_5_, superstate6_.NAME_ as 
NAME3_1_5_, superstate6_.PROCESSDEFINITION_ as PROCESSD4_1_5_, 
superstate6_.ACTION_ as ACTION5_1_5_, superstate6_.SUPERSTATE_ as 
SUPERSTATE6_1_5_, event7_.ID_ as ID1_3_6_, event7_.EVENTTYPE_ as 
EVENTTYPE2_3_6_, event7_.TYPE_ as TYPE3_3_6_, event7_.GRAPHELEMENT_ as 
GRAPHELE4_3_6_, processdef8_.ID_ as ID1_0_7_, processdef8_.NAME_ as NAME3_0_7_, 
processdef8_.VERSION_ as VERSION4_0_7_, processdef8_.ISTERMINATIONIMPLICIT_ as 
ISTERMIN5_0_7_, processdef8_.STARTSTATE_ as STARTSTATE6_0_7_, 
processdef8_.TARGETNAMESPACE_ as TARGETNA7_0_7_, 
processdef8_.ENABLECOMPENSATION_ as ENABLECO8_0_7_, 
processdef8_.EXPRESSIONLANG_ as EXPRESSI9_0_7_, processdef8_.QUERYLANG_ as 
QUERYLANG10_0_7_, processdef8_.ABSTRACT_ as ABSTRACT11_0_7_, 
processdef8_.CLASS_ as CLASS2_0_7_, processdef9_.ID_ as ID1_0_8_, 
processdef9_.NAME_ as NAME3_0_8_, processdef9_.VERSION_ as VERSION4_0_8_, 
processdef9_.ISTERMINATIONIMPLICIT_ as ISTERMIN5_0_8_, processdef9_.STARTSTATE_ 
as STARTSTATE6_0_8_, processdef9_.TARGETNAMESPACE_ as TARGETNA7_0_8_, 
processdef9_.ENABLECOMPENSATION_ as ENABLECO8_0_8_, 
processdef9_.EXPRESSIONLANG_ as EXPRESSI9_0_8_, processdef9_.QUERYLANG_ as 
QUERYLANG10_0_8_, processdef9_.ABSTRACT_ as ABSTRACT11_0_8_, 
processdef9_.CLASS_ as CLASS2_0_8_, delegation10_.ID_ as ID1_6_9_, 
delegation10_.CLASSNAME_ as CLASSNAME2_6_9_, delegation10_.CONFIGURATION_ as 
CONFIGUR3_6_9_, delegation10_.CONFIGTYPE_ as CONFIGTYPE4_6_9_, 

[JBoss-user] [EJB 3.0] - one-to-many unidirectional persistence does not create prima

2006-03-22 Thread chornsey
Please let me know if my assumption is valid or not.

I have an entity bean named parent which has an autogenerated id.
I also have another entity bean named child which has an auto generated id.

The parent object has a list of child objects mapped as one-to-many in the 
parent with parent being the mappedby class.

I expect when i create a new parent then add two newly created children to the 
list, that when I persist parent, jboss will generate the id for parent then 
populate the foriegn key fields in the children classes with the newly created 
id of the parent.  Then the children will be saved with the correct parent id.

This is not what actually happens though.  As far as I can tell JBoss does not 
update the children with the parents id at all.  I leaves the foreign key to 
the parent alone, expecting that you will populate it.

Can anyone expand on how the system should behave in this case, or point me to 
the documentation that details this situation.

Thanks for any help.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Component Binding to conversation does not work

2006-03-22 Thread JamesWoodward
I've found a way around this.

In my CONVERSATION scoped component I inject an EVENT scoped component, which 
handles the binding.

So my conversation component looks something like:
@Stateful
  | @Name(cart)
  | @Interceptors(SeamInterceptor.class)
  | public class ShoppingCartBean implements ShoppingCart, Serializable {
  | ...
  | @In(value=cartTable, create=true)
  | private transient TableBinding table;
  | ...
  | }
  | 

And my event component looks something like:
@Name(cartTable)
  | @Scope(ScopeType.EVENT)
  | public class ShoppingCartTableBinding extends TableBinding {
  | }
  | 

Just for completeness, my TableBinding class is used to bind to a ADF Faces 
Table component:
public abstract class TableBinding {
  | 
  | private UIXTable table;
  | 
  | public UIXTable getBinding() {
  | return table;
  | }
  | 
  | public void setBinding(UIXTable table) {
  | this.table = table;
  | }
  | 
  | public List getSelectedRows() {
  | List selectedRows = new ArrayList();
  | 
  | Object oldKey = table.getRowKey();
  | SetString selectedKeys = table.getSelectionState().getKeySet();
  | 
  | for (String rowKey : selectedKeys) {
  | table.setRowKey(rowKey);
  | selectedRows.add(table.getRowData());
  | }
  | 
  | table.setRowKey(oldKey);
  | 
  | return selectedRows;
  | }
  | 
  | public void clearSelection() {
  | table.getSelectionState().clear();
  | }
  | }
  | 
And my JSF page looks something like:
...
  | af:table binding=#{cartTable.binding} ...
  | ...
  | 

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: use an EJB as client of a web service

2006-03-22 Thread Pierroot
Well, yes I looked in the samples provided and I am sorry I was not able to 
find out the reason why this is not working...

I really would like to know how to fix this... Thank you !

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss AOP] - Re: Using metadata on JBoss AOp

2006-03-22 Thread [EMAIL PROTECTED]
Moved to user forum

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: @PrimaryKeyJoinColumns is disallowed annotation

2006-03-22 Thread adver11
Table Customer join table Airline on Customer.CUSTOMERID = Airline.ID and 
Customer.NAME = Airline.NAME
Customer.CUSTOMERID and Customer.NAME are complex primary key

ejb-3_0-pfd-spec-persistence, @PrimaryKeyJoinColumns Example 2:
Table Employee join table EmployeeInfo on Employee.ID = EmployeeInfo.EMP_ID and 
Employee.NAME = EmployeeInfo.EMP_NAME

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Error in deploying JBoss portal

2006-03-22 Thread aneiba
Hi People,

I sort the problem out, my mistake was i modified the JNDI-Name in my 
portal-postgresql-ds.xml from the default one PortalDS to my database name 
which should not be the case, and you must leave the jndi-name as the same as 
Jboss portal use it to find the main bean.

This is sort my problem in my previous message

Regards,

Adel


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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: Closing a connection for you. Please close them yourse

2006-03-22 Thread schoenen
In case you use BMP e.g. your code might look like:
try {
  connection = jdbcFactory.getConnection();
  connection.setReadOnly(true);  // this might fail
  preparedSatement = connection.prepareStatement(...);
  
  resultSet = preparedStatement.executeQuery();
  ...
} catch (...) {
} finally {
  preparedStatement.close();
  connection.close();
} ...
preparedStatement might be null and the preparedStatement.close() should throw 
an exception. connection.close() would be never reached and the container would 
tell you, plse close it yourself!
This as an example to run into a trap.

holger

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Locking contention hotspot on root Node

2006-03-22 Thread bdueck
Whenever an attempt is made to retrieve a node from the cache, the cache is 
traversed from the root node (has a special Fqn of /).

There is a single instance of the root node within the cache, which like all 
nodes, keeps a reference to its children in a hash map that supports concurrent 
reads, but not concurrent writes. The concurrent reader hash map means that 
multiple threads can concurrently ask the node for its children without 
contention.

This means that so long as you are not adding and removing nodes directly 
underneath the root (i.e. direct children of root) there should be little to no 
concurrency problems.

However, if you are adding or removing nodes continually underneath root at a 
high rate then concurrency problems can surface because an exclusive write lock 
must be obtained on root node.

I have experimented with using a hashed table of TreeCache's to resolve this 
second problem and that does indeed seem to work, but presents a number of 
undesirable problems, most notably that clustering performance will suffer 
dramatically.

Hope this helps.

Brian.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss AOP] - Re: Using metadata on JBoss AOp

2006-03-22 Thread mounou
mounou wrote : Hi everyone, 
  | I've problems using metadata on Jboss AOP!
  | Here is my example:
  | 
  | The main class:
  | 
  | 
  | package jboss.aop2;
  | 
  | public class CompteBancaire {
  | 
  | private double tauxInteret =0;
  | private double solde = 0;
  | public CompteBancaire( double tauxInteret, double solde, String client 
){
  | this.tauxInteret = tauxInteret;
  | this.solde = solde;
  | System.out.println();
  | }
  | 
  | /*
  |  * @@aTracer 
  |  */
  |  
  |  
  | public void crediter( double montant ){
  | this.solde += montant;
  | System.out.println(methode crediter);
  | }
  | 
  | 
  | 
  | public void debiter( double montant ) throws Exception{
  | if (montant  this.solde){
  | throw new Exception();
  | }
  | this.solde -= montant;
  | System.out.println(methode debiter);
  | }
  | 
  | /*
  |  *@@aTracer
  |  */
  |  
  | public void mettreAJourSolde(){
  | this.solde *= 1.0 + this.tauxInteret / 100.0;
  | System.out.println(methode mettreAJour);
  | }
  | 
  | 
  | public static void main( String[] args ) throws Exception {
  | CompteBancaire c1 = new CompteBancaire( 2.5, 10.0, Mouna  
);
  | CompteBancaire c2 = new CompteBancaire( 3.25, 20.0, Kouka 
);
  | c1.crediter(100);
  | c2.debiter(500);
  | c1.mettreAJourSolde();
  | new Calendrier(c1).getDate();
  | }
  | 
  | }
  | 
  | the two methods I want to trace are mettreAJour() and crediter().
  | My jboss-aop.xml looks like:
  | 
  | ?xml version=1.0 encoding=UTF-8 standalone=yes ? 
  | 
  |  
  |
  |  
  |  
  |
  |  
  | 
  | 
  | and the ant build file: (I wonder if I'm obliged to use a build.xml file or 
not!!)
  | 
  | ?xml version=1.0 encoding=UTF-8?
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  |  
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | I have this error when running my programm:
  | [annotationc] Working directory ignored when same JVM is used
  | Notice that I have no space or _ in my work directory 
  | 
  | Any suggestion please? Is my build.xml correct?
  | thanks in advance
  | Mouna

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss AOP] - Re: Using metadata on JBoss AOp

2006-03-22 Thread mounou
I don't know why my xml files don't appear !!!

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss AOP] - Re: Using metadata on JBoss AOp

2006-03-22 Thread [EMAIL PROTECTED]
use the code tags

  |  for
  | example
  |  /for
  | 

and use the preview button. Which version are you using?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: JBoss Portal source build failed

2006-03-22 Thread rutfield

As an aside, how do I build, so I do not get all the DEBUG messages?

Is there an environment variable or ant flag to set?

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: How to protect an object from concurrent access in EJB3.

2006-03-22 Thread adver11
So, use @Version? Use Version field each table? but applications that use more 
than one
Version property or field will not be portable.

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Seam] - Re: Troubleshooting exceptions due to bad annotations

2006-03-22 Thread andrew.rw.robinson
http://jira.jboss.com/jira/browse/EJBTHREE-485

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

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


  1   2   3   >