[jboss-user] [Javassist user questions] - Re: Drools forum
I wonder if there is a forum for Drools questions. thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4203366#4203366 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4203366 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: project builders
thank you Max, - Faceted Project Validation Builder Your project would have to be faceted...not something that is easily done in Eclipse 3.3, Ganymede maybe. could you tell me if this is very useful for a seam project? (in that case I would try with Ganymede) - Project Verifier Actually not sure what that verifier is for...which type of project do you see it on ? In properties--Resource it just says Type: Project. I am not sure it that is what you mean. - Seam Builder This one should definitly be in there if you enable seam support... if not then try and remove the Seam nature and go enable seam support again. Perfect!! disabling and enabling has added Seam Builder :-) - Hibernate Builder Go and disable/enable Hibernate. Note: Hibernate builder is actually a noop at the moment, so not important for you. This time disabling and enabling has not added Hibernate Builder, but I guess I could do without it! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4156211#4156211 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156211 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - project builders
Hi, If I create a new seam web project , project properties builders include the following: - Java Builder - Faceted Project Validation Builder - Validation - Project Verifier - Seam Builder - Hibernate Builder I have a project I created time ago before upgrading my eclipse and installing jboss tools. I have enabled seam support in seam settings but it has not added anything to my project builders. I wonder how could I add this builders to my previous myproject: - Faceted Project Validation Builder - Project Verifier - Seam Builder - Hibernate Builder I do NOT want to create a seam web project and the copying stuff, just to enable those validators in an existing project. thanks in advance!! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4156038#4156038 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156038 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: project builders
Btw, my eclipse version is 3.3.2 (eclipse-jee-europa-winter-322 release) and my JBoss Tools is 2.1.0.GA. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4156042#4156042 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4156042 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: JBoss log4j Update Required?
I am having same problem with JBoss 4.2.2 deploying a seam 2.0.2 GA application. I have only one log4j.xml file These are my appenders: | appender name=CONSOLE class=org.apache.log4j.ConsoleAppender | errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/ | param name=Target value=System.out/ | layout class=org.apache.log4j.PatternLayout | !-- The default pattern: Date Priority [Category] Message\n -- | param name=ConversionPattern value=%-5p [%c{6}] %m%n/ | /layout | /appender | | |appender name=FILE class=org.jboss.logging.appender.DailyRollingFileAppender | errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/ | param name=File value=${jboss.server.log.dir}/server.log/ | param name=Append value=false/ | | !-- Rollover at midnight each day -- | param name=DatePattern value='.'-MM-dd/ | | !-- Rollover at the top of each hour | param name=DatePattern value='.'-MM-dd-HH/ | -- | | layout class=org.apache.log4j.PatternLayout | !-- The default pattern: Date Priority [Category] Message\n -- | param name=ConversionPattern value=%d %-5p [%c] %m%n/ | | !-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n | param name=ConversionPattern value=%d %-5r %-5p [%c] (%t:%x) %m%n/ | -- | /layout |/appender | CONSOLE appender works ok, but FILE appender causes this exception: | 09:38:44,234 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.RollingFileAppender cannot be cast to org.apache.log4j.Appender | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:175) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:150) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:163) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:425) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:470) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.LogManager.clinit(LogManager.java:122) | 09:38:44,234 ERROR [STDERR] at org.apache.log4j.Logger.getLogger(Logger.java:104) | 09:38:44,234 ERROR [STDERR] at org.jboss.seam.log.Log4JProvider.init(Log4JProvider.java:31) | 09:38:44,234 ERROR [STDERR] at org.jboss.seam.log.Logging.getLogProvider(Logging.java:43) | 09:38:44,234 ERROR [STDERR] at org.jboss.seam.log.Logging.getLogProvider(Logging.java:50) | 09:38:44,234 ERROR [STDERR] at org.jboss.seam.servlet.SeamListener.clinit(SeamListener.java:28) | 09:38:44,234 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | 09:38:44,234 ERROR [STDERR] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | 09:38:44,234 ERROR [STDERR] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | 09:38:44,234 ERROR [STDERR] at java.lang.reflect.Constructor.newInstance(Constructor.java:513) | 09:38:44,234 ERROR [STDERR] at java.lang.Class.newInstance0(Class.java:355) | 09:38:44,234 ERROR [STDERR] at java.lang.Class.newInstance(Class.java:308) | 09:38:44,234 ERROR [STDERR] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3800) | 09:38:44,234 ERROR [STDERR] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361) | 09:38:44,234 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790) | 09:38:44,234 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770) | 09:38:44,234 ERROR [STDERR] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553) | 09:38:44,234 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | 09:38:44,234 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | 09:38:44,234 ERROR
[jboss-user] [JCA/JBoss] - Re: Closing a connection for you problem JBOSS 4.2.2
thank you Vicky! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4136315#4136315 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4136315 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Closing a connection for you problem JBOSS 4.2.2
Hi, I am using JBoss 4.2.2 with jdbc3.(jcon3.jar) For some operations that access a database I have this error: | 2008-03-12 13:14:53,653 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing a connection for you. Please close them yourself: [EMAIL PROTECTED] | I found a previous post in this forum. http://www.jboss.org/index.html?module=bbop=viewtopicp=3846334#3846334 As stated in that forum I have added to my -ds.xml the following: | track-statementsfalse/track-statements | And now it seems not to happen, at least as far as I have tested. I ask again because my JBoss version is the JBoss 4.2.2 and I wonder if this is something that should be fixed. By the way, before moving to jdbc3 I did not have this problem. Maybe is there some problem with 4.2.2. and jdbc3? some configuration issue I have skipped? What puzzles me is that it only happens with certain database accesses, not all the time. thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135900#4135900 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135900 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Closing a connection for you problem JBOSS 4.2.2
Hi, I am using JBoss 4.2.2 with jdbc3.(jcon3.jar) For some operations that access a database I have this error: | 2008-03-12 13:14:53,653 INFO [org.jboss.resource.connectionmanager.CachedConnectionManager] Closing | a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnectio | [EMAIL PROTECTED] | I found a previous post in this forum link. http://www.jboss.org/index.html?module=bbop=viewtopicp=3846334#3846334 So according to that I have added to my -ds.xml the following: | track-statementsfalse/track-statements | And now it seems not to happen, at least as far as I have tested. I ask again because my JBoss version is the JBoss 4.2.2 and I wonder if this is something that should be fixed. By the way, before moving to jdbc3 I did not have this problem. Maybe is there some problem with 4.2.2. and jdbc3? some configuration issue I have skipped? What puzzles me is that it only happens with certain database accesses, not all the time. thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4135975#4135975 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4135975 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: strange behaviour with security rules 2.0.1GA
hi, I have solved my problem. I desfribe my solution in case it helps. The matter was that in other rule I had in my security.drl (and that I did not post to my message) I had a syntax error. With that error the rule I described before does not work, and once the syntax is correct, both rules work ok. The sintax error was the following: | Role(name == adminGral or name == adminFirm) | And the proper way is this: | Role(name == adminGral) | or | Role(name == adminFirm) | regards, Jaime View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4129184#4129184 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4129184 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - strange behaviour with security rules 2.0.1GA
hi! I have just started to work with the latest releases (SEAM 2.0.1.GA and JBOSS 4.2.2) I am testing the security and something strange happens with my application. Restrictions defined in my pages.xml with s:hasRole work ok, but in the .drl file they are not working properly. This is my authenticate method: | public boolean authenticate() { | if (((identity.getUsername().equalsIgnoreCase(admin)) (identity.getPassword().equalsIgnoreCase(hola { | identity.addRole(adminGral); | return true; | } | else if (((identity.getUsername().equalsIgnoreCase(simpleuser)) (identity.getPassword().equalsIgnoreCase(bonjour { | identity.addRole(user); | return true; | } | } | This are restrictions defined in pages.xml: | page view-id=/FirmChoose.xhtml | restrict#{s:hasRole('adminGral')}/restrict | /page | | page view-id=/FirmList.xhtml | restrict/ | /page | and this is the rule defined in my security.drl | rule FirmList | when | c: PermissionCheck(name == /FirmList.xhtml, action == render) | Role(name == adminGral) | then | c.grant(); | end; | When I authenticate with simpleuser as it has user role I may not access to the restricted pages (FirmList and FirmChoose) and the following exception appears: 12:27:41,671 ERROR [SeamPhaseListener] uncaught exception org.jboss.seam.security.AuthorizationException: Authorization check failed for permission [/FirmList.xhtml,render] at org.jboss.seam.security.Identity.checkPermission(Identity.java:486) at org.jboss.seam.navigation.Page.checkPermission(Page.java:214) at org.jboss.seam.navigation.Page.preRender(Page.java:238) at org.jboss.seam.navigation.Pages.preRender(Pages.java:309) at org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:549) at org.jboss.seam.jsf.SeamPhaseListener.beforeRenderResponse(SeamPhaseListener.java:460) at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:144) at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) That is ok. But on the other hand if I authenticate with admin, I am allowed to access to FirmChoose (#{s:hasRole('adminGral')} works perfectly) but howewer I may not acces to FirmList (FirmList does not grant my access in spite of having adminGral role) I wonder if I have missed to configure something or if I am doing something wrong. (hope it not to be a bug) thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4128702#4128702 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4128702 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: [SeamPhaseListener] swallowing exception
Pete, I have not said you that I am using SEAM 1.2.1 Before opening a JIRA maybe I should wait until checking this with SEAM 2. what do you think? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4122937#4122937 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122937 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - [SeamPhaseListener] swallowing exception
hi, I have added some restrictions taking into consideration the user's roles to access some pages. They work ok and when the org.jboss.seam.security.AuthorizationException appears the flow is redirected properly. Howewer I find that the very first time after starting the server or deploying if I try to access with a not authorized user to a forbidden page the AuthorizationException is swallowed, access to the page is granted and there is no redirection to error page. The trace is this: 13:32:38,218 ERROR [SeamPhaseListener] uncaught exception org.jboss.seam.security.AuthorizationException: Authorization check failed for expression [#{authenticator.admin}] at org.jboss.seam.security.Identity.checkRestriction(Identity.java:160) at org.jboss.seam.pages.Page.enter(Page.java:206) at org.jboss.seam.core.Pages.enterPage(Pages.java:276) at org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:276) at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:214) at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:56) at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersBefore(LifecycleImpl.java:520) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:342) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107) 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.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:53) 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.RedirectFilter.doFilter(RedirectFilter.java:45) 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.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:619) 13:32:38,375 ERROR [SeamPhaseListener] swallowing exception org.jboss.seam.security.AuthorizationException: Authorization check failed for expression [#{authenticator.admin}] at org.jboss.seam.security.Identity.checkRestriction(Identity.java:160) at org.jboss.seam.pages.Page.enter(Page.java:206) at org.jboss.seam.core.Pages.enterPage(Pages.java:276) at
[jboss-user] [JBoss Seam] - Re: [SeamPhaseListener] swallowing exception
I have checked that no matter to what restricted page you are attempting to acces, first time exception is swallowed (for instance to a.xml), second time yo try to view a restricted page exception is not swallowed. So, you do not have to acces twice eahc restricted page, and this only first time after staring server or deplying. With following users or sessions it does not happen. any idea? thank you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4122250#4122250 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4122250 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Max file upload --Out of memory error
hi, I had the same problem with files time ago. I solved it using InputStream , BufferedInputStream and flushing. For instance: | FileOutputStream fw = ...whatever... | String filename = ...whatever... | InputStream in = null; | int bytesRead; | try { | in = new BufferedInputStream(new FileInputStream(filename)); | byte[] buf = new byte[4 * 1024]; // 4K buffer | while ((bytesRead = in.read(buf)) != -1) { | out.write(buf, 0, bytesRead); | out.flush(); | } | if (in != null) | in.close(); | } catch (Throwable tt) { | tt.printStackTrace(); | } | Hope it helps you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4120749#4120749 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4120749 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Date parameter at s:button
Yeah, passing a long value works ok and solves the problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4119956#4119956 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4119956 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - PORT
hello, I have a seam-gened app, so its port is 8080. I want to use a different port to access the application,for instance 6000, but I want the web-console and jmx-console to go on being accessed by means of 8080. I have tried changing server.xml this way: | Connector port=6000 address=${jboss.bind.address} | maxThreads=250 strategy=ms maxHttpHeaderSize=8192 | emptySessionPath=true | enableLookups=false redirectPort=8443 acceptCount=100 | connectionTimeout=2 disableUploadTimeout=true/ | | but as I supposed not only the app but the consoles are now accessed by 6000 port. I do want a different port for the consoles. | How may I configure the ports? | thank you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117864#4117864 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117864 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - PORT
hello, I have a seam-gened app, so its port is 8080. I want to use a different port to access the application,for instance 6000, but I want the web-console and jmx-console to go on being accessed by means of 8080. I have tried changing server.xml this way: | Connector port=6000 address=${jboss.bind.address} | maxThreads=250 strategy=ms maxHttpHeaderSize=8192 | emptySessionPath=true | enableLookups=false redirectPort=8443 acceptCount=100 | connectionTimeout=2 disableUploadTimeout=true/ | but as I supposed not only the app but the consoles are now accessed by 6000 port. I do want a different port for the consoles. How may I configure the ports? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117865#4117865 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117865 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Management, JMX/JBoss] - ports for application and consoles
hello, I have a seam-gened app, so its port is 8080. I want to use a different port to access the application,for instance 6000, but I want the web-console and jmx-console to go on being accessed by means of 8080. I have tried changing server.xml this way: | | Connector port=6000 address=${jboss.bind.address} | maxThreads=250 strategy=ms maxHttpHeaderSize=8192 | emptySessionPath=true | enableLookups=false redirectPort=8443 acceptCount=100 | connectionTimeout=2 disableUploadTimeout=true/ | but as I supposed not only the app but the consoles are now accessed by 6000 port. I do want a diffe rent port for the consoles. How may I configure the ports? If this is not the proper forum ofr this question, please tell me! thank you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117874#4117874 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117874 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: PORT
ok, sorry! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4117875#4117875 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4117875 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityQuery.refresh() doesn't clear the result list??
did you find a solution? the same happens to me. When I press F5 the query does not refresh porperly. thanks you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4113724#4113724 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4113724 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Date parameter at s:button
Hi, did you find any solution to this problem? the same is hapenning to me! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111985#4111985 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111985 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Date parameter at s:button
By the way, in my case I am not using a s:button but a s:link. | s:link view=/RstInstrumentValuationExList.xhtml | id=rstInstrumentValuation2 | rendered=#{(rstRepProc.rstProcess.rstStatus.code != 0)} | h:graphicImage url=img/view.gif border=0/ | f:param name=processDate | value=#{rstRepProc.rstProcess.processDate} | /f:param | /s:link | processDate is a java.util.Date field, but in spite of that I have this error: 16:46:22,119 ERROR [SeamPhaseListener] uncaught exception javax.faces.convert.ConverterException: java.text.ParseException: Unparseable date: 2006-08-31 at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:84) ... Caused by: java.text.ParseException: Unparseable date: 2006-08-31 at java.text.DateFormat.parse(DateFormat.java:335) at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:80) ... 44 more 16:46:22,181 ERROR [SeamPhaseListener] swallowing exception javax.faces.convert.ConverterException: java.text.ParseException: Unparseable date: 2006-08-31 at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:84) at org.jboss.seam.pages.Param.getValueFromRequest(Param.java:144) at org.jboss.seam.core.Pages.applyRequestParameterValues(Pages.java:633) .. Caused by: java.text.ParseException: Unparseable date: 2006-08-31 at java.text.DateFormat.parse(DateFormat.java:335) at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:80) ... 44 more I have tried with convertDateTime this way: | f:param name=processDate | value=#{rstRepProc.rstProcess.processDate} | s:convertDateTime type=date dateStyle=short pattern=dd/MM// | /f:param | Using s:convertDateTime the following error happens: /RstReport.xhtml @318,112 s:convertDateTime Parent not an instance of ValueHolder: [EMAIL PROTECTED] any idea? thank you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4111995#4111995 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4111995 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - data validation
hi, in a form I want to validate that the code asigned in a field is one that already exists. For instance, IÃÂôve a field for currencies. I have a table for them, and I want to check that the currency filled is already on the database to avoid foreign keys problems. IÃÂôve found 2 solutions. The first is to override persist method and there by means of a query to check if that value is ok. The second is to add a try-catch in the persist, and in the catch check if there has been an Exception like this org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing:... Is there a better seam-way of validating this? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4107970#4107970 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107970 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: data validation
ok, I´m trying it with JSF validators. I´ve found a problem with them, ValidatorException expects a javax.faces.application.FacesMessage, and I´m using org.jboss.seam.core.FacesMessages to access to my message_en.properties. is there a good way to tackle this? thanks! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108038#4108038 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108038 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - messages in a java class
hi, in a xhtml, accessing to a messages_en.properties is easy, just by using messages component. for instance: | #{messages['org.jboss.seam.ProcessNotFound']} | Now, I want to acces to that from a java class. For instance: | String message1 = org.jboss.seam.ProcessNotFound; | //look for proper message1 value in messages_en.properties | System.out.println( ...message retrieved... ); | How may I access to messages from a java class? For FacesMessages for instance, I use this, | @In | FacesMessages facesMessages; | The problem I have is that I do not know what is the type of {#messages.. thank you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4108042#4108042 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108042 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Successfully created message
hi, With a seam-gened app, whenever you create something it displays a facesmessage with text Successfully created I do not want it to be displayed in any case. I have read that to prevent a seam-gened message to be displayed you just have to assign an empty value in the language properties file. For instance in my messages_en.properties there was a | org.jboss.seam.loginSuccessful=Welcome, #0 | I have changed it, and now it is | org.jboss.seam.loginSuccessful= | so now, after logging the welcome message is not showed. But, I do not find any Successfully created entry in the default seam-gened message_en.properties. Up to now I have found a solution by overriding getCreatedMessage this way | @Override | public String getCreatedMessage() | { | log.info(getCreatedMessage); | return ; | } | This works, but I would like to avoid overriding in all my Home classes. Where is the Successfully created message defined? is tehre any way to assign an empty value? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4107702#4107702 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4107702 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - EL expression for accessing a set?
Hi, I wonder if there is an EL expression for accessing a set? For instance, Iôve this objects: | public class AssetType implements java.io.Serializable { | | private long idAsset; | private String type; | | private SetInstrument instruments = new HashSetInstrument(0); | ... | | public class Instrument implements java.io.Serializable { | | private String securityName; | .. | In a xhtml I want to display the securityNameof the first item in the instruments set. Something like this, but it doesnôt work | #{assetType[0].internalOptionNumber} | In java, itôs easy, for instance to display all of them: (yeah, I know an iterator would be fine as well, this is just a sample way of accessing) | public String getSecurityName() { | System.out.println(getSecurityName - getInstruments size:+instruments.size()); | String secName =; | for( Instrument ins : instruments ) { | secName = ins.getSecurityName(); | System.out.println(SecurityName + secName ); | } | return secName; | } | Any way to access a set from an EL expression? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4106740#4106740 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106740 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - outer joins with seam
hi, I wonder if there is a special syntax for defining queries with outer joins in seam. I am trying this query defined in my components.xml file | framework:entity-query name=innerJoinQueryList | ejbql=select instruFund, instru, cash | FROM InstrumentFund instruFund | left outer JOIN Instrument instru | ON instruFund.id.idAsset = instru.internalOptionNumber | left outer JOIN Cash cash | ON instruFund.id.idAsset = cash.idCash | /framework:entity-query | I am using this query from a xhtml file (called RstReportInstruValuList.xhtml ) this way | rich:dataTable id=innerJoinQueryList | var=innerJoinQueryInfo | value=#{innerJoinQueryList.resultList} | h:column | f:facet name=header | s:link styleClass=columnHeader |value=#{messages['instru.securityName']} | /s:link | /f:facet | #{innerJoinQueryInfo.instru.securityName} | /h:column | h:column | f:facet name=header | s:link styleClass=columnHeader |value=#{messages['cash.securityName']} | /s:link | /f:facet | #{innerJoinQueryInfo.cash.securityName} | /h:column | /rich:dataTable | I have this error: An Error Occurred: /RstReportInstruValuList.xhtml @157,13 value=#{innerJoinQueryList.resultList}: org.jboss.seam.framework.EntityQuery_$$_javassist_1721 Is there a special syntax for defining queries with joins? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4106800#4106800 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4106800 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error selecting object problem
thanks for the idea! Error selecting object doesn´t appear anymore, but now it´s turn for this one: value is required (javax.faces.component.UIInput.REQUIRED) This is the code I´ve added: (following your sample) In RstReportHome.java | | private Firm specialFirm; | | public Firm getSpecialFirm() { | System.out.println(getSpecialFirm!!); | return getInstance().getFirm(); | } | | public void setSpecialFirm(Firm firm) { | System.out.println(setSpecialFirm!!); | if(firm == null) { | System.out.println(setSpecialFirm - asignando AUTOMATIC!!); | firm = new Firm(); | firm.setFirmCode(AUTOMATIC); | CfgCurrency cfgCurrency = new CfgCurrency(); | cfgCurrency.setCurrencyCode(60); | firm.setCfgCurrency(cfgCurrency); | | } else { | System.out.println(setSpecialFirm - firm no null +firm.getFirmDescription()); | } | getInstance().setFirm(firm); | } | In the view: | s:decorate id=firmCodeDecoration template=layout/edit.xhtml | ui:define name=label#{messages['Firm']}/ui:define | h:selectOneMenu value=#{rstReportHome.specialFirm} required=true id=firm | s:selectItems value=#{firmList.resultList} var=firm label=#{firm.firmCode} noSelectionLabel=AUTOMATIC/ | s:convertEntity/ | a:support event=onchange reRender=firmCodeDecoration/ | /h:selectOneMenu | /s:decorate | any further idea? I guess the solution must be near ;-) View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102465#4102465 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102465 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: default value for h:selectOneRadio with s:selectItems
thank you! that´s perfect! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102111#4102111 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102111 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Error selecting object problem
hi, In a form I´ve a h:selectOneMenu which is filled according to the values of a List. | s:decorate id=firmCodeDecoration template=layout/edit.xhtml | ui:define name=label#{messages['Firm']}/ui:define | h:selectOneMenu value=#{rstReportHome.instance.firm} required=true id=firm | s:selectItems value=#{firmList.resultList} var=firm label=#{firm.firmCode} / | s:convertEntity/ | a:support event=onchange reRender=firmCodeDecoration/ | /h:selectOneMenu | /s:decorate | Component firmList is seam-gened with just a simple query this way: | @Override | public String getEjbql() { | return select firm from Firm firm; | } I want in my selectOneMenu to display all the values of table Firm, but I do want an extra value as well. Let´s call it Automatic. I´ve added the following to component firmList: | @Override | public ListFirm getResultList() { | System.out.println(firmList getResultList!!); | Firm auto = new Firm(); | auto.setFirmCode(AUTOMATIC); | CfgCurrency cfgCurrency = new CfgCurrency(); | cfgCurrency.setCurrencyCode(60); | auto.setCfgCurrency(cfgCurrency); | ListFirm firmas = new ArrayListFirm(); | firmas.add(auto); | firmas.addAll(super.getResultList()); | System.out.println(firmas.size: +firmas.size()); | return firmas; | } | After adding this, selectOneMenu displays AUTOMATIC value as well as the rest retrieved by the query. But when I press a button that performs persist() ajax validation displays red message besides with Error selecting object only If I choose Automatic option. I guess it must be something related with s:convertEntity, but I´m not sure how to tackle it. This is firm object: | @Entity | @Table(name = FIRM, catalog = prisk) | public class Firm implements java.io.Serializable { | | private String firmCode; | private CfgCurrency cfgCurrency; | private String firmDescription; | private SetRstReport rstReports = new HashSetRstReport(0); | private SetFund funds = new HashSetFund(0); | | public Firm() { | firmCode = ; | firmDescription = ; | } | What is the best way to add an extra value (apart from those provided by the query) to be displayed in a selectOneMenu? If overriding getResultList is one of the ways, why I´m having that validation problem? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4102282#4102282 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4102282 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - getting ManagedBean out of Conversation
hi, In a edit form I have a button (s:button, I don´t want to submit). When I press it I invoke a java method. In that method I want to access to the bean related to the conversation to check some values. Is that possible? | | if(getConversation()!= null) | { //Aqui me cargo la conversacion si es que existe | System.out.println(conversation ID .concat(getConversation().getId())); | //access to managed bean in Conversation | | } | is there a way to do this? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101719#4101719 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101719 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: getting ManagedBean out of Conversation
thank you, but I want to access to the same bean. I´ll explain myself a bit further: I´ve a form to create a new POJO. I´m using flush-mode=manual in the .page.xml, and while filling the info in the wire or whatever method of the pojoHome I´ve no way of accessing to the info filled up to that moment. If I save and invoke persist(), then the info is saved withouth problem. What, before submitting I want to access some values to make some process with them. So, I want to access to the info that I have entered for instance in field 2, but before pressing a h:commandButton. Checking in that moment pojoHome´s instance values are null. That´s way I thought about using conversation in caes it helped. any idea? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101813#4101813 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101813 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - default value for h:selectOneRadio with s:selectItems
Hi, In a form I´m using s:selectItems to get the values that are to be shown by means of a selectOneRadio. This is the code: | s:decorate id=varMethodologyDecorationSelect template=layout/edit.xhtml | ui:define name=label#{messages['RstReport.rstMethodology']}/ui:define | h:selectOneRadio value=#{rstReportHome.instance.rstMethodology} required=true requiredMessage=true | s:selectItems value=#{rstMethodologyList.resultList} var=rstMethodology label=#{rstMethodology.shortDescription} / | s:convertEntity/ | a:support event=onchange reRender=varMethodologyDecorationSelect/ | /h:selectOneRadio | /s:decorate | It works ok, but I would like one specific value of the List to be selected by default. is it possible? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4101905#4101905 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4101905 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - skipping validation
hi, I´ve a seam-gened form with the tipical fields that use the edit.xhtml template. For instance | | s:decorate id=benchmarkDesDecoration template=layout/edit.xhtml | ui:define name=label#{messages['CfgBenchmark']}/ui:define | h:inputText id=benchmarkDes | size=20 | maxlength=50 | required=true | value=#{rstReportHome.instance.cfgBenchmark.benchmarkDes} | disabled=true | a:support event=onblur reRender=benchmarkDesDecoration/ | /h:inputText | /s:decorate | When I press the save button the validation is done (in my case to see it compulsory fields have been filled). Ok, that´s perfect. But, I´ve added an extra button that invokes a method in the POJOHome, and I want it to be executed withoth previous validation, because the action of that button doesn´t need all info to be filled. Is there a way of preventing validation from being performed for a button? This is the button code | h:commandButton id=testIt | value=#{messages['test']} | action=#{rstReportHome.test}/ | thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4100220#4100220 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100220 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: skipping validation
I don´t want to submit in this case, so s:button has been the solution (unforgettable mistake!) thank you View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4100315#4100315 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4100315 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
hi, Terry I´m trying to pass empty Id param, to check if it solves the problem I explained in the last post. My pojo id param is rstReportCode. I´m trying with this 3 ways and no one works ;-(( | rich:menuItem value=#{messages['New']} F param action=/RstReportEdit.xhtml | f:param name=rstReportCode value=/ | /rich:menuItem | | rich:menuItem value=#{messages['New']} param rstReportCode= action=/RstReportEdit.xhtml?rstReportCode= | /rich:menuItem | | rich:menuItem value=#{messages['New']} param rstReportCode=0 action=/RstReportEdit.xhtml?rstReportCode=0 | /rich:menuItem | | It seems that richmenuItem doesn´t work properly with f param. any idea? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099750#4099750 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
Um, I don´t see where do yo use Contexts.removeFromAllContexts in that persist method. I thought you used it in the persist, update and remove. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099129#4099129 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099129 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
thank you Pete, Is that compatible with seam 1.2.1? That´s the version I´m using. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099186#4099186 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099186 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
Sorry I wrote it right away, and then I realised yo hav just said that!!! I´ll prepare a post with more details and code. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099202#4099202 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099202 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
hello again, Terry, Pete and whoever.., this is the problem I´m facing: I´ve created an app by means of seam-gen without EJB3 (seam version is 1.2.1) Let´s call the table RstReport, the following steps work fine: - creating new data (RstReportEdit.xhtml and RstReportEdit.page) - details of a new RstReport displayed in the RstReport.xhtml - list of records in RstReportList.xhtml. This are my issues: - after creating a new RstReport, let´s call it RstReport3, if just after that I want to create a new one, the RstReportEdit.xhtml shows the fields the RstReport3 that I´ve just created. I must log out and log in again and then the RstReportEdit.xhtml displays no previous data. - If I go to the list, and select one row, for instance RstReport3 row to display its data (view.gif that goes to RstReport.xhtml). After having a look to that previously created RstReport, I go to create a new one, again the RstReportEdit.xhtml displays the RstReport3 data. Whenever I change one field in that edit window, RstReport 3 data is updated right away in the database. What happens is logic, because all this pages work with the same RstReportHome object, and the RstReport of the instance hasn´t been cleaned. What should be the best way to avoid logging out each time to clean the session? (seam 1.2.1) This is what I´ve tried up to now: - I´ve overriden persist method in the RstReportHome this way: (rstReportHome is the name of my component) | @Override | public String persist() { | log.info(Home - persist); | String returnStatus = super.persist(); | Contexts.removeFromAllContexts(rstReportHome); | return returnStatus; | } | | @Override | public String remove() { | log.info(Home - remove); | String returnStatus = super.remove(); | Contexts.removeFromAllContexts(rstReportHome); | return returnStatus; | } | | @Override | public String update() { | log.info(Home - update); | String returnStatus = super.update(); | Contexts.removeFromAllContexts(rstReportHome); | return returnStatus; | } | With that after creating a new RstReport, if I go again to the edit view, all works fine. But the problem keeps on happening if I go through RstReportList.xhtml -- RstReport.xhtml --RstReportEdit.xhtml (it shows same data, RstReport3, displayed in RstReport.xhtml) I go to RstReportEdit.xhtml by means of a rich:menuItem | rich:menuItem value=#{messages['New']} action=/RstReportEdit.xhtml/ | To prevent that data from being displayed I´ve added in the invocation this: | rich:menuItem value=#{messages['New']} param NewReport action=/RstReportEdit.xhtml?action=NewReport | /rich:menuItem | Then in the wire I check that param, and in that case I do this: | public void wire() { | try { | if (action.equals(NewReport)) { | clean(); | } | .. |} | | public void clean() { | log.info(limpiando instancia...); | Contexts.removeFromAllContexts(rstReportHome); | this.setInstance(createInstance()); | | } | @Override | protected RstReport createInstance() { | log.info(createInstance...); | RstReport rstReport = new RstReport(); | | Date dat = new Date(); | rstReport.setReportDate(dat); | | Firm firma = new Firm(); | rstReport.setFirm(firma); | firmHome.setInstance(firma); | | CfgBenchmark benchmark = new CfgBenchmark(); | rstReport.setCfgBenchmark(benchmark); | cfgBenchmarkHome.setInstance(benchmark); | | CfgCurrency currency = new CfgCurrency(); | cfgCurrencyHome.setInstance(currency); | rstReport.setCfgCurrency(currency); | | Fund cartera = new Fund(); | fundHome.setInstance(cartera); | rstReport.setFund(cartera); | | //default values | rstReport.setConfidenceLevel(0.99); | | short timeHorizonDefault = 5; | rstReport.setTimeHorizon(timeHorizonDefault); | | rstReport.setShortDescription( ); | | byte codeIni = 0; | RstStatus rstStatus = new RstStatus(); | rstStatus.setCode(codeIni); | rstStatus.setDescription(NOT READY); | rstReport.setRstStatus(rstStatus); | log.info(RstReportHome createdInstance!!); | return rstReport; | } | And to prevent data from being updated whenever changed I´ve added bypassUpdates=true in all fields this way: | a:support bypassUpdates=true event=onblur reRender=confidenceLevelDecoration/
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
hi, I´ve found a problem with what I´ve described before. My RstReport has some attributes with are other objects. With them the edit doesn´t work. This is the object: | @Entity | @Table(name = RST_REPORT, catalog = prisk) | public class RstReport implements java.io.Serializable { | | private int code; | //simple attribute | private String shortDescription; | //object attribute | private CfgCurrency cfgCurrency; | //more atributes... | | //getters, setter and constructors... | This si some of the RstReportEdit.xhtml code: | !-- simple attribute, works ok -- | | s:decorate id=shortDescriptionDecoration template=layout/edit.xhtml | ui:define name=label#{messages['RstReport.shortDescription']}/ui:define | h:inputText id=shortDescription | size=100 | required=true | maxlength=125 | value=#{rstReportHome.instance.shortDescription} | a:support event=onblur reRender=shortDescriptionDecoration bypassUpdates=true / | /h:inputText | /s:decorate | | | !-- object attribute, doesn´t work ok -- | | s:decorate id=currencyIsoDecoration template=layout/edit.xhtml | ui:define name=label#{messages['CfgCurrency']}/ui:define | h:inputText id=currencyIso | size=20 | maxlength=50 | required=true | disabled=true | value=#{rstReportHome.instance.cfgCurrency.currencyIso} | a:support bypassUpdates=true event=onblur reRender=currencyIsoDecoration/ | /h:inputText | s:button value=#{messages['Select']} #{messages['CfgCurrency']} | view=/CfgCurrencyList.xhtml | f:param name=from value=RstReportEdit/ | /s:button | /s:decorate | | | And this is RstReportEdit.page.xml full code: | !DOCTYPE page PUBLIC | -//JBoss/Seam Pages Configuration DTD 1.2//EN | http://jboss.com/products/seam/pages-1.2.dtd; | | page no-conversation-view-id=/RstReportList.xhtml |login-required=true | |begin-conversation join=true flush-mode=manual/ | |param name=action value=#{rstReportHome.action}/ |action execute=#{rstReportHome.wire}/ | |param name=rstReportFrom/ |param name=rstReportCode value=#{rstReportHome.rstReportCode}/ | |param name=cfgBenchmarkFrom/ |param name=cfgBenchmarkBenchmarkCode value=#{cfgBenchmarkHome.cfgBenchmarkBenchmarkCode}/ |param name=cfgBenchmarkTypeFrom/ |param name=cfgBenchmarkTypeBenchmarkTypeCode value=#{cfgBenchmarkTypeHome.cfgBenchmarkTypeBenchmarkTypeCode}/ | | |param name=firmFrom/ |param name=firmFirmCode value=#{firmHome.firmFirmCode}/ |param name=cfgCurrencyFrom/ |param name=cfgCurrencyCurrencyCode value=#{cfgCurrencyHome.cfgCurrencyCurrencyCode}/ | | |param name=rstMethodologyFrom/ |param name=rstMethodologyCode value=#{rstMethodologyHome.rstMethodologyCode}/ | |param name=fundFrom/ |param name=fundFundCode value=#{fundHome.fundFundCode}/ | |param name=rstReportTypeFrom/ |param name=rstReportTypeCode value=#{rstReportTypeHome.rstReportTypeCode}/ | |param name=rstStatusFrom/ |param name=rstStatusCode value=#{rstStatusHome.rstStatusCode}/ | |navigation from-action=#{rstReportHome.persist} |end-conversation/ |redirect view-id=/RstReportL.xhtml/ |/navigation | |navigation from-action=#{rstReportHome.update} |end-conversation/ |redirect view-id=/RstReport.xhtml/ |/navigation | | /page | For the object-attribute values I use the seam-gened list of them. For instance for the CfgCurrency POJO, CfgCurrencyList.xhtml. When I go there and select one, when returning again to RstReportEdit.xhtml all the fields are populated with that of the last RstReport.xhtml displayed in RstReport.xhtml I guess the reason is that in the params the code has been automatically added rstReportCode=1131 http://localhost:8080/RISK_ONLINE/RstReportEdit.seam?cfgCurrencyCurrencyCode=4action=rstReportCode=1131cid=13clr=true rstReportCode is the id, in
[jboss-user] [JBoss Seam] - Re: Tutorial: Handling images in your Seam application
good job !! congratulations! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4099322#4099322 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4099322 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
I tried in the wire after checking a param, but it doesn´t work as good as I thought. What string do you return in the override persist, remove and update methods? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4098882#4098882 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4098882 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
Finally I´ve managed to work it properly with Contexts.removeFromAllContexts. Thank you Terry and Nick. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097781#4097781 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097781 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
Where should Contexts.removeFromAllContexts be used? I´ve a clean seam-gened app. No scopes or annotations added up to now. I´ve added some data in the database. If I go the the list of a POJO and view the details they are showed. But if after that I want to create a new register of that POJO the pojoEdit page shows the data of the last pojo details. In the wire of the pojoHome I´ve tried Contexts.removeFromAllContexts with the list query but it doesn´t work. is that the place of doing it? On the other hand, if I clone the pojoHome lets call the clone pojohome2. If in the pojolist.xhtml and pojolist.page.xml I reference the pojohome2 it works. It makes sense because of using diferente componenetshome. But I think cleaning the context in the proper place would be better. thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097416#4097416 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097416 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
Thank you, but it doesn´t work (I´ve created a new method wich is invoked from the button. The method after persisting executes Contexts.removeFromAllContexts..) I´ll start a new thread with this issue in the forum with more details. Thank you anyway!! By the way, could you provide an example of pass the parameter without value to let it auto get new instance Currently I´m doing: h:commandButton id=save1 value=#{messages['grabar']} action=#{pojoHome.save} rendered=#{!pojoHome.managed}/ View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097527#4097527 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097527 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Destroying Context Variable
thank you very much Terry. I´m not passing any parameter to the page, I´m just invoking this way: rich:menuItem value=#{messages['New']} action=/RstReportEdit.xhtml/ And in teh Info.page,xml fiel there is by default: I´ve changed it to: and it doesn´t work either. ;-( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097547#4097547 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097547 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - seam gened app and sessions behaviour
Hello, I´ve created an app by means of seam-gen without EJB3. I haven´t added anything to the java or the view (xhtml and .page.xml) files up to now. Let´s call the table Info, the following steps work fine: - creating new data (InfoEdit.xhtml and InfoEdit.page) - details of a new Info displayed in the Info.xhtml - list of records in InfoList.xhtml. But there are some things I don´t like of the initial behaviour: - after creating a new Info, if just after that you want to create a new one, the InfoEdit.xhtml shows in the fields the info of the one that just have been created.I must log out and log in again and then the InfoEdit.xhtml displays no previous data) - If I go to the list, and select one row to display its data (view.gif that goes to Info.xhtml). After having a look to that previously created Info, you go to create a new one, again the InfoEdit.xhtml displays the info, this time of the one I´ve just seen. What happens is logic, because all this pages work with the same InfoHome object, and the info of the instance hasn´t been cleaned. What should be the best way to avoid logging out each time to clean the session? One way I´ve tried, and that works is creating a new method in the home which would be invoked when pressing the save button. This method executes the persist() and then clean the instance (setInstance(this.createInstance()). This solves the problem when creating a new one, after having created an Info. But this is useless if you go to the InfoEdit after Info.xhtml from a List. I´ve tried something with the Contexts.removeFromAllContexts but with no success. What would be the best way to accomplish this? using different homes? By the way, I go to the InfoEdit.xhtml using menuItems this way: | rich:menuItem value=#{messages['New']} action=/InfoEdit.xhtml/ | thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4097552#4097552 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4097552 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: servlet accessing seam components
thank you very much! getInstance was what I needed and that example is a really useful one for this! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4083308#4083308 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083308 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - query restrictions with id primary key element
Hello, by means of seam-gen I have a POJO with an id attribute. The id is in fact another POJO. All is ok according to the database. I´ve defined a query in componentes.xml. It works properly: | framework:entity-query name=POJOView | ejbql=select pojo from POJO pojo | framework:restrictions | valuepojo.atb1 = #{object.atb1}/value | /framework:restrictions | /framework:entity-query But if I use a restriction wich access to an id attribute it returns no error but no elements, and there are elements indeed.(With standard sql that info is retrieved) For example: | framework:entity-query name=POJOView | ejbql=select pojo from POJO pojo | framework:restrictions | valuepojo.id.atb2 = #{object.value}/value | /framework:restrictions | /framework:entity-query #{object.value} has a proper value for pojo.id.atb2, in the same way as #{object.atb1} has for pojo.atb1. All attributes have their public getters. Is there something special that must be done for restrictions when accessing a pojo.id.attribute? thank you!! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4083365#4083365 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4083365 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - servlet accessing seam components
Hello, I have problems trying to use a query from a servlet. I´ve defined the following query in componentes.xml | framework:entity-query name=QueryJMP | ejbql=select jmp from Jmp jmp | /framework:entity-query On the other hand I´ve defined this servlet in my web.xml | servlet | servlet-nameLogicServlet/servlet-name | servlet-classmypackage.LogicServlet/servlet-class | /servlet | servlet-mapping | servlet-nameLogicServlet/servlet-name | url-pattern/download/*/url-pattern | /servlet-mapping I want to invoke a seam component (an entityquery or a java seam component) from LogicServlet. I´ve read in the seam reference that filter is needed to allow custom servlets to interact with the Seam contexts. So I´ve defined this filter in components.xml web:context-filter url-pattern=/download/*/ In the servlet I try to use the query this way: | public class LogicServlet extends HttpServlet { | | @In(#{QueryJMP.resultList}) | ListJmp jmpList; | | .. | | public void doGet(HttpServletRequest req, HttpServletResponse res) | throws ServletException, IOException { | | IteratorJmp jmpIter = jmpList.iterator(); | | if ((jmpIter != null) (jmpIter.hasNext()) ) { | ... | } | Servlet invocation : http://localhost:8080/JMP_ONLINE/download But, when I try to use the query from the servlet it doesn´t work and generates this exceptions: anonymous wrote : | 18:13:53,453 INFO [STDOUT] generando Iterator!! | 18:13:53,906 ERROR [ExceptionFilter] uncaught exception | java.lang.NullPointerException | at es.rbcdexia.risk.servlet.FileViewer.doGet(FileViewer.java:84) | 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.ContextFilter.doFilter(ContextFilter.java:56) | 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.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) | at
[jboss-user] [JBoss Seam] - Re: problem using entityqueries
Thank you for your assistance. All works fine now. I do appreciate the help of this forum. Pete I´ve read the manual but the first time you´re tackling a new technology it´s difficult to remember and assimilate all you´ve read and tried. Hope my asking this question to this forum hasn´t bothered you. You guys are making a great achievement with this technology and I really want SEAM to succeed. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4082501#4082501 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082501 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: problem using entityqueries
Thank you, but the same error keeps on happenning 14:31:45,765 ERROR [DebugPageHandler] redirecting to debug page org.jboss.seam.RequiredException: In attribute requires non-null value: rstReportHome.repTemp The code is now: | @Name(rstReportHome) | public class RstReportHome extends EntityHomeRstReport { | ... | @In(create = true) | RstReportTemplate repTemp; | ... | public void wire() { | .. | repTemp.processTemplate(rep); | ... This behaviour, with create=true, doesn´t seem to conform to what is said in the seam reference anonymous wrote : | @In | Specifies that a component attribute is to be injected from a context variable at the beginning of each component | invocation. If the context variable is null, an exception will be thrown | @In(create=true) | Specifies that a component attribute is to be injected from a context variable at the beginning of each component | invocation. If the context variable is null, an instance of the component is instantiated by Seam. I guess I´m still doing something wrong, but I´ve no idea what it is. ;-( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4082129#4082129 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082129 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: problem using entityqueries
Thank you Pete, but what do you mean with RTM? I´ve tried with this: @In RstReportTemplate repTemp; and then in the wire method... repTemp = new RstReportTemplate(); | repTemp.processTemplate(); This way I have this error: 11:47:59,484 ERROR [DebugPageHandler] redirecting to debug page org.jboss.seam.RequiredException: In attribute requires non-null value: rstReportHome.repTemp I´m sure that I´m not doing it properly. could you please explain the solution a bit further? thank you! Jaime View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4082054#4082054 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4082054 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - problem using entityqueries
hello, This issue is somehow strange, so I provide you with the related code to make my explanation clear. I´ve defined this entity-query in my components.xml file. framework:entity-query name=RstReportTemplate2 | ejbql=select rstReport from RstReport rstReport | order=code | /framework:entity-query If I use it directly from a view xhtml file it works ok. For example | /rich:dataTable | rich:dataTable id=RstReportTemplate2 | var=rstReport | value=#{RstReportTemplate2.resultList} | rendered=#{not empty RstReportTemplate2.resultList} | h:column | #{rstReport.code} | /h:column | /rich:dataTable I want to use it from a POJO. I´ve a POJO that uses this query this way: @Name(RstReportTemp) | public class RstReportTemplate { | | @In(#{RstReportTemplate2.resultList}) ListRstReport rstRepTemplates; | | public RstReportTemplate() { | } | | public void processTemplate() { | IteratorRstReport rstReportTemp = rstRepTemplates.iterator(); | if (rstRepTemplates != null) { | while (rstReportTemp.hasNext()) { | // business logic code | } | | }else { | System.out.println(THERE ARE --NO-- RECORDS MATCHING RstReportTemplate2); | } | } | | } | When invoking to this POJO from a pojoview.page.xml with an action it works fine action execute=#{RstReportTemp.processTemplate}/ Now, here is my problem. I want to invoke that method, RstReportTemp.processTemplate, from the wire method of a POJOHome. I´m doing it this way: @Name(rstReportHome) | public class RstReportHome extends EntityHomeRstReport { | | public void wire() { | ... | RstReportTemplate repTemp = new RstReportTemplate(); | repTemp.processTemplate(rep); | .. | } | ...} This time the query doesn´t return any value, in fact the resulting List rstRepTemplates is null. I don´t understand why the same query (with no restrictions) works fine when used directly from a view or from a POJO which is invoked by an execute of a .page.xml, but doesn´t behave the same way when it is used from a POJO which has been invoked from a different POJO. I don´t want to have my business logic code in the POJOHome java class, that´s why I´m using another one and invoking from the wire method. thanks in advance, Jaime View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4081749#4081749 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4081749 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Problem creating service jboss.jca:service=ConnectionFactory
hello, starting JBoss 4.0.5 I have the following error: 10:45:49,640 WARN [ServiceController] Problem creating service jboss.jca:service=ConnectionFactoryDeployer java.lang.ClassFormatError: Unknown constant tag 114 in class file org/apache/xalan/templates/ElemExsltFunction ¿any idea? thanks in advance! This is the complete log until the error appears: 10:45:42,546 INFO [Server] Starting JBoss (MX MicroKernel)... 10:45:42,546 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000) 10:45:42,546 INFO [Server] Home Dir: C:\jboss-4.0.4.GA 10:45:42,546 INFO [Server] Home URL: file:/C:/jboss-4.0.4.GA/ 10:45:42,546 INFO [Server] Patch URL: null 10:45:42,546 INFO [Server] Server Name: default 10:45:42,546 INFO [Server] Server Home Dir: C:\jboss-4.0.4.GA\server\default 10:45:42,546 INFO [Server] Server Home URL: file:/C:/jboss-4.0.4.GA/server/default/ 10:45:42,640 INFO [Server] Server Log Dir: C:\jboss-4.0.4.GA\server\default\log 10:45:42,640 INFO [Server] Server Temp Dir: C:\jboss-4.0.4.GA\server\default\tmp 10:45:42,640 INFO [Server] Root Deployment Filename: jboss-service.xml 10:45:43,015 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc. 10:45:43,015 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_11-b03,Sun Microsystems Inc. 10:45:43,015 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 10:45:43,500 INFO [Server] Core system initialized 10:45:45,734 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml 10:45:47,093 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.9.112:3873/] 10:45:47,609 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4.GA/server/default/deploy/ejb3-interceptors-aop.xml 10:45:49,296 INFO [WebService] Using RMI server codebase: http://JAIME-JMP:8083/ 10:45:49,640 WARN [ServiceController] Problem creating service jboss.jca:service=ConnectionFactoryDeployer java.lang.ClassFormatError: Unknown constant tag 114 in class file org/apache/xalan/templates/ElemExsltFunction at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.xalan.processor.XSLTSchema.class$(XSLTSchema.java:326) at org.apache.xalan.processor.XSLTSchema.build(XSLTSchema.java:566) at org.apache.xalan.processor.XSLTSchema.(XSLTSchema.java:70) at org.apache.xalan.processor.StylesheetHandler.(StylesheetHandler.java:1287) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplatesHandler(TransformerFactoryImpl.java:374) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:865) at org.jboss.deployment.XSLSubDeployer.createService(XSLSubDeployer.java:141) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.create(Unknown Source) at org.jboss.system.ServiceController.create(ServiceController.java:330) at org.jboss.system.ServiceController.create(ServiceController.java:273) at sun.reflect.GeneratedMethodAccessor5.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 $Proxy4.create(Unknown Source) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:258) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) 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
[jboss-user] [Installation, Configuration DEPLOYMENT] - Problem creating service jboss.jca:service
hello, starting JBoss 4.0.5 I have the following error: 10:45:49,640 WARN [ServiceController] Problem creating service jboss.jca:service=ConnectionFactoryDeployer java.lang.ClassFormatError: Unknown constant tag 114 in class file org/apache/xalan/templates/ElemExsltFunction ¿any idea? thanks in advance! This is the complete log until the error appears: 10:45:42,546 INFO [Server] Starting JBoss (MX MicroKernel)... 10:45:42,546 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000) 10:45:42,546 INFO [Server] Home Dir: C:\jboss-4.0.4.GA 10:45:42,546 INFO [Server] Home URL: file:/C:/jboss-4.0.4.GA/ 10:45:42,546 INFO [Server] Patch URL: null 10:45:42,546 INFO [Server] Server Name: default 10:45:42,546 INFO [Server] Server Home Dir: C:\jboss-4.0.4.GA\server\default 10:45:42,546 INFO [Server] Server Home URL: file:/C:/jboss-4.0.4.GA/server/default/ 10:45:42,640 INFO [Server] Server Log Dir: C:\jboss-4.0.4.GA\server\default\log 10:45:42,640 INFO [Server] Server Temp Dir: C:\jboss-4.0.4.GA\server\default\tmp 10:45:42,640 INFO [Server] Root Deployment Filename: jboss-service.xml 10:45:43,015 INFO [ServerInfo] Java version: 1.5.0_11,Sun Microsystems Inc. 10:45:43,015 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_11-b03,Sun Microsystems Inc. 10:45:43,015 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 10:45:43,500 INFO [Server] Core system initialized 10:45:45,734 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml 10:45:47,093 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.9.112:3873/] 10:45:47,609 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4.GA/server/default/deploy/ejb3-interceptors-aop.xml 10:45:49,296 INFO [WebService] Using RMI server codebase: http://JAIME-JMP:8083/ 10:45:49,640 WARN [ServiceController] Problem creating service jboss.jca:service=ConnectionFactoryDeployer java.lang.ClassFormatError: Unknown constant tag 114 in class file org/apache/xalan/templates/ElemExsltFunction at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at org.apache.xalan.processor.XSLTSchema.class$(XSLTSchema.java:326) at org.apache.xalan.processor.XSLTSchema.build(XSLTSchema.java:566) at org.apache.xalan.processor.XSLTSchema.(XSLTSchema.java:70) at org.apache.xalan.processor.StylesheetHandler.(StylesheetHandler.java:1287) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplatesHandler(TransformerFactoryImpl.java:374) at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:865) at org.jboss.deployment.XSLSubDeployer.createService(XSLSubDeployer.java:141) at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243) at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978) at $Proxy0.create(Unknown Source) at org.jboss.system.ServiceController.create(ServiceController.java:330) at org.jboss.system.ServiceController.create(ServiceController.java:273) at sun.reflect.GeneratedMethodAccessor5.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 $Proxy4.create(Unknown Source) at org.jboss.deployment.SARDeployer.create(SARDeployer.java:258) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771) at
[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Problem creating service jboss.jca:service
hello, I´ve found the solution I was looking for. I had removed the ds.xml file from my deploy directory. In that file was defined the datasource that jboss.jca:service=DataSourceBinding was expecting. After restarting with this file all have worked out succesfully. regards! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078683#4078683 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA/JBoss] - Re: Problem creating service jboss.jca:service=ConnectionFac
hello, I´ve found the solution I was looking for. I had removed the ds.xml file from my deploy directory. In that file was defined the datasource that jboss.jca:service=DataSourceBinding was expecting. After restarting with this file all have worked out succesfully. regards! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078682#4078682 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078682 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: query order by extension and restrictions
thank you! that was what I was looking for! As for the queries you´re right, as long as they have different restrictions they aren´t the same. It was just an idea. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4070520#4070520 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070520 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: how to use a defined query in a POJO
thank you! That´s perfect! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4070522#4070522 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070522 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - query order by extension and restrictions
hi! setting the order of a query result by configuration may be done this way: framework:entity-query name=jmpRstReport4 ejbql=select rstReport from RstReport rstReport order=code desc/ I wonder if there is a way of doing the same by extension. I have a POJO DAO this way: @Name(rstReportList) private static final String[] RESTRICTIONS = { lower(rstReport.rstStatus.description) like concat(lower(#{rstReportList.rstReport.rstStatus.description}),'%'), lower(rstReport.rstStatus.description) not like lower(#{'TEMPLATE'}), lower(rstReport.shortDescription) like concat(lower(#{rstReportList.rstReport.shortDescription}),'%'), }; public class RstReportList extends EntityQuery { @Override public String getEjbql() { return select rstReport from RstReport rstReport; } } Apart from adding order by code desc to the ejbql code, how may I set the order by extension? On the other hand, if 2 pages need the same query but with different restrictions. the best way would be to define 2 queries, each one with its proper restriction/s, or is there a way to set restrictions dinamycally by means of a parameter or something like that? For instance I have a component called myQuery. Once I want to use it with restriction 1, but in other page I want to use it with restriction 2 and not applying 1. is that possible? Defining 2 queries (each with its restriction) works fine and solves the problem. but is that the best way? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4070057#4070057 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070057 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - how to use a defined query in a POJO
hi! I have some queries defined in components.xml. I use them from my .xhtml files by means of #{queryName.resultlist} and they are really suitable to fill GUI tables. Now I need to use some of them from a POJO. is there a way to reuse a query in a POJO? I want to check in a business logic POJO some data that may be retrieved with an already defined query. JSF EL doesn´t seem to work in a POJO. In a java method I want to iterate the list provided by #{queryName.resultlist}. thank you in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4070198#4070198 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070198 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - mapping problems
hello, I´m testing files generated by means of seam-gen. When I run the seam app there is this error: An Error Occurred: /RstReportList.xhtml @39,62 rendered=#{empty myPOJO.resultList}: Exception getting value of property resultList of base of type : action.package.MyPOJO _$$_javassist_11 In the log: Caused by: org.hibernate.hql.ast.QuerySyntaxException: MyPOJO is not mapped [select myPOJO from MyPOJO myPOJO] It seems that there is some configuration problem. The content of the persistence.xml file is the following: (I´m using Sybase and my database schema is dbo) ?xml version=1.0 encoding=UTF-8? | !-- Persistence deployment descriptor for dev profile -- | persistence xmlns=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 | |persistence-unit name=ONLINE transaction-type=JTA | providerorg.hibernate.ejb.HibernatePersistence/provider | jta-data-sourcejava:/ONLINEDatasource/jta-data-source | properties | property name=hibernate.hbm2ddl.auto value=update/ | property name=hibernate.show_sql value=true/ | property name=hibernate.transaction.manager_lookup_class value=org.hibernate.transaction.JBossTransactionManagerLookup/ | property name=hibernate.dialect value=org.hibernate.dialect.SybaseDialect/ | property name=hibernate.default_schema value=dbo/ | property name=jboss.entity.manager.factory.jndi.name value=java:/ONLINEEntityManagerFactory/ | /properties |/persistence-unit | | /persistence | | | Any idea will be welcomed. thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4055122#4055122 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055122 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: mapping problems
I´ve realised that seam-gen hasn´t created a hibernate.cfg.xml. I´ve done it but the same error goes on. I´m not sure if that hibernate.cfg file is being readed. I have started with a database, and with seam-gen I´ve generated the pojos and views. The error happens when invoking the view because the pojos are not properly mapped. Any config suggestions? thank you! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4055165#4055165 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4055165 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Getting Started Documentation] - seam and hibernate explained example
hi, I´ve a database and I´ve generated persistence POJOs by means of hibernate tools. I would like to develop a GUI with forms that will populate the already generated POJOs. Then with hibernate I will save session information in the database. I don´t want to use EJBs, hibernate sessionfactory will manage all I need as far as the database is concerned. I would like to give a try to seam but I don´t find any explained example with seam and hibernate withouth using EJBs. I would like something like the Seam Tutorial 1.9 hibernate booking example explained. where could I find at least one? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025750#4025750 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025750 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Beginners Corner] - GUI persistence with seam and hibernate
hi, I´ve a database and I´ve generated persistence POJOs by means of hibernate tools. I would like to develop a GUI with forms that will populate the already generated POJOs. Then with hibernate I will save session information in the database. I don´t want to use EJBs, hibernate sessionfactory will manage all I need as far as the database is concerned. The POJOs will just be changed to include some annotations that will take care of validations (hibernate validator). Is the approach without EJBs suitable or should I use EJBs under all circumstances? do you know any explained example with seam and hibernate and without EJBs? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025751#4025751 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025751 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Advanced Documentation] - doc with seam and hibernate
hi, I´ve a database and I´ve generated persistence POJOs by means of hibernate tools. I would like to develop a GUI with forms that will populate the already generated POJOs. Then with hibernate I will save session information in the database. I don´t want to use EJBs, hibernate sessionfactory will manage all I need as far as the database is concerned. I would like to give a try to seam but I don´t find any explained example with seam and hibernate withouth using EJBs. where could I find at least one? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025752#4025752 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025752 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - GUI persistence with seam and hibernate
hi, I´ve a database and I´ve generated persistence POJOs by means of hibernate tools. I would like to develop a GUI with forms that will populate the already generated POJOs. Then with hibernate I will save session information in the database. I don´t want to use EJBs, hibernate sessionfactory will manage all I need as far as the database is concerned. The POJOs will just be changed to include some annotations that will take care of validations (hibernate validator). Is the approach without EJBs suitable or should I use EJBs under all circumstances? thanks in advance! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4025754#4025754 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4025754 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user