[jboss-user] [Beginners Corner] - Re: HELP: javax.naming.NameNotFoundException: comp not bound
ashahashah wrote : cnbs wrote : anonymous wrote : The env-entry-name element contains the name of an enterprise bean's | | | environment entry. The name is a JNDI name relative to the | | | java:comp/env context | | I don't have this java:comp/env context to which all my environment resources names (like env-entry) have to be relative. | | Did you resolve this issue? Are you using EJB3.0? If you are then using the DTD http://java.sun.com/dtd/ejb-jar_2_0.dtd will do you no good. You have to use the ejb_3_0.xsd. Also, if you want to do a new InitialContext().lookup() for an env-entry from your deployment descriptor using JBoss 4.0.4GA and EJB3, then you have to use java:comp.ejb3/env/... and not just java:comp/env/... No i didn't resolve it yet. Yes i'm using EJB3.0 And using ejb_3_0.xsd. But this creates another error which is described here: http://www.jboss.com/index.html?module=bbop=viewtopicp=3964529#3964529 But i have a question - do i have to deploy with ejb-jar.xml or Jboss should create ENC environment from my metadata annotations? And about java:comp.ejb3/env/.. i know that i should use it and i did so. And as you cansee both of this context are empty: +- comp (class: javax.naming.Context) ... +- comp.ejb3 (class: javax.naming.Context) | NonContext: null View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964533#3964533 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964533 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: When can @Logger be used?
Thank you for your replies! I've tried several annotations. The current one is: | @Name(user1A6) | @Interceptors(SeamInterceptor.class) | public class User1A6 { | But I've tried it w/o the interceptor as well. I'm trying to log the properties which are injected to the bean from an JSF page. Regards, Kurt View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964535#3964535 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964535 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Entity Bean extends SelectItem
I've a CodesTable EntityBean and I would like it to extends SelectItem because many Drop downlists in my xhtml files should show all the CodesTable instance where codestable.table = spesific drop down this is the Entity Code: package com.my.ejb.entities; | | import javax.faces.model.SelectItem; | import javax.persistence.Column; | import javax.persistence.Entity; | import javax.persistence.Id; | import javax.persistence.Table; | | import org.jboss.annotation.ejb.Local; | | | | @Entity | @Local | @Table(name=codes_table | ,catalog=my | , uniqueConstraints = { } | ) | public class CodesTable extends SelectItem { | | /** | * | */ | private static final long serialVersionUID = 1744676344160095397L; | private int id; | private String value; | private String description; | private String table; | | | @Id | @Column(name=ID, unique=true, nullable=false, insertable=true, updatable=true) | public int getId() { | return id; | } | public void setId(int id) { | this.id = id; | } | | @Column(name=CODE, unique=false, nullable=false, insertable=true, updatable=true, length=100) | public String getValue() { | return value; | } | public void setValue(String value) { | this.value = value; | } | |@Column(name=TABLE, unique=false, nullable=false, insertable=true, updatable=true, length=100) | public String getTable() { | return table; | } | public void setTable(String table) { | this.table = table; | } |@Column(name=VALUE, unique=false, nullable=true, insertable=true, updatable=true, length=2000) | public String getDescription() { | return description; | } | public void setDescription(String description) { | this.description = description; | } | | } | when I am starting the server I am getting this Exception: anonymous wrote : 10:36:57,574 INFO [SessionFactoryImpl] building session factory | 10:36:57,924 ERROR [BasicLazyInitializer] Javassist Enhancement failed: com.wannabet.ejb.entities.CodesTable | java.lang.RuntimeException: duplicate method: getValue | at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:173) | at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:141) | at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:42) | at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:159) | at org.hibernate.tuple.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:131) | at org.hibernate.tuple.PojoEntityTuplizer.(PojoEntityTuplizer.java:50) | at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64) | at org.hibernate.tuple.EntityMetamodel.(EntityMetamodel.java:256) | at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:418) | at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:108) | at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) | at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:223) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213) | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631) | at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760) | at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350) | at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119) | at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264) | 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:99) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at
[jboss-user] [EJB/JBoss] - Re: @TransactionAttribute ignored on generic interface metho
Bug, for the status check http://jira.jboss.com/jira/browse/EJBTHREE-685 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964537#3964537 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964537 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: AccessControlException on generated classes due to missi
Hi Sure, just created: http://issues.apache.org/jira/browse/HIVEMIND-181 Watch it, vote for it :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964538#3964538 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964538 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - could not dereference object
Hi, I'm using jboss4.0.3. I want to reference my jsp page to EJB but get a could not dereference object upon running the jsp with this as it went into the catch exception instead of looking up to the EJB: try { | Context initial = new InitialContext(); | Object objref = initial.lookup(java:comp/env/ejb/EJBMusic); | System.out.println(lookup success for ejb/EJBMusic); | // a reference to the home interface is shareable | musicHome = (MusicIteratorHome)PortableRemoteObject.narrow(objref, MusicIteratorHome.class); | System.out.println(created MusicIteratorHome object); | | objref = initial.lookup(java:comp/env/ejb/MyMusicCart); | System.out.println(lookup success for ejb/MyMusicCart); | // a reference to the home interface is shareable | cartHome = (MusicCartHome)PortableRemoteObject.narrow(objref, MusicCartHome.class); | System.out.println(created MusicCartHome object); | | } catch (Exception ex) { | System.out.println(Unexpected Exception: +ex.getMessage()); My web.xml ejb-ref | ejb-ref-nameejb/EJBMusic/ejb-ref-name | ejb-ref-typeSession/ejb-ref-type | homeasg.MusicEJB.MusicIteratorHome/home | remoteasg.MusicEJB.MusicIterator/remote | ejb-linkejb-jar-iterator.jar#MusicIteratorBean/ejb-link | /ejb-ref | | ejb-ref | ejb-ref-nameejb/MyMusicCart/ejb-ref-name | ejb-ref-typeSession/ejb-ref-type | homeasg.MusicCartEJB.MusicCartHome/home | remoteasg.MusicCartEJB.MusicCart/remote | ejb-linkejb-jar-ic.jar#MusicCartBean/ejb-link | | /ejb-ref I did not include any jboss-web.xml or jboss.xml. Is it i need to include them before it can work? Please help, i have been solving this problem for days View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964540#3964540 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964540 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Update JBoss to maintain security?
aq12ws wrote : Hi , | Are you talking about securing the JBoss or upgrading ? | I intended to ask, if I should upgrade JBoss to the latest patchlevel for security reasons. E.g. It is recommended to upgrade apache 2.0.x to the latest version 2.0.58, because security-holes have been fixed in this version. Is this also best practice for JBoss - so if I use 3.2.3 should I go for 3.2.8 SP1 to have all known bugs fixed... or are there no security-related fixes in JBoss? aq12ws wrote : | The out of the box JBoss intallation is not secure . If u expose the jmx-console , your server can be shutdown from the web itself . | If u are talking about security issues like this then i can provide more information on that ,. | The server has been setup with regard to security a while ago (not from me)... and of course is not fully exposed to the net. Anyhow - I would be very interested in more information on securing JBoss to double-check our settings and learn from more experienced users... Thx for the help, Thorsten View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964541#3964541 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964541 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Graceful logout and friendly login ? How to?
Update: I managed to get the view id using two independent approaches: The first approach gets the view id from the request parameter map using the key jsf_viewid. I am not sure whether this key is standard or specific to an implementation of JSF. | @In(value=#{facesContext.externalContext.requestParameterMap}) | private Map reqParam; | | public String login(){ | String viewId = reqParam.get(jsf_viewid).toString(); | } | The second approach gets the view id from the UIViewRoot. | @In | private FacesContext facesContext; | | public String login(){ | UIViewRoot view = facesContext.getViewRoot(); | String viewId = view.getViewId(); | } | Now I am left with one problem, that is getting the old GET request parameters from the URL as in http://localhost:8080/blogEntry.jsf?id=35. The reqParam map above contains the parameters passed by the POST request but not the old GET request. Is there a way to capture the current URL when the user clicks on login? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964543#3964543 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964543 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: external config directories in jboss
have you tried setting the java options differently? there is one called: jboss.server.config.url maybe you just need to set this option to whatever directory you like? I haven't tried it myself, but maybe it helps. For more possible options see the class: ServerConfig.java View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964544#3964544 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964544 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: The pageflow attribute of @Begin not always processed pr
No it is not a bug, here is a quote from the docs anonymous wrote : We start a jPDL-based pageflow by specifying the name of the process definition using a @Begin, @BeginTask or @StartTask annotation | @Begin(pageflow=numberguess) | public void begin() { ... } View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964545#3964545 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964545 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Disabling or Securing the Tomcat Status page in the JMX-
Just completely throw out ROOT.war. Btw.: the web-console will - if not secured - also show you at least all mbeans with all attributes. This is hidden in the management/ folder. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964546#3964546 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964546 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: The process class loader issue
Yang, This is such a simple thing to try first, that we would appreciate that very much. If things go not as expected, please report back View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964548#3964548 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964548 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Error in node--TaskNode
That is no problem, but I assume your understand java and that errors are in most cases displayed in stacktraces. Posting that would realy help us helping you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964549#3964549 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964549 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Starting embeddable EJB3 server
You can find all downloads via www.jboss.org = EJB 3.0 Download etc. The functionality of the embedded stack is more limited than the full EJB3 stack, so if it works in embedded it should work in full. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964550#3964550 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964550 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: SocketException with an MDPOJO
Hello Malte, i have the same problem. Do you have meantime a solution ? greetings yog View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964552#3964552 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964552 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: The process class loader issue
kukeltje wrote : Yang, | | This is such a simple thing to try first, that we would appreciate that very much. If things go not as expected, please report back :-) I found that kukeltje has always blur response:) i will try of course. yang View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964553#3964553 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964553 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Proxy problem
Hello! I've a little problem over here. I want to create a simple stand-alone client, which creates a bean and invokes a method on it. Here's the code for beans: package bean; | | import javax.ejb.Stateless; | | @Stateless | public class CreaterRemote implements Creater { | | public Foo create() { | return new FooRemote(); | } | | } package bean; | | import javax.ejb.Stateful; | | @Stateful | public class FooRemote implements Foo, java.io.Serializable { | | private static final long serialVersionUID = 7316005043521549778L; | private String name = Hello!; | | public String print() { | return this.name; | } | | } The code of the client: package client; | | import java.util.Properties; | | import javax.naming.Context; | | import bean.Creater; | import bean.Foo; | | public class Client { | public static void main(String [] args) { | try { | | Context jndiContext = getInitialContext( ); | Object ref = jndiContext.lookup(CreaterRemote/remote); | Creater factory = (Creater)ref; | | Foo foo = factory.create(); | | System.out.println(foo.print()); | | } catch (javax.naming.NamingException ne){ne.printStackTrace( );} | } | | public static Context getInitialContext( ) | throws javax.naming.NamingException { | | Properties p = new Properties( ); | p.put(Context.INITIAL_CONTEXT_FACTORY, | org.jnp.interfaces.NamingContextFactory); | p.put(Context.URL_PKG_PREFIXES, | org.jboss.naming:org.jnp.interfaces); | p.put(Context.PROVIDER_URL, localhost); | return new javax.naming.InitialContext(p); | } | } The client class is situated in the other project with remote interfaces imported. When i try to ru it, the following errors occure: Exception in thread main java.lang.reflect.UndeclaredThrowableException | at $Proxy1.create(Unknown Source) | at client.Client.main(Client.java:18) | Caused by: java.lang.ClassNotFoundException: bean.Foo | at java.net.URLClassLoader$1.run(Unknown Source) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(Unknown Source) | at java.lang.ClassLoader.loadClass(Unknown Source) | at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) | at java.lang.ClassLoader.loadClass(Unknown Source) | at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50) | at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139) | at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source) | at java.io.ObjectInputStream.readClassDesc(Unknown Source) | at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) | at java.io.ObjectInputStream.readObject0(Unknown Source) | at java.io.ObjectInputStream.readObject(Unknown Source) | at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:122) | at java.io.ObjectInputStream.readExternalData(Unknown Source) | at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) | at java.io.ObjectInputStream.readObject0(Unknown Source) | at java.io.ObjectInputStream.defaultReadFields(Unknown Source) | at java.io.ObjectInputStream.readSerialData(Unknown Source) | at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) | at java.io.ObjectInputStream.readObject0(Unknown Source) | at java.io.ObjectInputStream.readObject(Unknown Source) | at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128) | at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66) | at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279) | at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143) | at org.jboss.remoting.Client.invoke(Client.java:525) | at org.jboss.remoting.Client.invoke(Client.java:488) | at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) |
[jboss-user] [JBoss Seam] - Re: The pageflow attribute of @Begin not always processed pr
I agree with this. So in my example, if the jsp calls directly the delegate method that has the @begin(pageflow=...), then the flow starts as expected. Now if the jsp calls the testOne method which in turn calls the delagate methods, then the pageflow is not started. This means that the flow cannot be started by from within the ejb? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964556#3964556 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964556 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Can actual and alias IP share the same port
Hi, anonymous wrote : I am being stumped by http://dynamic.jboss.non-ssl:8080 application, Is there any way to run dynamic.jboss.non-ssl application without using the port 8080 in URL, like http://dynamic.jboss.non-ssl I just fixed this problem, referred by the following three URLs, actually I was goofed up with the Apache's httpd.conf and mod_jk's mod_jk.conf and workers.properties file. 1. http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html 2. http://www.velocityreviews.com/forums/t125433-install-tomcat-as-apache-module-on-another-port-than-8080.html 3. http://www.debianhelp.co.uk/apachetomcat.htm Thanks Ramesh. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964557#3964557 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964557 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - delegation for ActionHandler - what am I missing?
I have the following node in my process: node name=sensor news | action name=conduct news sensor class=com.paconsulting.cucumber.rules.impl.RulesActionHandler config-type=bean | ruleEngineJndiNamejava:/cucumber/RulesEngine/ruleEngineJndiName | ruleBaseNamenews-sensor/ruleBaseName | /action | transition to=check errors/transition |/node The entire process deploys fine. The ActionHandler code is, simply: package com.paconsulting.cucumber.rules.impl; | | imports... | | public class RulesActionHandler implements ActionHandler { | private static final long serialVersionUID = 1L; | | private static Log log = LogFactory.getLog(RulesActionHandler.class); | | private String ruleEngineJndiName = ; | private String ruleBaseName = ; | | public String getRuleBaseName() { | return ruleBaseName; | } | public void setRuleBaseName(String ruleBaseName) { | this.ruleBaseName = ruleBaseName; | } | public String getRuleEngineJndiName() { | return ruleEngineJndiName; | } | public void setRuleEngineJndiName(String ruleEngineJndiName) { | this.ruleEngineJndiName = ruleEngineJndiName; | } | | private RulesEngine getRulesEngine() { | snip | } | public void execute(ExecutionContext executionContext) throws Exception { | long engineId = getRulesEngine().createNewEngine(getRuleBaseName()); | assertVariables(engineId,executionContext.getContextInstance().getVariables()); | getRulesEngine().fireRules(engineId); | refreshVariables(engineId,executionContext.getContextInstance().getVariables()); | } | private void assertVariables(long engineId, Map variables) { | snip | } | private void refreshVariables(long engineId, Map variables) { | snip | } | } When the process engine reaches this node, is tells me: 11:15:07,172 ERROR [BeanInstantiator] couldn't set property 'ruleEngineJndiName' to value 'ruleEngineJndiNamejava:/cucumber/RulesEngine/ruleEngineJndiName' | 11:15:07,173 ERROR [BeanInstantiator] couldn't set property 'ruleBaseName' to value 'ruleBaseNamenews-sensor/ruleBaseName' | 1 I have tried config-type=field, config-type=bean and leaving config-type out. What am I missing? Thanks, Willem View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964558#3964558 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964558 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Displaying EJBs within JavaScript: what about the EntityMana
Here's the scenario: I have a Servlet which uses JNDI to get a stateless session bean. That stateless session bean has a method like load which loads up one of my entities. So now my Servlet has gotten a hold of its entity bean. Let's say this entity is an Invoice which contains a List of Items. Then the Servlet puts that Invoice object into the request as an attribute, and uses JSP to do the display. The JSP now iterates through the List of Items. Here's the problem: What if that List of Items hasn't been initialized? That List might be just a stub. It needs to get all its Items, and then it needs to get values out of the Items (like price, description, etc). But by now, there is no more entity manager. How can these proxies be resolved in a situation like this? What is the way to handle this? It seems like a common problem. I know that back when I was using Hibernate and plain old Tomcat (not within JBoss), I set up a Filter for everything. The Filter would create a Hibernate Session, load the objects it needed, call doFilter() to actually display everything, and then call session.close() so the session wouldn't be left dangling. What's the right way to do this within JBoss? I have a feeling that the answer might be use Seam, but I don't want to do that at this stage, because a) I have a lot of existing JSPs that I can't rewrite and b) I'm still getting myself comfortable with JBoss / EJB and I don't want to add in yet another technology I need to learn before I can demo this project to customers. Any thoughts on this? By the way, using EJBs within JBoss is quite amazing. I set up my classes, I deploy them, all the tables magically appear, and it is just cool. So this question is the last barrier I have to being able to use EJBs + JBoss as an effective tool. Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964559#3964559 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964559 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: about process-state
Hi erverbody! I've got a similar problem. I've created to process definitions. One includes a process state that should start the other process. I deployed both definitions and I can see them in the database. However when I start the super process i get the followin message: [WARN ] [11 Aug 2006 10:54:25,217] [main] org.hibernate.engine.StatefulPersistenceContext.ProxyWarnLog.Narrowing proxy to class org.jbpm.graph.node.StartState - this operation breaks == The super process instance is created. But the first call to signal() results in an exception. When I analyse the database i see that also the root token has been created. Unfortunately, it never leaves the start state of my super process (the log table in the database shows only a line with the token id and class I but no more occurences of the same token). My processes are:?xml version=1.0 encoding=UTF-8? | | process-definition xmlns=urn:bearingpoint.com:pdl-3.1 | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | name=SuperFlow | | !-- GENERAL PART OF EVERY PROCESS DEFINITION -- | !-- This general action has to be present in order to use the sla functionality -- | action name=slaAction | class=com.bearingpoint.infonova.workflow.jbpm.SlaActionHandler / | | !-- Needed for retry/wait message cleanup after a node is finished -- | event type=node-leave | action name=nodeLeaveAction | class=com.bearingpoint.infonova.workflow.jbpm.NodeLeaveActionHandler / | /event | | start-state name=start | transition name= to=prior sub-process/transition | /start-state |end-state name=end/end-state | node name=prior sub-process | transition name= to=callSubProcess/transition | /node | node name=after sub-process | transition name= to=end/transition | /node | process-state name=callSubProcess | sub-process name=SubFlow/sub-process | transition name= to=after sub-process/transition | /process-state | | /process-definition ?xml version=1.0 encoding=UTF-8? | | process-definition xmlns=urn:bearingpoint.com:pdl-3.1 | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; | name=SubFlow | | !-- GENERAL PART OF EVERY PROCESS DEFINITION -- | !-- This general action has to be present in order to use the sla functionality -- | action name=slaAction | class=com.bearingpoint.infonova.workflow.jbpm.SlaActionHandler / | | !-- Needed for retry/wait message cleanup after a node is finished -- | event type=node-leave | action name=nodeLeaveAction | class=com.bearingpoint.infonova.workflow.jbpm.NodeLeaveActionHandler / | /event | node name=sub-node 1 | transition name= to=sub-node 2/transition | /node | node name=sub-node 2 | transition name= to=sub-node 3/transition | /node | node name=sub-node 3 | transition name= to=end1/transition | /node | start-state name=start | transition name= to=sub-node 1/transition | /start-state | end-state name=end1/end-state | /process-definition Anyone had this problem as well? Or any ideas what this error message means? Thanks a million! roman View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964560#3964560 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964560 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Conversion Error
My user entity | @Entity | @Table(name=USERS) | public abstract class User implements Serializable | { | |private String password; |private ListNames name; |private long id; | | |@Id |@GeneratedValue |public long getId() { | return id; | } | | public void setId(long id) { | this.id = id; | } | | public User(ListNames name, String password) |{ | this.name = name; | this.password = password; | |} | |public User() {} | | | |@NotNull |@Length(min=5, max=15, message=Password must be at least 5 characters) |public String getPassword() |{ | return password; |} |public void setPassword(String password) |{ | this.password = password; |} | | @NotNull | @OneToMany | public ListNames getName() { | return name; | } | | public void setName(ListNames name) { | this.name = name; | } | | |public String toString() |{ | return User( + password + ); |} | } | my AuthorUser class | @Entity | @DiscriminatorValue(AuthorUser) | @Scope(ScopeType.SESSION) | public class AuthorUser extends User implements Serializable { | | public String gender; | public String title; | | public AuthorUser() {} | | | public String getGender() { | return gender; | } | | public void setGender(String gender) { | this.gender = gender; | } | | public String getTitle() { | return title; | } | | public void setTitle(String title) { | this.title = title; | } | | | | } | my registerAction class | @Stateful | | @Scope(ScopeType.SESSION) | | @Name(register) | | public class RegisterAction implements Register | | { | | | |@In(create = true) | |private AuthorUser authorUser; | | | |@In(create = true) | |private Names names; | | | |@Logger | |private Log log; | | | |@PersistenceContext | |private EntityManager em; | | | |@In(create=true) | |private transient FacesMessages facesMessages; | | | |private String verify; | | | |public String register() | |{ | | | | log.info(hi); |} | } | | and my xhtml page | h:form id=testForm | | table border=0 | s:validateAll | | | | tr | tdLastname/td | tdh:inputText value=#{names.lastname} //td | /tr | tr | tdFirstname/td | tdh:inputText value=#{names.firstname} //td | /tr | tr | tdMiddlename/td | tdh:inputText value=#{names.middlename} //td | /tr | | | tr | tdGender/td | tdh:inputText value=#{authorUser.gender} //td | /tr | tr | tdTitle/td | tdh:inputText value=#{authorUser.title} //td | /tr | tr | tdPassword/td | tdh:inputText value=#{authorUser.password} //td | /tr | | | tr | td/td | tdh:commandButton value=Submit action=#{register.register} //td | /tr | /s:validateAll | h:messages / | /table | | /h:form | | By submiting the form I get conversion error for authorUser.title,gender and password.. View the original post :
[jboss-user] [JBoss Seam] - Re: Conversion Error
I have The Names class named names but not the AuthorUser View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964565#3964565 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964565 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: EAR deployment issues
anonymous wrote : 2)I am placing WEB-INF/lib outside war in common.jar (EAR classloader level) but war can not find the required classes from coomon.jar You will have to add the following entry to application.xml file which is present in the META-INF directory: module | javaCommon.jar/java | /module View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964568#3964568 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964568 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: The pageflow attribute of @Begin not always processed pr
Ok, so that explain why the flow would not start that way. Thanks for the explaination. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964569#3964569 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964569 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - java.net.SocketException: socket closed
Hello together, i'm having following problem. I use: JBOSS jboss-4.0.4.GA and EJB3. see the ERROR-CODE: | java.io.IOException: Client is not connected | at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:265) | at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:239) | at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:128) | at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:396) | at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748) | at java.lang.Thread.run(Thread.java:595) | 2006-08-11 11:19:17,265 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to send error reply | java.io.IOException: Client is not connected | at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:265) | at org.jboss.mq.il.uil2.SocketManager.access$800(SocketManager.java:52) | at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:409) | at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392) | at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748) | at java.lang.Thread.run(Thread.java:595) | 2006-08-11 11:19:17,265 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run | 2006-08-11 11:19:17,265 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE | java.net.SocketException: socket closed | at java.net.SocketInputStream.socketRead0(Native Method) | at java.net.SocketInputStream.read(SocketInputStream.java:129) | at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) | at java.io.BufferedInputStream.read(BufferedInputStream.java:235) | at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79) | at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2205) | at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2385) | at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2452) | at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2524) | at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2673) | at java.io.ObjectInputStream.readByte(ObjectInputStream.java:874) | at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317) | at java.lang.Thread.run(Thread.java:595) | I have a Client (normally Java Class) to send the messages and a MessageDrivenBean to receive the messages (with onMessage()). The problem is when session.close() and connection.close() !!! What do I make wrong? greetings yog View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964571#3964571 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964571 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Proxy problem
anonymous wrote : Caused by: java.lang.ClassNotFoundException: bean.Foo bean.Foo needs to be placed in the client's classpath. Make it (the class/jar) available in the client's classpath to resolve the issue. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964573#3964573 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964573 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: EAR deployment issues
Post the exception stacktrace that you are seeing(Use the code button to wrap the contents in Code block, while posting) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964575#3964575 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964575 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Bean extends SelectItem
Let me clarify few things First, @Local is used to mark your local interface and @Entity is used to mark an implementation of the interface. So using them together does not make much sense. Second, SelectItem is a model that holds the state of a single item of a JSF component. It is meant for JSF so do not use it for your entity bean. I would suggest that you get a list of the items you want to present and pass them to the value attribute of selectItems tag. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964577#3964577 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964577 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration Deployment] - Re: Update JBoss to maintain security?
how to make session beans secure and entity beans insecure in jboss.xml View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964578#3964578 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964578 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Proxy problem
jaikiran wrote : bean.Foo needs to be placed in the client's classpath. Make it (the class/jar) available in the client's classpath to resolve the issue. | Yes, then it works - I've tried this. But what's the benefit of the client program then? It contains all the interfaces and implementations like the bean itself. In the books about JBoss they say I do nat have to generate stubs myself but the server does this work for me. And the Context passes this srubs to the clint during the runtime. When I used Sun Application Server the server generated stubs, either. But then I took generated jars and imported them to my project - everything worked fine. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964580#3964580 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964580 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - process starts automatically or by some external application
hi friends is it possible to start the process through some external application or we can configure such that process starts itself. thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964583#3964583 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964583 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Proxy problem
jaikiran wrote : anonymous wrote : It contains all the interfaces and implementations like the bean itself | | No. The client classpath just has to have the interfaces of the bean and NOT the bean implementation. Yess... Sorry I misunderstood you :) Right, I've imported bean interfaces - but that doesn't work anyway. I've paid attention on one interesting thing. When we lookup our bean, we lookup our bean implementation class, but not it's interface: Object ref = jndiContext.lookup(CreaterRemote/remote); As I understand the clent class must not know about bean implementation classes at all, but here we lookup implementation class CreaterRemote. I've tried to write this example on the base of the book O'Reilly Enterprise JavaBeans, 3.0 There when they lookup bean, they lookup the implmentation class. Maybe the /remote statement tells that we are lookin up to the remote interface, but I haven't found any information concerning this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964584#3964584 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964584 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Proxy problem
anonymous wrote : As I understand the clent class must not know about bean implementation classes at all, but here we lookup implementation class CreaterRemote No. That's not the case. The name that you are specifying as the argument to the lookup method is the jndi name to which the bean is bound. Its NOT the name of the bean implementation class. The jndi name can be configured to be anything(even 'xyz'). In this example, just for simplicity they have used the jndi name same as the bean implementation classname View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964585#3964585 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964585 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JSR181 Web Service Client
I actually do have the endpoint as an annotated stateless session bean; the problem appears to be on the client side when I try to consume the service using JAX-WS. Thanks, Tim View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964586#3964586 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964586 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Proxy problem
Aha! Got it, thanks a lot! But I do not use xml deployment descriptors, but annotations. Maybe you can tell me, if I can specify the name for my interface before deployment and how I do it? Suppose I've changed remote interface's name, but for simplicity let it left as is now. But why then my program crashes? The same thing with the examples fro the book mentioned above. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964587#3964587 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964587 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: messages working only in one node of cluster
Clarification question. Are you using JBoss Messaging or JBoss MQ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964590#3964590 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964590 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Proxy problem
anonymous wrote : But why then my program crashes? Post the exception stacktrace, lets see what the issue is. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964589#3964589 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: messages working only in one node of cluster
we're using JBoss MQ with JBoss 3.2. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964593#3964593 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964593 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: HELP: javax.naming.NameNotFoundException: comp not bound
I just resolve it. :) Not the comp not bound but the @Resource and @TimerService not working problem. I always tried to work with TimerService or SessionContex in a constructor and got the NPE. All i had to do is to try this in a method not in the constructor :) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964594#3964594 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964594 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: messages working only in one node of cluster
whom are you asking the question? Me? JBossMessaging. Gone those days with MQ! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964592#3964592 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: JBoss 4.0.4SP1/XP MBean AttributePersistenceService depe
I'm happy to: | ?xml version=1.0 encoding=UTF-8? | | service | | mbean code=com.xerox.client.hfs.management.ClientHFSInboundMonitor | name=medco-hfs:name=HFSInboundMonitor | xmbean-dd= | dependsjboss:service=AttributePersistenceService/depends | | xmbean | descriptionClient Hosted Fax Service Inbound Configuration/description | descriptors | persistence persistPolicy=OnUpdate/ | persistence-manager | value=org.jboss.mx.persistence.DelegatingPersistenceManager/ | /descriptors | classcom.xerox.client.hfs.management.ClientHFSInboundMonitor/class | | !-- Attributes -- | | | /xmbean | | /mbean | | | /service | (I've stripped out all the attribute and operation definitions from inside the xmbean tag for brevity's sakee - Matt View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964595#3964595 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964595 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence unit dependency failure on deploy
I am not sure if this works or not as I have not tried it myself but according to the Burke EJB 3.0 book, you can add the jar-file element to the persistence.xml that will scan additional jar files for classes to add to the persistence set. If you have the book, see page 70. I'll be curious to whether it works myself. Scott View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964596#3964596 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964596 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: about process-state
the message you get is a WARNING and can be safely ignored. If you get an error, please post the stacktrace of that error, we cannot guess. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964598#3964598 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964598 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: could not dereference object
vitalstrike82 wrote : Hi, | I'm using jboss4.0.3. I want to reference my jsp page to EJB but get a could not dereference object upon running the jsp with this as it went into the catch exception instead of looking up to the EJB: | | try { | | | | objref = initial.lookup(java:comp/env/ejb/MyMusicCart); | | System.out.println(lookup success for ejb/MyMusicCart); | | // a reference to the home interface is shareable | | cartHome = (MusicCartHome)PortableRemoteObject.narrow(objref, MusicCartHome.class); | | System.out.println(created MusicCartHome object); | | | | } catch (Exception ex) { | | System.out.println(Unexpected Exception: +ex.getMessage()); | | My web.xml | [code | ejb-ref | ejb-ref-nameejb/MyMusicCart/ejb-ref-name | ejb-ref-typeSession/ejb-ref-type | asg.MusicCartEJB.MusicCartHome | asg.MusicCartEJB.MusicCart | ejb-linkejb-jar-ic.jar#MusicCartBean/ejb-link | | /ejb-ref View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964599#3964599 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964599 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: delegation for ActionHandler - what am I missing?
if you have a junit test case for this I'll have a look, send it to ronald ( at ) jbpm . org One thing that you could try is making the variables public, but that should not be needed afaik. btw, what version of jbpm are you using View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964600#3964600 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964600 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - could not dereference object when running the EJB
Hi, I'm using jboss4.0.3. I want to reference my jsp page to EJB but get a could not dereference object upon running the jsp with this as it went into the catch exception instead of looking up to the EJB: try { | | objref = initial.lookup(java:comp/env/ejb/MyMusicCart); | System.out.println(lookup success for ejb/MyMusicCart); | // a reference to the home interface is shareable | cartHome = (MusicCartHome)PortableRemoteObject.narrow(objref, MusicCartHome.class); | System.out.println(created MusicCartHome object); | | } catch (Exception ex) { | System.out.println(Unexpected Exception: +ex.getMessage()); My web.xml | ejb-ref | ejb-ref-nameejb/MyMusicCart/ejb-ref-name | ejb-ref-typeSession/ejb-ref-type | asg.MusicCartEJB.MusicCartHome | asg.MusicCartEJB.MusicCart | ejb-linkejb-jar-ic.jar#MusicCartBean/ejb-link | | /ejb-ref | Can anyone encounter this problem before? Please help View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964601#3964601 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964601 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: delegation for ActionHandler - what am I missing?
Ooops Maybe I should have deployed the new services jar Thanks for triggering that in my tired brain! Willem View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964605#3964605 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964605 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - DatabaseServerLoginModule caching credentials problem
I'm using this login module to get user and roles, when admin changes user password, user can use both old and new password while login, until he first time use new password. old password is cached somewere (probably in sharedState object of loginModule), how can I force clearing this cache? Im using jaas on clientLoginModule side and use sessionbeans from this (swing) client View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964606#3964606 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964606 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: DatabaseServerLoginModule caching credentials problem
me again, I've read wiki about caching but: do i need to change securitydomain from jmx-console to my securitydomain? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964609#3964609 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964609 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Porting a simple RMI client-server app to JBoss
Hello, zen fans of JBoss, I am pretty much new to JBoss. I have read a few articles, searched about the different alternatives and decided to give JBoss a real try. But, what I am trying to do is rather unusual, and it's a huge challenge to find documentation on that specific topic. I have an 'old' application, that I have been writing for 2 years now. It's a simple RMI client-server application, backed by a database on the server-side. It's a standalone RMI server, and the client is a simple Swing client, connecting to the server through a single exported object. I want to port that application into a JBoss server, for flexibility and future extendability. As a matter of fact, I want to integrate email sending functionnalities and soon add web capabilities to access the data contained in the system. JBoss seemed the way to go. So... how can I do that, with minimum hassle? I have my JBoss server setup on my dev machine, but now how do I tell JBoss Hey, dude, boot that thing up!... It used to be a simple main() method starting the whole server program, opening up the RMI registry on a specified port and exporting the server object on it. I'd guess i need to wrap my program in a EAR package, with some descriptor to tell the server there is an exportable (or do I need to implement activatable?) object in there and it needs to be exported on an RMI registry?.. Or, would I need to wrap my application inside an EJB? Well, if you have ideas, I'd love to hear them. Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964611#3964611 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964611 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Step-by-Step Seam Getting Started Guide
anonymous wrote : seam.sh is missing the following parameter that seam.bat has. | if [ ${seamtask} = scaffold-wtp-project ] | then | ant new-project -Dproject.name=${projectname} -Dscaffold=true | fi Another good catch! I fixed seam.sh in seam-gen, so that won't screw up others. anonymous wrote : An EJB module must contain one or more enterprise beans. still remains.. I don't have OS/X so I'll have to defer to someone else who can identify what's still wrong with the sample eclipse project on mac. James View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964612#3964612 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964612 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Will there be a JBoss 3.2.x with Xalan 2.7?
Well, we patched xalan ourselves and the leak is gone. I am a little bit surprised, that I did not get any answer here. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964613#3964613 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964613 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Clustering problem
Greetings all. We have two nodes, each on its own Win 2000 server, in our production environment. A couple of weeks ago we had to reboot the servers and restart the JBoss instances. Both instances started fine but they no longer see each other as a cluster. No changes where made to cluster-service.xml on either server. I can't seem to find out why they can't see each other anymore. Here is a snipet from cluster-service.xml: attribute name=PartitionConfig | Config | !-- UDP: if you have a multihomed machine, | set the bind_addr attribute to the appropriate NIC IP address -- | !-- UDP: On Windows machines, because of the media sense feature | being broken with multicast (even after disabling media sense) | set the loopback attribute to true -- | !--UDP mcast_addr=228.1.2.3 mcast_port=45566-- | UDP mcast_addr=228.1.2.1 mcast_port=45566 | | ip_ttl=32 ip_mcast=true | mcast_send_buf_size=80 mcast_recv_buf_size=15 | ucast_send_buf_size=80 ucast_recv_buf_size=15 | loopback=true / | PING timeout=2000 num_initial_members=3 | up_thread=true down_thread=true / | MERGE2 min_interval=1 max_interval=2 / | FD shun=true up_thread=true down_thread=true | timeout=2500 max_tries=5 / | VERIFY_SUSPECT timeout=3000 num_msgs=3 | up_thread=true down_thread=true / | pbcast.NAKACK gc_lag=50 retransmit_timeout=300,600,1200,2400,4800 |max_xmit_size=8192 |up_thread=true down_thread=true / | UNICAST timeout=300,600,1200,2400,4800 window_size=100 min_threshold=10 | down_thread=true / | pbcast.STABLE desired_avg_gossip=2 |up_thread=true down_thread=true / | FRAG frag_size=8192 | down_thread=true up_thread=true / | pbcast.GMS join_timeout=5000 join_retry_timeout=2000 | shun=true print_local_addr=true / | pbcast.STATE_TRANSFER up_thread=true down_thread=true / | /Config | /attribute | Note the mcast_addr is 228.1.2.1. I tried executing the Draw demo program to test things, one instance on each server, and nothing was shared. I did notice however that in the log that is displayed by the Draw program the mcast_addr=228.8.8.8. It was the same on both servers. I am at a loss and am looking for any and all suggestions. Thanks in advance!!! Earnie! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964617#3964617 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964617 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Explicit document source root using context/docbase
check out http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingContextDotXML cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964618#3964618 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964618 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: How to set default mapping to TEXT instead of VARCHAR(25
I have the same problem (I have to store a VARCHAR(5000) on MySQL 4 (witch as WARCHAR limited to 255)). I'm not sure it will work but I have found that the mapping file is in : $JBOSS_HOME\serveur\default\conf\standardjbosscmp-jdbc.xml You have the mapping for each type of Bdd. For my case, I have change the type-mapping |namemySQL/name |... | mapping | java-typejava.lang.String/java-type | jdbc-typeVARCHAR/jdbc-type | sql-typeVARCHAR(250) BINARY/sql-type | /mapping | /type-mapping by : type-mapping |namemySQL/name |... | mapping | java-typejava.lang.String/java-type | jdbc-typeVARCHAR/jdbc-type | sql-typeTEXT/sql-type | /mapping | /type-mapping It seams to work fine after a Jboss reboot. Dont forget to select your database type in your xxx-ds.xml file metadata |type-mappingmySQL/type-mapping | /metadata View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964603#3964603 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964603 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: delegation for ActionHandler - what am I missing?
You're welcome :-) btw, services jar? You mean generic classes not included in the process archive? Did you deploy these on the classpath or some other way? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964623#3964623 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964623 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: JAAS multi-threaded=true causing SecurityException princ
sdegenaar, anonymous wrote : We have setup a seperate tomcat installation How does Tomcat's security system interface with JBoss' in your environment? Also you may want to read security chapter of server guide at http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch8.chapter.html cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964625#3964625 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964625 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: Problems with my security proxy
fosodquez, The ClientLoginModule does not have any authentication logic, so if that is your only login module, then you are not authenticating. cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964627#3964627 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964627 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: The process class loader issue
Thank you ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964631#3964631 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964631 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - condition tag on transition
I'm completly new at Jbpm I used a decision nodType and apply a condition on each transition resulting from the decision. So I used the following syntax materiel_garantie = oui The app does deploy correctly. But when I click on : Save and close button (default button of the Jbpm webapp), the task close, but the process doesn't cntinue. Wondering if my syntax is correct or not. I tryed looking in this forum, on http://docs.jboss.org/jbpm/xsd/jpdl-3.1.xsd, the Jbpm user guide but can't find the information. any ideas ? thx thx St View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964633#3964633 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964633 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Explicit document source root using context/docbase
Thanks for the suggestion. I had already seen the UsingContextDotXML wiki entry. This entry presumes that I have a web-app root directory, say MyWebApp.war, located in the jboss-install\server\default\deploy\jbossweb-tomcat55.sar directory. The entry says to put the context.xml file in MyWebApp.war\WEB-INF. My whole purpose is to put the MyWebApp.war directory somewhere else, outside of the JBoss install directory. But I tried it anyway. I put an empty MyWebApp.war directory with WEB-INF in the jbossweb-tomcat55.sar directory. I put my context.xml file in WEB-INF. Here are the contents of the context.XML file: Context docBase=c:/MyLocation/MyWebApp.war reloadable=true | /Context In the c:/MyLocation/MyWebApp.war directory I put the full deployment tree, including WEB-INF, that would normally go under the jbossweb-tomcat55.sar directory. With this configuration I get a 404 error on any jsp that I try to hit. Not sure if I could put the docBase value inside jboss-web.xml instead of context.xml. Can't find documentation of the allowed contents of jboss-web.xml. It seems like there should be a way to define a web-app/context outside of the root directory for the web-app/context and specify the location of the root directory. Otherwise, there is a catch-22. I want to specify the root location of my web-app, but jboss/tomcat has to look inside the root location of my web-app to read the configuration info. I'm close to giving up on this one. Is there anyone associated with JBoss development who can offer help? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964635#3964635 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964635 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Hibernate and JBOSS JTA failed transactions
I am still dealing with this issue, does anyone have any ideas? its just weird because some transactions work, some fail. I would say about 25% work here are some shorter more recent server logs that illustrate the problem Unsuccessful Transaction 2006-08-10 11:55:54,031 INFO [STDOUT] Update Called 2006-08-10 11:55:54,031 INFO [STDOUT] ***Account Save*** 2006-08-10 11:55:54,031 INFO [STDOUT] AcctID: 325 2006-08-10 11:55:54,031 INFO [STDOUT] AcctNum: 5106 2006-08-10 11:55:54,031 INFO [STDOUT] AcctName: Test3 2006-08-10 11:55:54,031 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] JNDI lookup: hibernate/SessionFactory 2006-08-10 11:55:54,031 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] lookup: uid=402882a50cf90095010cf900970d 2006-08-10 11:55:54,031 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization 2006-08-10 11:55:54,031 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4731817795710976 2006-08-10 11:55:54,031 DEBUG [org.hibernate.transaction.JTATransaction] Looking for UserTransaction under: UserTransaction 2006-08-10 11:55:54,031 DEBUG [org.hibernate.transaction.JTATransaction] Obtained UserTransaction 2006-08-10 11:55:54,031 DEBUG [org.hibernate.transaction.JTATransaction] begin 2006-08-10 11:55:54,031 DEBUG [org.hibernate.transaction.JTATransaction] commit Successful Transaction 2006-08-10 11:56:14,578 INFO [STDOUT] Update Called 2006-08-10 11:56:14,578 INFO [STDOUT] ***Account Save*** 2006-08-10 11:56:14,578 INFO [STDOUT] AcctID: 167 2006-08-10 11:56:14,578 INFO [STDOUT] AcctNum: 5104 2006-08-10 11:56:14,578 INFO [STDOUT] AcctName: Salaries - Adjustments 2006-08-10 11:56:14,578 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] JNDI lookup: hibernate/SessionFactory 2006-08-10 11:56:14,578 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] lookup: uid=402882a50cf90095010cf900970d 2006-08-10 11:56:14,578 DEBUG [org.hibernate.jdbc.JDBCContext] TransactionFactory reported no active transaction; Synchronization not registered 2006-08-10 11:56:14,578 DEBUG [org.hibernate.impl.SessionImpl] opened session at timestamp: 4731817879871488 2006-08-10 11:56:14,578 DEBUG [org.hibernate.transaction.JTATransaction] Looking for UserTransaction under: UserTransaction 2006-08-10 11:56:14,578 DEBUG [org.hibernate.transaction.JTATransaction] Obtained UserTransaction 2006-08-10 11:56:14,578 DEBUG [org.hibernate.transaction.JTATransaction] begin 2006-08-10 11:56:14,578 DEBUG [org.hibernate.transaction.JTATransaction] Began a new JTA transaction 2006-08-10 11:56:14,578 DEBUG [org.hibernate.jdbc.JDBCContext] successfully registered Synchronization 2006-08-10 11:56:14,578 DEBUG [org.hibernate.transaction.JTATransaction] commit 2006-08-10 11:56:14,578 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] processing flush-time cascades 2006-08-10 11:56:14,578 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] dirty checking collections 2006-08-10 11:56:14,578 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 insertions, 1 updates, 0 deletions to 1 objects 2006-08-10 11:56:14,578 DEBUG [org.hibernate.event.def.AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections 2006-08-10 11:56:14,578 DEBUG [org.hibernate.pretty.Printer] listing entities: 2006-08-10 11:56:14,578 DEBUG [org.hibernate.pretty.Printer] com.stlouiscity.budget.database.beans.AccountBean{acctNum=5104, acctName=Salaries - Adjustments, acctId=167} 2006-08-10 11:56:14,578 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0) 2006-08-10 11:56:14,578 DEBUG [org.hibernate.jdbc.ConnectionManager] opening JDBC connection 2006-08-10 11:56:14,625 DEBUG [org.hibernate.SQL] update Budget.Account set Acct_Num=?, Acct_Name=? where Acct_ID=? 2006-08-10 11:56:14,625 INFO [STDOUT] Hibernate: update Budget.Account set Acct_Num=?, Acct_Name=? where Acct_ID=? 2006-08-10 11:56:14,625 DEBUG [org.hibernate.jdbc.AbstractBatcher] Executing batch size: 1 2006-08-10 11:56:14,625 DEBUG [org.hibernate.jdbc.AbstractBatcher] success of batch update unknown: 0 2006-08-10 11:56:14,625 DEBUG [org.hibernate.jdbc.AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1) 2006-08-10 11:56:14,625 DEBUG [org.hibernate.jdbc.ConnectionManager] skipping aggressive-release due to flush cycle 2006-08-10 11:56:14,625 DEBUG [org.hibernate.jdbc.ConnectionManager] aggressively releasing JDBC connection 2006-08-10 11:56:14,625 DEBUG [org.hibernate.jdbc.ConnectionManager] releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)] 2006-08-10 11:56:14,625 DEBUG [org.hibernate.transaction.JTATransaction] Committed JTA UserTransaction View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964636#3964636 Reply to the post :
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Explicit document source root using context/docbase
If you don't want my help, I'll be happy to move on. In past versions of Tomcat, context elements were added to the server.xml config file. Now that is discouraged in favor of web-app specific context.xml files. However, in your case, I think you should add your context configuration inside Tomcat's server.xml file. cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964637#3964637 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964637 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - How do I receive JMS Message from the MBEAN .
How do I receive JMS Message from the MBEAN . Following code is throwing this Exception when I try to register with messageConsumer javax.jms.IllegalStateException: This method is not applicable inside the application server. See the J2EE spec, e.g. J2EE1.4 Section 6.6 | at org.jboss.resource.adapter.jms.JmsSession.checkStrict(JmsSession.java:542) | at org.jboss.resource.adapter.jms.JmsMessageConsumer.setMessageListener(JmsMessageConsumer.java:136) Context context = new InitialContext(); |ConnectionFactory connectionFactory_ = (ConnectionFactory) context | .lookup(TopicConnectionFactory); |Topic topic_ = (Topic) context.lookup(UM_MESSAGEING_TOPIC); |Connection conection_ = connectionFactory_.createConnection(); | Session session_ = conection_.createSession(false | Session.AUTO_ACKNOWLEDGE); |MessageConsumer messageConsumer_ = session_.createConsumer (topic_); | messageConsumer_.setMessageListener(callback); | conection_.start(); Thanks in advance, Niranjan View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964639#3964639 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964639 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - JBoss Cache run from within an application WAR file...
This may belie me not understanding something basic about how Cache works with JBossAS, but here goes.. I'd like to run JBoss Cache on JBossAS, but package it within our application's WAR file. What I haven't been able to find in the wiki/docs/faqs is how to do this, and if you do, whether or not the MBean interface can be accessed from JBoss's console. If this is a matter of Cache needing to be loaded from the JBoss instance's lib directory in order for the console to recognise Cache as manageable, then so be it, but it would be nice to see a Wiki page or an entry in the docs detailing the different ways to install Cache and the comparative benefits of each way. What we are looking to do is to run a cluster of Caches on a cluster of JBoss servers, but we'd like the ability to simply deploy a war to another AS instance and bring up another Cache instance, instead of having to put the Cache jar in the server's lib directory, the cache config xml in the server deploy directory, etc... - and yet still be able to utilise the MBean managablity. This is all assuming JBossAS v4.04 and JBoss Cache 1.4 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964638#3964638 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964638 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Possible to advise EJB3 EntityBeans?
Is it possible to advise EJB3 EntityBeans with JBoss AOP? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964641#3964641 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964641 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - Re: Possible to advise EJB3 EntityBeans?
I tried it without but got only a variety of exceptions. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964642#3964642 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964642 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Explicit document source root using context/docbase
Sorry, I didn't mean to say that your help was not appreciated. The wiki entry that you cited was a useful suggestion. It's just that, at this point, I have read through that entry and all other config documentation that seems to be available, tried all the suggested techniques and none of it seems to work for what I want to do. I tried putting the Context entry under the Host entry of the server.xml file and that did not work either. If I have no MyWebApp.war in the JBoss install path and provide Context entry inside server.xml setting docBase to MyWebApp.war directory located outside of the JBoss install path, I get a series of errors on JBoss startup. Root error seems to be: anonymous wrote : org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed. I can spend some more time researching this error but, before doing that, I was hoping for some confirmation that putting the Context definition inside the server.xml was definitely the correct approach. Like you, I had seen JBoss config docs that suggest not to put Context entries inside of server.xml anymore. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964644#3964644 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964644 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: condition tag on transition
Actually the problem is more basic : I don't know how to work with the condition nodType how to write condition ona transition could be a good first exp ^^ thx thx : ) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964646#3964646 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964646 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: condition tag on transition
- Did you look at the examples as well? - You did look at the forum, but did you searched it? - Do you get an error? - what version of jBPM are you using? - Use preview to see if your post is correct (use code tags) I'm sure the first two items in my reply will help you out. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964649#3964649 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964649 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - EjB Entity
When running JBoss I found the folowing warning and error : Bean : EntityRef Section: 22.2 Warning: The Bean Provider must specify the fully-qualified name of the Java class that implements the enterprise bean's business methods in the ejb-class element. Info : Class not found on 'com.spim.ejb.EntityRefBean': No ClassLoaders found for: com.spim.ejb.EntityRefBean 17:08:37,421 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.3/server/default/deploy/testejb.jar WHAT'S HAPPENING? CAN SOME ONE HELP ME? WHAT CAN I CHANGE? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964652#3964652 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964652 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Question about Seam dvd example and persistence
Why are some EM annotated with EXTENDED and some are not. It seems to me that you would choose an aproach and then use it consistently throughout the application. So the real question is, what does it buy you to have some EJBs that uses EXTENDED transactions and some that don't? Thanks. Eric Ray View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964653#3964653 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: condition tag on transition
I'm using a startkit : \jbpm-starters-kit-3.1 Ive looked into the files contained in : jbpm\src\java.examples \jbpm\src I also looked at the websale example. Currently, my decision nodType just a task_variable. I inserted the following code : ${waranty} = yes between condition tag of the transition tag ... Is my syntax false ? Whatever the value of the waranty variable, the decision nodType keeps on create the sametask :s About the search on this forum, I used the Search function (http://www.jboss.com/index.html?module=bbop=search) using these keywords : decision nodType / decision AND nodType / condition AND syntax View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964654#3964654 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964654 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entities with one/many_to_many relationships and SEAM
Hey, Peter, back to this, I tried to use the additional code for multiple object selection, but for some reason I get the following error while trying to submit the form generated by JSF. 'Conversion Error setting value '1,2' for '#{customer.addresses}'. while '1,2' are the IDs of the selected 'addresses' entity objects. Am I missing anything? seems like this error is generated by JSF itself, and not by the converters or the annotations you have written, thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964656#3964656 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964656 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Clustering problem
Take a look at http://www.jgroups.org/javagroupsnew/docs/manual/html/ch03.html#ItDoesntWork Configure it to use the same multicast address and port as your cluster-service.xml. If you are using the -b switch on JBoss startup, use the bind_addr property the doc describes as well. If that doesn't work, you've got a basic problem with multicast on the machine that your sys admin needs to resolve. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964658#3964658 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964658 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - message driven beans with EJB3
Hi, I'm trying to get a message driven bean to work with ejb3 on jboss 4.0.4.GA I have looked at the trailblazer, the documentation and the wiki but i am not able to get the client to lookup to queue. When i look at the jmx consol at the jndi namespace the queue that i am listening to does not appear. Can someone point me towards a Hello World tutorial or somthing simple to look at. here is the message bean that im using. @MessageDriven(activationConfig = | { | @ActivationConfigProperty(propertyName=destinationType, propertyValue=javax.jms.Queue), | @ActivationConfigProperty(propertyName=destination, propertyValue=queue/mdb) | }) | public class MessageBean implements MessageListener { | | public void onMessage(Message arg0) { | System.out.println(Hello World); | | } | | } Thanks for your help. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964659#3964659 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964659 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Incorrect SQL created by DynamicQL when using left-joins
I am getting an SQLException from the SQL generated by a DynamicQL statement. I did not got this error until I added left-joins to my jbosscmp-jdbc.xml. I will try to explain as best I can the circumstances which have led to this error. I am using Jboss 4.0.3SP1 connecting to a PostgreSQL 8.0.4 server. I have a DynamicQL query, which can look something like this: DYNAMIC-QL: SELECT DISTINCT Object (r) | FROM Recording r | WHERE1=1 | AND r.phoneCall.dateOfCall = ?1 | AND r.phoneCall.dateOfCall = ?2 | AND r.phoneCall.startTime = ?3 | AND r.phoneCall.callCentre.key = ?4 | ORDER BY r.phoneCall.key, r.timestampSequence It can take over 5 minutes to get the results and populate classes with the values from the recording table and all of its CMR fields, so I'm trying to use read-ahead on-find and left-joins to see if that speeds it up. The read ahead is: read-ahead | strategyon-find/strategy | page-size4/page-size | eager-load-group*/eager-load-group | left-join cmr-field=question eager-load-group=*/ | left-join cmr-field=phoneCall eager-load-group=* | left-join cmr-field=interviewerEmp eager-load-group=* | left-join cmr-field=dept eager-load-group=* | left-join cmr-field=parentDept eager-load-group=*/ | /left-join | left-join cmr-field=title eager-load-group=*/ | /left-join | left-join cmr-field=versionStatus eager-load-group=*/ | left-join cmr-field=version eager-load-group=tss | left-join cmr-field=study eager-load-group=*/ | /left-join | left-join cmr-field=dashCase eager-load-group=* | left-join cmr-field=form eager-load-group=* | left-join cmr-field=studyDetail eager-load-group=* | left-join cmr-field=study eager-load-group=* | /left-join | /left-join | /left-join | /left-join | left-join cmr-field=callStatus eager-load-group=*/ | /left-join | left-join cmr-field=monitoringEmp eager-load-group=* | left-join cmr-field=dept eager-load-group=* | left-join cmr-field=parentDept eager-load-group=*/ | /left-join | left-join cmr-field=title eager-load-group=*/ | /left-join | /read-ahead | The SQL generated by this query fails, appearantly because of the strange way it combines left outer joins and WHERE clauses to join the classes together. In the FROM clause: FROM dash.recording t0_r, | dash.phone_call t2_r_phoneCall, | call_centre_view t19_r_phoneCall_callCentre LEFT OUTER JOIN dash.question t1_r_question ON t0_r.question_id=t1_r_question.id | LEFT OUTER JOIN... In there WHERE clause: ...AND t0_r.phone_call_id=t2_r_phoneCall.id | AND t2_r_phoneCall.call_centre_id=t19_r_phoneCall_callCentre.id)) | AND t0_r.phone_call_id=t2_r_phoneCall.id The resulting error is: anonymous wrote : javax.ejb.FinderException: Find failed: java.sql.SQLException: ERROR: relation t0_r does not exist Is there something wrong with the way I'm setting up the left-joins, or might this be a bug in the sql generation code? Thanks in advance for any help, Chris Niermeier View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964660#3964660 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964660 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - bean class has no local, webservice, or remote interfaces de
I too get the same problem when I try to implement EJB Style Webservice and Servlet Style Webservice in the same project (same ear). 2006-08-11 12:16:28,093 DEBUG [org.jboss.ejb3.Ejb3Module] Initialization failed jboss.j2ee:service=EJB3,module=RefDataServletModule-ejb.jar java.lang.RuntimeException: bean class has no local, webservice, or remote interfaces defined and does not implement at least one business interfaceat org.jboss.ejb3.ProxyFactoryHelper.getLocalInterfaces(ProxyFactoryHelper.java:105) at org.jboss.ejb3.ProxyDeployer.initializeLocalBindingMetadata(ProxyDeployer.java:117) at org.jboss.ejb3.SessionContainer.instantiated(SessionContainer.java:71) at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:573) I m using jboss 4.04 GA EJB contianer - jboss-EJB-3.0_RC8-FD and JBoss WS - jbossws-1.0.1.GA Does anyone know Y is this error message comming. Another intresting point is, When i keep only one type of Webservice, that is either EJB Style Web service or Servlet Style web service at a time in the EAR file, every thing works fine. It is only when i keep both the web services in the same EAR file, I get this problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964661#3964661 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - MDB and EJB3--Newbie Question
Hi, I'm trying to get a mdb working with jboss4.0.4.ga however i can't seam to get the examples to run. the ear file deploys but i do not see the queue that i indicate as the destination in the jndi namespace. and as a result i get a name not found exception when i do a context lookup. does anyone have any suggestions as to what i'm missing. here is the code in my example project: [EMAIL PROTECTED](name =MessageBean,activationConfig = | { | @ActivationConfigProperty(propertyName=destinationType, propertyValue=javax.jms.Queue), | @ActivationConfigProperty(propertyName=destination, propertyValue=queue/mdb) | }) | public class MessageBean implements MessageListener { | | public void onMessage(Message arg0) { | ... | | } | | } application.xml?xml version=1.0 encoding=UTF-8? | application | display-namejms2/display-name | module | ejbjms2.jar/ejb | /module | /application jboss-app.xml?xml version=1.0 encoding=UTF-8? | jboss-app | loader-repository | jms2:loader=ejb3 | /loader-repository | /jboss-app Thanks very much -R- View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964662#3964662 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964662 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - thread pool accepting connections
I haven't looked at the code on this yet - hoping its a quick and easy answer from someone :) I'm assuming there is a thread pool behind the server socket connection stuff (allowing a JBoss/Remoting server to process concurrent requests). Is there a way for me to specify my own custom thread pool? Also, how do I access the thread pool to configure it? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964663#3964663 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964663 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: thread pool accepting connections
There is a thread pool associated with the socket server invoker, but not in a traditional sense. The threads in this pool are ServerThreads and are specialized due to their association/mangement of socket connections. Can find more details at http://labs.jboss.com/portal/jbossremoting/docs/guide/ch05.html#d0e1120. In short, there is no way to set own custom thread pool for this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964664#3964664 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964664 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security JAAS/JBoss] - Re: Problems with my security proxy
hi j2ee_junkie, I know ClientLofinModules hasn't any authenticacton logic, I'm following what it's said in this document, point 8.4.1: http://docs.jboss.org/jbossas/jboss4guide/r2/html/ch8.chapter.html Login client side has done sucessfully and after doing lc.login() () if I put this line lc.getSubject().getPrincipals() I get as principal the name I have filled in the username field. In the second step it is said that if i obtain the EJB home interface and create a bean, this results in a home interface method invocation being sent to the JBoss server. The invocation includes the method arguments passed by the client along with the user identity and credentials from the client-side JAAS login performed in step 1. To invoke create method calls first setEJBContext (EJBContext ctx) but ctx is null and then invokeHome method. If i want to do an authentication in the server side I need to know the principal and the credential obtained in first step. How can i get the principal obtained in the first step in security proxy without sending them as parameters when i invoke create method if ctx is null in sec proxy? Thanks View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964665#3964665 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964665 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS JBossMQ] - Is it possible to bind Weblogic JMS Queue to jBoss JNDI Name
I saw this on the wiki http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingWebSphereMQSeriesWithJBossASPartI which tells how to bind the Websphere MQ objects to jBoss JNDI Namespace. I s it possible to do something like that with WebLogic JMS queue/topic. I need to access the Weblogic JMS Queue with the jndi handle in jBoss JNDI. Has anybody done it before or stumbled on something like this? Thanks Ajit View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964668#3964668 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964668 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Re: Explicit document source root using context/docbase
I have tried to get this to work too, but only been able to get static content to be made available. Sorry. cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964669#3964669 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964669 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Best way to learn
Whats the best way to learn how to write jboss portal apps/portlets? And are there any good books that would take a total beginner from scratch. Thanks, View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964670#3964670 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964670 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - CMS fails to start
My Specs: JBoss: 4.0.4.GA JPortal: 2.4.0-CR3 MySQL: 5.0.21 JConnector: 5.0.3 I get the following in my server.log: | --- MBeans waiting for other MBeans --- | ObjectName: portal:service=CMS | State: FAILED | Reason: javax.jcr.RepositoryException: failed to load repository properties: f | ailed to persist repository properties: failed to create new file: /meta/rep.pro | perties: failed to persist repository properties: failed to create new file: /me | ta/rep.properties: failed to create new file: /meta/rep.properties | I Depend On: | jboss.jca:name=PortalDS,service=DataSourceBinding | portal:service=JAASLoginModule | portal:service=Hibernate,type=CMS | Depends On Me: | portal:commandFactory=CMSObject | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: portal:service=CMS | State: FAILED | Reason: javax.jcr.RepositoryException: failed to load repository properties: f | ailed to persist repository properties: failed to create new file: /meta/rep.pro | perties: failed to persist repository properties: failed to create new file: /me | ta/rep.properties: failed to create new file: /meta/rep.properties | I Depend On: | jboss.jca:name=PortalDS,service=DataSourceBinding | portal:service=JAASLoginModule | portal:service=Hibernate,type=CMS | Depends On Me: | portal:commandFactory=CMSObject | I am not sure what is wrong. Does anyone know what I need to do to get jportal to completely come up without any failed services? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964671#3964671 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964671 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - InstantiationException with client passed proxies
I;m trying to code up a little example using JBoss Remoting 1.4.4 in JBoss AS 4.0.4.GA, and JBoss Serialization. This example is based on the Trasporters sample - proxy example in the user guide. I've got an MBean that manages the lifecycle of a socket based Remoting server that has a few methods in it. The client can get a reference to the server (hosted at socket://localhost:5400/?serializationtype=jboss), and call a method on the server that returns a String with no problems. However, if I try to create a proxy for a pojo on the client and pass that into the server, I get an InstatiationException from within the remoting framework when I call a method on the server and pass in the proxy. Here is a snippet from the TestClient main method: | //Get the remote server | remote = (TestRemote) TransporterClient.createTransporterClient( | socket://localhost:5400/?serializationtype=jboss, | TestRemote.class); | | //Just test out getting a simple String | String classPath = remote.getMyClasspath(); | System.out.println(Server Classpath: + classPath); | | //Create a new PersonImpl which implements a Person interface | PersonImpl aPerson = new PersonImpl(Chris DeLashmutt); | aPerson.setAge(31); | System.out.println(Asserting Person + aPerson.getName() | + with age of + aPerson.getAge()); | | //Create a local server for the Person proxy | server = TransporterServer.createTransporterServer( | socket://localhost:5401/?serializationtype=jboss, | aPerson, Person.class.getName()); | | //Create the proxy to pass to the server | Person personProxy = (Person) TransporterClient | .createTransporterClient( | socket://localhost:5401/?serializationtype=jboss, | Person.class); | | //Pass the person to the server | remote.assertFact(personProxy); | | //Have the server set a random age on the Person through the proxy | System.out.println(Fireing rules); | remote.applyRules(); | | //Show the new age of the person | System.out.println(Person + aPerson.getName() | + now has age of + aPerson.getAge()); | The server is very simple, and the exception I get is on the server side, but before my method actually gets invoked. The Person interface just specifies a couple getters/setters for name and age, and the PersonImpl is just a POJO with a no-arg constructor, and a String constructor to set the name. The exception I get is a SerializationException caused by an InstantiationException. It looks like the error is coming from the Remoting code trying to instantiate an org.jboss.remoting.transport.local.LocalClientInvoker, but there isn't any no-arg constructor for that class, so it fails. | 13:55:11,187 ERROR [ServerThread] failed | org.jboss.serial.exception.SerializationException: Could not create instance of org.jboss.remoting.transport.local.LocalClientInvoker - org.jboss.remoting.transport.local.LocalClientInvoker | at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:327) | at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:239) | at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411) | at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81) | at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639) | at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353) | at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273) | at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241) | at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411) | at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81) | at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639) | at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353) | at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273) | at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241) | at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411) | at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81) | at
[jboss-user] [JBoss Portal] - Re: CMS fails to start
Thanks, I didn't see that post. Has it been fixed in cvs yet? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964676#3964676 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964676 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: InstantiationException with client passed proxies
I tried using byvalue=true to force a remote invoker to be used, but I'm still getting the same exception. The only difference this time is that remoting is complaining that it can't instantiate org.jboss.remoting.transport.socket.SocketClientInvoker because it doesn't have a no-arg constructor. :) | 14:44:40,578 ERROR [ServerThread] failed | org.jboss.serial.exception.SerializationException: Could not create instance of org.jboss.remoting.transport.socket.SocketClientInvoker - org.jboss.remoting.transport.socket.SocketClientInvoker | at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:327) | at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:239) | at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:411) | at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:81) | at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:639) | at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353) | (many more snipped for clarity) | Caused by: java.lang.InstantiationException: org.jboss.remoting.transport.socket.SocketClientInvoker | at java.lang.Class.newInstance0(Class.java:335) | at java.lang.Class.newInstance(Class.java:303) | at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:319) | ... 44 more | I'll try to make the server and client both use remoting 2.0. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964677#3964677 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964677 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: MDB and EJB3--Newbie Question
I declare my jar as a java jar in the application.xml not an ejb one: | module | javamyjar-1.0-SNAPSHOT.jar/java | /module | If tou use JbossMQ, queue should be created when MDB is deployed (if you have another JMS implementation you will have an exception see recent thread about ActiveMQ on this forum) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964691#3964691 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Bean extends SelectItem
Check the wiki and the forum. There are various way to do what you want. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964689#3964689 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964689 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence unit dependency failure on deploy
I've got nearly the same thing except that I declare my jar as java not as ejb in the application.xml. module | javaservices-1.0-SNAPSHOT.jar/java | /module | module | javaentities-1.0-SNAPSHOT.jar/java | /module | module | javato-1.0-SNAPSHOT.jar/java | /module In my case it orks fine. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964690#3964690 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964690 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Bean extends SelectItem
1)@Local - in EJB 2 there were local and remote interfaces for entity and session beans , I guess you are right and in EJB 3 entity bean is alway local?! 2)I've a table of countries value-description :1-usa 2-canada 3-russia 4-englad ... i've entity for this table called county which has a description and a value properties and I would like to show this countries in a drop down list... I am querying all the rows in this table (a list of the entity country) now i've to go over this list and create new SelectItem from this list in order to show it in a drop down , right? I would like this list to be already a list of SelectItem , why isn't that possible? Thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964688#3964688 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964688 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: CMS fails to start
Yes: http://jira.jboss.com/jira/browse/JBPORTAL-978 Regards, Scott View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964685#3964685 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964685 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence unit dependency failure on deploy
Oh yeah...and I had to specify the absolute path to myentities.jar in the jar-file element because when I specify by relative path, it does weird things to it. For example, if I reference it thusly: | jar-file../myentities.jar/jar-file | I get an error saying it can't find mysessions.jar/myentities.jar So, I then tried | jar-file../../myentities.jar/jar-file | And I got an error saying it can't find mysessions.jar/yentities.jar (note the missing 'm'). Weird... View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964684#3964684 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: WSRP Producer issues with Vignette as Consumer
I am encountering this same issue with consuming from Vignette. Do you have any additional info to provide at this time? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964682#3964682 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964682 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Persistence unit dependency failure on deploy
Hey Scott, That approach works but only if you have a second persistence.xml in mysessions.jar/META-INF which references myentities.jar AND if you give the persistence unit a different name. So each component in your app would be using different unitName's when injecting their entity managers. That doesn't seem right to me. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964681#3964681 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964681 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Best way to learn
Look at the doc: http://labs.jboss.com/portal/jbossportal/docs/index.html Look at the wiki: http://jboss.org/wiki/Wiki.jsp?page=JBossPortal Read the spec: http://www.jcp.org/en/jsr/detail?id=168 Ask for JBoss training! ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3964679#3964679 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964679 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user