[Tomcat, HTTPD, Servlets & JSP] - Deploying Moving from mod_jk2 to mod_jk problems...
by giliredbaron
Hi All,
I have apache2 on one machine and I'm trying to upgrade it to apache2.2.
In apache2.2 mod_jk2 is not available so I need to use mod_jk or mod_proxy, Or any other idea...
This is my original workers2.properties
|
| timing=0
| debug=0
|
| [lb:text2pic]
| info=text2pic load balancer.
| sticky=1
| debug=0
|
| [lb:cs]
| info=cs load balancer.
| sticky=1
| debug=0
|
| [channel.socket:server1]
| info=Ajp13 forwarding over socket
| debug=0
| host=127.0.0.1
| port=8009
| tomcatId=server1
| group=text2pic
| group=cs
| level=1
|
| [channel.socket:server2]
| info=Ajp13 forwarding over socket
| debug=0
| host=X.X.X.X
| port=8009
| tomcatId=server1
| group=cs
| level=0
|
|
and apart of my http.conf
| <LocationMatch "/cs">
| JkUriSet group lb:cs
| JkUriSet info "Map the whole CustomerService webapp"
| Order allow,deny
| Allow from all
| </LocationMatch>
|
I'm trying to use jkmount but I can't get it to work...
| JkMount /cs/* ajp13
|
or to use ProxyPass
ProxyPass /cs ajp://127.0.0.1:8009
| ProxyPassReverse /cs ajp://127.0.0.1:8009
|
In the ProxyPass I can get an reply from tomcat (the default page not my application) and in JkMount nothing...
What I'm missing ???
Thanks,
Gili
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078008#4078008
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078008
18Â years, 8Â months
[JBoss Seam] - Entity-query of Contact List sample does not run against Ora
by kumlali
Hi all,
I'm trying Contact List sample to be run against Oracle. Everything goes well until I make a search by name. When I enter 'Gav' for the first name and 'K' for the last name, Seam (Oracle actually) gives an error that says: ORA-01722: invalid number! I found the reason was "contacts" entity-query found in components.xml:
| <fwk:entity-query name="contacts"
| max-results="5">
| <fwk:ejbql>from Contact</fwk:ejbql>
| <fwk:order>lastName</fwk:order>
| <fwk:restrictions>
| <value>lower(firstName) like lower( #{exampleContact.firstName} + '%' )</value>
| <value>lower(lastName) like lower( #{exampleContact.lastName} + '%' )</value>
| </fwk:restrictions>
| </fwk:entity-query>
|
This query definition creates following SQL that HSQL accepts, but Oracle does not:
| select *
| from (
| select ...
| from CONTACT c
| where (lower(c.firstName) like lower('Gav') + '%')
| and (lower(c.lastName) like lower('K') + '%')
| order by ...
| ) where rownum <= ...
|
What part Oracle does not allow is concatenation operation, '+'. Therefore, following SQL is perfectly acceptable (also by HSQL):
| select *
| from (
| select ...
| from CONTACT c
| where (lower(c.firstName) like lower('Gav%'))
| and (lower(c.lastName) like lower('K%'))
| order by ...
| ) where rownum <= ...
|
What entity-query should I write to let Seam generate Oracle friendly SQL?
Regards,
Ali Sadik Kumlali
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078006#4078006
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078006
18Â years, 8Â months
[JBoss Seam] - Re: impossible usecase?
by ellenzhao
"obfuscator" wrote : Well, there is conversations,
| but I cannot start more than one per request, so I cannot start one
| conversation per post it when the user logs in.
I guess you can start as many conversations as you want per user-action. In your backing bean, you can say:
| Conversation.instance.begin();
|
or
| Conversation.instance.beginNested();
|
better yet, say like this:
| if (Conversation.isLongRunning){
| Conversation.instance.beginNested();
| Conversation.instance.setDescription("readFooRedirectedFromReadBar");
| }
| else {
| Conversation.instance.begin();
| Conversation.instance.setDescription("readFooFromSiteRoot");
| }
|
I am doing this in my own application and the multi-conversation-spawning works like charm. (I have a problem with the pop()/end()/leave() now, not quite sure the exact semantics of these three methods, need to investigate this part of Seam source code)
anonymous wrote : The crux is that the
| conversations need to be started before the first page is shown,
You may want to try page action. There is description of page action in Seam documentation.
Regards,
Ellen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078005#4078005
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078005
18Â years, 8Â months
[JBoss Seam] - EntityNotFoundException after Delete action
by nynymike
I'm trying to re-use a form as an edit form if its posted with GET parameters. The form works fine for both add and edit. The problem is that if I delete an entry, the next time I try to use the form as an add form, it throws an error (below).
The offending JSF snippet:
| <h:inputText value="#{account.mailbox}"
| rendered="#{!accountDao.managed}" />
| <h:outputText value="#{account.mailbox}"
| rendered="#{accountDao.managed}" />
|
The accoundDao is defined as follows:
| <factory name="account" value="#{accountDao.instance}"/>
| <fwk:entity-home name="accountDao"
| entity-class="us.ziacom.vm.model.Account">
| </fwk:entity-home>
|
| <component name="exampleAccount"
| class="us.ziacom.vm.model.Account"/>
|
The exception is:
| javax.faces.el.EvaluationException: /accountForm.xhtml @27,46 rendered="#{!accountDao.managed}": Exception getting value of property managed of base of type : org.jboss.seam.framework.EntityHome_$$_javassist_2
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:60)
| at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:1075)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:241)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
| at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
| at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| 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.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| 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.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.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: javax.faces.el.EvaluationException: Bean: org.jboss.seam.framework.EntityHome_$$_javassist_2, property: managed
| at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:442)
| at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:82)
| at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:141)
| at com.sun.el.parser.AstValue.getValue(AstValue.java:125)
| at com.sun.el.parser.AstNot.getValue(AstNot.java:46)
| at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:195)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
| ... 46 more
| Caused by: java.lang.reflect.InvocationTargetException
| at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:438)
| ... 53 more
| Caused by: org.jboss.seam.framework.EntityNotFoundException: entity not found: us.ziacom.vm.model.Account#8
| at org.jboss.seam.framework.Home.handleNotFound(Home.java:100)
| at org.jboss.seam.framework.EntityHome.find(EntityHome.java:71)
| at org.jboss.seam.framework.Home.initInstance(Home.java:84)
| at org.jboss.seam.framework.Home.getInstance(Home.java:70)
| at org.jboss.seam.framework.EntityHome.isManaged(EntityHome.java:31)
| at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
| at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
| at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.TransactionInterceptor$1.work(TransactionInterceptor.java:32)
| at org.jboss.seam.util.Work.workInTransaction(Work.java:37)
| at org.jboss.seam.interceptors.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
| at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
| at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
| at org.jboss.seam.framework.EntityHome_$$_javassist_2.isManaged(EntityHome_$$_javassist_2.java)
| ... 57 more
|
Thanks in advance! With this automagic stuff, its hard to figure out where to turn...
- Mike
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078003#4078003
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078003
18Â years, 8Â months