[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Error in Version mismatch
Thank you very much for Responding sir here, added the information you want.Kindly Response . JDK Version:- j2sdk1.4.2_03 Java Runtime Environment:-j2re1.4.2_03 jboss 3.2.5 MyEclipse 5.1.1 Installed Eclipse 3.2.2 unzipped Operating system Windows Xp-version 2002 When i try to deploy my project the deployment was successfull but when i run the application , i get the following error 11:46:12,343 ERROR [Compiler] Javac exception Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966) at org.apache.jsp.login_jsp._jspService(login_jsp.java:217) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
[jboss-user] [Management, JMX/JBoss] - Connect JMX server to Jboss 4.0.5 to see the Mbeans in JCon
Hi All, I'm trying to see the MBeans of JBoss 4.0.5 in Jconsole by stpes in the given link http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMBeansInJConsole but still its not able to see Mbeans. I added the following things in run.conf file # Specify options to pass to the Java VM. # if [ "x$JAVA_OPTS" = "x" ]; then JAVA_OPTS="-Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360" fi JAVA_OPTS="$JAVA_OPTS -Djavax.management.builder.initial=org.jboss.system.server.jmx.MBeanServerBuilderImpl" JAVA_OPTS="$JAVA_OPTS -Djboss.platform.mbeanserver" JAVA_OPTS="$JAVA_OPTS -Dcom.sun.management.jmxremote" Also JBoss starts successfully but bot able to show the Mbeans in JConsole. - Hemant View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035865#4035865 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035865 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: The deployment of EJB3.0 is too slow, 5m for each bean
I find the problem. Wrong but can work in JBOSS( not in Weblogic): @Stateless public class A implements ASvr, ALocal{} @Remote public interface ASvr{} @Local public interface ALocal{} Correct: @Stateless @Remote(ASvr.class) @Local(ALocal.class) public class A implements ASvr, ALocal{} public interface ASvr{} public interface ALocal{} View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035864#4035864 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035864 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Duplicate sessionIds in cluster
First off, thanks to everyone for posting solutions. Unfortunately, after implementing the alphabet changes, re-verifying the configuration (as suggested above) and adding more verbose logging we continue to have the problem. It turns out, the duplicate IDs are actually occurring on the same node! Any further help is much appreciated. Thanks in advance. Michele View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035862#4035862 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035862 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Struts spring hibenate in jboss without jboss-deployer
hi, i already tried with .WAR. Iam planning to use springdeployer. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035861#4035861 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035861 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Http Session Management into Seam
anybody knows about it ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035860#4035860 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035860 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Does Seam framework paging works if in long conversation?
Dear all, Has anyone tried to include a page that has a paging from Seam framework in a long running conversation (pageflow)? Let's say I have screen 1 that refers to screen 2 in a pageflow. Screen 2 has paging that is derivated from seam framework. But when I tried the paging at screen 2, the paging doesn't work. Has anyone got a workaround for this? Or have I missed out on something? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035859#4035859 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035859 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: page action not called when login-required=
yes, I use the Security framework (jboss-seam-1.2.1.GA) which works great except for that particular case. http://jira.jboss.org/jira/browse/JBSEAM-1157 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035858#4035858 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035858 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: page action not called when login-required=
What version of Seam are you using. Are you using the new Identity and Authenticator paradigm? If so here is how I define pages that are required to have the user logged in and I successfully get redirected to the proper page when login is successful. Here is an snippet from my pages.xml: | | #{s:hasRole('user')} | | | | #{s:hasRole('user')} | | Here is my Authenticator object which is generated by seam-gen and then edited by me. | package com.clooster.web.ejb.session; | | import java.util.List; | | import javax.faces.application.FacesMessage; | import javax.faces.context.FacesContext; | import javax.naming.NamingException; | import javax.persistence.EntityManager; | import javax.persistence.EntityManagerFactory; | | import org.jboss.seam.annotations.In; | import org.jboss.seam.annotations.Logger; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.contexts.Context; | import org.jboss.seam.core.FacesMessages; | import org.jboss.seam.log.Log; | import org.jboss.seam.security.Identity; | import org.jboss.seam.util.Naming; | | import com.clooster.web.ejb.entity.ClUsers; | import com.clooster.xjava.common.XSystem; | | @Name("authenticator") | public class Authenticator | { | @Logger | Log log; | | @In | Identity identity; | | @In | FacesMessages facesMessages; | | @In | private transient Context sessionContext; | | @In | private transient FacesContext facesContext; | | @SuppressWarnings("unchecked") | public boolean authenticate() | { | boolean rc; | | log.info("authenticating #0", identity.getUsername()); | | EntityManager em; | try | { | em = this.getEntityManager(); | | List results = em | .createQuery( | "from ClUsers where cloosterid=:cloosterid and password=:password") | .setParameter("cloosterid", identity.getUsername()) | .setParameter("password", | identity.getPassword().getBytes()) | .getResultList(); | | if (results.size() == 0) | { | facesContext.addMessage(null, new FacesMessage( | "Invalid login")); | | rc = false; | } | else | { | ClUsers user = results.get(0); | | // log.info("Logged in user = " + user.getFirstname() + | // " " + user.getLastname()); | sessionContext.set("loggedIn", true); | sessionContext.set("user", user); | | // write your authentication logic here, | // return true if the authentication was | // successful, false otherwise | identity.addRole("user"); | | log.info("Logged In"); | rc = true; | } | } | catch (NamingException e) | { | facesContext | .addMessage( | null, | new FacesMessage( | "Internal Error obtaining EntiryManager - contact [EMAIL PROTECTED]")); | | XSystem.logException(e); | | rc = false; | } | | return rc; | } | | protected EntityManager getEntityManager() throws NamingException | { | EntityManagerFactory factory = (EntityManagerFactory) Naming | .getInitialContext().lookup( | "java:/CloosterEntityManagerFactory"); | | EntityManager em = factory.createEntityManager(); | | return em; | } | } | Here is my login.xhtml mainly generated via seam-gen as well: | 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.ajax4jsf.org/rich"; | template="layout/template.xhtml"> | | | | | | | | | Login | | Please login using any username and password | | | | Username | | Password | | Remember me | |
[jboss-user] [JBoss Messaging] - Re: Machine with Two LAN Card -Not able to receive message
Hello Everybody It seems i have not pasted the actual exception in the previous post. Below is the Configuration Details of that machine(With TWO LAN Cards) i got the below output after executing ifconfig in SUSE Linux starahdsat:/opt/test # ifconfig eth0 Link encap:Ethernet HWaddr 00:19:DB:2F:24:F9 inet addr:10.0.18.101 Bcast:10.0.18.255 Mask:255.255.255.0 inet6 addr: fe80::219:dbff:fe2f:24f9/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:7876 errors:0 dropped:0 overruns:0 frame:0 TX packets:15737 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:516182 (504.0 Kb) TX bytes:23280180 (22.2 Mb) Interrupt:11 eth1 Link encap:Ethernet HWaddr 00:80:C8:04:6E:39 inet addr:172.19.6.7 Bcast:172.19.6.255 Mask:255.255.255.0 inet6 addr: fe80::280:c8ff:fe04:6e39/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:9697 errors:0 dropped:0 overruns:0 frame:0 TX packets:1598 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:860343 (840.1 Kb) TX bytes:250335 (244.4 Kb) Interrupt:10 Base address:0xbc00 loLink encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:373 errors:0 dropped:0 overruns:0 frame:0 TX packets:373 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:42085 (41.0 Kb) TX bytes:42085 (41.0 Kb) Let me post the exception . DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=15 isLong=false DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0 DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=6 isLong=false DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0 DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=24 isLong=false DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0 DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition DEBUG 2007-Apr-09 03:20:17 Reading object for id=12 [EMAIL PROTECTED] className = java.lang.StackTraceElement DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=31 isLong=false DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0 DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=methodName<<-reading Object DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=6 isLong=false DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0 DEBUG 2007-Apr-09 03:20:17 FieldName on Read=declaringClass DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=declaringClass<<-reading Object DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=56 isLong=false DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0 DEBUG 2007-Apr-09 03:20:17 objectFromDescription::reading new definition DEBUG 2007-Apr-09 03:20:17 Reading object for id=16 [EMAIL PROTECTED] className = java.lang.StackTraceElement DEBUG 2007-Apr-09 03:20:17 defaultRead::class java.lang.StackTraceElement contains 1 slots DEBUG 2007-Apr-09 03:20:17 defaultRead::slot[0]=java.lang.StackTraceElement DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement DEBUG 2007-Apr-09 03:20:17 FieldName on Read=lineNumber DEBUG 2007-Apr-09 03:20:17 FieldName on Read=fileName DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceElement field=fileName<<-reading Object DEBUG 2007-Apr-09 03:20:17 Reading string with utfSize=18 isLong=false DEBUG 2007-Apr-09 03:20:17 readString::pulling data to Buffer at pos 0 size= 0 DEBUG 2007-Apr-09 03:20:17 FieldName on Read=methodName DEBUG 2007-Apr-09 03:20:17 readSlotWithFields slot=java.lang.StackTraceE
[jboss-user] [JBoss Seam] - Re: page action not called when login-required=
Please raise this in JIRA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035855#4035855 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035855 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Interceptors broken?
I have the following: @Stateless public class SomeSLSB { @Interceptors(SomeInterceptorA.class) public someMethod() someOtherMethod() @Interceptors(SomeInterceptorB.class) public someOtherMethod() } Can someone please tell me with 404GA why when I call someMethod() interceptor A gets called but not B. It seems someOtherMethod() does get called but the interceptor around it is not triggered. Are interceptors only triggered from my SLSBs local interface? It seems by spec, both interceptors should be called and they are certainly not! Little help? I can give more specific examples if the above isn't clear but this seems like a real bug. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035853#4035853 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035853 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - page action not called when login-required=
hello, I try to achieve the following behavior. When a user want to see his account, he will be directed an account page that depends on certain user information. The account page is in the restricted area that requires login. So when the user click on a "View account" link, I'd like to go first to the login page and then have the accountAction.outcome method called (This methods return string representing the outcome). I have the following pages configuration | | | | | | | ... | | The user access the account page by clicking on the following link: | View Account | When clicking on that link, I get the login page, I can login properly but the action method is never called (so I don't go to the account page, but remain in the login page). If I remove the login-required attribute, then the action is called properly (of course, there is no login in that case). Is it possible to use both attributes "action" and "login-required" together? If not, what would be a way to achieve this behavior? Regards, Richard View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035852#4035852 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035852 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: JBoss hot deploy?
With the instruction below, http://wiki.jboss.org/wiki/Wiki.jsp?page=HotDeployment I find that I just need to modify some files (e.g. web.xml), JBoss would re-deploy the service. Can I add jsp, class, ..., to the list on the matter? Namely, when I modify jsp, class, ..., files, JBoss also can re-deploy service. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035851#4035851 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035851 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: @EJB annotation injection broken in 4.0.5.GA
"doktora" wrote : Has anyone had this problem? | | I just ported an app to 4.0.5.GA and none of the @EJB annotations inject their beans. | I've searched in jira/forum/google and have found only one other place where someone reported this problem on the sun developers forums. | | regards | --doktora | | Litte bit more context and an example? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035850#4035850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035850 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: WS-Security and certificate password
I have a patch. It works. I could simply apply the patch in Subversion, but I would prefer to place the patch into JIRA and have someone on the JBossWS team apply the patch (especially since I changed the xsd file, not sure if that requires a new version number or what). But JIRA doesn't like me, no matter whether I use Firefox or IE. When I log in, I can see the list of projects in the left column, but in the right column, where I should see things such as my assigned JIRA tasks, I instead see this exception: An error occurred whilst rendering this message. Please contact the administrators, and inform them of this bug. Details: --- java.lang.NullPointerException at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchCount(LuceneSearchProvider.java:87) at com.atlassian.jira.portal.portlets.SavedFiltersPortlet.getCountsForFilter(SavedFiltersPortlet.java:52) at sun.reflect.GeneratedMethodAccessor832.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:267) at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:197) at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:175) at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:220) at org.apache.velocity.runtime.parser.node.ASTBlock.r! ender(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.directive.Foreach.render(Foreach.java:166) at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:114) at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:55) at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:70) at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:230) at org.apache.velocity.Template.merge(Template.java:256) at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:450) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:76) at com.atlassian.velocity.DefaultVelocityManager.getEncodedBody(DefaultVelocityManager.java:60) at com.atlassian.velocity.DefaultVelocityManager.getEncodedB! ody(DefaultVelocityManager.java:55) at com.atlassian.jira.plugin.JiraR esourcedModuleDescriptor.getHtml(JiraResourcedModuleDescriptor.java:97) at com.atlassian.jira.portal.PortletImpl.getViewHtml(PortletImpl.java:67) at com.atlassian.jira.portal.portlets.AbstractRequiresUserPortlet.getViewHtml(AbstractRequiresUserPortlet.java:25) at org.apache.jsp.secure.views.dashboard_jsp._jspService(dashboard_jsp.java:1035) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) 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.cor! e.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:253) 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 com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:35) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.open! symphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:1 19) at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55) at com.atlassian.jira.web.filters.SitemeshExcludePathFilter.doFilter(SitemeshExcludePathFilter.java:38) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at or
[jboss-user] [JBoss jBPM] - Re: SessionFactory creation
Hello. The SessionFactory would are referring to is part of Hibernate. You can read up on the Hibernate site how to create a SessionFactory. For example, you could put the hibernate.cfg.xml file at the root of your classpath. Then to get a SessionFactory, you can use this line of code: SessionFactory sf = new Configuration().configure().buildSessionFactory(); There is also another way to get a SessionFactory. In your jbpm.cfg.xml, there should be this line If there isn't, add it in between Add jbpm.cfg.xml to the root of your classpath. You could then create a class with the a static field. i.e.: private static final JbpmConfiguration jbpmConfiguration; you can use a static initalizer in this class to create the JbpmConfiguration object.i.e.: static { | try { | jbpmConfiguration = JbpmConfiguration.getInstance(); | } catch (Throwable ex) { | throw new ExceptionInInitializerError(ex); | } | } and write a static method to get this object.i.e.: public static JbpmConfiguration getJbpmConfiguration() { | return jbpmConfiguration; | } You could call this class something like JbpmUtil You could use a listener to create an instance of this object when your application starts. >From then on, when you need a SessionFactory, you can use these lines of code: JbpmConfiguration jbpmConfig = JbpmUtil.getJbpmConfiguration(); | JbpmContext jbpmContext = jbpmConfig.createJbpmContext(); | SessionFactory sessionFactory = jbpmContext.getSessionFactory(); Hopefully this helps. This is the way it worked for me to integrate jbpm, hibernate and my own application. Hopefully some of the seniors can add to this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035848#4035848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035848 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: Duke's Bank problem
NEVERMINDI found the other explanations of this problem. SOrry for the bother. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035847#4035847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035847 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Cannot persist replicated EntityBeans
There's no relationship between EJB3 entity caching and the standardjboss.xml stuff (which is for EJB2). Not sure why you're seeing database activity; can only suggest you turn up the logging level on org.hibernate if you want to better follow what the EntityManager is doing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035846#4035846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035846 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - The deployment of EJB3.0 is too slow, 5m for each bean
It will use 5min to deploy a session bean on AS 4.2.0 RC1, Is this any way to speed this up? thanks for help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035845#4035845 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035845 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - question on createTimerAction.java
I have had to implement an actionHandler that replaces the action because I want to be able to dynamically update the dueDate (see http://www.jboss.org/index.html?module=bb&op=viewtopic&t=85157 and http://www.jboss.org/index.html?module=bb&op=viewtopic&t=82969 ) So I have done the following in an actionHandler: jbpmContext = executionContext.getJbpmContext(); | jbpmContext.save(executionContext.getProcessInstance()); | CreateTimerAction cta = new CreateTimerAction(); | | //Timer and duedate are required fields | cta.setTimerName(timerName); | cta.setDueDate(strDueDate); | | if (transitionName != null) | cta.setTransitionName(transitionName); | if (repeat != null) | cta.setRepeat(repeat); | if (timerAction != null) | //cta.setTimerAction((Action) Class.forName(timerAction).newInstance()); | cta.setTimerAction(new Action(new Delegation(timerAction))); And done the following in a process: | UPES_Wait_for_Expiry | fidelityMaintWait | UPES_Wait_for_Expiry_Decision | com.homeq.payoffdemand.jbpm.actions.upes.CalcWaitForExpiryActionHandler | Does this seem reasonable? is there a better way? In PaRticular, how do I set the action. The above timerAction is an implementation of actionHandler, and I don't know if this is the correct way to set it into the setTimerAction call - see above. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035844#4035844 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035844 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to manage the ?managed? property of EntityHome?
I am using seam-gen to generate classes and default pages. The boolean ?managed? property of a Home bean derived from ?EntityHome? indicates whether we persist the object or edit it. I tracked the value of this property. Before ?persist? it is true. Immediately after invoking ?persist? this property becomes false on the next page. Then on the next page it becomes true. I need to make ?managed? true immediately after persist. As I understand that means complete finish of the transaction (I might be wrong) Is it possible? Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035842#4035842 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035842 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Javassist object returned from Component.getInstance(
Hi, I have a strange problem. I'm trying to access another Seam SFSB (SFSB1) from inside another Seam SFSB (SFSB2). I have an accessor in SFSB1 as follows: | /** | * @return the webTreeModel | */ | public WebDocumentTreeModelBean getWebDocumentTreeModel() | { | if (this.webDocumentTreeModel == null) | { | Object o = Component.getInstance("webDocumentTreeModel", ScopeType.SESSION, true); | | if (o != null) | { | log.info("Component instance for webDocumentTreeModel is " + o.getClass().getName()); | this.webDocumentTreeModel = (WebDocumentTreeModelBean) o; | } | else | { | log.info("Failed to create the component webDocumentTreeModel"); | } | } | | return this.webDocumentTreeModel; | } | The Component.getInstance("webDocumentTreeModel") call doesn't return null. However, when I cast it to what I think it should be I get the following error: anonymous wrote : | java.lang.ClassCastException: org.javassist.tmp.java.lang.Object_$$_javassist_21 My WebDocumentTreeModel local interface is defined as follows: | import javax.ejb.Local; | | @Local | public interface WebDocumentTreeModel | { | public void destroy(); | | My SFSB is defined as follows: | @Stateful | @Name("webDocumentTreeModel") | @Scope(ScopeType.SESSION) | public class WebDocumentTreeModelBean implements WebDocumentTreeModel | { | | } The other SFSB is defined in a similar fashion and was created using seam gen. The one in question was not however. I'm just curious if anyone knows about this or has seen this before and can give me a pointer as to what I'm doing wrong. I'm using Seam 1.2.1 GA and Rich Faces lastest snapshot jar with JBoss 4.0.5.GA Any help is greatly appreciated. Thanks, PVM View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035841#4035841 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035841 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Duke's Bank problem
I was able to exectue each of the steps outlined in the getting started guide for dukes bank without a single warning...that is until deployment. I can ignure the warnings, I suppose. But ultimately, the application fails to load. Any advice would be appreciated. I am using 4.0.5.GA, JDK 1.5.11, WinXP Once deployed, I got the following dump: 21:15:22,203 INFO [EARDeployer] Init J2EE application: file:/C:/JBoss/jboss-4.0.5.GA/server/default/deploy/JBossDukesBank.ear 21:15:23,421 WARN [verifier] EJB spec violation: Bean : CustomerBean Section: 12.2.2 Warning: The class must be defined as public and must not be abstract. 21:15:23,437 WARN [verifier] EJB spec violation: Bean : CustomerBean Section: 12.2.5 Warning: Every entity bean must define the ejbFindByPrimaryKey method. 21:15:23,437 WARN [verifier] EJB spec violation: Bean : CustomerBean Section: 22.2 Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the element. Info : Class not found on 'com.sun.ebank.ejb.customer.CustomerHome': No ClassLoaders found for: com.sun.ebank.ejb.customer.CustomerHome 21:15:23,437 WARN [verifier] EJB spec violation: Bean : CustomerBean Section: 22.2 Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element. Info : Class not found on 'com.sun.ebank.ejb.customer.Customer': No ClassLoaders found for: com.sun.ebank.ejb.customer.Customer 21:15:23,437 WARN [verifier] EJB spec violation: Bean : CustomerBean Section: 12.2.1 Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean. 21:15:23,437 WARN [verifier] EJB spec violation: Bean : AccountBean Section: 12.2.2 Warning: The class must be defined as public and must not be abstract. 21:15:23,437 WARN [verifier] EJB spec violation: Bean : AccountBean Section: 12.2.5 Warning: Every entity bean must define the ejbFindByPrimaryKey method. 21:15:23,437 WARN [verifier] EJB spec violation: Bean : AccountBean Section: 22.2 Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the element. Info : Class not found on 'com.sun.ebank.ejb.account.AccountHome': No ClassLoaders found for: com.sun.ebank.ejb.account.AccountHome 21:15:23,453 WARN [verifier] EJB spec violation: Bean : AccountBean Section: 22.2 Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element. Info : Class not found on 'com.sun.ebank.ejb.account.Account': No ClassLoaders found for: com.sun.ebank.ejb.account.Account 21:15:23,453 WARN [verifier] EJB spec violation: Bean : AccountBean Section: 12.2.1 Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean. 21:15:23,453 WARN [verifier] EJB spec violation: Bean : TxBean Section: 12.2.2 Warning: The class must be defined as public and must not be abstract. 21:15:23,453 WARN [verifier] EJB spec violation: Bean : TxBean Section: 12.2.5 Warning: Every entity bean must define the ejbFindByPrimaryKey method. 21:15:23,453 WARN [verifier] EJB spec violation: Bean : TxBean Section: 22.2 Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the element. Info : Class not found on 'com.sun.ebank.ejb.tx.TxHome': No ClassLoaders found for: com.sun.ebank.ejb.tx.TxHome 21:15:23,453 WARN [verifier] EJB spec violation: Bean : TxBean Section: 22.2 Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the element. Info : Class not found on 'com.sun.ebank.ejb.tx.Tx': No ClassLoaders found for: com.sun.ebank.ejb.tx.Tx 21:15:23,453 WARN [verifier] EJB spec violation: Bean : TxBean Section: 12.2.1 Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean. 21:15:23,843 ERROR [MainDeployer] Could not create deployment: file:/C:/JBoss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp34154JBossDukesBank.ear-contents/bank-ejb.jar org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages. at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035840#4035840 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035840 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: PojoCacheListener: modify
"supi" wrote : Hey everybody, | | I'm experimenting with Habanero b2, and with POJO listener notification in particular. I have a couple of questions: | | - Will there be an API to query the cache for a Pojo's Fqns or Ids? I understand that this can be an expensive operation but I think it should be available on demand if not provided with the notification. | There is baseInterceptor.getFqn(), and you can get an interceptor by doing something like: (BaseInterceptor) AopUtil.findCacheInterceptor(((Advised) o)._getInstanceAdvisor()); This used to work in 1.4.1 fine, but now returns the InternalFqn, which doesn't work for me. (and may be a bug?) Might work for what you want though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035838#4035838 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035838 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Request for PDF p:element tag
Norman, Many thanks for implementing this. Unfortunately it doesn't work for my purpose. I forgot that I needed access to the DocWriter in order to draw the graph onto the pdf. The element tag may end up being useful for other purposes though. I extended ITextComponent to create a simple tag to renderer JFreeCharts. Possibly someone will find it useful. | public class PdfGraph extends ITextComponent { | | JFreeChart graph = null; | Element element = null; | float height; | float width; | | /** | * | */ | public PdfGraph() { | | } | | public void setValue(JFreeChart graph) { | this.graph = graph; | } | | /* (non-Javadoc) | * @see org.jboss.seam.pdf.ui.ITextComponent#createITextObject(javax.faces.context.FacesContext) | */ | @Override | public void createITextObject(FacesContext context) { | graph = (JFreeChart) valueBinding(context, "value", graph); | height = (Float) valueBinding(context, "height", height); | width = (Float) valueBinding(context, "width", width); | | UIDocument doc = (UIDocument)this.findITextParent(this, UIDocument.class); | DocWriter writer = doc.getWriter(); | | if (writer instanceof PdfWriter) { | try { | PdfContentByte cb = ((PdfWriter)writer).getDirectContent(); | PdfTemplate tp = cb.createTemplate(width, height); | Graphics2D g2d = tp.createGraphics(width, height, new DefaultFontMapper()); | Rectangle2D r2d = new Rectangle2D.Double(0, 0, width, height); | this.graph.draw(g2d, r2d); | g2d.dispose(); | this.element = new ImgTemplate(tp); | } catch (Exception x) { | x.printStackTrace(); | } | } | } | | | /* (non-Javadoc) | * @see org.jboss.seam.pdf.ui.ITextComponent#getITextObject() | */ | @Override | public Object getITextObject() { | return element; | } | | /* (non-Javadoc) | * @see org.jboss.seam.pdf.ui.ITextComponent#handleAdd(java.lang.Object) | */ | @Override | public void handleAdd(Object arg0) { | throw new RuntimeException("No children allowed"); | } | | /* (non-Javadoc) | * @see org.jboss.seam.pdf.ui.ITextComponent#removeITextObject() | */ | @Override | public void removeITextObject() { | element = null; | } | | public float getHeight() { | return this.height; | } | | public void setHeight(float height) { | this.height = height; | } | | public float getWidth() { | return this.width; | } | | public void setWidth(float width) { | this.width = width; | } | | } thanks, Dustin View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035837#4035837 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035837 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
I don't know what code you want to see, but here's the bean code: | @Stateful | @Scope(ScopeType.SESSION) | @Name("categorybean") | public class CategoryBean implements CategoryLocal { | | private static final int PAGE_SIZE = 30; | | @In | private EntityManager db; | | @RequestParameter | private String id; | | private Category cat; | private Query entryQuery; | private int page = 0; | | public Category getCategory() { | if (cat == null) | cat = db.find(Category.class, Short.parseShort(id)); | return cat; | } | | @SuppressWarnings("unchecked") | public List getEntries() { | if (entryQuery == null) { | Session session = (Session) db.getDelegate(); | entryQuery = session.createFilter(getCategory().getEntries(), ""); | } | | entryQuery.setFirstResult(page * PAGE_SIZE).setMaxResults(30); | return entryQuery.list(); | } | | public boolean isPreviousPageAvailable() { | return page > 0; | } | | public boolean isNextPageAvailable() { | return page * PAGE_SIZE < getCategory().getNumEntries() - 1; | } | | public void jumpPage() { | // Dummy method for jumping pages | } | | public void previousPage() { | page--; | } | | public void nextPage() { | page++; | } | | public int getPage() { | return page; | } | | public void setPage(int page) { | this.page = page; | } | | public int[] getPageNumbers() { | int[] pageNumbers = new int[getCategory().getNumEntries()]; | for (int i = 0; i < getCategory().getNumEntries(); i++) | pageNumbers = i + 1; | return pageNumbers; | } | | @Remove @Destroy | public void destroy() {} | | } | and the local interface: | @Local | public interface CategoryLocal { | | Category getCategory(); | | List getEntries(); | | int[] getPageNumbers(); | | void jumpPage(); | | int getPage(); | | void setPage(int page); | | boolean isPreviousPageAvailable(); | | boolean isNextPageAvailable(); | | void previousPage(); | | void nextPage(); | | void destroy(); | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035836#4035836 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035836 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - a4jsf issue impacting seam-gen from CVS
I see seam-gen was updated today to prepare for general targeting of Jboss 4.2. I gave it a try, and bumped into issue http://jira.jboss.com/jira/browse/AJSF-32 , which I also saw on my own when I tried targeting 4.2 a few weeks ago. It's easy to reproduce, and I added comments to the Jira issue describing what I'm seeing. In a nutshell, users running a freshly generated seam-gen project who have added a new-action, quickly see: java.lang.ArrayStoreException: org.apache.commons.collections.UnboundedFifoBuffer when clicking on the generated page's button. Just wanted to let you know since this seems like it will impact anyone using seam-gen from CVS at this point. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035835#4035835 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035835 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss and NetBeans] - Re: Which should be the best platform for JBoss?
I suggest you to use Eclipse + JbossIde (2.0 version). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035833#4035833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: JSPs in JBoss
I guess I am not sure what you are attempting to do. There is a lot of documentation available on the web regarding the layout of the war file. Read chapters 2-5 at http://pdf.moreservlets.com/ for fairly decent coverage. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035829#4035829 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035829 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: Wiki as main page
Ok hack (woraround) for now: Added to main page ;) !!!__[Login|http://:8080/portal/auth]__ Forces going to login page when clicked (if not already logged in) Seems to work ok. Still need the link to the admin page if anyone has got it handy! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035828#4035828 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035828 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Wiki as main page
I have set my default page to wiki. I then add the login component to the top of the wiki page. So, when users come to the portal they go straight to the wiki (as thats all I want) When the server gets rebooted, the fact I added the login component gets forgotten, so I have to go to the admin page to re-add the login component to the top of the wiki page. Problem is I have now lost the URL to get to the admin page and the server was rebooted... Can someone please post me the URL to get me to the admin page! Something like http://xxx:8080/portal/AdminPage View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035826#4035826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Performance Tuning] - Re: performance degradation
just to wrap things, the problem was in the GC, after one day the tenured space growed enough to make it almost perma gc, the leak in memory was the tomcat sessions that by default are stored in memory, switching it to JDBCStore fixed the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035824#4035824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035824 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Changes not persisted using EntityHome
Like I said, you need to use merge() if you are not using a seam managed persistence context. Using @PersistenceContext does not mean that it is a seam managed one. >From what I can gather, if you obtain your entity bean in one session bean and >then try and update it in another session bean then you have to do a merge() >unless you are using a seam managed persistence context. This is because each >context is unique to each session bean. I don't understand why you are getting errors with your List with Hibernate though. What version are you using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035823#4035823 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035823 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - NO Scheduler - POJO Service registered
My pojo is annotated as a service. It registers fine. I find it in the jmx-console, and I am able to execute the method made avialable. However, my sheduler xml-service is not activiating the service as expected: | | | true | jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface | resetApplicationDataStore | NOW | 1 | -1 | jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035822#4035822 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035822 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Service Registered - POJO - Schedule not working
I am new to the use of MBEAN services. I have a pojo that is annotated as a service. Upon deployment it registers itself fine. I coded the create and start methods to do a system out on startup. That all works fine. however, i am trying to get it to run as a timer type service. That part never kicks in. Here is my xml service file. | | | true | jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface | resetApplicationDataStore | NOW | 1 | -1 | jboss.j2ee:ear=OA_ISIS02_040207.ear,jar=oa-common.jar,name=AppDataRefreshService,service=EJB3,type=ManagementInterface | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035820#4035820 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035820 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - provide your own wsdl - cannot seem to get this to work
I followed http://www.jboss.com/index.html?module=bb&op=viewtopic&t=104843 quite carefully. I used wsconsume to generate my classes, created an impl class and followed all the pointers in the mentioned forum thread. I get a wsdl now but it is not the one I defined in my wsdlLocation value in the endpoint interface in the wsdlLocation javax.jws.WebService annotation. I get datetime types set to anySimpleType and all my enumerations have camel case now like this - dropOffType - rather than DropOffType like in the wsdl. I believe a wsdl is being generated still. How do I generate and deploy a web service and have jboss use the wsdl I supply in the war? Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035816#4035816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035816 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: PojoCacheListener: modify
"supi" wrote : Hey everybody, | | I'm experimenting with Habanero b2, and with POJO listener notification in particular. I have a couple of questions: | | - I am getting "attach" and "detach" notifications, but no "modify" calls. Do I have to configure something to make this work? | In order to see modify calls the subject interceptor must be added to any code that modifies fields. Typically this is the pojo itself. Can you verify that you have set jboss.aop.path to pojocache-aop.xml? Also, there is a known design flaw, where notifications are only dispatched locally. http://jira.jboss.com/jira/browse/JBCACHE-774 anonymous wrote : | - Will there be an API to query the cache for a Pojo's Fqns or Ids? I understand that this can be an expensive operation but I think it should be available on demand if not provided with the notification. | Is PojoCache.findAll(String id) what you are looking for? anonymous wrote : | - What is getPojoID() supposed to return? If it is what I think it is, shouldn't it return the complete list of cycle-free paths instead of a single string? Or is ID something else? | I believe the intention is to return the id passed to attach. In some cases though this could be an internal identifier. -Jason View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035818#4035818 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035818 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Usage of onException in clustered JBM
Hi Clebert, Do you have ETA about the fix? Thanks. xkong View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035817#4035817 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035817 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - jBPM can't evaluate method
I am taking my first stab at using jPdl page flows and can't get jBPM to recognize a component method. I have a SFSB that contains two DataModels. The first DataModel fills a clickable data table (AddressLookup.xhtml) which has a link to another page (AddressRequestListing.xhtml) with a second table filled by the second DataModel in the SFSB. I keep getting this error org.jbpm.JbpmException: couldn't evaluate expression '#{requestEntry.findRequests}' Here is my page flow - pageflow.jpdl.xml | | | | | | | | Here is pages.xml | | | | Here is my SFSB @Stateful | @Name("requestEntry") | public class RequestEntryAction implements com.stlouiscity.csb.ejb.action.RequestEntry { | | @PersistenceContext(unitName="CSB_Oracle", type=EXTENDED) | private EntityManager em; | | @In(create=true) | private Address address; | | @In(create=true, required=false) | private AddressLookup addressLookup; | | @DataModel("addresses") | private List addresses; | | @DataModelSelection(value="addresses") | @Out(required=false) | private ParcelAddress selectedAddress; | | @DataModel("requests") | private List requests; | | @DataModelSelection(value="requests") | private ServiceRequest selectedRequest; | | public RequestEntryAction() { | } | | public void findAddresses() { | | if (address.getStreetName() != null) { | System.out.println("Address Is NOT NULL"); | //Find ParcelAddress | Query q = em.createQuery("Select a From ParcelAddress a Where" + | " (a.structureAddress.nlc.streetDirection = :streetDirection OR :streetDirection IS NULL) AND" + | " (lower(a.structureAddress.nlc.streetName) LIKE :street) AND" + | " (((a.structureAddress.structureAddressPK.houseNumber = :houseNumber) OR" + | " (:houseNumber BETWEEN a.structureAddress.houseLow AND a.structureAddress.houseHigh)) OR (:houseNumber IS NULL))"); | q.setParameter("houseNumber",address.getHouseNumber()); | q.setParameter("streetDirection",address.getStreetDirection()); | q.setParameter("street",address.getStreetName().toLowerCase() + "%"); | | addresses = q.getResultList(); | } else { | System.out.println("Address IS NULL"); | } | } | | public void findRequests() { | System.out.println("**Entered findRequests*"); | System.out.println("**Selected Address: " + selectedAddress.toString()); | Query q = em.createQuery("Select s From ServiceRequest Where" + | " s.parcelAddress = :parcelAddress"); | q.setParameter("parcelAddress",selectedAddress); | requests = q.getResultList(); | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035815#4035815 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035815 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Starting threads
"l3o" wrote : I've read that you can't start new threads in the EJB container; so I got confused: where can I start threads? | (Oops. Hit the wrong button earlier.) I've been using an MVC architecture adapted from an early Java PetStore demo for years to create threads of Stateless Session beans which can be joined. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035813#4035813 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035813 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - Another NullPointerException in JBoss 4.0.5GA
Does anyone know the cause of this problem? Thanks anonymous wrote : | 14:12:12,375 WARN [ServiceController] Problem starting service persistence.units:jar=authen.jar,unitName=authen | java.lang.NullPointerException | at org.hibernate.util.StringHelper.qualify(StringHelper.java:264) | at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:196) | at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1054) | at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:296) | at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1039) | at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1211) | at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154) | at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:847) | at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:385) | at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126) | at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:102) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor2.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.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210) | at $Proxy63.start(Unknown Source) | at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:96) | at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:467) | at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:317) | at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91) | at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) | at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) | at sun.reflect.GeneratedMethodAccessor2.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.start(Unknown Source) | at org.jboss.system.ServiceController.start(ServiceController.java:417) | at sun.reflect.GeneratedMethodAccessor9.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(ReflectedDis
[jboss-user] [JBoss Portal] - Login from portlet
Hello I'm working with portal 2.4.1 on AS 4.0.5GA. I recently got authentication working with LDAP and the jboss console login. Now I would like to allow our users to login from a portlet, but I'm not having any luck. We would like to have users login and see slightly different content as a result - we aren't trying to lock down an area on the server (e.g. everything in the /auth/ domain) Following instructions here http://wiki.jboss.org/wiki/Wiki.jsp?page=PortletLogin haven't lead to any positive results yet. Strictly following the example, I have an error to the effect that j_security_check isn't part of the servlet I'm using to redirect with. Hardcoding the entire URL causes the servlet to time out. Any advice would be greatly appreciated. Nollie View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035811#4035811 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: Starting threads
"l3o" wrote : | I've read that you can't start new threads in the EJB container; so I got confused: where can I start threads? | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035810#4035810 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035810 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Starting threads
Hello all. I'd like to ask a simple question regarding new threads creation. I need to create a service that opens a new ServerSocket and keeps listening to it. When a new connection arrives, it should use a separated thread to handle the incoming connection. Quite like a HTTP Server. I've read that you can't start new threads in the EJB container; so I got confused: where can I start threads? Or how? Can you please explain? Please, I need help with this and can use any pointer of where to look for an answer. Thanks a lot. Leo. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035809#4035809 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035809 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: MalformedURLException: no protocol: META-INF/webserver-x
Fixed the issue. It was OS configuration issue. The HP engineers helped us with it. We had to set the following "$ @sys$manager:java$150_setup.com", the JAVA$FILENAME_CONTROLS logical will be reset from 8 to -1. The -1 will affect how the files are extracted from the jar file, giving the underscores vs ^'s. This resolved the issue. Thanks, Peter. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035808#4035808 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035808 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Changes not persisted using EntityHome
Hmm... I'm using this in my entity manager: |@PersistenceContext |private EntityManager em; | Not sure why doing it this way the merge is required but if I don't have it I get attached exceptions. It may be possible the entity became detached or somehow got tangled up in a context someplace (session vs conversation vs ???). I'm sure being a relative Hibernate newbie and a relative Seam newbie isn't helping me. :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035807#4035807 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035807 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Changes not persisted using EntityHome
I've got a one-to-many relationship in one of my beans and have never had any trouble. This is from my entity bean: List requests = new ArrayList(); | | @OneToMany | public List getRequests() | { | return requests; | } | public void setRequests(List requests) | { | this.requests = requests; | } If you are having to perform a merge() then that's because you are not using a seam managed persistence context. I am using an injected persistence context in my session bean: @In | EntityManager entityManager This is then configured in components.xml and persistence.xml. I'm still experimenting with the 1-many relationship in terms of how changes are persisted when items are added and removed, I can get it to work quite easily but I'm sure there's a better way than the one I'm using. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035806#4035806 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035806 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Could you post some code to see it? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035805#4035805 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035805 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - URL Trouble
Hi All, I was wondering how I could set up a nicer URL on my machine to access JSPs instead of localhost:8080/.? I've tried createing a virtual directory to the default/deploy directory but this doesn't work. Instead of http://localhost:8080/jmx-console/... I put in http://MyMachine/jmx-console/ How can I make the URL more user-friendly? Thanks. AF View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035803#4035803 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035803 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Sorry but it still doesn't work. | javax.el.ELException: /category.xhtml: Property 'jumpPage' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_89 | at com.sun.facelets.compiler.AttributeInstruction.write(AttributeInstruction.java:53) | at com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39) | at com.sun.facelets.compiler.UILeaf.encodeAll(UILeaf.java:149) | at javax.faces.render.Renderer.encodeChildren(Renderer.java:137) | It seems like it's trying to evaluate the contents of "action" as a value expression and not a method expression. Any ideas? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035802#4035802 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Changes not persisted using EntityHome
Wayne, I think I've found the answer to the mystery. The solution you pointed out from the tutorial wasn't working for me because java.util.List.remove() wasn't implemented for the backing List in Hibernate's PersistentBag at runtime. I found in the Hibernate docs that collections can wind up being mapped to all kinds of things in Hibernate--apparently not all of them supporting remove(). By adding an @OrderBy annotation to my @OneToMany in my Entity as shown below I can coerce Hibernate to use a List collection that supports remove()--and I wanted the sort anyway: | @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "project") | @OrderBy("date") | public List getTimecard() { | return this.timecard; | } | public void setTimecard(List timecard) { | this.timecard = timecard; | } | This list is what I set my @DataModel to in my entity manager code, so that's why all this Hibernate stuff is relevant. So this is what works for me now: | public void delete() { |tc = em.merge(tc); // needed or I get exceptions about unattached objects |em.remove(tc); // no further issues here after @OrderBy in entity |tcList.remove(tc); // clean up in-memory @DataModel list |projectHome.getInstance().getTimecard().remove(tc); // remove from in-memory Entity list for response page render |tc=null; | } | Greg View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035800#4035800 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: parser exception when deploying webservice
Somehow and apostrophe in an annotation in the already existing wsdl was being changed to a non-utf8 character in the generated schema. Have another problem when the apostrophe was removed but got past this issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035799#4035799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035799 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: JSPs in JBoss
Hi Peter, I figured I would give this a try. I copied a simple JSP I had into another directory at the same level as the jmx-console.war one. I tried running the app (i.e. localhost:8080/TmpDir/testjsp.jsp) and the app ran fine. What are the benefits/ requirements of having the other directories in the .war directory (i.e. WEB-INF)? I notcied that my .class files were going to a totally separate directory (...default/work/...apache/jsp/). If I wanted to send just my .class files over to another computer without the .jsps in the main .war directory would I simply update the web.xml document with the path of the class file(s) or is there more to it? I tried removing the jsp altogether and leaving the classes (which I didn't think would work) and it didn't work (i.e. ole 404). Thanks again. AF View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035798#4035798 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035798 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Using conversations causes the pages to be cached
Hi I have been trying to use a long running conversation and I am facing the following problem . Once the conversation is created Any link that I click always takes me to the first page that was displayed after the conversation was created This is what I did : I have a method called searchItem which I have annotated with a @Begin (id="myconv", join=true) public void myMethod() { } I also included this method in the action parameter of the .page.xml I can see that the action is executed . After this visiting debug.seam shows that a conversation named 'myconv' is created. But after this all the links have a [EMAIL PROTECTED] as request parameter even though they are not present in the s:link parameters. And the browser displays the first page ( i ensured that there is no browser caching etc) . Can u let me know how I can proceed .. Thanks Regards Hari View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035797#4035797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035797 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss and NetBeans] - Re: Unable to deploy / run to JBoss from Netbeans, port 8080
I have the same issue. I'm install NetBeans IDE 5.5 Build 200612070100 and previous have installed jboss-4.0.5.GA, then I add the server in Runtime Window. I can start the server without any problem, but when try to see the server info it don't show the server status and can Restart or Stop the server. It's like the server is not starter, but i go to the server console and the server is running. Any tips in order to correct this issue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035796#4035796 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035796 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpm 3.2 Session Is Closed exception in JobSession
Hi. At the end of processing a Task node along with a few regular nodes, we're getting a "Session is closed" hibernate exception in jbpm 3.2 JobSession class. I'm not sure what to look for here. Ideas? A configuration issue maybe? I did not see other instances of this in Forum or JIRA searches. JBPM 3.2 on JBoss 4.0.5 with EJB3 and JBoss Messaging configuration Hibernate Config: hibernate.dialect: org.hibernate.dialect.SQLServerDialect | hibernate.connection.datasource: java:/jdbc/jbpm | hibernate.transaction.factory_class: org.hibernate.transaction.JTATransactionFactory | hibernate.transaction.manager_lookup_class: org.hibernate.transaction.JBossTransactionManagerLookup | JBPM Config: | | | | | | | | Partial trace up to and including the exception: anonymous wrote : 2007-04-06 17:56:32,796 [http-0.0.0.0-8080-3] DEBUG org.jbpm.graph.exe.Token - token[19] is unlocked by token[19] | 2007-04-06 17:56:32,796 [http-0.0.0.0-8080-3] DEBUG org.jbpm.graph.node.Decision - decision Check_Prepare_PPP_Request_Blk is taking 'Transition(wfEnd_eq_YES)' | 2007-04-06 17:56:32,796 [http-0.0.0.0-8080-3] DEBUG org.jbpm.graph.def.GraphElement - event 'node-leave' on 'Decision(Check_Prepare_PPP_Request_Blk)' for 'Token(/)' | 2007-04-06 17:56:32,796 [http-0.0.0.0-8080-3] DEBUG org.jbpm.graph.def.GraphElement - event 'transition' on 'Transition(wfEnd_eq_YES)' for 'Token(/)' | 2007-04-06 17:56:32,811 [http-0.0.0.0-8080-3] DEBUG org.jbpm.graph.def.GraphElement - event 'node-enter' on 'Node(UPES_Obtain_PPP_Internal_Fees)' for 'Token(/)' | 2007-04-06 17:56:32,811 [http-0.0.0.0-8080-3] DEBUG org.jbpm.graph.exe.Token - token[19] is locked by job[2] | 2007-04-06 17:56:32,811 [http-0.0.0.0-8080-3] DEBUG org.jbpm.graph.def.GraphElement - event 'after-signal' on 'ProcessState(Prepare_PPP_Request_Blk (sub))' for 'Token(/)' | 2007-04-06 17:56:32,811 [http-0.0.0.0-8080-3] DEBUG org.jbpm.scheduler.ejbtimer.EjbSchedulerService - deleting timers for process instance [EMAIL PROTECTED] | 2007-04-06 17:56:32,827 [http-0.0.0.0-8080-3] DEBUG org.jbpm.scheduler.ejbtimer.TimerServiceBean - deleting timers for process instance [EMAIL PROTECTED] from the ejb timer service | 2007-04-06 17:56:32,843 [http-0.0.0.0-8080-3] DEBUG org.jbpm.graph.def.GraphElement - event 'after-signal' on 'TaskNode(Prepare PPP Request (ACTOR))' for 'Token(/)' | 2007-04-06 17:56:32,843 [http-0.0.0.0-8080-3] DEBUG org.jbpm.JbpmContext - closing JbpmContext | 2007-04-06 17:56:32,843 [http-0.0.0.0-8080-3] DEBUG org.jbpm.svc.Services - closing service 'persistence': [EMAIL PROTECTED] | 2007-04-06 17:56:32,843 [http-0.0.0.0-8080-3] DEBUG org.jbpm.persistence.db.DbPersistenceService - flushing hibernate session | 2007-04-06 17:56:32,874 [http-0.0.0.0-8080-3] DEBUG org.jbpm.persistence.db.DbPersistenceService - closing hibernate session | 2007-04-06 17:56:32,874 [http-0.0.0.0-8080-3] DEBUG org.jbpm.svc.Services - closing service 'message': [EMAIL PROTECTED] | 2007-04-06 17:56:32,874 [http-0.0.0.0-8080-3] DEBUG org.jbpm.svc.Services - closing service 'scheduler': [EMAIL PROTECTED] | 2007-04-06 17:56:32,874 [http-0.0.0.0-8080-3] DEBUG org.jbpm.scheduler.ejbtimer.EjbSchedulerService - removing the timer service session bean | 2007-04-06 17:56:32,874 [http-0.0.0.0-8080-3] DEBUG org.jbpm.svc.Services - closing service 'tx': [EMAIL PROTECTED] | 2007-04-06 17:56:32,874 [http-0.0.0.0-8080-3] DEBUG org.jbpm.svc.Services - closing service 'logging': [EMAIL PROTECTED] | 2007-04-06 17:56:32,874 [http-0.0.0.0-8080-3] DEBUG org.jbpm.db.JobSession - deleting timers for process instance [EMAIL PROTECTED] | 2007-04-06 17:56:32,921 [http-0.0.0.0-8080-3] ERROR com.ourcompany.ourproject.struts.actions.PPPMethodSubmitAction: com.ourcompany.ourproject.utility.LoggableEJBException: java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=rl001-m0152bits/71, BranchQual=, localId=71] status=STATUS_NO_TRANSACTION; - nested throwable: (org.hibernate.SessionException: Session is closed!) | at com.ourcompany.ourproject.utility.ExceptionLogUtil.createLoggableEJBException(ExceptionLogUtil.java:13) | at com.ourcompany.ourproject.struts.actions.PPPMethodSubmitAction.execute(PPPMethodSubmitAction.java:220) | at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) | at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) | at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) | at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) | at org.apache.catalina.core.ApplicationFilterChain.
[jboss-user] [JBoss Seam] - Re: Changes not persisted using EntityHome
Either you've missed a step or two, or you are doing something unusual somewhere in your code. You do not need to go to the lengths you are going to just to delete something. Do you have an @PersistenceContext annotation anywhere in your code? Can you show us the entity bean code? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035794#4035794 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035794 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - SessionFactory creation
I am developing a java web application (on Tomcat) that uses jbpm. The problem is that when I run the apache tomcat server with my application, it doesn't create the sessionfactory object. I have tested the example web application (from the starter kit) on my tomcat server and it creates the sessionfactory object when I run the tomcat server. (I watch it on the console window: ...[SessionFactoryImpl] building session factory...) Why my application doesn't create it? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035793#4035793 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035793 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - Re: Parameter names in Mbeans
+1 ! I'd also like to change those names... (and a second little question about the same subject : how could we control the method's order in the MBean HTML page ? It's not the order of the interface, not the order of the implementation... ) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035792#4035792 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035792 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Thank you very much! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035791#4035791 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035791 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - dependency problem between MBean and EJB...
Hi there, I'm creating a sample J2EE application with JBoss, with some EJBs and some MBeans. What I would like is simple : the "create" callback of my MBean sould call a method from a session bean. I saw that in the FAQ : http://wiki.jboss.org/wiki/Wiki.jsp?page=HowCanAnMBeanDependOnASessionBean I made what was written : putting the dependency in the jboss.service.xml ; but it doesn't work... The problem may be that the MBean and the EJBs are in the same jar file. So I tried to organize differently my .ear file : | mySample.ear | - META-INF | - application.xml | - jboss-app.xml |- mySampleMBeans.jar | - ... | - Toto.class <- the MBean implementation | - TotoMBean.class <- the MBean interface | - ... |- myEJBs.jar | - META-INF | - persistence.xml | - ... | - myFacade.class <- the Session Bean implementation | - myFacadeRemote.class <- the Session Bean interface | - ... |- mySampleMBeans.sar | - META-INF | - jboss-service.xml | I put in jboss-service.xml : | | | | | jboss:service=Naming | | | jboss.j2ee:module=myEJBs.jar,service=EjbModule | | | | The result is that the Toto MBean is never started... (this means that the dependency exists, but not on the good module !!) Any idea ? Thx !! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035790#4035790 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035790 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
I had the same problem with Seam enhanced EL method expressions. I'm waiting the solution. But in the meantime I did something like: | | | | | page must be an variable with its respective setter (void setPage(int v)), and jumpPage non-arg method (void jumpPage()). And it is working. HTH. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035789#4035789 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception on servlet processing request
"[EMAIL PROTECTED]" wrote : Do you have or something similar in your components.xml? If not, read up on how to wrap non-faces servlets with the Seam context filter in the Seam documentation. | I have that in components.xml, but it seems like the url-pattern "/reporting" in components.xml doesn't match with "/reporting/image" in web.xml. I changed it to "/reporting/*" in components.xml and it worked. Thanks for reminding me of where the problem might be, otherwise, I would've never thought to check that part. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035788#4035788 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035788 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Running the booking example on JBoss with the JSF 1.2 RI
I'm sorry if this is a stupid question, but I can't seem to find "el-impl.jar" mentioned in the directions in the first post. Can somebody point me to where that is located? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035786#4035786 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035786 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: JSPs in JBoss
Never mind Peter. I had been trying to put in jmx-console.war, didn't realize it but tried taking off the .war and it worked. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035787#4035787 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035787 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: JSPs in JBoss
Thanks again Peter. I guess the layout is similar to JRun with the war and WEB-INFO directories. Couple of really stupid questions now: when entering localhost:8080/ what path does that go to? The reason why I'm asking this is because the directory(ies) I thought i would lead to doesn't appear to. I tried to look at the document's properties for JBoss to get a filename or something but nothing in the properties gave much of a clue. I was trying to experiment with a simple JSP I had put it into the jmx-console.war but I wasn't sure if the errors I was getting was related to URL problems or with the setup of the JSP. Thanks again for any help/info you can spare. AF View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035785#4035785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035785 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Changes not persisted using EntityHome
It seems like overkill--and its a bit hard to describe w/o seeing it or the following struggles I've had trying to accomplish this very simple operation. In a nutshell if I do it exactly like the tutorial I get an java.lang.UnsupportedOperationException. This is because my list comes from my entity's list, which happens to be a Hibernate PersistentBag. While PersistentBag does implement remove(), whatever AbstractList that happens to be used internally within PersistentBag when my program runs does not, so I get this exception. (If PersistenBag always used a backing List that supported remove() then I think I'd be ok here.) Rather than use the Hibernate-generated list directly if I make a copy of this list into an ArrayList then I get exceptions about trying to em.remove() a detached object when I go to delete it. So to fix that I use the entityHome object to find a new (attached) copy but then I get this exception when I remove it: javax.persistence.EntityNotFoundException: deleted entity passed to persist. I have no idea what its complaining about here and started feeling I was beating my head against a wall. So my solution seems like overkill but it does indeed work. I wish a simpler solution worked, but so far I haven't found one. Greg View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035784#4035784 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035784 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
Ok, but meanwhile, I wanted to put up links so the user can jump to another page on the table without having to refresh the whole page. How can I possibly accomplish this? How can I tell the seam component which page I want to jump to? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035782#4035782 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035782 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception on servlet processing request
Do you have or something similar in your components.xml? If not, read up on how to wrap non-faces servlets with the Seam context filter in the Seam documentation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035780#4035780 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: EAR file module SubDeployment ordering
Sorry I didn't nitice your post earlier. My jboss-app.xml is pretty straightforward: strict I am still wondering about module un-deploy order. Good Luck! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035779#4035779 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035779 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Multiple messages are getting lost in each queueReceiver.rec
I am using JBOSS Messaging 1.0.1.GA. with JBOSS 4.0.5 GA and not using transacted session. I am trying to fetch messages from a pre-configured Queue in CLIENT_ACKNOWLEDGE_MODE. The queue had already a large number of message say 4. Each time I use queueReceiver.receive(), multiple messages are getting lost. That is even before explict acknowledgement, the message count in JBOSS Queue decreases by 80/100. Please have a look at the following Snippet : public class Consumer { public static void main(String[] args) { QueueConnection qConnection =null; QueueSession queueSession=null; Queue queue=null; QueueReceiver queueReceiver=null; ObjectMessage message; try { qConnection=createConnection("queue/XMLQueue"); queueSession = RequestSender.getQueueSessionClient(qConnection,"queue/XMLQueue"); queue=createQueue("queue/XMLQueue"); queueReceiver=queueSession.createReceiver(queue); for(int i=0;i<114;i++) { message=getNewMessage(qConnection,queueReceiver); } } catch(Exception e) { e.printStackTrace(); } finally { if( qConnection != null ) { try { // Closing the queueReceiver, queueSession & qConnection } catch(Exception jMSException) { jMSException.printStackTrace(); } } } } public static ObjectMessage getNewMessage(QueueConnection qConnection,QueueReceiver queueReceiver) { ObjectMessage message=null; try { System.out.println("Just Before Receive -"+queueReceiver); qConnection.start(); Message msg = queueReceiver.receive(1000); // Here we found more than one messages are being lost. We put a delay and monitored the Queue Depth. System.out.println("Just After Received -"+msg); qConnection.stop(); if (msg instanceof ObjectMessage) { message = (ObjectMessage) msg; } } catch(JMSException jMSException) { jMSException.printStackTrace(); } catch(Exception exception) { exception.printStackTrace(); } return message; } public static QueueConnection createConnection() { QueueConnection queueConnection = null; // Creates a Queue Connection and return the session try { // Create a Queue Connection queueConnection = queueConnectionFactory.createQueueConnection(); } catch(JMSException jMSException) { jMSException.printStackTrace(); } return queueConnection; } public static QueueSession getQueueSessionClient(QueueConnection qConnection,String prefix) throws JMSException { QueueSession qSession = null; try { if( qConnection == null ) { qConnection = createConnection(); } if( null != qConnection ) { qSession = qConnection.createQueueSession(false,Session.CLIENT_ACKNOWLEDGE); } } catch(JMSException jMSException) { throw jMSException; } return qSession; } public static Queue createQueue(String queueName) throws Exception { String queueName = null; Queue queue = null; try { if(queueNameQueueMap.containsKey(queueName)) { queue=queueNameQueueMap.
[jboss-user] [JBoss Messaging] - Problem sending message from container using Managed connect
We have a JBoss 4.0.5.GA server instance (server A) communicating with a non-clustered JBoss Messaging instance (server B) via scoped deployment and modified JCA datasource descriptor as outlined in: http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMessagingUser_Enabling_access_to_remote_JBoss_Messaging_instance All MDBs in server A deploy and pick up messages fine. The problem we have is in sending messages from Server A using a managed connection factory. With the following code, messages appear to be sent but do not show up in the destination: InitialContext ic = new InitialContext(); cf = (ConnectionFactory)ic.lookup("java:/JmsXA"); Connection connection = cf.createConnection(); connection.start(); Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); ic.close(); Queue queue = session.createQueue("testQueue"); producer = session.createProducer(queue); tm = session.createTextMessage(txt); producer.send(tm); If we tail the log on server B (JBM), we do see the session.start() as well as session.close() on subsequent runs. I assume the session is being cached. However, even though there are no errors, we see no messages in the queue. The same code *will* send messages properly if we get the ConnectionFactory with a hack: InitialContext ic = new InitialContext(); Object object = ic.lookup("java:/DefaultJMSProvider"); ic.close(); InitialContext ic2 = (InitialContext)object.getClass().getMethod("getInitialContext", null).invoke(object, null); ConnectionFactory cf = (ConnectionFactory) ic2.lookup("XAConnectionFactory"); ic2.close(); Is there a way to send messages from within the container with a managed connection factory? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035775#4035775 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035775 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - release date for jBPM-BPEL 1.1 GA?
Hello, >From the roadmap on JIRA it seemed the release date for jBPM-BPEL 1.1 was >30/March/2007. But I don't see it out yet. What the revised date for its >release? Thanks, Meghana View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035774#4035774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss/Spring Integration] - Re: Struts spring hibenate in jboss without jboss-deployer
Try without .har. Or btw, why do you need .har? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035773#4035773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Exception on servlet processing request
Hello I am getting the following exceptions when one of the servlets gets an incoming request. Any idea? Thanks, Tong | 13:26:09,680 ERROR [ExceptionFilter] uncaught exception | java.lang.IllegalStateException: No application context active | at org.jboss.seam.Component.forName(Component.java:1577) | at org.jboss.seam.Component.getInstance(Component.java:1627) | at org.jboss.seam.Component.getInstance(Component.java:1610) | at org.jboss.seam.Component.getInstance(Component.java:1604) | at com.kfi.was.servlet.UserReportingServlet.doGet(UserReportingServlet.java:23) | 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.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63) | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79) | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49) | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) | at java.lang.Thread.run(Unknown Source) | 13:26:09,680 INFO [Lifecycle] starting up: org.jboss.seam.security.identity | 13:26:09,680 ERROR [[/was]] Session event listener threw exception | java.lang.NullPointerException | at org.jboss.seam.mock.MockExternalContext.getRequestCookieMap(MockExternalContext.java:184) | at org.jboss.seam.core.Selector.getCookie(Selector.java:61) | at org.jboss.seam.core.Selector.getCookieValue(Selector.java:72) | at org.jboss.seam.security.Identity.initCredentialsFromCookie(Identity.java:88) | at org.jboss.seam.security.Identity.create(Identity.java:83) | at org.jboss.seam.security.RuleBasedIdentity.create(RuleBasedIdentity.java:44) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.jboss.seam.util.Reflections.invoke(Reflections.java:20) | at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123) | at org.jboss.seam.Component.callComponentMethod(Component.java:1834) |
[jboss-user] [Messaging, JMS & JBossMQ] - MDB listening a Queue in another JBoss instance
Hi! I´d like to make a MDB to listen messages from a Queue that was bound by another JBoss instance. Anybody have a full sample or tutorial using it? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035771#4035771 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035771 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - parser exception when deploying webservice
I am using 4.0.5.GA and 1.2.0.SP1. I used wsconsume to create a top-down web service. When I deploy I get an error as follows. As this error seems to be from trying to parse a jboss generated .xsd file I am unclear what to do. I assume this schema is generated from the wsdl. I cannot see any non-UTF8 characters in the wsdl or the xsd file generated. I would appreciate any pointers on how to debug this problem. 2007-04-09 12:14:15,222 ERROR [org.jboss.ws.core.server.ServiceEndpointDeployer] Cannot create service endpoint org.apache.xerces.xni.XNIException: Parser should stop: JBossWS__ws_ship7329.xsd[domain:http://www.w3.org/TR/1998/REC-xml-19980210]::[key=InvalidByte]::Message=Invalid byte 1 of 1-byte UTF-8 sequence. at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler.fatalError(JBossXSErrorHandler.java:78) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source) at org.apache.xerces.impl.xs.opti.SchemaParsingConfig.parse(Unknown Source) at org.apache.xerces.impl.xs.opti.SchemaDOMParser.parse(Unknown Source) at org.apache.xerces.impl.xs.traversers.XSDHandler.getSchemaDocument(Unknown Source) at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:181) at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:278) at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:165) at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:131) at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:313) at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:139) at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:49) at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderJSE.buildMetaData(JAXWSMetaDataBuilderJSE.java:68) at org.jboss.ws.core.server.ServiceEndpointDeployer.create(ServiceEndpointDeployer.java:90) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035770#4035770 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035770 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Web Based GPD?
no, sorry View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035769#4035769 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035769 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Web Based GPD?
Are there any available web-based graphic process designers that can be used insted of the Eclipse plug-in? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035768#4035768 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035768 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Is Ejb3 embedable mature for production use?
cause I can't. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035762#4035762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035762 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - to Froschfinger!!!!
Hi, Froschfinger!!! In this post http://www.jboss.org/index.html?module=bb&op=viewtopic&t=105521 you write that you integrated your application with jbpm without problems. Please, you would can tell me step by step how you did it??? I already have create a database with MySQL, and I already have create two pages (jsp) with Eclipse, but how I integrate jbpm with my app??? adding lib?? or how?? Please, I need help me!!! Thank you!!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035758#4035758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035758 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: use of org.hibernate.cache.UpdateTimestamp
It's not needed by JBoss Cache per se, it's needed by Hibernate. Briefly mentioned in the Hibernate docs at http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html#performance-querycache. Basically, Hibernate tracks the update timestamp for an entity type so it can know if any cached query results may have been invalidated due to a change in the queried entities. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035757#4035757 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035757 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - use of org.hibernate.cache.UpdateTimestamp
hi all, i am using JBossCache (1.4.1.SP3) and i am trying to understand how it works. looking at the printDetails() function of the JBossCache bean in the JBoss JMX-Console, i have noticed that org.hibernate.cache.UpdateTimestamp..item is updated everytime with the timestamp of the last modification of the corresponding table. i would like to know why this timestamp is needed by JBossCache. thank you very much Andrea View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035756#4035756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035756 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: Truly at starting point
Really? lol. I thought there was client, server, and a hotspot for each. Nice to know this. Thanks again. AF View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035754#4035754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035754 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - Re: JSPs in JBoss
Package them in a war file and copy the war file to the server/xxx/deploy directory. Or deploy them as an exploded directory in that same location. See http://wiki.jboss.org/wiki/Wiki.jsp?page=ExplodedDeployment To specify a different directory, look at the URLs attribute in the last meban in sevrer/xxx/conf/jboss-service.xml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035752#4035752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035752 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam enhanced EL expression fails in an Ajax4JSF tag
There is a known issue with using Seam EL enhancements inside facelets tags. I think that jboss-el in Seam 1.3 should fix this View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035751#4035751 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035751 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Portal, A4J and RichFaces
Have any of you trailblazers used RichFaces within your Portlets. I haven't found anything on the wiki, but would be interested in knowledge gained from the process. If there's enough interest, I'll keep notes on my progress and try to consolidate the community's accummulated knowledge into a wiki page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035747#4035747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: Truly at starting point
Actually, HotSpot is the brand name of the JVM (it is a trademark of Sun). To understand the JVM options, open the java_home/jre/lib/i386/jvm.cfg file. It lists the various options that are valid. You will note there that 'hotspot' equates to 'client'. Ultimately, these option decide which directory under java_home/bin will be used to load the jvm.dll. Usually, with application servers, you want to choose the server option. But, performance testing with your application is the ultimate gauge as to which one to choose. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035749#4035749 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035749 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - JMX conflict when embedding
Hallo, i have embedded jboss EJB3 into my app, and when starting java MyApp it works as expected. As i need JMX i need to start it like: java -Dcom.sun.management.jmxremote MyApp Now the startup fails with: 16:05:51,915 DEBUG JaccHelper:143 - HandlerBean has no @SecurityDomain - skipping JACC configuration 16:05:51,916 INFO EJBContainer:479 - STARTED EJB: model.HandlerBean ejbName: HandlerBean 16:05:51,944 ERROR AbstractKernelController:440 - Error installing to Start: name=jboss.j2ee:jar=build,name=HandlerBean,service=EJB3 state=Create javax.naming.NameNotFoundException: jmx not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) at org.jnp.server.NamingServer.getObject(NamingServer.java:543) at org.jnp.server.NamingServer.lookup(NamingServer.java:267) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:626) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588) at javax.naming.InitialContext.lookup(InitialContext.java:351) at org.jboss.ejb3.KernelAbstractionFactory.getMBeanServer(KernelAbstractionFactory.java:92) Is there any workaround to resolve this? How can i switch off embedded jboss JMX? Thanks Marcel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035746#4035746 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035746 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - FYI: mssql-persistence.xml uses reserved words for column n
I noticed in the mssql-persistence.xml file that came with JBM1.2 the word CLUSTERED is used for a column name. This is a reserved word. Changing the script to IS_CLUSTERED fixes the exception thrown when creating the tables: | | | | | | | jboss.jca:service=DataSourceBinding,name=DefaultDS | jboss:service=TransactionManager | java:/DefaultDS | true | true | | 500 | | | | jboss.messaging:service=ServerPeer | jboss.jca:service=DataSourceBinding,name=DefaultDS | jboss:service=TransactionManager | JMS | java:/DefaultDS | true | | | | | jboss.jca:service=DataSourceBinding,name=DefaultDS | jboss:service=TransactionManager | java:/DefaultDS | true | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035745#4035745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035745 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - JSPs in JBoss
I've been using JRun up to this point and the development environment was already set up. I want to start using JBoss to run my JSPs but wasn't sure where I should put them. Is there a specific directory I should put them? Is there a way to point to another directory to access them? Which approach would be more desirable? Do the JSPs have to be compiled beforehand? On JRun, it handles compilation on it's own. Thanks for any help in advance. AF View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035744#4035744 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035744 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Drop Down Lists using Facelets?
"waynebagguley" wrote : | The equals method of the entity bean returns true if it matches the primary key fields of the comparing bean | Either that, or ensure that the same persistence context is used for loading the list, and then reloading the selected item - this is easy to do by making sure you have a conversation that spans the list load and the update/persist of the entity. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035742#4035742 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035742 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: seamPDF + iText barcodes
I created a case and uploaded the files, note that I only need code128 type of barcode at this moment, so I didn't test much the other types. There is also an example of use in the package. The functionality for code128 is also not complete noe but i expect to expad it in the following days. It supports absolute positioning and rotation to be able to place the barcode outside the document area | coordinates are in points from base-left of the page, rotation is in degrees. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035740#4035740 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035740 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - Re: Truly at starting point
Peter, Thanks so much for the info, appreciate it. Everything worked fine. One question though: in the syntax statements for JavaService it gives hotspot|server|classic as options. Right now I have a client and server directory underneath the jre/bin directory and server I believe is being used. When I start up JBoss manually (command line) it said VM is Server Hotspot or something similar to that. Just trying to understand fully the settings here: is classic actually client, server being server, and hotspot another VM or is hotspot in this case a synonym for server? I wanted to set up JBoss with the most appropraite settings which are (I'm assuming server hotspot). Again thank you for your help. AF View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035738#4035738 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035738 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Strange java code generated by wsprovide
Hi, I build a webservice with the following simple pojo endpoint: package beispiel_1; | | import javax.jws.WebService; | import javax.xml.ws.RequestWrapper; | import javax.xml.ws.ResponseWrapper; | | @WebService | public class PojoEndpoint { | | @RequestWrapper(className="beispiel_1.Request") | @ResponseWrapper(className="beispiel_1.Response") | public String sayHello(String name) | { | return "Hallo "+name+"!"; | } | } and I generate the wsdl file with wsprovide: | | | | I need the wsdl file for a workflow. The wsprovide task above also generates two classes Request and Response. But these java classes are not correct: package beispiel_1; | | import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlRootElement; | import javax.xml.bind.annotation.XmlType; | | @XmlRootElement(namespace = "http://beispiel_1";, name = "sayHello") | @XmlType(namespace = "http://beispiel_1";, name = "sayHello") | @XmlAccessorType(XmlAccessType.FIELD) | public class Request { | | @XmlElement(namespace = "", name = "arg0") | private String arg0; | | public String getArg0() { | return this.arg0; | } | | public String setArg0(String arg0) { | this.arg0 = arg0; | } | | } | and package beispiel_1; | | import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlElement; | import javax.xml.bind.annotation.XmlRootElement; | import javax.xml.bind.annotation.XmlType; | | @XmlRootElement(namespace = "http://beispiel_1";, name = "sayHelloResponse") | @XmlType(namespace = "http://beispiel_1";, name = "sayHelloResponse") | @XmlAccessorType(XmlAccessType.FIELD) | public class Response { | | @XmlElement(namespace = "", name = "return") | private String return; | | public String getReturn() { | return this.return; | } | | public String setReturn(String return) { | this.return = return; | } | } To be more precise the return type of the set methods should be void and not String and I have problems with the variable name return. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035737#4035737 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035737 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Email and internationalization
I should add that EMAIL_TEST_SUBJECT and EMAIL_TEST_BODY are defined in a properties file and contains non utf8 characters. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035735#4035735 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035735 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Email and internationalization
here is my email template: | | http://www.w3.org/1999/xhtml"; | xmlns:m="http://jboss.com/products/seam/mail"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | importance="normal" | requestReadReceipt="false"> | | | #{user.email} | #{messages.EMAIL_TEST_SUBJECT} | | | | #{messages.EMAIL_TEST_BODY} | | | | | This is the alternative text body for mail readers that don't support html | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035734#4035734 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035734 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: Getting Error When Deploying
If you fix the problem that is causing this error message, then everything should work. :-) But seriously, you have not told us anything about the problem, or the circumstances in which it occurs. Please supply: * The operation system you are running (name and version) * The JVM you are running (name and version) * The version of JBoss AS * How did you install? Downloaded and unzipped the zipfile (if so, are you running the 'all' or the 'default' configuration). Or ran the JEMS installer (if so, what options did you select) * What were you doing when the error occurred? * Post the 10 or so lines in the log before and after the error. (This should be a stack trace) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035732#4035732 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035732 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Re: Clustering and Load Balancing in Jboss-4.0.2 using Apach
Some code is calling HttpSession.setAttribute and passing a non-serializable attribute as the attribute value. In this case it looks to be a reference to the session itself. Suggest you write an javax.servlet.http.HttpSessionAttributeListener implementation and have it analyze (i.e. try to serialize) values as they are passed into the session. This will help you identify what code is passing in the offending value. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035730#4035730 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035730 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user