[jboss-user] [EJB 3.0] - Re: Question @Inheritance
Thx for your help Yes I use hibernate.hbm2ddl.auto = update but I did not try to use InheritanceType.JOINED. That was the problem. If I change it, it works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036613#4036613 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036613 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: a headache problem: I can't invoke remoting EJB of remeo
but I can it works if I deploy EJB to windows server. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036609#4036609 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036609 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - a headache problem: I can't invoke remoting EJB of remeote s
EJB is deployed in on linux server(read hat AS 64bit Ver), then I invoke it in antother server(windows or linux), it reposts exception: aused by: org.jboss.aop.NotFoundInDispatcherException: Object with oid: jboss.j2ee:jar=ufmobile_platformStreetEjb.jar,name=DataSynSessionBean1,service=EJB3 was not found in the Dispatcher at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:85) at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82) at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828) at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:72) at org.jboss.remoting.Client.invoke(Client.java:525) at org.jboss.remoting.Client.invoke(Client.java:488) at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102) the invoker coding is: env = new Properties(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.PROVIDER_URL, "10.10.70.24:1099"); ctx = new InitialContext(env); Object obj = ctx.lookup(sBeanName + "/remote"); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036608#4036608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036608 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam & Maven2
Hello javasmith, not too much, but I think you can use microcontainer instead. It supports most of the features (JNDI, JTA, JCA, Timer) Petr View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036605#4036605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036605 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Jboss install
Instead of running ant manually, try this: "cd" to the build directory and run "./build.sh". This will use the built-in Ant utility. (I have successfully built 4.0.5.GA using JDK 1.5.0_11 on FC6 following those steps.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036604#4036604 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036604 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: Multiple Servers
The example binding service file is located at docs/examples/binding-manager/sample-bindings.xml. (Hmm, did you install using the JEMS installer? If so, I'm not sure if you even get the docs directory. If you don't have docs, try downloading and unzipping the zip file instead, I know it is there.) Since you run the app server as a service, you will have to install two services, with two different service names (e.g., "jboss" and "jboss2"), each starting a different configuration. And you got the part about copying 'server/default' as 'server/serv1' correct, you would use "-c serv1" as part of the command to start up this configuration. And you should do this when it is not running. Hopefully this is enough to get you started. Give a holler if it doesn't. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036603#4036603 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036603 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - Re: org.apache.jasper.JasperException: Exception in JSP: /WE
Without the stack trace that would tell us what the error is? No. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036602#4036602 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036602 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Machine with Two LAN Card -Not able to receive message
I tried out callback mechanism to overcome the problem... Still i could not able to solve that problem. will tell you the scenario and also tell you what i did to implement callback mechanism MachineA - machine with LAN Card-A,IP Address-172.19.6.6 MachineB(acting as DHCP) - machine with LAN Card-A, IPAddress-172.19.6.7 and LAN Card-B,IP Address-10.0.18.101 MachineC - machine with LAN Card-B,IP Address-10.0.18.102 Now MachineA(172.19.6.6) has JBoss Messaging Server and i have started it . Now MachineB(172.19.6.7,10.0.18.101) has durable receiver which listens for any message posted on Messaging server(172.19.6.6).This receiver is started with callback parameter passed as command line arguements as below java -Djboss.messaging.callback.bind.address=172.19.6.6 MessageReceiver when i started my receiver in MachineA , i got exeception and at the same time i also got some exception in the server side (MachineB). I am attaching two files with this mail as server.zip and receiver.zip containing the details of logs and exception at servere and details of logs and exception at receiver side. Please do respond with your vaulable information.It would help us to solve the problem. For your kind information,i have also attached the exception and log file as i said earlier I am pasting the exception which i got at the JBoss Messaging Server side when i started my receiver in MachineB(with Two LAN Card) | | 2007-04-11 12:56:54,800 DEBUG [org.jboss.jms.server.endpoint.ServerSessionEndpoint] created and registered ConsumerEndpoint[-2147483644] | 2007-04-11 12:56:54,875 DEBUG [org.jboss.jms.server.endpoint.ServerConsumerEndpoint] ConsumerEndpoint[-2147483644] NOT started yet! | 2007-04-11 12:56:54,883 DEBUG [org.jboss.jms.server.endpoint.ServerConnectionEndpoint] ConnectionEndpoint[-2147483646] started | 2007-04-11 12:56:54,889 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,891 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,893 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,895 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,897 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,899 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,901 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,904 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,906 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,908 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,910 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,912 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,915 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,918 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,921 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,923 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,925 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,927 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,929 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,931 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,933 DEBUG [org.jboss.remoting.transport.socket.MicroSocketClientInvoker] java.net.SocketException: Network is unreachable | 2007-04-11 12:56:54,935 DEBUG [
[jboss-user] [JBoss Seam] - Breaking components.xml into several files
Dear all, would it be possible for components.xml broken down into several files. Because if I have a large scale apps and I rely so much on framework, my components.xml will be so bloated. Does anyone knows the workaround for this? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036599#4036599 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036599 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - @Out and @Datamodel combination error
I had the following in a SFSB that worked until I upgraded to Seam 1.2.1. | @Out(scope = ScopeType.CONVERSATION, required = false) | @DataModel(value="dosRecordPend", scope=ScopeType.UNSPECIFIED) | private List dosRecordPend; | This was obviously an error on my part, but caused an runtime exception. java.lang.ClassCastException: java.util.ArrayList cannot be cast to javax.faces.model.DataModel Is there any reason to use @Out and @Datamodel in combination? If not, should this not throw and deployment error such as when you do not use scope=ScopeType.UNSPECIFIED or scope=ScopeType.Page with @Datamodel? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036598#4036598 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036598 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - problems when migrate navigation from faces-config.xml to pa
1.i had a application which is runing well when i am using the faces-config.xml, for example the login page: /pages/input/login.jsp login_success /pages/input/mainpage.jsp login_failure /pages/input/login.jsp 2.Now i want to use the seam 1.2 page navigation ability : so i migrate the navigation to the pages.xml: 3.The problem is i can't show the wrong messages when i migrated into pages.xml. the codes to deal with the messages in the managed bean are if (!user.getPassword().equals(this.getPassword())) { facesMessages.addToControlFromResourceBundle("loginForm:password", FacesMessage.SEVERITY_ERROR, "login_password_is_not_correct"); return "login_failure"; } "loginForm:password" means that i have a form called "loginForm" and a field called "password" in the jsp page. So how to show the wrong messages in the web page if i choose to use seam navigation? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036597#4036597 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036597 ___ jboss-user mailing list [EMAIL PROTECTED] https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: JBoss hot deploy?
The application is not redeployed when you update one of the JSPs. Instead, you simply get the updated JSP. If your browser tends to cache pages, you might have to hit the refresh button on the browser to get the updated page. Though I think that this happens to me only when updating static content (css, html, etc), not when updating JSP). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036596#4036596 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036596 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Stack must not be null
We are experiencing intermittent errors during our testing of a pageflow. The stack trace provides little information (that we can use or understand) to help us in identifying the source of this issue. The stack trace does not refer to any code written by us. We are looking for advice on how to resolve this issue. >From the user perspective when this stack trace occurs the user is presented a >blank page in the browser. The stack trace is intermittent and can not be >100% reproduced. Our environment is JBoss 4.0.5, Seam 1.2, jBPM. We are the error on both Windows and Linux, in both the Sun JVM and JRockit. Any information on the source/resolution of this error would be greatly appreciated. The stack trace that we are seeing: | 2007-04-12 00:27:19,732 ERROR [org.jboss.seam.web.ExceptionFilter] uncaught exception | java.lang.IllegalStateException | at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) | at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) | at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:698) | at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:354) | 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.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.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) | 2007-04-12 00:27:19,779 ERROR [org.jboss.seam.exceptions.DebugPageHandler] redirecting to debug page | java.lang.IllegalStateException | at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:404) | at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:107) | at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:698) | at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:354) | 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.Redire
[jboss-user] [Installation, Configuration & Deployment] - Jboss install
I have downloaded ant1.6, and tried to build Jbossas from the source jboss-4.0.5.GA-src.tar.gz, i am using RHEL4, Jdk path in etc/profile #java JAVA_HOME= /usr/java/jdk1.5.0_11 PATH=/usr/java/jdk1.5.0_11/bin:$PATH CLASSPATH=/usr/java/jdk1.5.0_11/lib:$CLASSPATH #ANT1.6 ANT_HOME=/home/servers/java/apache-ant-1.6.0 PATH=/home/servers/java/apache-ant-1.6.0/bin:$PATH i run this command ant -buildfile build.xml when i am building i got this problem init: compile-idl: [jacidl] scan file: /home/servers/java/jboss-4.0.5.GA-src/iiop/src/idl/SASCurrent.idl [jacidl] scan file: /home/servers/java/jboss-4.0.5.GA-src/iiop/src/idl/TransactionService.idl [jacidl] processing idl file: /home/servers/java/jboss-4.0.5.GA-src/iiop/src/idl/SASCurrent.idl [jacidl] processing idl file: /home/servers/java/jboss-4.0.5.GA-src/iiop/src/idl/TransactionService.idl compile-classes: compile-rmi: [rmic] RMI Compiling 1 class to /home/servers/java/jboss-4.0.5.GA-src/iiop/output/classes [rmic] IIOP has been turned on. java.lang.UnsatisfiedLinkError: hasStaticInitializer at com.sun.corba.ee.internal.io.ObjectStreamClass.hasStaticInitializer(Native Method) at com.sun.corba.ee.internal.io.ObjectStreamClass._computeSerialVersionUID(ObjectStreamClass.java:943) at com.sun.corba.ee.internal.io.ObjectStreamClass.(ObjectStreamClass.java:459) at com.sun.corba.ee.internal.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:139) at com.sun.corba.ee.internal.io.ObjectStreamClass.lookup(ObjectStreamClass.java:96) at com.sun.corba.ee.internal.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:133) at com.sun.corba.ee.internal.io.ObjectStreamClass.lookup(ObjectStreamClass.java:96) at com.sun.corba.ee.internal.io.ObjectStreamClass.getSerialVersionUID(ObjectStreamClass.java:159) at com.sun.corba.ee.internal.util.RepositoryId.(RepositoryId.java:150) at sun.rmi.rmic.iiop.IDLNames.convertToISOLatin1(IDLNames.java:139) at sun.rmi.rmic.iiop.IDLNames.getClassOrInterfaceName(IDLNames.java:233)at sun.rmi.rmic.iiop.CompoundType.(CompoundType.java:644) at sun.rmi.rmic.iiop.InterfaceType.(InterfaceType.java:104) at sun.rmi.rmic.iiop.RemoteType.(RemoteType.java:115) at sun.rmi.rmic.iiop.RemoteType.forRemote(RemoteType.java:79) at sun.rmi.rmic.iiop.StubGenerator.getTopType(StubGenerator.java:119) at sun.rmi.rmic.iiop.Generator.generate(Generator.java:262) at sun.rmi.rmic.Main.doCompile(Main.java:526) at sun.rmi.rmic.Main.compile(Main.java:133) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.tools.ant.taskdefs.rmic.SunRmic.execute(SunRmic.java:91) at org.apache.tools.ant.taskdefs.Rmic.execute(Rmic.java:520) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.jboss.tools.buildmagic.task.CallTarget.execute(CallTarget.java:141) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.jboss.tools.buildmagic.task.Ant.execute(Ant.java:261) at org.jboss.tools.buildmagic.task.module.ExecuteModules$1.run(ExecuteModules.java:361) at org.jboss.tools.buildmagic.task.module.ExecuteModules.executeModule(ExecuteModules.java:376) at org.jboss.tools.buildmagic.task.module.ExecuteModules.execute(ExecuteModules.java:241) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306) at org.apache.tools.ant.Task.perform(Task.java:401) at org.apache.tools.ant.Target.execute(Target.java:338) at org.apache.tools.ant.Target.performTasks(Target.java:365) at org.apache.tools.ant.Project.executeTarget(Project.java:1237) at org.apache.tools.ant.Project.executeTargets(Project.java:1094) at org.apache.tools.ant.Main.runBuild(Main.java:669) at org.apache.tools.ant.Main.startAnt(Main.java:220) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90) [rmic] error: An error has occurred in the compiler; please fil
[jboss-user] [JBoss Seam] - Re: Seam app migration from JBoss 4.0.4 to 4.2 and Myfaces 1
I am using a very similar setup. So hopefully it will go that way for me. I am mainly switching due to JBoss's direction and the lack of development with MyFaces. What technical advantages are there with JSF 1.2 in the context of a Seam application? Are there any tricks or new functionality that will be available now or in the future using JSF 1.2? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036593#4036593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036593 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Trinidad PPR/Ajax and Seam
dj- When you created the bean that manages the dialog, did you use a Seam managed bean or did you create a backing bean entry in faces-config.xml? I'm using the Seam @Name and getting a wicked error when I click on the button to initiate the dialog. Thanks for any insight. Chris The specifics of what I'm doing are: Facelet snippet | Dialog Manager almost verbatim from the Trinidad Dialog example. @Name("dialogManager") | @Stateful | public class DialogManager implements IDialogManager{ | |public UIXInput getInput(){ | return _input; |} | |public void setInput(UIXInput input){ | _input = input; |} | |public String doLaunch(){ | RequestContext afContext = RequestContext.getCurrentInstance(); | Map process = afContext.getPageFlowScope(); | process.put("lastLaunch", new Date()); | | return "dialog:chooseList"; |} | |public void returned(ReturnEvent event){ | if(event.getReturnValue() != null) { | getInput().setSubmittedValue(null); | getInput().setValue(event.getReturnValue()); | } |} | |@Destroy |@Remove |public void destroy(){ |} | |private UIXInput _input; | } Error is: | 2007-04-11 22:22:41,562 TRACE [org.apache.myfaces.lifecycle.LifecycleImpl] entering restoreView in org.apache.myfaces.lifecycle.LifecycleImpl | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] before phase: RESTORE_VIEW(1) | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.jsf.AbstractSeamPhaseListener] beginning transaction prior to phase: RESTORE_VIEW(1) | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.beforePhase | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] resolving name: dialogManager | 2007-04-11 22:22:41,562 DEBUG [org.jboss.seam.jsf.SeamVariableResolver] Seam component resolved, but unwrap method returned null | 2007-04-11 22:22:41,578 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, [EMAIL PROTECTED], [EMAIL PROTECTED] url=null ,addedOrder=0} | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.jsf.SeamPhaseListener] after phase: RESTORE_VIEW(1) | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.afterPhase | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.manager | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.core.Events] Processing event:org.jboss.seam.preSetVariable.org.jboss.seam.core.manager | 2007-04-11 22:22:41,578 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.events | 2007-04-11 22:22:41,578 DEBUG [or
[jboss-user] [JBoss Seam] - EnumConverter
Hello sirs. I try call page someAction.xhtml that mapped to seam component someAction. Everything fine except of enum convertion. | enum TypeEnum { | type1 | } | | @Stateless | @Name("someAction") | class SomeActionBean implements SomeAction { |private long id; |private TypeEnum type; | |public void method() { | |} | | } | pages.xml: | | | | | When I call url | http://localhost:8080/myapp/someAction.seam?id=2&type=type1 | logs from SomeAction.method shows that id= 2 but type is null (!) what I am doing wrong? The only one way that I found to work around is following: 1. implement javax.faces.convert.Converter intrface in my own class. 2. add to faces-config lines: | |MyConverter |mypakage.MyEnumConverter | | 3. change pages.xml to | | | | | It is work, but (IMHO) it is ugly. I found that seam already has some EnumConverter, so i can use it. Please, point me to appropriate resources, where I can clerify the question. Thank you. PS: I use seam 1.2.0.PATCH1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036590#4036590 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036590 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam app migration from JBoss 4.0.4 to 4.2 and Myfaces 1
Forgot to mention, I am using Seam 1.2.1 with a4j / Richfaces on JBoss 4.0.5 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036589#4036589 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036589 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam app migration from JBoss 4.0.4 to 4.2 and Myfaces 1
I can confirm that even with a quite sizable real world application the switch to 1.2 RI went fairly seamlessly ... or would it be seamfully in this case? You get it... ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036588#4036588 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036588 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Force OnChange with selectDate selection
Someone's submitted a patch to fire the onchange event, I'll try to get it applied in CVS sometime today. http://jira.jboss.org/jira/browse/JBSEAM-1164 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036587#4036587 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036587 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB/JBoss] - [ServiceController] Problem starting service jboss.j2ee:jndi
Deploy the entity Bean ,the jboss AS print the infomation: [ServiceController] Problem starting service jboss.j2ee:jndiName=ejb/User,service=EJB java.lang.NullPointerException How to deal with this problem Thank you ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036585#4036585 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036585 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Re: JBoss 4.0.4 using UnifiedClassLoader despite config
We did finally get something working. The secret was to upgrade to JBoss 4.0.5, and, when installing it, to enable "deployment isolation/call by value". I'm not sure if upgrading was really necessary or just installing JBoss 4.0.4 with "deployment isolation/call by value" enabled would have done it - a coworker tried reinstalling 4.0.4 and reported that it didn't work, then realized he'd made a mistake, and we didn't have time to try again. It appears that the changes to jboss-app.xml and jboss-web.xml are still needed. The change to ear-deployer.xml is not needed. Upgrading to 4.0.5 did require code changes because the @EJB annotation moved from javax.annotation.EJB to javax.ejb.EJB. Hope this helps someone... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036584#4036584 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036584 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: problem with the tutorial
Yes, this is mentioned as the top static post in this forum... although I can imagine the topic is somewhat unclear in this context: anonymous wrote : console url changed to http://localhost:8080/jbpm-console View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036578#4036578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036578 ___ 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
Well, I took today's build and still have the same problem... The email template is defined as followed: | | 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" |charset="ISO-8859-1"> | | | #{user.email} | #{messages.EMAIL_SUBJECT} | | | | ... | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036564#4036564 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036564 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Problems in Running the Seam examples in JBoss using the JSF
The seam manual contains instruction about running the Seam examples in JBoss using the JSF 1.2 RI. The conversion of the booking example works fine. However, the same conversion for the registration and numberguess examples does not work for some reason. The message is The requested resource (/jboss-seam-numberguess/) is not available. What is the difference? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036562#4036562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036562 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Question @Inheritance
Have you developed this application with hibernate.hbm2ddl.auto = update? If so, you have probably old constraints lying around from the time when you used InheritanceType.JOINED. Either clean them out manually or drop the whole schema and have it recreated. Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036555#4036555 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036555 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Process flush trying to save UnpersistableInstance
It appears something is going wrong here. Hibernate is throwing an exception because it can't persist a UnpersistableInstance. I assume an unpersitable instance shouldn't get to this point. | aused by: org.hibernate.HibernateException: instance not of expected entity type: org.jbpm.context.exe.variableinstance.UnpersistableInstance is not a: org.jbpm.context.exe.VariableInstance | at org.hibernate.persister.entity.AbstractEntityPersister.getSubclassEntityPersister(AbstractEntityPersister.java:3583) | at org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1347) | at org.hibernate.engine.ForeignKeys.isTransient(ForeignKeys.java:180) | at org.hibernate.event.def.AbstractSaveEventListener.getEntityState(AbstractSaveEventListener.java:487) | at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:84) | at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) | at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507) | at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499) | at org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218) | at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268) | at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216) | at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169) | at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296) | at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242) | at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219) | at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169) | at org.hibernate.engine.Cascade.cascade(Cascade.java:130) | at org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:131) | at org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:122) | at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65) | at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26) | at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000) | at org.jbpm.persistence.db.DbPersistenceService.close(DbPersistenceService.java:187) | ... 46 more | | Asa View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036554#4036554 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036554 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Deploy EJB3 App (Jdeveloper JSF)
Without my crystal ball I will not be able to tell you what | model.Vistacalificacionadjudicacionproveedor.codigo_proveedor | looks like. But maybe you are enlightened... Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036553#4036553 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036553 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: [BUG] - Error during deployment
| | http://java.sun.com/xml/ns/persistence"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"; | version="1.0"> | | org.hibernate.ejb.HibernatePersistence | java:/OracleDS | airport.bean.entity.Airplane | airport.bean.entity.Airport | airport.bean.entity.City | airport.bean.entity.Country | | | | | | | | This is a mess! Is this what you have in the file or was it just the froum formatting? Regards Felix View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036551#4036551 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036551 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam app migration from JBoss 4.0.4 to 4.2 and Myfaces 1
Seam CVS (examples and seam-gen) is now running happily on AS 4.2.0.CR1 - take a look at one of the examples - afaik: * Change the listener in web.xml * Remove el-api/el-ri for jboss-el (el-api is distributed with 4.2) * Add commons-collections and commons-beanutils if you use a4j (best to use the version that comes with a4j for now) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036550#4036550 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036550 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: disable MicroRemoteClientInvoker
Hi John, Do this: | HashMap clientConfig = new HashMap(); | clientConfig.put(InvokerLocator.FORCE_REMOTE, "true"); | Client client = new Client(serverLocator, clientConfig); | client.connect(); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036549#4036549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036549 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Embeddable Download
Thank you Wolfc! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036546#4036546 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036546 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - NullPointerException at sun.reflect.NativeMethodAccessorImpl
Dear JBoss experts, I tried my own "hello world" with EJB3 on JBoss 4.0.5GA today. But when I invoke a method on my SLSB, I am getting this stack: [java] log4j:WARN No appenders could be found for logger (org.jboss.security.SecurityAssociation). [java] log4j:WARN Please initialize the log4j system properly. [java] java.lang.NullPointerException [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) [java] at org.jboss.ejb3.stateless.StatelessContainer.dynamicInvoke(StatelessContainer.java:263) [java] at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106) [java] at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82) [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828) [java] at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681) [java] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358) [java] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:398) [java] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239) [java] at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190) [java] at org.jboss.remoting.Client.invoke(Client.java:525) [java] at org.jboss.remoting.Client.invoke(Client.java:488) [java] at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55) [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) [java] at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61) [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) [java] at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53) [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) [java] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77) [java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) [java] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102) [java] at $Proxy0.ping(Unknown Source) [java] at EJB3TestClient.main(EJB3TestClient.java:38) Does the log4j warning has to do with it? Looking at the stack I doubt it. My SLSB is pretty simple: 1. a remote interface: package ...; | | @javax.ejb.Remote | public interface EJB3StatelessTestSessionFacade | { | public String ping(); | } | 2. the bean: package ...; | | @javax.ejb.Stateless | public class EJB3StatelessTestSessionBean | implements EJB3StatelessTestSessionFacade | { | public String ping() | { | return "pong "; | } | } 3. a client: package ...; | | import java.util.Properties; | import javax.ejb.EJB; | import javax.naming.InitialContext; | | public class EJB3TestClient | { | @EJB public static EJB3StatelessTestSessionFacade aFacade; | | /** | * @param args | */ | public static void main(String[] args) | { | try | { | Properties p = new Properties(); | p.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); | p.put("java.naming.factory.url.pkgs","=org.jboss.naming:org.jnp.interfaces"); | p.put("java.naming.provider.url","localhost:1099"); | p.put("jnp.socket.Factory","org.jnp.interfaces.TimedSocketFactory"); | | System.out.println( "getting initial context" ); | InitialContext aIC = new InitialContext(p); | | if ( aFacade == null ) | { | System.out.println( "session bean lookup" ); | aFacade = (EJB3StatelessTestSessionFacade) | aIC.lookup( "java:ejb3test/EJB3StatelessTestSessionBean/remote" ); | } | | System.out.println( "calling session bean" ); | System.out.println( aFacade.ping() ); | } | catch ( Exception aExc ) | { |
[jboss-user] [EJB 3.0] - Re: Embeddable Download
Try: http://sourceforge.net/project/showfiles.php?group_id=22866&package_id=132063 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036544#4036544 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036544 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam app migration from JBoss 4.0.4 to 4.2 and Myfaces 1
I guess I will try the JSF 1.2 upgrade in 4.0.4. I am still using 4.0.4 because I ran into some of my HQL queries not working with 4.0.5. I never took the time to investigate and correct this issue and my app will not deploy on 4.0.5. I will take time to migrate to 4.2 though. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036543#4036543 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036543 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam app migration from JBoss 4.0.4 to 4.2 and Myfaces 1
As far as the JSF RI 1.2 http://docs.jboss.com/seam/1.2.1.GA/reference/en/html_single/#d0e2067 I am not sure how this applies to JBoss 4.2 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036542#4036542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036542 ___ 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
This is weird . But you can see the Booking Seam example which uses Ajax4JSF, and check what you have different. By instance in that example you have aregister.xhtml page and you can change this part: | | | to this one: | | | | That should work. I took a look that example before migrating my Seam app. to Ajax4JSF HTH. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036541#4036541 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036541 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - disable MicroRemoteClientInvoker
I'm running some unit tests that create both client and server in the same VM. I see that Jboss/Remoting is smart enough to not send messages over the wire if it detects this - it uses intra-VM calls when both client and server are in the same VM (via MicroRemoteClientInvoker it seems). However, in this particular unit test, I think its screwing me up. Is there some way I can force JBoss/Remoting to send the commands over the wire (not use the short-circuiting intra-VM MicroRemoteClientInvoker stuff) even if the client and server are in the same VM? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036540#4036540 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036540 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam selectitems JSF control...
Thank you very much for the reply! This worked very well. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036539#4036539 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036539 ___ 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
No, it still doesn't work. I made a real simple xhtml page: | | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:a4j="http//ajax4jsf.dev.java.net/ajax" | lang="en" xml:lang="en"> | | Test | | | | | | | I still get the error message: /hello.xhtml: Property 'jumpPage' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_7 It'd help if I could find so much as a single working app that used . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036531#4036531 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036531 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - [BUG] - Error during deployment
Hi When I deploy my ear file i have got the stacktrace: 21:58:06,703 INFO [Ejb3Configuration] found EJB3 Entity bean: airport.bean.entity.Airplane 21:58:06,703 INFO [Ejb3Configuration] found EJB3 Entity bean: airport.bean.entity.Airport 21:58:06,703 INFO [Ejb3Configuration] found EJB3 Entity bean: airport.bean.entity.City 21:58:06,703 INFO [Ejb3Configuration] found EJB3 Entity bean: airport.bean.entity.Country 21:58:06,718 WARN [Ejb3Configuration] Persistence provider caller does not implements the EJB3 spec correctly. PersistenceU nitInfo.getNewTempClassLoader() is null. 21:58:06,718 WARN [ServiceController] Problem starting service persistence.units:ear=mgr.ear,unitName=airportPU javax.persistence.PersistenceException: [PersistenceUnit: airportPU] class or package not found at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1067) at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:864) at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:750) 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(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java: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(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.start(Unknown Source) at org.jboss.system.ServiceController.start(ServiceController.java:417) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 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 $Proxy76.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(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) 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.refle
[jboss-user] [JBoss Seam] - Re: Force OnChange with selectDate selection
Sorry, forgot to mention which file I modified. It's the calendar.js file included in the seam-ui.jar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036521#4036521 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036521 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Force OnChange with selectDate selection
Just curios, but I'm attempting to add ajax support to my textField that is populated with a date from the SelectDate component. Normally, I would attach an http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036520#4036520 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036520 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam app migration from JBoss 4.0.4 to 4.2 and Myfaces 1.5 t
I am quite excited to switch to both JBoss 4.2 and JSF 1.2. I have a large application that is currently using Seam 1.2.1. Could someone comment on issues with migration from 4.0.4 to 4.2 and from myfaces 1.5 to JSF RI 1.2 is the context of a Seam app? I am using Tomahawk, which i am weeding out in favor of Richfaces if that matters. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036518#4036518 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036518 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Datepicker Popup Issue
I wish to have this popup constantly up,so that I can use to open dates on the page, Now i have tried to the Calendar.js in the Seam directory and other files to make it visible all the time, I attempted to rebulid seam with ant,I produced the relevant jars,These then replaced the old ones, However nothing seemed to happen to my application. Im using jboss Seam -1.1.5Ga and Jboss AS 4.05GA Help and suggestions would be greatly appreciated View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036515#4036515 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036515 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Build time detection of non existent properties in xhtml
Is there a way to validate xhtml (facelets) against seam beans at compile time? Currently if someone mistypes property name he would get a runtime exception which can be undetected unless it is tested. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036508#4036508 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036508 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - context.xml is not loading
Per the instructions here: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html I've bundled my context.xml file with my .ear file but it doesn't seem to be loading. I have it bundled in the .war in META-INF. Contents of context.xml | | | | When this code fragment is placed in server.xml it works just fine. However, I do not want to modify server.xml. I want this descriptor fragment to be bundled with my application. Any ideas on what's wrong or is this an issue with JBoss. I'm using JBoss 4.0.4.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036497#4036497 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036497 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Problem w/ Multiple Servers and JBoss as Service
If I run run.bat for default with it's port set to ports-default it works. If I run my second server and it's port set to ports-01 it seems to work. When I try setting up JBoss as a service it doesn't work for either one of these servers. I've read a few docs and some knowledgable people mention that each server should be started up separated by a certain amount of time. How can I have both servers start up as a Service? Thanks again. AF View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036498#4036498 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036498 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Tomcat deployment with external datasource - is it possi
I haven't got that far yet :( I guess the JTA will need to be hooked-up manually... Alex View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036496#4036496 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036496 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: selectDate with no textfield
Looking at the javascript code generated, you should be able to define a div with id=datepicker and it will be used to draw this component. Hope this helps. -Joseph View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036494#4036494 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036494 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Tomcat deployment with external datasource - is it possi
Quick question. What are you doing for transactions in integration tests in Seam without the microcontainer? If you're doing integration tests. Mike View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036493#4036493 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036493 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - How can I change log4j levels dynamically? (not using jmx-co
In our legacy J2SE environment, our application's JVM served up a very basic webpage that allowed us to dynamically alter the log4j Logger levels at runtime, without editing any log4j configuration files. The webpage was simply a form that listed all of the Loggers in the JVM in a hierarchical tree view (very much like how Chainsaw displays them), with comboboxes containing the available Levels for each Logger. The user could then choose new Levels for any or all loggers and submit the form. The server parsed the form arguments and made Logger.setLoggerLevel() calls appropriately. This type functionality is extremely useful to my team, as we often have less technically skilled team members sitting at the system, trying to debug problems while consulting with the engineering team over the phone. It's much easier to ask someone to work with the tree view than to work with either the JBoss web console, the Sun JConsole, or via editing the log4j.xml file. Is there some industry standard or open source tool that does what we're looking for, or is editing the log4j.xml file (or using the web console) really the standard, preferred approach to dynamically altering Logger levels? If not, what do you think the best approach for adding this functionality to the JBoss environment would be? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036491#4036491 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036491 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: problem with jbpm-3.2.Beta2
Actually, if your internet connection is active, maybe you need to configure the right proxy settings to startup your Application Server. In this page, there's a list of options showing how to setup the proxy settings for some Server Applications like JBoss, Tomcat, Orion and WebLogic: http://confluence.atlassian.com/display/DOC/Configure+Web+Proxy+Support+for+Confluence Particularly, to run the sample application under JBoss application server bundled with jBPM-suite 3.2, I did the following: -Edited the file "jbpm-jpdl-3.2.GA\server\bin\run.bat" -Searched for JAVA_OPTS. Changed the line "set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360" to "set JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=192.168.10.254 -Dhttp.proxyPort=3128 -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360" Where 192.168.10.254 is my proxy server and 3128 is the port for connection. Hope this works for you as worked for me!! Best regards, Alexandre View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036486#4036486 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036486 ___ 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
"wolfc" wrote : @javax.annotation.EJB should be @javax.ejb.EJB | | http://jira.jboss.com/jira/browse/EJBTHREE-608 This was the culprit!!! I've been looking for JBoss 404->405 migration guides. I should have looked for EJB migration guides: http://wiki.jboss.org/wiki/Wiki.jsp?page=FromRC8RC9 anonymous wrote : | References to javax.annotation.EJB must be changed to javax.ejb.EJB for proper injection. javax.ejb.EJB lives in RC9's jboss-ejb3x.jar. When running the patch installer, this file gets updated in $JBOSS_HOME/server/instancename?/deploy/ejb3.deployer, but not $JBOSS_HOME/client at time of this writing. Thanks wolfc! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036484#4036484 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036484 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: console url changed to http://localhost:8080/jbpm-consol
Actually, if your internet connection is active, maybe you need to configure the right proxy settings to startup your Application Server. In this page, there's a list of options showing how to setup the proxy settings for some Server Applications like JBoss, Tomcat, Orion and WebLogic: http://confluence.atlassian.com/display/DOC/Configure+Web+Proxy+Support+for+Confluence Particularly, to run the sample application under JBoss application server bundled with jBPM-suite 3.2, I did the following: -Edited the file "jbpm-jpdl-3.2.GA\server\bin\run.bat" -Searched for JAVA_OPTS. Changed the line "set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360" to "set JAVA_OPTS=%JAVA_OPTS% -Dhttp.proxyHost=192.168.10.254 -Dhttp.proxyPort=3128 -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360" Where 192.168.10.254 is my proxy server and 3128 is the port for connection. Hope this works for you as worked for me!! Best regards, Alexandre View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036485#4036485 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036485 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - rename cluster but need to annotate all sessession bean with
My jboss version is 4.0.3SP1 I renamed my cluster name to myDomainCluster and got runtime error indicating not able to find the partition while jboss was starting up. I fixed the problem by annotating all of my session beans with @Clustered (partition="myDomainCluster"). It worked well, but I don't want to hardcode the cluster name. Is there an alternative way not to hardcode the cluster name? I tried to get the cluster name from a property file and assigned it to the partition variable but I got the compiler error. Any help would be appreciated. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036481#4036481 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036481 ___ 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
"wolfc" wrote : @javax.annotation.EJB should be @javax.ejb.EJB | | http://jira.jboss.com/jira/browse/EJBTHREE-608 Brilliant, let me try View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036479#4036479 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036479 ___ 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
I think I may spot the problem after reviewing my build.xml -- I was linking to libraries in 4.0.4 where you can find jboss-ejb3x.jar which contains javax.annotations.EJB. In 4.0.5 javax.annotations.EJB is nowhere to be found. Where is it? I haven't confirmed that this is the problem, because I haven't yet managed to compile against 4.0.5. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036478#4036478 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036478 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam and Jetty
Using the archtypes mentioned above, there are still problems incorporating EJB3 with jetty, it seems it's still on the TODO list. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036476#4036476 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036476 ___ 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
@javax.annotation.EJB should be @javax.ejb.EJB http://jira.jboss.com/jira/browse/EJBTHREE-608 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036477#4036477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036477 ___ 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
Small error in the jboss-service.xml: it should be test.TestService View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036472#4036472 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036472 ___ 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
I've been testing two aspects: stateless beans and MBeans. Here is all the code: SomeBean -- stateless bean, it will be injected into TestBean. package test; | | @javax.ejb.Stateless | @javax.ejb.Local(SomeIntr.class) | public class SomeBean implements SomeIntr | { | public String test() { | System.out.println("SomeBean::test()"); | return "SomeBean::test()"; | } | } TestBean -- a steless bean which has SomeBean injected, I have tried to clarify EJB with beanName, etc. -- same effect. In 4.0.5.GA this prints "Hello: null". package test; | | @javax.ejb.Stateless | @javax.ejb.Local(TestIntr.class) | public class TestBean implements TestIntr | { | @javax.annotation.EJB | SomeIntr some; | | public void hello() { | System.out.println("Helllo: " + some); | if(some!=null) some.test(); | } | } This an MBean which tries to access TestBean in a few different ways -- injection, lookup, etc. Calling testme() on this mbean prints "TEST ME: null / null". Then after lookup and the call ti.hello() also prints "Helllo: null". | package test; | | import javax.management.ObjectName; | import javax.management.MBeanServer; | import javax.management.MBeanRegistration; | import javax.annotation.EJB; | import javax.naming.InitialContext; | import javax.naming.Context; | import org.jboss.annotation.ejb.Service; | | | public class TestService implements TestServiceMBean, MBeanRegistration | { | | @EJB //(beanName="data/TestBean/local") | TestIntr test; | | TestIntr test2; | | @EJB //(beanName="data/TestBean/local") | public void setTest(TestIntr ti) { test2 = ti; } | | public void testme() | { | System.out.println("TEST ME: " + this.test + " / " + this.test2); | | try { | InitialContext ctx = new InitialContext(); | TestIntr ti = (TestIntr)ctx.lookup("data/TestBean/local"); | System.out.println("TestIntr via lookup: " + ti); | ti.hello(); | | | } catch(Exception e) { | System.out.println("Could not lookup TestIntr: " + e.getMessage()); | e.printStackTrace(); | } | } | | public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception { | System.out.println("TestService : preRegister"); | return name; | } | | public void postRegister(Boolean registrationDone) { | System.out.println("TestService : postRegister"); | } | | public void preDeregister() throws Exception { | System.out.println("TestService : preDeregister"); | } | | public void postDeregister() { | System.out.println("TestService : postDeregister"); | } | | public void start() throws Exception { | System.out.println("TestService : start: " + this.test); | testme(); | } | public void stop() throws Exception { | System.out.println("TestService : stop"); | } | } | For completeness, here are the corresponding interfaces: package test; public interface SomeIntr | { | public String test(); | } TestBean interface: | package test; | | public interface TestIntr | { | public void hello(); | } TestService interface package test; | | import org.jboss.annotation.ejb.Management; | | public interface TestServiceMBean | { | public void testme(); | | public void start() throws Exception; | public void stop() throws Exception; | | } To test this, I executed TestService.testme() from the JMX console. Here are some more JBoss details: [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339) | [Server] Server Name: default | [Server] Root Deployment Filename: jboss-service.xml | [ServerInfo] Java version: 1.5.0_07,Apple Computer, Inc. | [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_07-87,"Apple Computer, Inc." | [ServerInfo] OS-System: Mac OS X 10.4.9,i386 And this is from jboss-service.xml: | | Let me know if further info would be of use and if anyone can confirm this. As I mentioned, JB405 was installed in EJB3-clustered mode via the jems installer. --doktora View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036471#4036471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036471 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Examples: ant deploy.tomcat no longer works ?
Hi, In CVS, if I do ant deploy.tomcat in any of the examples, I get a : java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener Also, it looks like the myfaces jars have been removed ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036470#4036470 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036470 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Time Zone Issue
Here is my JSF Code. | | | http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> | http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:a="https://ajax4jsf.dev.java.net/ajax"; | xmlns:rich="http://richfaces.ajax4jsf.org/rich"; | template="template.xhtml"> | | | | | Transaction Detail | | | | | | | | Transaction Number: | #{transaction.txNumber} | | | | Veteran SSN: | #{transaction.vetSSN} | | | | Veteran Name | #{veteran.vetFirstName} #{veteran.vetLastName} | | | | Date Received: | | | | | | | | | | Date Due: | | | | | | | | | | | Transaction Assigned: | #{transaction.txPersonAssigned} | | | | Date Closed | | | | | | | | | Remarks: | #{transaction.txRemarks} | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Detail Transaction History | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
[jboss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: javax.ejb.EJBException: Could not passivate; failed to s
any updates , please help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036465#4036465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036465 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence,JBoss/CMP, Hibernate, Database] - javax.ejb.EJBException: Could not passivate; failed to save
Hi I am new to JBOSS Some how i got the jboss configured and every thing works on production A stateful session bean gives me error as below javax.ejb.EJBException: Could not passivate; failed to save state | at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:423) | at org.jboss.ejb.plugins.StatefulSessionInstance Please help , i need to know if i am doing any wrong configuration in jboss Please help Thanks CYP View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036464#4036464 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036464 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - @ApplicationException(rollback=true) in Inheritance
Assuming I have: @ApplicationException(rollback=true) | public class MyException extends RuntimeException and public class MySpecialException extends MyException ...should I expect MySpecialException to rollback the transaction when encountered? Or does it also need its own annotation? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036462#4036462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036462 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - selectDate with no textfield
I have a situation where I would like to have a selectDate component, but not a textfield to manually enter a date. I've tried a few approaches and non have had the desired result. The main issue is that without a textfield, this component appears to not know where to place itself and just places itself in the upper left corner. My initial thought was that I would have a hidden field that is updated by the selectDate component. When that hidden field fires an onchange, a4j's support would fire off updating my model. It would then, reRender my http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036457#4036457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036457 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Problem using mysql
Hi, i've followed the steps to user mysql instead of hypersonic, i can upload process, and work with them, but i'm keep getting this error: 13:13:49,906 WARN [JDBCExceptionReporter] SQL Error: 1064, SQLState: 42000 | 13:13:49,906 ERROR [JDBCExceptionReporter] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 job0_.ID_ as ID1_26_, job0_.VERSION_ as VERSION3_26_, job0_.DUEDATE_ as DUEDAT' at line 1 | 13:13:49,906 ERROR [JobSession] org.hibernate.exception.SQLGrammarException: could not execute query | 13:13:49,906 ERROR [JobExecutorThread] exception in job executor thread. waiting 4 milliseconds | org.jbpm.JbpmException: couldn't get acquirable jobs | at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:44) | at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:111) | at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56) | Caused by: org.hibernate.exception.SQLGrammarException: could not execute query | at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67) | at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) | at org.hibernate.loader.Loader.doList(Loader.java:2147) | at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028) | at org.hibernate.loader.Loader.list(Loader.java:2023) | at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393) | at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338) | at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172) | at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121) | at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79) | at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:780) | at org.jbpm.db.JobSession.getFirstAcquirableJob(JobSession.java:40) | ... 2 more | Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1 job0_.ID_ as ID1_26_, job0_.VERSION_ as VERSION3_26_, job0_.DUEDATE_ as DUEDAT' at line 1 | at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) | at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941) | at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623) | at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715) | at com.mysql.jdbc.Connection.execSQL(Connection.java:3249) | at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268) | at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1403) | at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStatement.java:236) | at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186) | at org.hibernate.loader.Loader.getResultSet(Loader.java:1668) | at org.hibernate.loader.Loader.doQuery(Loader.java:662) | at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) | at org.hibernate.loader.Loader.doList(Loader.java:2144) | ... 11 more | any hints on why is this happening? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036456#4036456 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036456 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Missing something basic with regards to bijection
Hey there, Suppose you have a Stateful bean called "PersonManager" that handles both the CRUD and search features for the "Person" entity. I'm using Session scope. I have the following in the "PersonManager" | @DataModel | List people; | | @DataModelSelection | Person selectedPerson; | | // Person property | private Person person; | public void setPerson(Person person) { this.person = person; } | public Person getPerson() { return person; } | | public void clickPerson() { | person = selectedPerson; | return "edit"; | } | When I display a clickable data table with a command link to clickPerson, the selectedPerson does get injected into the PersonManager. I then assign this to the "person" property. Now if I go to a page to edit the Person, expressions like #{personManager.person.firstName} fails. HOWEVER, if I use an expression like #{personManager.selectedPerson.firstName} it works. Why doesn't it stick when I copy the selectedPerson to the property? -Michael PS: I'm using the edit page to also create new people. This is why I wanted to bind the edit page to a property and not a selected item. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036455#4036455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036455 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Form not submitting using PageFlows
I have a weird problem using pageflows. I have a h:commandLink in a datatable that has an action pointing to a transition in a pageflow. When just the action of the commandLink is set, the form never gets submitted and hence my DataModelSelection component is not set. When I throw in an arbitrary actionListener on the commandLink, the form is submitted and all is well. I think I am missing something surely fundamental but can't see it. When I take out the actionListener, selectedRequest is null, when I put it back in, selectedRequest returns the selected row of the DataModel Here is the commandLink The pageFlow http://jboss.com/products/seam/pageflow"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation= "http://jboss.com/products/seam/pageflow http://jboss.com/products/seam/pageflow-1.2.xsd"; | name="serviceRequestCreation"> | | | | | | | | | | | | | Here is the SFSB @Stateful | @Name("requestEntry") | @Scope(ScopeType.CONVERSATION) | public class RequestEntryAction implements com.stlouiscity.csb.ejb.action.RequestEntry { | | @PersistenceContext(unitName="CSB_Oracle", type=PersistenceContextType.EXTENDED) | private EntityManager em; | | @In(create=true) | private Address address; | | @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 viewRequests() { | System.out.println("**Started PageFlow*"); | findRequests(selectedAddress); | } | | public void findRequests(ParcelAddress address) { | System.out.println("**Entered findRequests*"); | System.out.println("**Selected Address: " + address.toString()); | Query q = em.createQuery("Select s From ServiceRequest s Where" + | " s.parcelAddress.parcelAddressPK.houseNumber = :houseNumber AND" + | " s.parcelAddress.parcelAddressPK.houseSuffix = :houseSuffix AND" + | " s.parcelAddress.parcelAddressPK.nlc = :nlc AND" + | " s.parcelAddress.parcelAddressPK.cityBlock = :cityBlock AND" + | " s.parcelAddress.parcelAddressPK.parcelNumber = :parcelNumber)"); | q.setParameter("houseNumber", address.getParcelAddressPK().getHouseNumber()); | q.setParameter("houseSuffix", address.getParcelAddressPK().getHouseSuffix()); | q.setParameter("nlc", address.getParcelAddressPK().getNlc()); | q.setParameter("cityBlock", address.getParcelAddressPK().getCityBlock()); | q.setParameter("parcelNumber", address.getParcelAddressPK().getParcelNumber()); | requests = q.getResultList(); | } | } | | public void printSelectedRequest() { | System.out.println("Selected Request: " + getSelectedRequest().toString()); | } | | @Remove @Destroy | public void destroy() { | | } | | public ServiceRequest getSelectedRequest() { | return selectedRequest; | } | | public void setSelectedRequest(ServiceRequest selectedRequest) { | this.selectedRequest = selectedRequest; | } | TIA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=
[jboss-user] [EJB 3.0] - Fix to EJBTHREE-424 forces use of @Clustered annotation
I'm running JBoss 4.2.0 CR1. This is a result of the fix to JIRA issue EJBTHREE-424. In BaseSessionProxyFactory.substituteSystemProperty, the StringPropertyReplacer is used to allow the substitution of a partition name for the @Clustered annotation. However, if there is no such annotation in the bean, StringPropertyReplacer throws a NullPointerException as there is no value to replace. As a result, the bean is not deployed and the following messages are output: 10:10:53,005 WARN [BaseSessionProxyFactory] Unable to replace @Clustered partition attribute null. Caused by class java.lang.NullPointerException null | 10:10:53,005 WARN [ServiceController] Problem starting service jboss.j2ee:ear=MyEar.ear,jar=beans.jar,name=MyBean,service=EJB3 | javax.naming.NameNotFoundException: null not bound | My goal here is not to include any vendor-specific annotations like @Clustered in the code. Instead we prefer to specify that type of information in deployment descriptors that can be included at runtime so we could deploy to different platforms if desired, without having to change the code itself. In the earlier version of JBoss we were running (4.0.4), we were forced to use DefaultPartition as the name of the cluster, but were able to specify the clustering attributes in the deployment descriptor, such whether the bean is to be clustered, and the load balancing scheme. Now we are able to specify a different partition name, but are no longer able to use the deployment descriptor as the sole source of clustering information. This is undesirable as it defeats any possibility of platform-independent code. http://jira.jboss.com/jira/browse/EJBTHREE-424 http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/branches/JEE5_TCK/ejb3/src/main/org/jboss/ejb3/session/BaseSessionProxyFactory.java/?revision=57493&r1=57493&r2=57492 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036452#4036452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036452 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Deploy EJB3 App (Jdeveloper JSF)
Hi, i'm trying to deploy a EJB3-JSF web application developed with JDeveloper 10.1.3.2. I'm using Oracle's EJB implementation (Toplink) I have added all the required jars: jnpserver.jar jbossall-client.jar jboss-client.jar jboss-common.jar jboss-ejb3.jar jboss-aspect-library-jdk50.jar However, the deploy fails with the following message: ObjectName: persistence.units:ear=sipe.ear,jar=sipemodel.jar,unitName=Model State: FAILED Reason: org.hibernate.MappingException: property mapping has wrong number of columns: model.Vistacalificacionadjudicacionproveedor.codigo_proveedor type: object I Depend On: jboss.jca:service=ManagedConnectionFactory,name=DefaultDS Depends On Me: jboss.j2ee:ear=sipe.ear,jar=sipemodel.jar,name=SessionEJB,service=EJB3 Any advice would be very helpful. Regards, Luis R. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036451#4036451 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036451 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Number of topic subscriptors
thank you very much... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036449#4036449 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036449 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Question @Inheritance
Well it's me again with a question for using @Inheritance Well I got one super Entity: | @Entity | @Table(name="users") | @SequenceGenerator(name = "user_sequence", sequenceName = "user_id_seq") | @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) | public class User implements Serializable { | | private static final long serialVersionUID = 1487970457796785528L; | @Id | @Column(name="u_id",nullable=false) | @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "user_sequence") | private Long id; | | } | and a child class | @Entity | @Table(name="registered_user") | public class RegisteredUser extends User implements Serializable{ | | private static final long serialVersionUID = 2027308984532828735L; | | } | with no specific id. Both entities are represented by an own table. The Primary Key from the parent table is also used as primary key in child table (mapped with foreign key) When I try to persist a child object I got an Error: anonymous wrote : | 18:19:46,968 ERROR [JDBCExceptionReporter] ERROR: insert or update on table "registered_user" violates foreign key constraint "fk22ff4768223777df" | Detail: Key (u_id)=(1600) is not present in table "users". | 18:19:46,968 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session | How can I tell the manager to persist the attributes in my parent table? Perhaps with cascade strategy? And where should I put it? Thx a lot View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036448#4036448 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036448 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Number of topic subscriptors
Here's the method that would do what you need. | private void testSubscriptionsList(String destName, String type) throws Exception { | | QueueMBean queueMBean = null; | TopicMBean topicMBean = null; | | try { | //find the mbean server | mBeanServer = (MBeanServerConnection) new InitialContext().lookup("jmx/invoker/RMIAdaptor"); | | // create the relevant ON | // Here type equals to Queue or Topic and | // destName equals to name of the destination, for example testTopic | | serverObjectName = new ObjectName( | "jboss.messaging.destination:service=" + type + ",name=" | + destName); | | // create either queueMBean or topicMBean | if (type.equalsIgnoreCase("Queue")) { | | queueMBean = (QueueMBean) MBeanServerInvocationHandler | .newProxyInstance(mBeanServer, serverObjectName, | QueueMBean.class, false); | | } else if (type.equalsIgnoreCase("Topic")) { | | topicMBean = (TopicMBean) MBeanServerInvocationHandler | .newProxyInstance(mBeanServer, serverObjectName, | TopicMBean.class, false); | } | | } catch (NamingException e) { | logger.warn("NamingException:" + e.getMessage()); | logger.error(e); | } catch (Exception e) { | logger.info("Exception:" + e.getMessage()); | logger.error(e); | } | | // once you get the relevant MBean, invoke | // the appropriate operations. | // For example, to list the subscription on the topic | // do this: | List subs = topicMBean.listAllSubscriptions(); | | // iterate through the list.. | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036447#4036447 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036447 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Problem of accessing Oracle DS in JBOSS from a stand-alo
"scottlong" wrote : Thanks very much Adrian. | | If i might ask one more question... regarding: anonymous wrote : the remote connection does not take part in any transaction context established on the client | ... does this mean that even direct calls to Connection.commit() and Connection.rollback(), or possibly Connection.setAutoCommit() might not be propagated to the "real" JDBC connection held in JBoss? Or is the transaction context that the client cannot take part in limited to true "JTA" type transactions, UserTransaction, etc.? | Those work. That's a JDBC local transaction, not an "implicit"/contextual JTA transaction like the UserTransaction. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036446#4036446 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036446 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossWS] - Re: JSR-109Client, Mapping problem and trying to connect to
OK this is what I discovered: The "Could not update IN parameter to be INOUT..." error comes from processOutputDocElement method inside JAXRPCMetaDataBuilder class. The processOutputDocElement is called from anonymous wrote : | buildParameterMetaDataDoc(OperationMetaData opMetaData, WSDLInterfaceOperation wsdlOperation, ServiceEndpointMethodMapping seiMethodMapping,TypeMappingImpl typeMapping) | Now the description of this class is mentioning: "A meta data builder that is based on webservices.xml." So I supposed that this error occurs due to issues related to my webservices.xml. Here is my webservices.xml : | | | Vax | WebRoot/WEB-INF/wsdl/Vax.wsdl | WebRoot/WEB-INF/jaxrpc-mapping.xml | |VaxSoapPort | |anonymous wrote : portNS:VaxSoapPort | ca.agenthttp.vax.VaxSoap | | VaxSoap | | | | | Now from the docs we know: anonymous wrote : | The port-component-name element specifies a port component's name. This name is assigned by the module producer to name the service implementation bean in the module's deployment descriptor. The name must be unique among the port component names defined in the same module. | Used in: port-component | Example: | EmployeeService | | So according to this the wsdl-port tag line should be like this: anonymous wrote : | portNS:VaxSoapPort | I tried also to provide the target namespace like in the commented line: anonymous wrote : | | (even if I know the correct use is like in the previous uncommented line) but with same error results: anonymous wrote : | Could not update IN parameter to be INOUT, as indicated in the mapping: parameters | Is it possible that this occurs because the wsdl location URL points to anonymous wrote : | https://www.acompany.com/VaxHttp/Vax?wsdl | but the real SEI is in fact "VaxSoap" class ??? Let me explain: "Vax" referenced in URL is just a simple javax.xml.rpc.Service and looks like this: | /* | * JBoss, the OpenSource EJB server | * Distributable under LGPL license. See terms of license at gnu.org. | */ | | //Auto Generated by jbossws - Please do not edit!!! | | package ca.agenthttp.vax; | | | import javax.xml.rpc.*; | | | public interface Vax extends javax.xml.rpc.Service | { | | public ca.agenthttp.vax.VaxSoap getVaxSoap() throws ServiceException; | | } | Now the ca.agenthttp.vax.VaxSoap is my real SEI which contains references to all the published methods which are web servable. Please confirm to me if this webservices.xml is properly configured or if I have to reconfigure some other .xml files. Last but not least this is my jboss-client.xml file: | | | | jbossws-client | | Vax | | https://www.acompany.com/VaxHttpTest/Vax.asmx?wsdl | | | | The service defined in Wax.wsdl looks like this: | | | https://www.acompany.com/VaxHttpTest/Vax.asmx"; /> | | | Any suggestions ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036444#4036444 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036444 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Number of topic subscriptors
Thank you very much, how can i do it programaticly? Thanks again... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036443#4036443 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036443 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @
Fundamentally they're the same. SecurityInterceptor treats the @Restrict in exactly the same way, no matter whether it's specified on the method or the class. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036442#4036442 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036442 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Messaging, JMS & JBossMQ] - Re: Multiple Destination Mgr and Pesistence Managers
I am having some difficulties regarding this as well. Basically now that I have my own Invoker, I need to add a new InvocationLayer to jvm-il-service.xml to call my Invoker. I believe this means I need to create my own ConnectionFactory and XAConnectionFactory that the new InvocationLayer is bound to. Does anyone know if it is possible to create a new ConnectionFactory/XAConnectionFactory for JBossMQ? and how? I found some sample xml in JBoss Messaging docs but that doesn't seem to work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036441#4036441 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036441 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Setting primary key in valueobject using XDoclet and unknown
Hi, I'm having problems with my VOs in XDoclet. I can generate my VOs allright, and using them on client side is a great releaf. When receiving VOs back from client, I would like to update the bean by calling setXXXValue(vo) in the bean, but because the CMP layer doesn't set the pk automatically when creating the VO, an exceptions is thrown because the CMP layer can't get hold of other beans referenced by the bean to be updated. I have searched the web like a mad man, but it seems that nobody have touched upon this issue. I'm aware that when using unknown-pk, I give complete control of the PK to the CMP layer, but never the less, it would be smart to have the correct PK in the VO. Is there a work around, or should I use a different approach than VOs? Bean in questing: /** | * XDoclet-based CMP 2.x entity bean. This class must be declared | * public abstract because the concrete class will | * be implemented by the CMP providers tooling. | * | * To generate EJB related classes using XDoclet: | * | * - Add Standard EJB module to XDoclet project properties | * - Customize XDoclet configuration | * - Run XDoclet | * | * Below are the xdoclet-related tags needed for this EJB. | * | * @ejb.bean name="Customer" | * display-name="Name for Customer" | * description="Description for Customer" | * jndi-name="ejb/Customer" | * primary-key-class="java.lang.Object" | * type="CMP" | * cmp-version="2.x" | * view-type="local" | * | * @ejb.pk class="java.lang.Object" | * @ejb.util generate="physical" | * @ejb.persistence table-name="Customer" | * @ejb.value-object | * | * @ejb.ejb-external-ref | * view-type="local" | * link="User" | * ref-name="ejb/UserLocal" | * type="Entity" | * home="com.tmn.ejb.user.entity.generated.UserLocalHome" | * business="com.tmn.ejb.user.entity.generated.UserLocal" | * @ejb.ejb-external-ref | * view-type="local" | * link="IPPhoneSubscription" | * ref-name="ejb/IPPhoneSubscriptionLocal" | * type="Entity" | * home="com.tmn.ejb.product.entity.generated.IPPhoneSubscriptionLocalHome" | * business="com.tmn.ejb.product.entity.generated.IPPhoneSubscriptionLocal" | * | * @ejb.finder | * signature="com.tmn.contentdanmark.ejb.user.entity.generated.CustomerLocal findLocalByUserName(java.lang.String userName)" | * query="SELECT OBJECT(a) FROM Customer a WHERE ( a.user.userName=?1 )" | * | * @ejb.finder | * signature="java.util.Collection findAll()" | * query="SELECT OBJECT(a) FROM Customer a" | */ | public abstract class CustomerEJB implements EntityBean { | | /** The entity context */ | private EntityContext context; | | private java.util.Date creationDate; | | /** | * There are zero or more ejbCreate(...) methods, whose signatures match | * the signatures of the create(...) methods of the entity bean?s home interface. | * The container invokes an ejbCreate(...) method on an entity bean instance | * when a client invokes a matching create(...) method on the entity bean?s | * home interface. | * | * The entity bean provider?s responsibility is to initialize the instance in the ejbCreate< | * METHOD>(...) methods from the input arguments, using the get and set accessor | * methods, such that when the ejbCreate(...) method returns, the persistent | * representation of the instance can be created. | * | * The entity bean provider must not attempt to modify the values of cmr-fields in an ejbCreate< | * METHOD(...) method; this should be done in the ejbPostCreate | * | * The entity object created by the ejbCreate method must have a unique primary | * key. This means that the primary key must be different from the primary keys of all the existing | * entity objects within the same home. However, it is legal to reuse the primary key of a previously | * removed entity object. The implementation of the bean provider?s ejbCreate< | * METHOD>(...) methods should be coded to return a null. | * | * An ejbCreate(...) method executes in the transaction context determined by | * the transaction attribute of the matching create(...) method. | * The database insert operations are performed by the container within the same | * transaction context after the Bean Provider?s ejbCreate(...) method completes. | * | * @throws CreateException Thrown if method fails due to system-level error. | * @param creationDate | * | * @ejb.create-method | */ | public java.lang.Object ejbCreate(Date creationDate) throws CreateException {
[jboss-user] [JBoss Messaging] - Re: Number of topic subscriptors
You mean subscriptions, right? Go to the JNDIView of the relevant Topic and invoke listAllSubscriptions() to get the list of all subscriptions. Thanks Madhu View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036438#4036438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036438 ___ 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
tazman, you should be able to send async now View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036435#4036435 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036435 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Number of topic subscriptors
Hello, is it possible to get the number of subscritor of a topic? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036434#4036434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036434 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Invoking a service bean in a different node
Hi All. Can somebody explain please how can I do the following: I wish to invoke, from a service bean in one node of my cluster, service beans in different nodes (one bean in each of the nodes in my cluster). How can I do that? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036432#4036432 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036432 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @
Forgot to say... Im using version 1.2.1GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036429#4036429 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036429 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - DataModel: Row is not available
I had this DataModel bound to the conversation scope | @DataModel | public List getStepList(){ | return useCase.getSteps(); | } | All worked just fine until I changed the association type from List to Set and updated the code to: | @DataModel | public Set getStepList(){ | return useCase.getSteps(); | } | Now the page does not show a new row if a Step is added to the collection. And the console display ERROR [HtmlTableRendererBase] Row is not available. Rowindex = 0 If I end the conversation and access the page again, the new Step is displayed. What can be wrong? Seam version: 1.2.1 thanks in advance, Fabricio Lemos View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036425#4036425 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036425 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration & Deployment] - Multiple Servers
Where in the heck does one find the sample-bindings.xml file? I've been trying to set up multiple servers each on the same machine but using different ports and a few places I noticed reference to this file but can't find it anywhere. I had tried to copy my default directory (under server directory) to a new directory called serv1 and to change the port numbers to something different for serv1. Since most people in the docs refer to starting and stopping manually I wasn't sure what I should do since I have JBoss set up as a service. Order of what I'm looking for that will hopefully get this running : 1) stop the service? 2) then should I copy the default directory into a new directory and change whatever port numbers I need in there? Which files? In this doc it says "Modify conf/jboss-service.xml (or deploy/binding-service.xml in Version 4.0.3 and later) uncomment "Service Binding" section and select "ServerName?" value from sample-bindings.xml (for example, ports-01 or ports-02). This "ServerName" must be configured in the jboss-bindings.xml file and must be unique for each server instance: " 3) how should I set up running the servers as services since there are multiple ones now? I would REALLY appreciate some help on this. AF View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036424#4036424 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036424 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Redirect to error-page for AuthorizationException with @
Im facing a similar problem. When an AuthorizationException raises: Using @Restrict at the class level gives me the default error page. @Name("sphconsullanEditor") | @Stateful | @Restrict | public class SphConsullanEditorBean implements SphConsullanEditor { | ... | Using @Restrict at the method level, redirection works fine. @Restrict | public String create() { | ... | It is just a matter of moving the @Restrict annotation from one place to another, so clearly everything else is configured correctly. Also, all other redirections on pages.xml work fine, like login-required, no-conversation, NotLoggedInException, etc. Thoughts? ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036421#4036421 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036421 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam selectitems JSF control...
Assuming you mean for s:convertEntity then you need to do, for each extra EntityManager: components.xml | | foo.xhtml | | | http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036420#4036420 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036420 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam selectitems JSF control...
Is there a way to specify more than one EntityManager for use by this component? Has anyone done this yet? I have a project that makes use of more than one EntityManager accessing multiple databases. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036417#4036417 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036417 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Security & JAAS/JBoss] - Re: Problem with SAML in cookies
Doh! Missed the README - thanks for the prompt response. Just as an aside, the SSO integration is quite closely coupled with J2EE HTTP, and we have requirement to have single-sign on between non-HTML/HTTP and HTML/HTTP JBoss-bound applications. i.e. non-HTTP WS where session management is being handled by WS-Addressing (Cookies are ruled out due to our WS architecture) and an AMF (Adobe's Active/Action Media Format) interface where session management is buried in proprietary binary. I am most likely going to have to build an adaptor to JBossSSO for AMF (we already have a cluster friendly non-SAML SSO between WS and AMF), but find that it will be quite hard to decouple the HTTP and SSO concerns in the current implemntation of JBossSSO. (i.e. references to javax.servlet.* classes in token management and federation server integration). Are there any plans on the roadmap for de-contextualising the SSO integration ? i.e. SSO2.0 - had a quick scan of JIRA but saw nothing similar - except for the Oracle SAML integration which we may also need). JBossSSO is looking good for us now and like the SAML integration as it fits nicely into our SOA roadmap. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036416#4036416 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036416 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Remoting] - Re: Problems with servlet transport
Try adding the following jar files in server/default/lib : tomcat-apr.jar tomcat-coyote.jar tomcat-http.jar tomcat-util.jar These are included in the jbossweb-tomcat55.sar directory. (see http://jira.jboss.com/jira/browse/JBAS-2766) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036413#4036413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Passing parameters in jsf method calls?
Hello to all, I was wondering what the syntax is for passing a parameter in a jsf method call. I have a page flow where I want to set an attribute of my bean before displaying a page: "Registrant" is a literal string. In the bean I have this method: public void setContactType(String typeIn) { contactType= typeIn; } I think this is possible although I thin the syntax for the call is slightly different. Thanks for all the help, James View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036414#4036414 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036414 ___ 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
Thanks Tim, When will the fixed code release? Is it just another jboss-messaging-client.jar? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036412#4036412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036412 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Tomcat deployment with external datasource - is it possi
Thanks. I don't know how to put it in the WIKI either but if 1144 get's rejected then I'll figure out how. Mike View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036410#4036410 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036410 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Portal] - org.apache.jasper.JasperException: Exception in JSP: /WEB-IN
Hello! I am making a portal page and I'm trying to implement a jsp page with JSF tags in a portlet, when i try it out I get the following error. org.apache.jasper.JasperException: Exception in JSP: /WEB-INF/jsp/view.jsp:9 6: 7: 8: 9: 10: 11: 12: Stacktrace: Anyone who knows what the problem might be? Best Regards / Olle View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036411#4036411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Clustering/JBoss] - Notification HA-Broadcaster + Listeners
Hi all. I'm working with a cluster, and I wish to have a notification broadcaster that is HA-Singletone, that will send notifications to listeners in each node. I also wish for each node to have access to the broadcaster, to send it a message, that will be forwarded to all of the listeners. I've having a hard time deploying these objects. Cound someone please refer me to some documentation or tutorial or example about this? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036409#4036409 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036409 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Tomcat deployment with external datasource - is it possi
Umm... I'd rather post it here, you can copy it later to Wiki if you know how to do it ... as I don't :( Note: each of the JTA implementations used has its own problems: JOTM doesn't automatically shutdown with Tomcat; Atomikos has its own log framework that is a pain to configure (they promised to migrate to log4j/CL though); and JBoss Tx doesn't seem to have a way to configure XA-aware datasources (I've asked for help on their forum, waiting for answers). Nevertheless, all of them allow to start up Seam without the Microcontainer (that's 3.5Mb of JARs and a bunch of nasty restrictions, mind you...). All that is needed is the Tomcat's standard META-INF/context.xml file (or use server.xml if you prefer), some declarations in META-INF/persistence.xml file, plus some glue code and some property files. JOTM setup (http://jotm.objectweb.org/): context.xml: | | | | persistence.xml: | http://java.sun.com/xml/ns/persistence"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"; | version="1.0"> | | java:comp/env/DataSource | | | | | jndi.properties (place in classpath): java.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory | java.naming.provider.url=rmi://localhost:1099 carol.properties (place in classpath): carol.protocols=jrmp | carol.start.jndi=false | carol.start.ns=false | carol.start.rmi=false | carol.jndi.java.naming.factory.url.pkgs=org.apache.naming JOTM is the only one that doesn't need any glue code, as all the necessary factories (Hibernate TM lookup, UT factory, and XA DataSource factory) are already in place. Atomikos setup (http://www.atomikos.com/): context.xml: | | | | persistence.xml: | http://java.sun.com/xml/ns/persistence"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"; | version="1.0"> | | java:comp/env/DataSource | | | | | jta.properties (place in classpath): com.atomikos.icatch.service=com.atomikos.icatch.standalone.UserTransactionServiceFactory Atomikos needs one piece of "glue" code, and that is to look up the UserTransaction properly. The developers promised to create the lookup class in later versions, but for now, use this: public class AtomikosUTLookup implements ObjectFactory { | public AtomikosUTLookup() { | } | public Object getObjectInstance(Object obj, Name name, Context nameCtx, | Hashtable environment) throws Exception { | return new UserTransactionImp(); | } | } JBoss Transactions (formerly Arjuna JTA) setup (http://labs.jboss.com/portal/jbosstm/): context.xml: | | | | persistence.xml: | http://java.sun.com/xml/ns/persistence"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"; | version="1.0"> | | java:comp/env/DataSource | | | | | JBoss Tx requires both TM lookup code and UT lookup, and here they are: JBossJTATMLookup.java: public class JBossJTATMLookup implements TransactionManagerLookup { | public TransactionManager getTransactionManager(Properties props) | throws HibernateException { | return com.arjuna.ats.jta.TransactionManager.transactionManager(); | } | public String getUserTransactionName() { | return "java:comp/UserTransaction"; | } | } JBossJTAUTLookup.java: public class JBossJTAUTLookup implements ObjectFactory { | public Object getObjectInstance(Object obj, Name name, Context nameCtx, | Hashtable environment) throws Exception { | return UserTransaction.userTransaction(); | } | } I still haven't figured it out with the DataSource configuration for JBoss Tx - for now, I use the regular declaration without a factory (and it works) but maybe I simply haven't run into any problems yet... Oh yes, and the components.xml for all three looks like: | | | Note the lack of core:microcontainer declaration. jboss-beans.xml and jndi.properties from the usual Seam-MC deploayment are not needed, either. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4036408#4036408 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4036408 _