[jboss-user] [JBoss jBPM] - Drools in JBPM4

2009-07-20 Thread penguine
Hello,

have someone an example how to use drools in JBPM4
I found one example for JBPM3 and drools:
http://www.jboss.org/community/wiki/jBPM3andDrools

Thank you for your help

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

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


[jboss-user] [EJB 3.0] - Re: Use oracle to generate the id with the orcle seqence tab

2007-09-18 Thread penguine
I think you mean
@SequenceGenerator

yes, I try this. the problem is that. we are using the oracle db for creating 
the next pk (a old infrastructur). so when I do em.persist(table) the id that 
will be insert is i+1. because hibernate is generating a pk and when I do 
persist oracle is generating a pk, too.

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

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


[jboss-user] [EJB 3.0] - Re: Use oracle to generate the id with the orcle seqence tab

2007-09-18 Thread penguine
Thank you for your help.

But it doesn´t work. I need the returning pk after commit. In your way oracle 
is setting a new pk in my table
Because we use a trigger which creates a new pk by oracle when I do 
table.persist(). I can´t change the mechnism because it is an old 
infrastructur. In ejb2.x we have our own oraclecreatecommand

  | public class OracleCreateCommand  extends JDBCIdentityColumnCreateCommand
  | {
  |   protected void initInsertSQL()
  |   {
  |  pkIndex = 1 + insertFields.length;
  |  jdbcType = pkField.getJDBCType().getJDBCTypes()[0];
  | 
  |  StringBuffer sql = new StringBuffer();
  |  sql.append({call INSERT INTO ).append(entity.getTableName());
  |  sql.append( ();
  |  SQLUtil.getColumnNamesClause(insertFields, sql);
  |  sql.append());
  |  sql.append( VALUES ();
  |  SQLUtil.getValuesClause(insertFields, sql);
  |  sql.append());
  |  sql.append( RETURNING );
  |  SQLUtil.getColumnNamesClause(pkField, sql)
  | .append( INTO ? });
  |  insertSQL = sql.toString();
  |  if (debug) {
  | log.debug(Insert Entity SQL:  + insertSQL);
  |  }
  |   }
  | 
  | 

This is returning the created pk form oracle after persist().
And know in JPA a need a similar mechanism.
I think the 

  |  @GenericGenerator(name=select, strategy=select,
  | parameters = 
  | {
  |   @Parameter(name = key, value = idstoerung)
  | })
  | 
Is the right way. but is seems there is a bug in jboss, isn´t it?
Is there no one who is using a oracle trigger for generating the pk?


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

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

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


[jboss-user] [EJB 3.0] - Use oracle to generate the id with the orcle seqence table

2007-09-17 Thread penguine
I want to use the ejb3 entity model.
the PK should generated by the orcle sequence table not by hibernate.
So I configure me bean with:

@GeneratedValue(generator=select)
  | @GenericGenerator(name=select, strategy=select,
  | parameters = 
  | {
  |   @Parameter(name = key, value = idstoerung)
  | })
  | 
The following error occurs:

  | javax.ejb.EJBException: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Unable to resolve property: idstoerung
  | at 
org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  | at 
org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:278)
  | at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
  | at 
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
  | at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:734)
  | at 
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:560)
  | at 
org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:369)
  | at 
org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:165)
  | Caused by: javax.persistence.PersistenceException: 
org.hibernate.HibernateException: Unable to resolve property: idstoerung
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:629)
  | at 
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:218)
  | at 
org.jboss.ejb3.entity.TransactionScopedEntityManager.persist(TransactionScopedEntityManager.java:182)
  | at 
de.dillinger.ww.stoerzeit.session.StoerzeitFacadeBean.aktiviereStoerungAn(StoerzeitFacadeBean.java:98)
  | 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.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
  | at 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
  | at 
org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
  | at 
org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 
org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
  | at 
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  | at 

[jboss-user] [JBoss OSGi] - Testing OSGI

2007-08-22 Thread penguine
for which jboss version does it works?
where can I download it?
are there some docs?

this will be a usefull feature in jboss. 

good luck ... I hope I can play with it soon

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

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


[jboss-user] [EJB 3.0] - JoinColumns with AnnotationException

2007-08-07 Thread penguine
in my entity I have the following annotation. I have generated the entities 
with DALI_0.5:
---BEGIN--
@Entity
public class Stoerung implements Serializable {
@EmbeddedId
private Stoerung.PK pk;
...

private Aggregat nameaggregat;


@ManyToOne
@JoinColumns({
@JoinColumn(name=NAMEANLAGENTEIL, 
referencedColumnName=NAMEANLAGENTEIL),
@JoinColumn(name=NAMEAGGREGAT, 
referencedColumnName=NAMEAGGREGAT)
})
private Anlagenteil anlagenteil;
.
.
.
.
ENDE---

the entity with the FK is the following:

