[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.GA is out
I have tried it. Nice! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115855#4115855 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115855 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam ajax & conversation
Yes, I added to authentication method @Begin(join=true) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115853#4115853 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115853 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JSF RI Portlet with JBoss Portal 2.6.3??
I did have a look at portletswap.com. There is no example there based on JSF RI. There is a JSF Cardemo app but it is based on MyFaces... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115854#4115854 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115854 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: JBoss Tools 2.0.0.GA released
I have tried it. Nice! Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115852#4115852 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115852 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - DLQ issue
Can anyone tell me what could be the possible cause for the following error?? Thanks a lot!! 2007-12-24 11:26:01,961 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Reconnected to JMS provider 2007-12-24 11:26:01,965 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provider 2007-12-24 11:26:01,969 ERROR [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler javax.naming.NameNotFoundException: queue/DLQ at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:223) at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:134) at sun.reflect.GeneratedMethodAccessor88.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:187) at $Proxy149.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:161) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:238) at org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:165) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:597) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:922) at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvoker.java:1492) at java.lang.Thread.run(Thread.java:595) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115851#4115851 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115851 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - setting classpath that refer to a jar in ear bundle
Hi, I'm trying to set a classpath in myapp-service.xml file in Jboss 4.2.1. my-app.ear | +--lib | +--myappjar.jar Does anyone know how to add a classpath to myappjar.jar (in myapp-service.xml)? I have tried to use : 1. classpath codebase="." archives="my-app.ear#myapp.jar" /> 2. classpath codebase="./deploy/my-jar.ear" archives="myappjar.jar" /> 3. classpath codebase="./deploy/my-jar.ear/lib" archives="myappjar.jar/>" But none is working. Does anyone know how ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115850#4115850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115850 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - setting classpath that refer to a jar in ear bundle
Hi, I'm trying to set a classpath in myapp-service.xml file in Jboss 4.2.1. my-app.ear | +--lib | +--myappjar.jar Does anyone know how to add a classpath to myappjar.jar (in myapp-service.xml)? I have tried to use : 1. 2. 2. But none is working. Does anyone know how ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115849#4115849 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115849 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss AOP] - pointcut other than execution in AdviceBinding
Hi, I'm start learning JBoss AOP, especially dynamic AOP. As an example says, I wrote code as follows and it worked fine. GreetingInterceptor is called when any method in Test class is executed. AdviceBinding binding = new AdviceBinding( "binding1", "execution(* *.Test->*(..))", null ); | binding.addInterceptor(GreetingInterceptor.class); | AspectManager.instance().addBinding(binding); Then, I changed the second parameter of the AdviceBinding's constructor as follows, and it doesn't work. I mean, a corresponding advice is not executed. "execution(* *.Test->*(..)) AND within(*.Test)" Also, when I use "call" instead of "execution" in the definition of a pointcut, the code does not work as well. Dynamic AOP does not support pointcuts other than "execution"? or anything wrong? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115847#4115847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115847 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: How to include datasource connection inside of applicati
"bengao" wrote : I developed an application using EJB3 to connect Derby database, the database need to be encrypted, and how Can I hide the bootpassword inside of my cod? | | Or there are alternative way to keep jboss-ds.xml encrypted or inside of code? Look here http://wiki.jboss.org/wiki/Wiki.jsp?page=EncryptingDataSourcePasswords View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115845#4115845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115845 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - How to include datasource connection inside of application
I developed an application using EJB3 to connect Derby database, the database need to be encrypted, and how Can I hide the bootpassword inside of my cod? Or there are alternative way to keep jboss-ds.xml encrypted or inside of code? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115844#4115844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seam integration with trinidad
I changed it to createRuleBean, still the problem remains the same import java.util.Arrays; import java.util.List; import javax.faces.event.ValueChangeEvent; import javax.faces.model.SelectItem; import org.apache.myfaces.trinidad.component.core.input.CoreInputFile; import org.apache.myfaces.trinidad.component.core.input.CoreInputText; import org.apache.myfaces.trinidad.component.core.input.CoreSelectBooleanCheckbox; import org.apache.myfaces.trinidad.component.core.input.CoreSelectOneChoice; import org.apache.myfaces.trinidad.component.core.nav.CoreCommandButton; import org.apache.myfaces.trinidad.component.core.output.CoreOutputLabel; import org.jboss.seam.ScopeType; import org.jboss.seam.annotations.*; @Name("createRuleBean") @Scope(ScopeType.SESSION) /** * * Backing bean for the createRule page * */ public class CreateRuleBean { private CoreOutputLabel label01; I am also attaching the web.xml and faces-config.xml http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd";> org.apache.myfaces.trinidad.core org.jboss.seam.jsf.SeamELResolver org.jboss.seam.jsf.SeamPhaseListener http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";> org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER com.sun.facelets.FaceletViewHandler org.jboss.seam.servlet.SeamListener Seam Filter org.jboss.seam.servlet.SeamFilter Seam Filter /* Seam Resource Servlet org.jboss.seam.servlet.SeamResourceServlet Seam Resource Servlet /seam/resource/* trinidad org.apache.myfaces.trinidad.webapp.TrinidadFilter trinidad Faces Servlet resources org.apache.myfaces.trinidad.webapp.ResourceServlet source org.apache.myfaces.trinidaddemo.webapp.SourceCodeServlet resources /adf/* source *.source Faces Servlet javax.faces.webapp.FacesServlet 1 Faces Servlet *.seam javax.faces.DEFAULT_SUFFIX .xhtml facelets.DEVELOPMENT true com.sun.faces.config.ConfigureListener 10 index.html View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115842#4115842 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115842 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - org.hibernate.AnnotationException: No identifier specified f
First things first ... the exception is very clear however, I really believe that I have specified an @Id - but it's obviously not being recognized/located in the superclass. What am I missing or doing wrong? I'm using JBoss AS 4.2.1.GA with it's included hibernate version. Please forgive the beginner question, but I've been searching for hours and keep coming up with the same Incomplete deployment error: org.hibernate.AnnotationException: No identifier specified for entity: x.y.z.DefaultMyEvent I'd appreciate any and all help as I am stuck! TIA! I have a base class such as: | @MappedSuperclass | public class DefaultEventBase | implements IEventBase, Serializable | { | | . | @Id | @Column( name="ID", unique=true, nullable=false, updatable=false ) | public String getID() | { | return id_; | } | | | ... | } | | and a derived class such as: | | @Entity | @Table( name="EVENTS", schema="foo", | [EMAIL PROTECTED]( columnNames="ID" )}) | public class DefaultMyEvent | extends DefaultEventBase | implements ISMSEvent, Serializable | { | | . all other @Column definitions are here | | } | I have a persistence.xml such as: | | http://java.sun.com/xml/ns/persistence"; version="1.0" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";> | | | | org.hibernate.ejb.HibernatePersistence | | java:/MyDS | | META-INF/orm.xml | | x.y.z.DefaultEventBase | x.y.z.PayloadItem | x.y.z.DefaultMyEvent | | | | | | | | | | | Finally, I have an empty orm.xml (as everything is specified via Annotations); | | http://java.sun.com/xml/ns/persistence/orm"; version="1.0" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm_1_0.xsd";> | | | | The associated stack trace shows: | | at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:627) | at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:452) | at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:268) | at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115) | at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1233) | at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154) | at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:869) | at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:407) | at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) | at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:597) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.
[jboss-user] [JBoss and NetBeans] - java.lang.NoClassDefFoundError: ${main/class} only on JBoss
Hi All, I am encountering the following errors when running the Enterprise Application Client using JBoss 4.2.2 AS: -- Deploying C:\Documents and Settings\abc\EnterpriseAppEE5-JBoss422\dist\EnterpriseAppEE5-JBoss422.ear java.lang.NoClassDefFoundError: ${main/class} Exception in thread "main" â when running application client for the first few times. This was followed by the error messages below: C:\Documents and Settings\abc\EnterpriseAppEE5-JBoss422\nbproject\build-impl.xml:261: The following error occurred while executing this line: C:\Documents and Settings\abc\EnterpriseAppEE5-JBoss422\nbproject\build-impl.xml:282: Classname must not be null. BUILD FAILED (total time: 1 second) Exception in thread "main" java.lang.NullPointerException at enterpriseappee5JBoss422.Main.main(Main.java:13) Java Result: 1 run-EnterpriseAppEE5-JBoss422-app-client: -- Below are the Enterprise Application property runs in Netbeans 6.0, jdk1.6.0_03, Windows XP, SP2: EnterpriseAppEE5-JBoss422-ejb => Run => Main Class - enterpriseappee5jboss422.Main. | EnterpriseAppEE5-JBoss422 = > Run => Client Module - EnterpriseAppEE5-JBoss422-app-client, Main Class â blank. Codes for the stateless session bean (EnterpriseAppEE5-JBoss422-ejb) is: package ejb; | import javax.ejb.Remote; | | @Remote | public interface SessionRemote { | | public String getResult(); | | } package ejb; | | import javax.ejb.Stateless; | | @Stateless | public class SessionBean implements SessionRemote { | | public String getResult() { | return "This is EJB 3.0 Bean"; | } | } Code for the application client (EnterpriseAppEE5-JBoss422-app-client) is: package enterpriseappee5JBoss422x; | | import ejb.SessionRemote; | import javax.ejb.EJB; | | public class Main { | | @EJB | private static SessionRemote sessionBean; | | public static void main(String[] args) { | | System.err.println("result=" + sessionBean.getResult()); | } | } I have had no success after having tried adjusting the following settings in Netbeans Enterprise application properties: EnterpriseAppEE5-JBoss422 = > Run => Client Module - EnterpriseAppEE5-JBoss422-app-client, Main Class â ejb.Main or enterpriseappee5JBoss422.Main. There were no such issue when running the same codes in the same environment but with Glass Fish (v2) instead of JBoss 4.2.2 AS. The URL for the above tutorial can be found in http://testwww.netbeans.org/kb/articles/appclient-entappclient.html. I have tried to follow the suggestion from (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=126495) without success. I am confused about the need to have a Main Class when there is already a Client class which can call the main method already. E.g. ConverterClient in J2EE EJB tutorial (http://docs.sun.com/app/docs/doc/819-3669/bnbnc?l=en&q=javaeetutorial5&a=view). Thanks, George View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115839#4115839 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115839 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - j4j:listTasksForActor and j4j:listPooledTasks ?
the j4j:listTasksForActor tag can list the actor's task. the code is : jbpmContext.getTaskMgmtSession().findTaskInstances(username); if i want get the pooled Tasks , jbpmContext.getTaskMgmtSession().findPooledTaskInstances(username) how to do this ,using the jbpm4jsf tags. i cannot find the listPooledTasks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115838#4115838 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115838 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Port used by jConsole connect remotely to JBoss AS behin
Sorry, found some information regarding this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115837#4115837 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115837 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: ClassNotFoundException whereas the JAR is here!
What are the contents of your META-INF/application.xml file? Does that file reference the spring-2.0.7.jar file? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115836#4115836 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: jboss.web
Try adding "-b 0.0.0.0" to the run command. Read the readme.html file, in the Configuration issues section, first bullet under 4.2.0.GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115835#4115835 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115835 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: jboss AS, jboss Web and php
Take both the JDK and JBossAS out of Program Files. Paths with spaces in them tends to give some Java code fits. I have mine installed at c:\apps\jdk1.5.0_13 and c:\opt\jboss\jboss-4.2.2.GA. You do not have to re-install the JDK - simply move it to the new location and adjust JAVA_HOME accordingly. Please verify that JBossAS is using the 1.5 JVM (and not 1.6); look for a message in the console log similar to the following: 16:56:39,265 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_12-b04,Sun Microsystems Inc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115834#4115834 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115834 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpmContext.getSessionFactory().openSession() and jbpmConte
Session session = jbpmContext.getSessionFactory().openSession(); | Transaction tx = session.beginTransaction(); | this's ok! and i use following code , will get a "Transaction not successfully started" exception. | Session session = jbpmContext.getSession(); | Transaction tx = session.beginTransaction(); | i saw the source code, and in "org.jbpm.persistence.db.DbPersistenceService" class i found: | public Session getSession() { | if ( (session==null) | && (getSessionFactory()!=null) |) { | Connection connection = getConnection(false); | if (isCurrentSessionEnabled) { | session = getSessionFactory().getCurrentSession(); | log.debug("using current hibernate session " + session); | mustSessionBeClosed = false; | mustSessionBeFlushed = false; | mustConnectionBeClosed = false; | } else if (connection!=null) { | log.debug("creating hibernate session with connection "+connection); | session = getSessionFactory().openSession(connection); | mustSessionBeClosed = true; | mustSessionBeFlushed = true; | mustConnectionBeClosed = false; | } else { | log.debug("creating hibernate session"); | session = getSessionFactory().openSession(); | mustSessionBeClosed = true; | mustSessionBeFlushed = true; | mustConnectionBeClosed = false; | } | | if (isTransactionEnabled) { | beginTransaction(); | } | } | return session; | } maybe "isTransactionEnabled" started a transaction,and this cause the exception. so ,i want to know where "isTransactionEnabled" can config in jbpm config file. also you can tell me jbpmContext.getSessionFactory().openSession() and jbpmContext.getSession() difference, and how to correct using them. any advice, thx. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115833#4115833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Port used by jConsole connect remotely to JBoss AS behind fi
Hi there, First of all, currently my JBoss AS sit inside a remote location Linux hosting server, exposing HTTP, HTTPS, 8080 and 11099 (jConsole usage) to allowed services for firewall. Then when I connect it with firewall turned off, I had actually found that despite connection via port TCP 11099, there is another port being used. So I also added that port into remote server firewall allowed services, then turned on the firewall service and everything works just fine. Later when I restarted the JBoss AS for other reason, I found that the 2nd random port being used by JBoss AS besides 11099 has changed. How does that happening? Is there anyway to fix the 2nd additional port used by jConsole so everytime I restart AS, I don't have to change the firewall setting? Thanks David View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115832#4115832 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115832 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: help required please : problem with project packaging -
tried creating an EAR project and including the EJB project and the two util projects and deployed that get essentially the same problem - somehow the EJB project cant see the util project its dependent upon (its still on the build path and the pakaage referenences lists though from the EJB project) off to bed - if any one can help me past this problemo i'd be ever so greatful. I can't carry on building all the logic in one project it'll get ridiculous. anonymous wrote : | 01:27:17,589 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=NeilsAppEAOEJBProject.jar | java.lang.NoClassDefFoundError: eao/EAO | at java.lang.ClassLoader.defineClass1(Native Method) | at java.lang.ClassLoader.defineClass(Unknown Source) | at java.security.SecureClassLoader.defineClass(Unknown Source) | at java.net.URLClassLoader.defineClass(Unknown Source) | at java.net.URLClassLoader.access$000(Unknown Source) | at java.net.URLClassLoader$1.run(Unknown Source) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(Unknown Source) | at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:682) | at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:662) | at java.lang.ClassLoader.loadClass(Unknown Source) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200) | at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131) | at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527) | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415) | at java.lang.ClassLoader.loadClass(Unknown Source) | at java.lang.ClassLoader.loadClassInternal(Unknown Source) | at java.lang.ClassLoader.defineClass1(Native Method) | at java.lang.ClassLoader.defineClass(Unknown Source) | at java.security.SecureClassLoader.defineClass(Unknown Source) | at java.net.URLClassLoader.defineClass(Unknown Source) | at java.net.URLClassLoader.access$000(Unknown Source) | at java.net.URLClassLoader$1.run(Unknown Source) | at java.security.AccessController.doPrivileged(Native Method) | at java.net.URLClassLoader.findClass(Unknown Source) | at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:682) | at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:662) | at java.lang.ClassLoader.loadClass(Unknown Source) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200) | at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131) | at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399) | at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527) | at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415) | at java.lang.ClassLoader.loadClass(Unknown Source) | at org.jboss.ejb3.Ejb3AnnotationHandler.populateBaseInfo(Ejb3AnnotationHandler.java:293) | at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:138) | at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:486) | at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:442) | at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:423) | at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:384) | at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:327) | at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77) | at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243) | at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) | at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) | at $Proxy0.create(Unknown Source) | at org.jboss.system.ServiceController.create(ServiceController.java:330) | at org.jboss.sys
[jboss-user] [Installation, Configuration & DEPLOYMENT] - help required please : problem with project packaging and pe
wonder if some one can help. Think is simple but cant see the wood from the trees. Any help greatefully received. I'm in callisto eclipse /jboss 4.2.2 and I have a test app that i built as an ejb project (all in one) - and built all my entities, stateless session beans, generic EAO (variant of DAO pattern - from "ejb3 in action" book and a persistence unit. I deploy to server and all is well and i can find the services and call them from external client app. So far so good. I then come to refactor my project into manageable project chunks. I created two utility projects - one for the entities (no persistence unit defined here - just the marked up entity classes), then another utility project with the generic EAO code base. I then create an EJB project to house the real EAO (extend the generic) for each entity class in the domain model utility project. I set the java build path to include the two utility projects, and I also set the "project references" to include these also. (i cant set the j2ee depencies for the EJB project - it says "selected model not associated with an enterprise application module"). my top level EJB project has the persistence facet set and my persistence xml is defined here. this all compiles without warning. so project dependency relationships set up as follows eao ejb proj (inc persistence xml defn) | | v v entity util proj generic eao util project However : if i try to publish this refactored project eao EJB project to the server I then get an error on the server anonymous wrote : | 01:10:43,770 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- MBeans waiting for other MBeans --- | ObjectName: jboss.j2ee:service=EJB3,module=NeilsAppEAOEJBProject.jar | State: FAILED | Reason: java.lang.NoClassDefFoundError: eao/EAO | | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: jboss.j2ee:service=EJB3,module=NeilsAppEAOEJBProject.jar | State: FAILED | Reason: java.lang.NoClassDefFoundError: eao/EAO | what i think this says is that the class loader for the EJB project cant see the utility projects. Why is that ? if I refactor like this do I have to package all the projects into an EAR? to get them to work ? when you run multiple projects like this - where should the persistence unit be defined? - I have defined it with the EAO instance definitions (concrete classes) that prsist my entities - rather than in the utility projects - is that right ? or does the persistence unit definition live with the entities in the util project (this doesnt seem right). so can some one help me understand why what works in on big EJB project doesnt work when i refactor into multiple projects. This is going to be easy (i think) and i shall feel stupid later - but its driving me nuts at present I am only using eclipse as the build tool at present - i have no ant/maven framework setup (requires more time to read about these) and i'd like to get the basics running from eclipse if i could first. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115829#4115829 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115829 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: which database table used for storing the classes that
I saw the jbpm_delegation table, there has classname_ and configuration_ configtype_ ID_ and Processdefinition_ columns , no column used for storing the class file(i mean the bytecode class file). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115828#4115828 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: cant start jboss 5 beta 3 from eclipse
sadly no it didnt - i got the same timeout error from eclipse in beta 2 I remember it couldnt hack java 1.6 which is my default so i ran it by hand from the command line see trace it does run - then go real slow with no output for a while and then keep going : final time is 2m:20s:693ms to get up by hand which is longer than the 50ms that the required by the server config in eclipse. how can you incease the timeout to allow it chance to complete? see trace run outside eclipse from a cmd prompt window. server is there and i can connect this way anonymous wrote : | E:\jboss\JBOSS-~2.BET\bin>echo %JAVA_HOME% | D:\Program Files\Java\jdk1.5.0_09 | | E:\jboss\JBOSS-~2.BET\bin>run | === | | JBoss Bootstrap Environment | | JBOSS_HOME: E:\jboss\JBOSS-~2.BET | | JAVA: D:\Program Files\Java\jdk1.5.0_09\bin\java | | JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -XX:MaxPermSize=2 | 56m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=3600 | 000 | | CLASSPATH: D:\Program Files\Java\jdk1.5.0_09\lib\tools.jar;E:\jboss\JBOSS-~2.B | ET\bin\run.jar | | === | | 00:44:44,858 INFO [ServerImpl] Starting JBoss (Microcontainer)... | 00:44:44,868 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.Beta3 (build: | SVNTag=JBoss_5_0_0_Beta3 date=200712210026) | 00:44:44,878 INFO [ServerImpl] Home Dir: E:\jboss\jboss-5.0.0.Beta3 | 00:44:44,878 INFO [ServerImpl] Home URL: file:/E:/jboss/jboss-5.0.0.Beta3/ | 00:44:44,878 INFO [ServerImpl] Library URL: file:/E:/jboss/jboss-5.0.0.Beta3/li | b/ | 00:44:44,878 INFO [ServerImpl] Patch URL: null | 00:44:44,878 INFO [ServerImpl] Server Name: default | 00:44:44,878 INFO [ServerImpl] Server Home Dir: E:\jboss\jboss-5.0.0.Beta3\serv | er\default | 00:44:44,878 INFO [ServerImpl] Server Home URL: file:/E:/jboss/jboss-5.0.0.Beta | 3/server/default/ | 00:44:44,878 INFO [ServerImpl] Server Data Dir: E:\jboss\jboss-5.0.0.Beta3\serv | er\default\data | 00:44:44,878 INFO [ServerImpl] Server Temp Dir: E:\jboss\jboss-5.0.0.Beta3\serv | er\default\tmp | 00:44:44,878 INFO [ServerImpl] Server Config URL: file:/E:/jboss/jboss-5.0.0.Be | ta3/server/default/conf/ | 00:44:44,888 INFO [ServerImpl] Server Library URL: file:/E:/jboss/jboss-5.0.0.B | eta3/server/default/lib/ | 00:44:44,888 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml | 00:44:46,741 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/E:/j | boss/jboss-5.0.0.Beta3/server/default/conf/bootstrap-beans.xml | 00:44:49,715 INFO [ProfileImpl] Using profile root:E:\jboss\jboss-5.0.0.Beta3\s | erver\default | 00:44:51,438 INFO [ServerInfo] Java version: 1.5.0_09,Sun Microsystems Inc. | 00:44:51,488 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_09-b03 | ,Sun Microsystems Inc. | 00:44:51,488 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 | 00:44:51,698 INFO [JMXKernel] Legacy JMX core initialized | 00:45:13,059 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083 | / | 00:45:16,103 INFO [TransactionManagerService] JBossTS Transaction Service (JTA | version) - JBoss Inc. | 00:45:16,103 INFO [TransactionManagerService] Setting up property manager MBean | and JMX layer | 00:45:17,505 INFO [TransactionManagerService] Starting recovery manager | 00:45:17,766 INFO [TransactionManagerService] Recovery manager started | 00:45:17,766 INFO [TransactionManagerService] Binding TransactionManager JNDI R | eference | 00:45:54,408 INFO [AprLifecycleListener] The Apache Tomcat Native library which | allows optimal performance in production environments was not found on the java | .library.path: D:\Program Files\Java\jdk1.5.0_09\bin;.;C:\WINDOWS\system32;C:\WI | NDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Program Files\M | icrosoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\ | 00:45:54,769 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0 | .1-8080 | 00:45:54,769 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-80 | 09 | 00:45:54,769 INFO [Catalina] Initialization processed in 1296 ms | 00:45:54,769 INFO [StandardService] Starting service jboss.web | 00:45:54,779 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.0.CR1 | 1 | 00:45:54,939 INFO [Catalina] Server startup in 176 ms | 00:46:04,062 INFO [AspectDeployer] Deploying xml into org.jboss.aop.AspectManag | [EMAIL PROTECTED] for [EMAIL PROTECTED] url=vfsfile:/E:/ | jboss/jboss-5.0.0.Beta3/server/default/deploy/ejb3-interceptors-aop.xml ,addedOr | der=17} | 00:46:11,042 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invo | ker.s
[jboss-user] [JBoss Seam] - Re: SeamFramework.org Alpha Test
Where can I find the code for the new Seam Forums? How can I plug this into an existing application? I have an inventory management system based on Seam 2.0 and I would love to add a built in discussion forum for this application. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115823#4115823 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Interception of cache lookup calls
Hi, I am wondering if it possible to intercept a cache lookup. Say in a cluster of 4 nodes whenever someone does a lookup and doesn't find an object (cache miss), I want one application to intercept the call (say via AOP) and populate the object say going to the database. It will be ideal if this could be done in JBossCache. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115822#4115822 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: the right choice ?
hey again peter, and thanks! we decided to go with the 4.2.2 for now and migrate when the 5 is more stable and documented, thanks for reassuring us. we still dont know which version of EJB we want to use, but we'll probably go with the EJB3. the "we" that i use every once and a while refers to 2 people (me and my partner) and since the server which runs the XP is for development purposes i really don't think that we'll exceed to 10 connections limit... the only reason we are using XP is that it already came with the computer we're using for a server... if and when we'll need more connections we'll probably have more money to invent in this whole thing so we'll upgrade everything... and we'll probably wont stay with a microsoft os since we dont intend to use any microsoft product for the server... thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115820#4115820 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115820 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Warning with Seam 1.2 and Richfaces 3.1
The issue I am having is identical to the one the OP of the following thread was having (NOT the response by computabloke - that appears to be a separate issue): http://www.jboss.com/index.html?module=bb&op=viewtopic&t=119757&postdays=0&postorder=asc&start=0 The problem occurs every time I click on a commandButton or commandLink. | 2007-12-27 16:14:10,155 WARN [javax.enterprise.resource.webcontainer.jsf.lifecycle] [http-127.0.0.1-8080-1] phase(RESTORE_VIEW 1,[EMAIL PROTECTED]) threw exception: java.lang.IllegalStateException: No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed) No phase id bound to current thread (make sure you do not have two SeamPhaseListener instances installed) | org.jboss.seam.contexts.PageContext.getPhaseId(PageContext.java:153) | org.jboss.seam.contexts.PageContext.isRenderResponsePhase(PageContext.java:165) | org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:76) | org.jboss.seam.contexts.PageContext.get(PageContext.java:66) | org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:160) | org.jboss.seam.Component.getInstance(Component.java:1577) | org.jboss.seam.Component.getInstance(Component.java:1572) | org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49) | javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53) | com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64) | com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:72) | org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:101) | org.ajax4jsf.event.AjaxPhaseListener.afterPhase(AjaxPhaseListener.java:75) | com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280) | com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) | javax.faces.webapp.FacesServlet.service(FacesServlet.java:244) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) | org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) | org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) | org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) | org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580) | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | java.lang.Thread.run(Thread.java:595) | I am really hoping for some help -- I can't simply upgrade to Seam 2.0 because the application is already in place and the developers above me don't want it refactored. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115819#4115819 Reply to the post : http://www.jboss.com/index.h
[jboss-user] [Beginners Corner] - Re: jboss AS, jboss Web and php
peter, thanks a lot for all your help, i really appreciate it! here's the info of the server: jdk: there are two jdks on the computer: jdk1.5.0_14 and jdk1.6.0_03 the JAVA_HOME is set to: jdk1.5.0_14 (C:\Program Files\Java\jdk1.5.0_14) jboss: i'm using jboss-4.2.2.GA and the JBOSS_HOME is set to: C:\Program Files\jboss\application-server\jboss-4.2.2.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115818#4115818 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115818 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - jboss.web
Hi, I install jboss 4.2.2.GA in SunOS 5.10,sparc, when run the server all is ok, But any attempt http://xxx.xx.xx.xx:8080 does not work, does not display anything. I try in windows and this jbossAS Works without problem I need config somethik??? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115817#4115817 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115817 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam and JBAS 5.0
Hope to see you there. I went to JBW Atlanta, Barcelona, and Vegas. Still kicking myself for missing Berlin. :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115814#4115814 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115814 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam and JBAS 5.0
With any luck, yes - but waiting on approval from management ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115813#4115813 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115813 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r
So the resolution message isn't clear on the issue, but the resolution was to add events called on login success and failure as documented in the security chapter. Sorry, we aren't going to be making it so it's only called once. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115812#4115812 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115812 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Using couple of Faces components together
Some work together, some don't (e.g. Trinidad and RichFaces are fine together, IceFaces isn't fine with anything else AFAIK). You really need to ask on the relevant mailing list for the project. Seam should work with all of those (though we have no examples for woodstock). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115811#4115811 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam and JBAS 5.0
Off topic Pete, Will you be attending JBW Orlando? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115810#4115810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Exception and Cannot open connection
You can't, once an exception is thrown the transaction is unusable. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115809#4115809 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115809 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam managed transactions and persistence contexts
Yes. The View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115808#4115808 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115808 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues
I haven't tried, but will do after the new year now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115807#4115807 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115807 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Sometimes error messages shown only after page refresh
If you can attach an example to allow us to reproduce the issues to a JIRA issue we can take a look. I know there are problems in this area. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115806#4115806 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115806 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why to use Trinidad?
It's certainly under development (about 6 releases in the last year) and is documented e.g. http://myfaces.apache.org/trinidad/devguide/index.html though it can be hard to find what you need. We recommend it because we think its a well built component set (but possibly not the most visually exciting) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115805#4115805 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115805 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Bean method called from within transaction cannot open conne
Context: JBoss 4.0.5 , EJB Container-managed transactions, local MySQL db I started out doing this using BMT but since I have no need for custom handling of transaction, I thought I would switch to CMT. In the code below, I have some pretty basic functions. I can and do call find() directly and it works fine. The problem occurs when I have the case of a duplicate entry and I enter the EntityExistsException's catch block. When the find() within that catch block is called, getSingleResult() in find() throws a GenericJDBCException stating that a connection cannot be opened, which in turn is caused by a "Transaction is inactive" problem. CMTBean provides the injected entitymanager reference. What happens to the transaction in the catch block that causes find() (which is by default of the REQUIRED transaction policy) to lose the connection? EntityExistsException does not cause a rollback and even if it did, find() would start its own transaction, would it not? Your prompt responses are appreciated. | @Stateless | @TransactionAttribute(TransactionAttributeType.REQUIRED) | public class MyBean extends CMTBean implements MyBeanLocal{ | | public List addItems(List items) { | List mergedList = new ArrayList(); | for(Item item:items){ | | //Call another bean method | mergedList.add(addItem(item)); | | } | return mergedList; | } | | public Item addItem(Item item){ | try{ | item = em.merge(item); | } | catch (EntityExistsException ex){ | | //Since item exists, call another bean method to retrieve it | item = find(item.getName()); | | } | return item; | } | | public Item find(String name){ | Query query = null; | Item item = null; | | try { | query = em.createQuery("SELECT it FROM Item it WHERE it.name=:name"); | query = query.setParameter("name", name); | | // GenericJDBCException thrown here - "Cannot open connection." | item = (Item) query.getSingleResult(); | | } | catch (...) | //error handling | } | return item; | } | } | The pertinent parts of the stacktrace: 17:17:26,874 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=local/24, BranchQual=, localId=24]; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=local/24, BranchQual=, localId=24]) 17:17:26,905 ERROR [STDERR] Exception in thread "Thread-28" 17:17:26,905 ERROR [STDERR] javax.ejb.EJBException: javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection 17:17:26,905 ERROR [STDERR] at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) 17:17:26,905 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) 17:17:26,905 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) 17:17:26,905 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) 17:17:26,905 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) 17:17:26,905 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) 17:17:26,905 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62) 17:17:26,905 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) 17:17:26,905 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) 17:17:26,905 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102) 17:17:26,905 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) 17:17:26,905 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) 17:17:26,905 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) 17:17:26,905 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) 17:17:26,905 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) 17:17:26,905 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:211) 17:17:26,905 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:79) 17:17:26,905 ERROR [STDERR] at $Proxy85.addRootItems(Unknown Source) 17:17:26,905 ERROR [STDERR] at commit(
[jboss-user] [JBoss Seam] - Re: Seam and JBAS 5.0
That page is seriously out of date. AS5 beta3 just got released, and it doesn't include Seam. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115803#4115803 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115803 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam and JBAS 5.0
I read that Seam 1.1 will be included with JBAS 5.0 How will this be included? Will it no longer be required to package seam in the ear? Is it really going to be 1.1? If so, why not 2.0? How will this be integrated differently than the current 4.2.x setup? See the following excerpt and link. anonymous wrote : Early access version of the next generation JBoss AS is available now. JBoss AS 5 GA will be Java EE 5 certified and will include the following core technologies. | | * JBoss Microcontainer - POJO based microcontainer removing the dependency on JMX | * EJB 3.0 - Fully certified as part of the Java EE 5 compliant JBoss AS 5 | * Hibernate 3.2 - JPA certified | * JBoss Messaging 1.2 - the next generation messaging platform from JBoss with HA features. | * JBoss WebServices 2.0 - new custom built JAX-WS compliant WebServices stack. | * JBoss Seam 1.1 - a powerful new application framework to build next generation Web 2.0 applications by unifying and integrating popular service oriented architecture (SOA) technologies http://www.jboss.org/products/jbossas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115800#4115800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: Duplicate notifications to separate PojoCacheListener in
Jason, Thanks for the fix. Is 2.1.0.GA (fix version) available to be picked up somewhere yet? I only see 2.1.0.CR2 on the download page (which was assembled before the fix date). Are there other candidates or development builds out there somewhere and if not when will a new release candidate be available? I'd like to start testing with this fix. There is some functionality that I am working on that can really use this. Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115799#4115799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115799 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - @DiscriminatorValue: find not returning subclasses
Env: JBoss AS 4.0.5.GA w/EJB3 I have looked over several different docs that describe how to use entity inheritance w/ SINGLE_TABLE. I used those examples as the basis for my code. I have a base class Units and have subclasses RFUnit and EMUnit. (em is an entitymanager object) When I do em.find() or em.getResultList() it always returns the base class. I get no errors of any kind. I am examining the returned class by both returnedObject.getClass().getName() and via Eclipse debugger. Anyone: Please advise as to how to get subclasses returned from em find or query Here are the relevant class declarations: // base class @Entity @Table(name = "units", catalog = "test2", uniqueConstraints = @UniqueConstraint(columnNames = "unitName")) @Inheritance(strategy=InheritanceType.SINGLE_TABLE) @DiscriminatorColumn(name="hwModel", discriminatorType=DiscriminatorType.INTEGER) . // 1st subclass @Entity @DiscriminatorColumn(discriminatorType = DiscriminatorType.INTEGER) @DiscriminatorValue(value="3") public class RFUnit extends Units { . // 2nd subclass @Entity @DiscriminatorColumn(name="hwModel", discriminatorType = DiscriminatorType.INTEGER) @DiscriminatorValue(value="7") public class EMUnit extends RFUnit { .. // code doing find/fetch UnitsList ul = new UnitsList(); // Seam convenience class List l = ul.getResultList(); for (Units u:l) { String tmp = u.getClass().getName(); System.out.println(u.getClass().getName()); } I also tried: ul.getEntityManager().createQuery("Select units from Units units").getResultList();to do the fetch. Same result. This should be simple. What am I missing? I did confirm the discriminator column values where as specified in the @DiscriminatorValue annotation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115789#4115789 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: injection in tests ?
ask in the seam forum View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115787#4115787 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115787 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: packaging-convert incomplete?
report it in jira please. thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115784#4115784 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115784 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SeamFramework.org Alpha Test
No, it's on port for now. Company security policies that filter outgoing TCP connections by port are stupid. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115782#4115782 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: rich:datascroller + true pagination.
See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=125952 Any suggested improvements are welcome. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115781#4115781 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115781 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: java.lang.IllegalStateException: No page context active
I will take a look at those examples. Thanks again for all the guidance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115778#4115778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115778 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Using Javassist on J2ME MIDlets
I would like to use Javassist to modify existing JAD/JAR files for J2ME MIDlets. (Yes I will have permission from the vendor to do this - all the legal considerations are taken care of). Basically I want to display some things to the user before the actual MIDlet runs. I plan to add some extra classes to the MIDlet that do this. These extra classes use basic MIDP 1.0 functionality, nothing fancy at all. But to make the existing MIDlet call these classes, I will need to modify the class specified in the JAD file that extends MIDlet. Let me call this the "original MIDlet class". I need to modify the original MIDlet class startApp() method so that the first thing it does when the app gets launched is to call a method in my extra classes to show this code to the user. When the code in the extra class finishes, it will call the original MIDlet startApp() method again, which will know this time just to execute what was originally there, ie to load and launch the game or app in the! MIDlet. I left out a few details but I think you get the idea. Here are my questions. How exactly do I run Javassist on a JAR file? The MIDlet JAR file contains preverified classes. Can I use Javassist on preverified classes? It looks like Javassist writes the modified class back out to disk. I want to get the modified class file, preverfied, back into the JAR file. What must I do to do this? Must I preverify everything again? Or is the new class already preverified? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115775#4115775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115775 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Container keeps dropping and creating SLSB
I'm using Jboss 4.2.1. MDBs asynchronized calls SLSBs. i put a counter in SLSB's constructor. so i can know the current bean comes from pool or just be created. my problem is i set max size = 100. but after the MDB receives 10,000 messages(in 10 seconds). the nuber of SLSb will be 2000 something. because the pool only holds 100 instances, i guess container destroyed those old instances and created new instance. i don't know why it doesn't keep old instances in the pool. MDB | if(message instanceof ObjectMessage){ | String sessionBeanJNDI = message.getStringProperty("ApplicationName") + "LogLocal"; | | BaseLogLocal asynchronizedLocal = logLocalMap.get(sessionBeanJNDI); | if(asynchronizedLocal == null){ | BaseLogLocal baseLogLocal = (BaseLogLocal)cxt.lookup(sessionBeanJNDI); | logLocalMap.put(sessionBeanJNDI, (BaseLogLocal)Asynch.getAsynchronousProxy(baseLogLocal)); | asynchronizedLocal = logLocalMap.get(sessionBeanJNDI); | } | ObjectMessage objectMessage = (ObjectMessage)message; | Object object = objectMessage.getObject(); | | asynchronizedLocal.saveLog(object, msgID); | | }else{ | logger.error("Not an ObjectMessage" + msgID); | } | standardjboss.xml is default. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115776#4115776 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115776 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Getting rebooted: migration from Middlegen to Hibernate
Finally - success. There were two problems. The first was a brain fart on my part. I wasn't calling the Ant task that checked if the mysql-connector was installed. Once called, the connector was properly installed to server/default/lib, which is the correct location (at least it works for my situation). The second problem is that the connector must be installed before JBOSS is started. It can't be hot deployed. So after copying in the connector I restarted JBOSS. Then I deployed my ear file. And it worked. Well, at least there are no errors on deployment. So, now, all the config stuff is in place. Enough so that I can start looking at writing meaningful server code once again. I still need to write a sample client to make sure I can get to the initial web services interface. That would be the last infrastructure check, I think. After that it's back to server meat and new features, like implementing a cron-like system using the Timer Service. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115774#4115774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: binding inputText to Map
That's what I was missing. Thanks a lot for the info!!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115773#4115773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Cascade Delete
I'm trying to delete a child object in a @OneToMany relationship and the persistence manager is not removing the child from the database. The @OneToMany side is mapped as such: @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "parent") The child is mapped as such: @ManyToOne @JoinColumn(name = "PARENT_ID") The code I'm using to do this is (em is the EntityManager): Query query = em.createQuery( "... " ); Parent parent = (RawDaar) query.getSingleResult(); parent.getChildren().remove(0); em.persist( parent ); I noticed the child delete SQL is not generated and when I find the parent back ( after an em.flush() & em.clear() ), the child still exists. If I do a em.remove( child ), that works, but I didn't think I needed that. Environment: EJB3 JBoss 4.2.0GA Thanks much, Cory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115769#4115769 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115769 ___ 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: Connection with active local transaction being reused?
Ok, after digging a little deeper it appears that there were really multiple things going on and while they appeared to be connected they weren't. I have been able to reproduce the issue by setting up a similar (but simpler) application that uses a similarly configured datasource. I simulate the disconnected database by setting a breakpoint after the getConnection() call to get the connection and enabling an IPSec policy that blocks all traffic to the target database. First, the sticky transaction issue was taken care of by converting from the JDBC transaction programming style to using UserTransaction. I believe (please correct me if I am wrong), this succeeds because the UserTransaction rollback when the underlying connection is closed still cleans up. The JDBC style transaction throws an exception when trying to rollback (because the connection is closed) and so whatever hooks that usually cleanup don't complete. This results in an unfinished local JTA transaction being associated with the connection. Once I changed to using JTA transaction handling using the pattern shown in the wiki at http://www.jboss.com/wiki/Wiki.jsp?page=WhatIsTheCorrectPatternForUserTransactions, I no longer get the "Unfinished local transaction" messages. This however, did not fix the problem of the closed connection still being handed out as if it was connected, effectively killing all the applications using the connection pool. I worked around the dead connection in the pool by configuring my datasource like the following: | | jdbc/AppName | | | jdbc:oracle:thin:@host:1521:DEV | | oracle.jdbc.driver.OracleDriver | | | | org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker | | | | org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter | | | Oracle9i | | | Once configured this way, I ran my test again and I now see this after the call to getConnection(): 12:01:57,656 INFO [SampleJTAServlet] getting connection from datasource | 12:01:57,656 WARN [TxConnectionManager] Connection error occured: [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1198774893984 permit=false trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] txSync=null] | java.sql.SQLException: pingDatabase failed status=-1 | at org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker.isValidConnection(OracleValidConnectionChecker.java:72) | at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnectionFactory.isValidConnection(BaseWrapperManagedConnectionFactory.java:435) | at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.checkValid(BaseWrapperManagedConnection.java:231) | at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.matchManagedConnections(LocalManagedConnectionFactory.java:200) | at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:209) | at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:529) | at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341) | at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:301) | at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396) | at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842) | at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88) | at pkg.sample.SampleJTAServlet.doGet(SampleJTAServlet.java:70) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve
[jboss-user] [Beginners Corner] - Re: Getting rebooted: migration from Middlegen to Hibernate
Well, that one was easy, thanks to this post: https://www.manning-sandbox.com/message.jspa?messageID=56075 I just added the configuration to my persistence.xml file: | | java:/CrunchDS | | | | | | | | | The EAR is now deployed, albeit with a huge number of exceptions. I think the problem now is that the location of the mysql-connector jar file (mysql-connector-java-5.0.5-bin.jar) needs to be changed. I used to put it in server/default/lib but I get these errors on the deploy: | 11:38:11,319 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=CrunchDS' to JNDI name 'java:CrunchDS' | 11:38:11,339 INFO [EARDeployer] Init J2EE application: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/Crunch.ear | 11:38:11,422 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment | 11:38:11,423 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=Crunch.ear,unitName=crunch with dependencies: | 11:38:11,423 INFO [JmxKernelAbstraction] jboss.jca:name=CrunchDS,service=DataSourceBinding | 11:38:11,425 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:ear=Crunch.ear,unitName=crunch | 11:38:11,436 INFO [Configuration] Reading mappings from resource : META-INF/orm.xml | 11:38:11,437 INFO [Ejb3Configuration] [PersistenceUnit: crunch] no META-INF/orm.xml found | 11:38:11,443 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider | 11:38:11,444 INFO [InjectedDataSourceConnectionProvider] Using provided datasource | 11:38:11,447 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null | org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)) The HSQL jar files all seem to be in server/default/lib, so my gut feeling is that the mysql-connector jar file is also supposed to go here. If so, then this problem is not about the connector. More googling View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115768#4115768 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115768 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Getting rebooted: migration from Middlegen to Hibernate
The DataSourceBinding problem turned out to be another config file location change between 4.0.5GA and 4.2.2GA. In 4.0.5GA the mysql-ds.xml file was copied to server/default/conf. In 4.2.2GA it needs to go into server/default/deploy. Once I made this change, I got further along - now I'm being told I need to specify the Hibernate dialect. I already did this for the build in the db.properties file, but now I need to find out where to specify it in the deploy. My db.properties: mjhammel(tty2)$ cat config/hibernate/db.properties | hibernate.dialect = org.hibernate.dialect.MySQLDialect | hibernate.connection.driver_class = com.mysql.jdbc.Driver | hibernate.connection.url = jdbc:mysql://localhost/crunch | hibernate.connection.username = root | I'm guessing I need to specify the dialect in the mysql-ds.xml file, though I'm not sure of that yet and I don't know the syntax for specifying the syntax. Time for more googling The latest error messages from the JBOSS console: | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- | ObjectName: persistence.units:ear=Crunch.ear,unitName=crunch | State: FAILED | Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set | I Depend On: | jboss.jca:service=DataSourceBinding,name=CrunchDS | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115765#4115765 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115765 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - ClassNotFoundException whereas the JAR is here!
I have a classloading issue with an EAR application. It contains: | * spring-2.0.7.jar | * myapp-core.jar | * myapp-web.war | In myapp-web.war, there is a WEB-INF/web.xml file with the following: | | | | org.springframework.web.context.ContextLoaderListener | | | | contextConfigLocation | | classpath:applicationContext.xml | | | | And applicationContext.xml (Spring configuration file) resides in myapp-core.jar, with the following section: | | | | | | And LocalSessionFactoryBean class resides in spring-2.0.7. Yet, when I start up my application, I get the following exception: | 19:05:52,534 ERROR [ContextLoader] Context initialization failed | org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.orm.hibernate3.LocalSessionFactoryBean] for bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate3.LocalSessionFactoryBean | Caused by: | java.lang.ClassNotFoundException: org.springframework.orm.hibernate3.LocalSessionFactoryBean | at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358) | ... | And I can't figure out why I get this ClassNotFoundException since spring-2.0.7.jar is here, at the root of the EAR. Can somebody help me out with that, because I don't understand how EAR classpath works? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115764#4115764 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115764 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - injection in tests ?
Hi. Want to test my action classes with hibernateSession instead of EntityManager and my actions like below.. | | @In(create=true) | private Session hibernateSession; | | @Out @In(required=false) | Category category; | | public String save(){ | //bla bla | hibernateSession.saveOrUpdate(category); | hibernateSession.flush(); | return "success"; | } | when i want to test this action with testNG, hibernate session doesnt initialize.. @Test | public void testAddCategory() throws Exception { | Category cat = new Category(); | cat.setName("test"); | CategoryAction action = new CategoryAction(); | action.setCategory(cat); | // | assert "categoryTree".equals(action.save());//throws nullpointer because of the not initialized hibernate session | } | and according to me seam doesn't works while testing because Logger and In annotation doesnt works either.. All the examples are about EntityManagerFactory & EntityManager.. How can i find a solution for this test case with hibernate session ?? thanx. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115763#4115763 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115763 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why is Authenticator.authenticate() called twice if it r
please refer to [url] http://jira.jboss.com/jira/secure/ReleaseNote.jspa?version=12311437&styleName=Html&projectId=10071&Create=Create [/url] anonymous wrote : | * [JBSEAM-2165] - Authenticator method invoked twice when login fails | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115762#4115762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115762 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Getting rebooted: migration from Middlegen to Hibernate
Lacking any help from the masses, I'll post my own follow ups for those in a similar situation as myself. Maybe someone else will find this useful. I found two pieces of information that helped me get past the migration from Middlegen to Hibernate. The first is the O'Reilly text "Enterprise Java Bean 3.0", (http://www.oreilly.com/catalog/entjbeans5/) which (to me, and I'm an author myself) is the easiest to follow text I've found so far. Mixed with the online chapter for Hibernate (http://www.manning.com/bauer2/), I was able to migrate my build system from Middlegen to Hibernate using reverse-engineering (as they call it - that means something a little different from the world I come from) techniques on our existing MySQL database. First I generate an XML mapping file using HibernateToolTask: | | | | | | | | | | Then I generate the Entity Beans, DAO templates and Entity Bean documentation from the mapping files: | | | | | | | | | | | | | | | | | | Finally, I compile these into the classes that will be used by my server side code to work with the database: | | | | | So now I have the Entity Beans generated. The next step was to write some Session Beans that would act as my WebServices interfaces. The EJB3.0 book from OReilly explained how to do this (chapter 19, but be certain you understand what Session Beans and Remote interfaces are before you read this chapter). With those written, I could use slightly modified code from the old build to generate the WSDL interfaces for both the server and client sides, along with their Java classes (email me if you want to see that code - they use the java2wsdl and wsdl2java Ant tasks from the Apache Axis project). Our project doesn't have a Web browser interface (no JSP or similar) so I left out the web.war file from the application ear file, but this turned out to be a mistake. I had to put the web.war file in the ear along with some configuration information (security constraints, etc. from the web.xml) into the ear before it would deploy. I have a feeling I could still leave out the web.war as long as the proper config files were included in the ear, but I'm not sure which config files to leave in. As an added problem, I'm doing all this with a migration from JBOSS 4.0.5GA to 4.2.2GA. One minor issue I found with this is that with 4.0.5GA I could deploy a *-login-config-service.xml to the server/default/deploy directory and the associated *-login-config.xml to server/default/conf. With 4.2.2GA these both have to go in server/default/conf. Where is the documentation that says that? It's not with the DynamicLoginConfig documentation I found on the JBOSS web site. The deployment is still not complete, however, as I now have some problem with my DataSourceBinding. I believe this to be a configuration error as I changed from one naming scheme for the old project to a new one for the new version of the project. If anyone is interested (and might have a pointer for where to look for this problem), these are the messages I get on the JBOSS console at deploy time: | 10:17:11,403 INFO [EARDeployer] Init J2EE application: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/Crunch.ear | 10:17:11,548 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment | 10:17:11,554 INFO [JmxKernelAbstraction] installing MBean: persistence.units:ear=Crunch.ear,unitName=crunch with dependencies: | 10:17:11,554 INFO [JmxKernelAbstraction] jboss.jca:name=CrunchDS,service=DataSourceBinding | 10:17:11,557 INFO [EJB3Deployer] Deployed: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/tmp/deploy/tmp26596Crunch.ear-contents/crunch-ejb.jar | 10:17:11,565 INFO [EARDeployer] Started J2EE application: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/Crunch.ear | 10:17:11,566 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- Packages waiting for a deployer --- | [EMAIL PROTECTED] { url=file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/crunch-login-config.xml } | deployer: null | status: null | state: INIT_WAITING_DEPLOYER | watch: file:/home/mjhammel/src/cei/jboss-4.2.2.GA-cei/server/default/deploy/crunch-login-config.xml | altDD: null | lastDeployed: 1198773984468 | lastModified: 1198773984000 | mbeans: | | --- Incompletely deployed packages --- | [EMAIL PROTECTED] { url=file:/home/mjhammel/src/cei/jboss-4.2.2.GA-ce
[jboss-user] [JBoss Seam] - Re: Wildcard view-id descriptions for conversation switcher
A JIRA issue has been raised: http://jira.jboss.com/jira/browse/JBSEAM-2432 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115761#4115761 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115761 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Wildcard view-id descriptions for conversation switcher
+1, please open an issue View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115758#4115758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115758 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: rights to see a buton
There is nothing built into Seam to handle this specific situation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115757#4115757 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115757 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: JSF RI Portlet with JBoss Portal 2.6.3??
Have a look on Portletswap.com View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115756#4115756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: External Directories On JBoss 4.2.x
Hi, Michael~ Thanks for your post. I had given up on getting external directories to work via JBoss, and instead went the route of putting an Apache install in front of the JBoss servers to expose those couple folders I was wanting to make available to the corporate machines on our intranet. But, it would of course be preferable to have one less step in the install process, so I am interested to hear that you got things to work. Before I make the attempt, could you provide some additional details of your setup? - What is the path to your JBoss install? What is the path to the directory you made externally visible? And what was the context element you added to your server.xml file? Thanks in advance, - Nathan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115755#4115755 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: h:selectOneMenu and Ajax4jsf problem
Thanks for the reply Damian. I actually just figured it out. I needed to add the following to my a4j:support: and then add that method in my ejb to populate the list. Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115754#4115754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115754 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: h:selectOneMenu and Ajax4jsf problem
Try setting the scope of the Bean to @Scope(SESSION). It's likely that the Bean isn't hanging around longer than the request and that is what is causing the null. Cheers, Damian. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115753#4115753 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115753 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: number of swimlanes retrieved by taskMgmntInstance.getSw
Your processDefinition.xml would be of some help in investigating it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115751#4115751 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115751 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - MyFacesGeneraicPortlet Null Pointer Issue
Hi, I am getting the following error on the server which I am not getting from the local setup. Can anyone please help me out as I am stuck with this issue on the server and not able to proceed - Exception in FacesServlet java.lang.NullPointerException at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:392) at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133) at javax.portlet.GenericPortlet.render(GenericPortlet.java:306) at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:518) at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:434) at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:144) at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java) at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66) at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:51) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:60) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:46) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:77) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:141) at sun.reflect.GeneratedMethodAccessor3281.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:539) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.jboss.portal.portlet.impl.spi.AbstractRequestContext.includ
[jboss-user] [JBoss Messaging] - Re: Traying to run Bridge service
There is an example of this on the user wiki. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115746#4115746 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115746 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: ClassCastExeption while invoking a Bean
Hi! I have the same error however I try to run EJB2.1 beans that were running well on JBoss 4.0.0.CR2 with JBoss 4.2.2.GA. Should I migrate my EJB2.1 beans (and XML descriptors)? I have read that it is possible to use EJB2.1 and EJB3 together. Thanks, Volodymyr View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115748#4115748 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115748 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Traying to run Bridge service
Thanks timfox for your prompt response. now we facing different problem. it looks like we are connected to the remote server, but don't get data from it. do we need to define the bridge in the remote server also ? the remote server has jboss service that create those messages and send them to any client that subscribe to it. how do we set the bridge, in that way that it will be only pipe of data. no logic needed just get the jms from the remote server and send it to the servers that subscribe to it. Thanks, yyagol View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115742#4115742 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - h:selectOneMenu and Ajax4jsf problem
Hi, I'm trying to change a rich:dataTable based on which dropdown item is selected. Here is my drop down: | | | | My Bean: @Stateful | @Name("customerList") | public class CustomerListAction implements CustomerList | { | private Reseller selectedReseller; | private List customerListByReseller; | | @PersistenceContext | private EntityManager em; | | @Logger | private Log log; | | @In | private FacesMessages facesMessages; | | @Create | public void getCustomerByResellerId() | { | try | { | customerListByReseller = em.createQuery("select customer from Customer customer where reseller=:reseller") | .setParameter("reseller", selectedReseller).getResultList(); | } | catch(Exception e) | { | log.error("An error occured: ", e); | } | } | | @Destroy @Remove | public void destroy() | { | } | | public void setSelectedReseller(Reseller selectedReseller) | { | this.selectedReseller = selectedReseller; | } | | public Reseller getSelectedReseller() | { | return selectedReseller; | } | | public void setCustomerListByReseller(List customerListByReseller) | { | this.customerListByReseller = customerListByReseller; | } | | public List getCustomerListByReseller() | { | return customerListByReseller; | } | } The rerender works fine. I can see the a4j rerendering because the datatable is hitting my "getCustomerByResellerId()" method (I see hibernate querying the database). Problem is with selectedReseller. It keeps coming back as Null. So the h:selectOneMenu doesn't place the selected Item into selectedReseller. Anyone see anything wrong with this and why this wouldn't work? Thank you very much, Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115741#4115741 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - NullPointerException in org.apache.myfaces.portlet.MyFacesGe
Hi, I am getting the following error on the server which I am not getting from the local setup. Can anyone please help me out as I am stuck with this issue on the server and not able to proceed - Exception in FacesServlet java.lang.NullPointerException at org.apache.myfaces.portlet.MyFacesGenericPortlet.facesRender(MyFacesGenericPortlet.java:392) at org.apache.myfaces.portlet.MyFacesGenericPortlet.doView(MyFacesGenericPortlet.java:265) at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:133) at javax.portlet.GenericPortlet.render(GenericPortlet.java:306) at org.jboss.portal.portlet.container.PortletContainer.invokeRender(PortletContainer.java:518) at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletContainer.java:434) at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch(PortletContainerInvoker.java:144) at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(PortletInvocation.java:223) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:141) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jboss$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(TransactionInterceptor.java:85) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java) at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66) at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.java:102) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNotSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSupported_4827075286966232824.java) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invokeNotSupported(TransactionInterceptor.java) at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.invoke(TransactionInterceptor.java:55) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.core.aspects.portlet.HeaderInterceptor.invoke(HeaderInterceptor.java:50) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.ProducerCacheInterceptor.invoke(ProducerCacheInterceptor.java:51) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.ModesInterceptor.invoke(ModesInterceptor.java:60) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:46) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:55) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.PortletSessionSynchronizationInterceptor.invoke(PortletSessionSynchronizationInterceptor.java:77) at org.jboss.portal.portlet.invocation.PortletInterceptor.invoke(PortletInterceptor.java:38) at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:131) at org.jboss.portal.portlet.aspects.portlet.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:141) at sun.reflect.GeneratedMethodAccessor3281.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.portal.server.servlet.CommandServlet.doGet(CommandServlet.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.in
[jboss-user] [Beginners Corner] - How JAR files are loaded from EAR file
Hello, I have a question about how JAR files are deployed from within a single EAR file. This is using the clustered JBoss 4.2.2 AS. My app is deployed as an EAR file that contains B.jar and C.jar. B.jar contains a @Stateless B class that @Depends upon class C in C.jar, which is marked as a JBoss @Service. So the C service should start first, and then that can be injected into class B via the @EJB annotation. When I deploy this EAR file, C fails to start before B is created despite the @Depends annotation, so B fail to start properly. If I move classes B and C inside the same JAR, or if I rename C.jar to A.jar, it works fine, so it seems that JBoss is loading the JAR files from within the EAR in alphabetical order. Is there a way to specify the order in which the JARs from my EAR are loaded? Possibly in the application.xml file? Thanks in advance, John View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115739#4115739 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115739 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: SeamFramework.org Alpha Test
It worked from home this morning but not from office. Not sure why, possibly it's blocked but simply getting "Internet Explorer cannot display the webpage" with IE7 and "Firefox can't establish a connection to the server at alpha.seamframework.org:" with Firefox. Possible firewall issue not sure. If I navigate to http://alpha.seamframework.org/ from work I see the equivalent to the in.relation.to home page... When I ping alpha.seamframework.org from work, I get 213.239.194.141 response as the IP. When I ping alpha.seamframework.org:, I get 'ping request could not find host'. Is there an alternative way to access this site??? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115738#4115738 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115738 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Catch-22 with Seam2 and converterId in page parameter -
Pete thanks for that, and it worked too. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115736#4115736 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115736 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Wildcard view-id descriptions for conversation switcher
Yes please, I'd like to have that as well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115733#4115733 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115733 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: jbossws2.0.2 codepage problems
*upd: new String(value.toString().getBytes(), "utf-8") fixes problem is there way to do this automatically? (or similary to jbossws2.0.1) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115732#4115732 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115732 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - where is org.jbpm.delegation package in jbpm-jpdl-3.2.2 suit
Hi all, I am a newbie in jbpm (and also in workflow & bpm concepts) and just trying to make my hello world application go further. I want to store some java beans in my application as variables, so I know that I have to specify a custom serializer in the processdefinition.xml which implements org.jbpm.delegation.Serializer class. but I couldn't notice any jar that contains delegation package or this interface in the jbpm library. Is there a library I should include in my project or am I missing some other point? I read most of the jpdl user guide but cannot still overcome this problem. I'm using the latest JBossIDE and jpdl 3.2.2 suite. Thanks for any help in advance.. Birkan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115731#4115731 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115731 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Wildcard view-id descriptions for conversation switcher
I have recently run into a requirement where it would be nice to have descriptions applied to wildcard view-ids. For example, if I have the following: ... | | Section 1 | ... | | ... Section 1 would be the description for all pages in /section/* unless specified otherwise in a higher precedence page definition. Currently, the FacesManager asks the Page instance directly for a description rather than looking at the page stack (as the login-required, no-conversation-view-id, etc does). This means that every view-id under /section/* must have a description (even if they all have the same page definition). The behavior I require can be accomplished by accessing protected methods (which is certainly not desirable for backwards compatibility), but it is possible. Would there be interest in having this supported directly by Seam? If so, I would be happy to provide a JIRA issue with the patch. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115726#4115726 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115726 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Using couple of Faces components together
Hi. Is it ok in Seam application to use different Faces components together? Like ICEfaces, RichFaces, Ajax4Jsf, Trinidad, woodstock Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115723#4115723 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115723 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Cannot install JBoss on Windows
Do you have any jndi.properties file in your classpath (containing reference to this oracle.j2ee.rmi.RMIInitialContextFactory class)? If so remove that from the classpath. JBoss looks for the default jndi context entries from the jndi.properties file present in %JBOSS_HOME%/server/< serverName>/conf folder (in your case E:/disk_c/compartido/JBoss/jboss-4.2.2.GA/server/default/conf folder). Maybe you have a jndi.properties file in your classpath which is causing this problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115721#4115721 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115721 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Why to use Trinidad?
Hi. Why Seam creators recommend Trinidad suite? It doesn't seem it is under development, no on line documentation. AFAIK, Trinidad is Oracle ADF which it is based on Ajax. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115718#4115718 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115718 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - jbossws2.0.2 codepage problems
when i upgraded from jbossws2.0.1 to jbossws2.0.2 began problems with codepage in returned results... is there any suggestions how to fix it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115719#4115719 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115719 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Flex and Seam Integration
Granite Data Services, an open source alternative to Flex Data Services, now has support for Seam. I've just installed their Seam project skeleton so I haven't tested much of it yet but, suffice to say, several of us have been waiting for something like this. They also have connectors for POJO, Spring and EJBs as RemoteObjects. Flex removes the need for some of the great web-tier features of Seam, but presumably we can use all of the middleware features. Have a look and comment. http://tech.groups.yahoo.com/group/graniteds/message/921 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115716#4115716 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115716 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Http Session expiration
Scenario: 2 non-clustered JBoss servers. Stateless sessions. We have a development and staging duplication of servers as well as a hosted production environment. The only difference in our production environment is our ISP uses a different firewall and hardware load balancer. We are seeing the sessions timeout before they are scheduled to timeout ( a 4 hour timeout timing out after 1 hour ). The session is being set in the application using session.setMaxInactiveInterval(clientTimeout * 60); We suspect the firewall is possibly killing the sessions due to TCP session inactivity... possibly... QUESTION: Has anyone seen such a scenario? If so, how did you resolve? If we suspect incorrectly, is there something we could be overlooking which could be expring the sessions? As we said - same config and code deployment, works properly in other 2 envisonments. Please advise. Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115715#4115715 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115715 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - number of swimlanes retrieved by taskMgmntInstance.getSwimla
Hi all, Does anybody know how it comes that the number of swimlanes reported by TaskMgmtInstance is not constant, and how to get swimlanes when they are not reported by TaskMgmtInstance? After adding an Action with the following code to a processdefinition: | ProcessInstance pi = executionContext.getProcessInstance(); | if (pi != null) { | TaskMgmtInstance taskMgmtInstance = pi.getTaskMgmtInstance(); | if (taskMgmtInstance != null) { | Map swimlanes = taskMgmtInstance.getSwimlaneInstances(); | if (swimlanes != null) { | int nSwimlanes = swimlanes.size(); | log.info("ProcessInstance contains " + nSwimlanes + " swimlanes."); | for (Iterator iterator = swimlanes.values().iterator(); iterator.hasNext();) { | SwimlaneInstance swimlane = (SwimlaneInstance) iterator.next(); | log.info("Swimlane: " + swimlane.getName()); | } | } else { | log.info("Swimlane instances is null"); | } | } else { | log.info("TaskManagementInstance is null."); | } | } else { | log.info("ProcessInstance is null."); | } | The number of swimlanes varied and getSwimlaneInstances() returned null at some point, logging details: | 2007-12-27 15:35:13,812 INFO [com.syfact.workflow.jbpm.handler.LoggingActionHandler] Swimlane instances is null | ... | 2007-12-27 15:35:45,265 INFO [com.syfact.workflow.jbpm.handler.LoggingActionHandler] ProcessInstance contains 1 swimlanes. | ... | 2007-12-27 15:35:45,265 INFO [com.syfact.workflow.jbpm.handler.LoggingActionHandler] ProcessInstance contains 2 swimlanes. | Please say so if you need more information. We would like to call setActorId() on a swimlane but can't retrieve it now. thanks for the help, Marc View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115713#4115713 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115713 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Remoting failing on Firefox 2.0
Ok, some problem with HTML rendering on this forum... So the remote javascript functions look like : function getAllIsoCodes() { Seam.Component.getInstance("helloAction").getAllIsoCodes(getAllIsoCodesCallback); } function getAllIsoCodesCallback(result) { alert(result); } function listePays() { Seam.Component.getInstance("helloAction").getPays(listePaysCallback); } function listePaysCallback(result) { alert(result[0].getCdpayiso()); } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115710#4115710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115710 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam Remoting failing on Firefox 2.0
Hi, I'm having some trouble to use Seam Remoting on Firefox. My example works fine on IE 6, but when debugging within firebug I catch the following exception : [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: :: anonymous :: line 1" data: no] Here are the versions : - Firefox 2.0.0.11 - Seam 2.0.1CR1 Did anybody have some trouble with this setup ? Did I something wrong ? Here is my example code : - "Remote" interface - @Local public interface HelloAction { @WebRemote public String getAllIsoCodes(); @WebRemote public List getPays(); } - XHTML page - http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xmlns:s="http://jboss.com/products/seam/taglib"; xmlns:ui="http://java.sun.com/jsf/facelets"; xmlns:f="http://java.sun.com/jsf/core"; xmlns:h="http://java.sun.com/jsf/html"; xmlns:rich="http://richfaces.org/rich"; xmlns:a="http://richfaces.org/a4j"; template="layout/template.xhtml"> // helloAction All Iso Codes Countries List Thanks for your answers ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115708#4115708 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115708 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Is Virtual Directory mapping supported in JBoss?
I've got virtual directories working in JBoss AS v4.2.2.GA. See my post in the following thread, http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115702. Best, Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115704#4115704 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115704 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: External Directories On JBoss 4.2.x
Hello nhelder, Your post is dated from August 2007, so I do not know if you are still facing this problem. I am new to JBoss AS myself and like you, I was trying to figure out how to use virtual directories in JBoss AS and I had stumbled upon the same posts as you. Using JBoss AS v4.2.2.GA I have successfully employed virtual directories (external directories in the JBoss nomenclature). I followed the steps provided in the external directories wiki page (http://wiki.jboss.org/wiki/Wiki.jsp?page=ExternalDirectories), but skipped copying the default web.xml file. In order to get external directories to work, I had to include the path parameter in the context tag. Originally, I had copied over a working context tag from a standalone version of Apache Tomcat v5.5, which did not include the parameter, path. It was the addition of the path tag that made the external directories work. I hope this helps if you are still trying to use external directories in JBoss AS 4.2.x Best, Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115702#4115702 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115702 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam Exception and Cannot open connection
i know that my query is correct, my problem is because getSingleResult(); throws EntityNotFoundException and i think its closing my connection, but if i want to use another query inside my catch(EntityNotFoundException e) ?? how can i use same connection, or how can i open another connection using SMPC ?? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115703#4115703 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115703 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Connection with active local transaction being reused?
I have an MBean that accesses a database using a datasource configured as a local-tx-datasource. The usual client code (which is used by multiple applications) is a stateless session bean, but the MBean uses straight JDBC with autocommit set to false. The code has been running for quite a while in production with no snags, until a connection timeout on a connection causes an SQL statement to fail, and prevents the rollback code from executing. Since that happened, I see the following behavior again and again in the logs. It appears that the managed connection is being reused even though it hasn't rolled back, and the connection manager is detecting that and trying to clean it up. The end result is that anything calling getConnection() on that datasource and gets that connection continues to fail with the same error, the connection is not being removed and the rollbacks are not completing. Because the applications are not under heavy load this is effectively causing all client apps to fail as most (all) of the getConnection() calls are returning the offending connection. I am using JBoss 4.0.5 GA, using a datasource configured as the following: | | jdbc/AppName | | | jdbc:oracle:thin:@host:1521:DEV | | oracle.jdbc.driver.OracleDriver | | | org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter | | | Oracle9i | | | | with client code that does the following: | DataSource ds = (DataSource)ctx.lookup("java:jdbc/AppName"); | Connection c = null; | | try { | c = ds.getConnection(); | c.setAutoCommit(false); | ... do important *stuff* | c.commit(); | } | catch (Throwable t) { | if (c != null) try { c.rollback(); } catch (SQLException sqle) { /* log... */ } | } | finally { | if (c != null) try { c.close(); } catch (SQLException sqle) { /* log... */ } | } yields: java.sql.SQLException: Io exception: Connection timed out | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162) | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274) | at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:432) | at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:896) | at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:452) | at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:986) | at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2888) | at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2929) | at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:236) | ... and then when trying to rollback because of the exception... 2007-12-23 07:06:28,532 ERROR [MBeanCode] failed to roll back | java.sql.SQLException: Closed Connection | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125) | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162) | at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:227) | at oracle.jdbc.driver.PhysicalConnection.rollback(PhysicalConnection.java:994) | at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcRollback(BaseWrapperManagedConnection.java:581) | at org.jboss.resource.adapter.jdbc.WrappedConnection.rollback(WrappedConnection.java:340) | ... After this occurs, I see the JCA connection manager try to cleanup... 2007-12-23 07:06:28,533 DEBUG [org.jboss.resource.connectionmanager.TxConnectionManager] Unfinished local transaction was rolled [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1198410045635 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] txSync=null] | I then see the same managed connection and the same LocalXAResource fail when other requests are given what seems to be the same connection? For instance, one of many log messages the appear after that (for 2 days in production at least): 2007-12-23 07:26:28,556 DEBUG [org.jboss.resource.connectionmanager.TxConnectionManager] Unfinished local transaction was rolled [EMAIL PROTECTED] [EMAIL PROTECTED] handles=0 lastUse=1198412188545 permit=true trackByTx=false [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] txSync=null] 1.) Why is the connection being reused? 2.) What can I do to prevent this from occurring? View the original post : http://www.jboss.com/index.html
[jboss-user] [JBoss Seam] - Re: Creating a simple dropdown problems
That was it. Thank you very much Pete. This is all very new to me, I've been in struts 1 land for a very long time. -Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115700#4115700 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115700 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & DEPLOYMENT] - Cannot install JBoss on Windows
Hi, I have been trying to install jboss-4.2.2.GA with jdk1.5.0_12 on Windows XP sp2 station and all the times i got a message like this: "javax.naming.NoInitialContextException: Cannot instantiate class: oracle.j2ee.rmi.RMIInitialContextFactory" I have Oracle SOA Suite (OC4J) already installed in the machine, but it's not running at the same time when i try to install JBoss. What do you think?, it's a configuration theme? Here is a part of the bootstrap activities logged and as you will see appears the message related to the Oracle class 2007-12-27 10:48:32,154 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=WebService 2007-12-27 10:48:32,154 DEBUG [org.jboss.web.WebService] Starting jboss:service=WebService 2007-12-27 10:48:32,170 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Running 2007-12-27 10:48:32,170 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Disabled, waiting for notification 2007-12-27 10:48:32,170 DEBUG [org.jboss.web.WebServer] Started server: ServerSocket[addr=/127.0.0.1,port=0,localport=8083] 2007-12-27 10:48:32,185 DEBUG [org.jboss.web.WebService] Started WebServer with address: /127.0.0.1:8083 2007-12-27 10:48:32,185 DEBUG [org.jboss.web.WebService] Started jboss:service=WebService 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss:service=WebService dependent components: [] 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=Naming 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] waiting in start jboss:service=Naming on jboss:service=NamingBeanImpl 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss.system:type=Log4jService,service=Logging 2007-12-27 10:48:32,185 DEBUG [org.jboss.logging.Log4jService] Starting jboss.system:type=Log4jService,service=Logging 2007-12-27 10:48:32,185 DEBUG [org.jboss.logging.Log4jService] Started jboss.system:type=Log4jService,service=Logging 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.system:type=Log4jService,service=Logging dependent components: [] 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss.rmi:type=RMIClassLoader 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.rmi:type=RMIClassLoader dependent components: [] 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=WebService 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] Ignoring start request for service: jboss:service=WebService 2007-12-27 10:48:32,185 DEBUG [org.jboss.system.ServiceController] starting service jboss:service=NamingBeanImpl 2007-12-27 10:48:32,185 DEBUG [org.jnp.server.NamingBeanImpl] Using NamingServer: [EMAIL PROTECTED] 2007-12-27 10:48:32,185 DEBUG [org.jnp.server.NamingBeanImpl] Installed global NamingServer: [EMAIL PROTECTED] 2007-12-27 10:48:32,201 WARN [org.jboss.system.ServiceController] Problem starting service jboss:service=NamingBeanImpl javax.naming.NoInitialContextException: Cannot instantiate class: oracle.j2ee.rmi.RMIInitialContextFactory [Root exception is java.lang.ClassNotFoundException: No ClassLoaders found for: oracle.j2ee.rmi.RMIInitialContextFactory] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) at javax.naming.InitialContext.init(InitialContext.java:223) at javax.naming.InitialContext.(InitialContext.java:175) at org.jnp.server.NamingBeanImpl.start(NamingBeanImpl.java:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142) at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:995) at $Proxy0.start(Unknown Source) at org.jboss
[jboss-user] [Security & JAAS/JBoss] - Caching name and passwordcallbackhandler
Hi I have 2 applications running on 1 server instance. Both have a different loginmodule and have a different security domain. The first application is a management application and allows administrators to login on the 2nd application as different users. For this I've setup an SSO solution --> SAML ticket and username are sent loginmodule of the 2nd application using the standard form authentication (auto submit), but in the 2nd loginmodule when I use the name and passwordcallbackhandlers they return me username and password of my first application and not the username and samlticket. So callbacks still cache previous values. Putting the DefaultCacheTimeout = 0 is not an option as it affects our performance. Is there any way to make sure the callbacks are not cached? thx View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115696#4115696 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115696 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - JSF RI Portlet with JBoss Portal 2.6.3??
Hi Forum I have downloaded the new JBoss Portal 2.6.3. I would very much like to use the Sun RI of JSF for my new project. I have however been unable to find a simple example application that shows how to do this. A lot of the problems have to do with the portal apps using MyFaces and the JBoss AS being packaged with the JSF RI. The closest I have come is using the JSFMetaBridgePortlet - this one does however throw a NPE on undeploy. I hope there is a simple answer to what I think is a simple question: Can anyone point me to a JSF RI portlet-demo-app working on JBoss Portal 2.6.3? Thanks a lot. /Michael View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115694#4115694 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115694 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user