[Clustering/JBoss] - Re: :: Regarding using Software Load balancer Mod_jk1.2.23 w
by lludlow2
You seem to be referencing your mod_jk config twice.
1.anonymous wrote : 1. httpd.conf
| Added the following piece to the existing file under the mensioned dir:
|
| Code:
|
| # Include mod_jk configuration file
| Include conf/mod-jk.conf
|
| # Configure mod_jk
| #
| JkWorkersFile conf/workers.properties
| JkLogFile logs/mod_jk.log
| JkLogLevel debug
|
| JkMount /web-console/* node1
| JkMount /jmx-console/* node1
| JkMount /mambo/* node1
| JkMount /*.jsp node1
| JkMount /servlet/* node1
|
| LoadModule jk_module modules/mod_jk.so
|
By having "Include conf/mod-jk.conf" you are reading the mod_jk.conf below
2.anonymous wrote :
| 2. mod-jk.conf
| # Mount your applications
| JkMount /web-console/* loadbalancer
| JkMount /jmx-console/* loadbalancer
| JkMount /mambo/* loadbalancer
|
| # You can use external file for mount points.
| # It will be checked for updates each 60 seconds.
| # The format of the file is: /url=worker
| # /examples/*=loadbalancer
| JkMountFile conf/uriworkermap.properties
|
>From what I can see you are mounting your applications 2 times with different workers and loading the mod_jk.so twice as well.
Also there is no need to use JkMount and have the workers listed in the uriworkermap.properties.
To simplify things I put the include in my httpd.conf, and remove the uriworkermap.properties (comment out or delete from mod_jk.conf)
Hope this helps
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072280#4072280
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072280
18Â years, 9Â months
[JBoss Seam] - Re: ManyToOne OneToMany
by jknotzke
Right.. That did it. Thanks.
Next bug.
Just to set the stage, an Athlete can have several workouts. I am able to create an athlete and it's stored in the DB. After which, I attempt to create a Workout. A workout however is created when a user uploads a CSV file of their workout.
I am able to parse this, load it into the Workout Entity bean. However, I want to be able to associate this with the athlete that was previously select.. Here is the code:
| @Stateless
| @Scope(SESSION)
| @Name("uploadWorkout")
| public class UploadWorkoutBean implements UploadWorkout
| {
|
| @Logger
| private Log log;
|
| @In Athlete athlete;
|
| @In(value = "uploadedWorkout", create = true)
| private UploadedWorkout uploadedWorkout;
|
| @In
| FacesMessages facesMessages;
|
| @PersistenceContext
| private EntityManager em;
|
| public void uploadWorkout()
| {
| // implement your business logic here
| log.info("uploadWorkout.uploadWorkout() action called");
| log.info("Content Type is: " + uploadedWorkout.getContentType());
| log.info("FileName is: " + uploadedWorkout.getFileName());
|
| WorkoutReader workoutReader = new WorkoutReader();
|
| ArrayList<Workout> workouts = workoutReader.readFile(uploadedWorkout.getUploadedFile());
| Workout workout = null;
| // Stuff it into the DB
|
| for(int i=0; i< 1 ;i++)
| {
| workout = workouts.get(i);
| log.info(athlete.getLastName());
| em.persist(workout);
| }
|
| facesMessages.add("uploadWorkout");
| }
|
The error that is thrown is:
| Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: uploadWorkout.athlete
| at org.jboss.seam.Component.getValueToInject(Component.java:2153)
| at org.jboss.seam.Component.injectAttributes(Component.java:1583)
| at org.jboss.seam.Component.inject(Component.java:1404)
| at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:45)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072272#4072272
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072272
18Â years, 9Â months
[Tomcat, HTTPD, Servlets & JSP] - CometProcessor and filter in JBoss-4.2.0.GA
by OhKei
I have a servlet that implements CometProcessor interface. Whenever I try to access in JBoss-4.2.0.GA, it I get :
java.lang.ClassCastException: org.jboss.web.tomcat.filters.ReplyHeaderFilter
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
org.apache.coyote.http11.Http11NioProcessor.process(Http11NioProcessor.java:896)
org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:701)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:2031)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
java.lang.Thread.run(Thread.java:595)
So when the ReplyHeaderFilter from the jboss web.xml was deleted, I succeeded in access.
Can't I access servlet that implements CometProcessor interface in the state which set ReplyHeaderFilter why?
Is this the bug of ReplyHeaderFilter?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072271#4072271
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072271
18Â years, 9Â months
[JBoss Seam] - Re: Rerender event not fired in Richtab panel
by jfrankman
No, same behavior. I actually started with the onchange event, but when I ran into this problem I switched to onclick to see if it would make any difference.
I have since found that if I add ajaxSingle="true" to the support tag, as in:
<a:support event="onclick" reRender="panelx,panely" ajaxSingle="true" />
Then it works. I have not had time to research why this would make a difference though.
Now that I can get it to rerender on the event now, I am trying to make it work inside the decorator/label combination, but I am confounded again:
| <s:decorate id="deductible1Decoration" template="layout/edit.xhtml">
|
| <ui:define name="label" >
| <s:div id="panely">
| <h:panelGroup rendered="#{rptphdmgbinderHome.instance.coveragetype!='AUTO'}">Deductible</h:panelGroup>
| <h:panelGroup rendered="#{rptphdmgbinderHome.instance.coveragetype=='AUTO'}">Comp</h:panelGroup>
| </s:div>
| </ui:define>
|
| <h:inputText id="deductible1"
| size="10"
| maxlength="10"
| required="true"
| value="#{rptphdmgbinderHome.instance.deductible1}">
| <a:support event="onblur" reRender="deductible1Decoration"/>
| </h:inputText>
| </s:decorate>
When I do this, and the text is rendered the label shows up in a different location than it is supposed to.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072269#4072269
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072269
18Â years, 9Â months