 BEGIN
@Entity
public class Anlagenteil implements Serializable {
@EmbeddedId
private Anlagenteil.PK pk;

@ManyToOne
@JoinColumn(name=NAMEAGGREGAT)
private Aggregat nameaggregat;

@OneToMany(mappedBy=anlagenteil)
private Set stoerungCollection;

private static final long serialVersionUID = 1L;

public Anlagenteil() {
super();
}

public Anlagenteil.PK getPk() {
return this.pk;
}

public void setPk(Anlagenteil.PK pk) {
this.pk = pk;
}

public Aggregat getNameaggregat() {
return this.nameaggregat;
}

public void setNameaggregat(Aggregat nameaggregat) {
this.nameaggregat = nameaggregat;
}

public Set getStoerungCollection() {
return this.stoerungCollection;
}

public void setStoerungCollection(Set stoerungCollection) {
this.stoerungCollection = stoerungCollection;
..
..
..
-ENDE
and the exception is:

-BEGIN---
2007-08-07 16:13:24,000 DEBUG [org.hibernate.cfg.annotations.CollectionBinder] 
Collection role: com.mycompany.entity.Stoerungsgrund.stoerungCollection
2007-08-07 16:13:24,000 DEBUG [org.hibernate.cfg.annotations.PropertyBinder] 
Building property stoerungCollection
2007-08-07 16:13:24,000 DEBUG [org.hibernate.cfg.AnnotationConfiguration] 
processing manytoone fk mappings
2007-08-07 16:13:24,000 DEBUG [org.jboss.ejb3.ServiceDelegateWrapper] Starting 
failed persistence.units:jar=EnityTest.jar,unitName=Stoerzeit
org.hibernate.AnnotationException: referencedColumnNames(NAMEANLAGENTEIL, 
NAMEAGGREGAT) of com.mycompany.entity.Stoerung.anlagenteil referencing 
com.mycompany.entity.Anlagenteil not mapped to a single property
at 
org.hibernate.cfg.BinderHelper.createSyntheticPropertyReference(BinderHelper.java:165)
at org.hibernate.cfg.FkSecondPass.doSecondPass(FkSecondPass.java:63)
at 
org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:428)
at 
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:286)
at 
org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
at 
org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233)
at 
org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
at 
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:869)
at 
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407)
at 
org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
at 
org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
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.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
.
.
.
.
--ENDE-
has someone an idea? 
Thanx for help

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

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

[jboss-user] [EJB 3.0] - Re: JoinColumns with AnnotationException

2007-08-07 Thread penguine
thank you for your help.
but the syntax is right. it is already


  | @OneToMany(mappedBy=anlagenteil)
  | private SetStoerung stoerungCollection;
  | 


  | @OneToMany(mappedBy=anlagenteil)
  | private Set stoerungCollection;
  | 

is a parsing failure from the forum above.

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

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


[jboss-user] [JBossWS] - Re: Problems ejb call and jaxrpc / principal

2007-02-22 Thread penguine
if I use in the ejb-jar.xml
method-permission
  method-permission
  
  
instead of 
method-permission
  role-namefriend/role-name
  
it works.

And  I have to disabled the http authorization for my example:

port-component
  port-component-nameRoleSecured/port-component-name
  port-component-uri/ws/RoleSecured/port-component-uri
   !-- geht nur ohne http sicherheit  der soaguimacht aber mit   
auth-methodBASIC/auth-method
transport-guaranteeNONE/transport-guarantee --
/port-component


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

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


[jboss-user] [JBossWS] - Problems ejb call and jaxrpc / principal

2007-02-20 Thread penguine
Hallo Thomas,


The HelloBean in my/your example:

  String urlstr   = http://localhost:8080/ws/RoleSecured?wsdl;;
String argument = testmich;

System.out.println(Contacting webservice at  + urlstr);

URL url =  new URL(urlstr);

QName qname = new QName(http://hello.ws.jboss.org/;, HelloService);

ServiceFactory factory = ServiceFactory.newInstance();  
 
Serviceservice = factory.createService(url, qname);

Hello  hello   = (Hello) service.getPort(Hello.class);

Stub stub = (Stub) hello;

stub._setProperty(Stub.USERNAME_PROPERTY, kermit);
stub._setProperty(Stub.PASSWORD_PROPERTY, thefrog);

System.out.println(hello.hello( + argument + ));
System.out.println(output: + hello.hello(argument)); -- here the 
exception occurs

I become the following error:

Contacting webservice at http://localhost:8080/ws/RoleSecured?wsdl
hello.hello(testmich)
java.rmi.RemoteException: Call invocation failed with code [Client] because of: 
java.rmi.AccessException: SecurityException; nested exception is: 
java.lang.SecurityException: Insufficient method permissions, 
principal=null, ejbName=HelloBean, method=hello, interface=SERVICE_ENDPOINT, 
requiredRoles=[friend], principalRoles=[]; nested exception is: 
javax.xml.rpc.soap.SOAPFaultException: java.rmi.AccessException: 
SecurityException; nested exception is: 
java.lang.SecurityException: Insufficient method permissions, 
principal=null, ejbName=HelloBean, method=hello, interface=SERVICE_ENDPOINT, 
requiredRoles=[friend], principalRoles=[]
at org.jboss.ws.common.CommonClient.invoke(CommonClient.java:331)
at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:560)
at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:338)
at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
at $Proxy0.hello(Unknown Source)
at 
de.mycompany.it.webservice.test.TestHelloClientII.main(TestHelloClientII.java:67)
Caused by: javax.xml.rpc.soap.SOAPFaultException: java.rmi.AccessException: 
SecurityException; nested exception is: 
java.lang.SecurityException: Insufficient method permissions, 
principal=null, ejbName=HelloBean, method=hello, interface=SERVICE_ENDPOINT, 
requiredRoles=[friend], principalRoles=[]
at 
org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.getSOAPFaultException(SOAPFaultExceptionHelper.java:100)
at 
org.jboss.ws.common.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:574)
at org.jboss.ws.common.CommonClient.invoke(CommonClient.java:319)
... 5 more
Exception in thread main 

If I do a normal lookup to my bean as you do it in your examples it works.
But if I try to use the webserver to access the wsdl like my example above I 
don´t have a valid principal setting.



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

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

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


[jboss-user] [JBossWS] - Re: Problems ejb call and jaxrpc / principal

2007-02-20 Thread penguine
The problem occurs in jboss-4.0.5GA.
I try it with jbossws-1.0.4.GA, too.
my example herer is with the newer jbossws version, jbossws-1.0.4.GA.

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

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