[Clustering/JBoss] - multiple JBoss servers session expire (loadbalancer) problem
by ddai
Hello JBoss gurus,
Currently I am facing a very painstaking problem. I want to have a 1 web server + 2 app servers configuration for the sake of fault tolerance. So I use loadbalancer in "worker.properties" file. Also in that file, I specify two JBoss app servers' names. And that works well.
However, I found the loadbalancer can make the request go to each app server one after another. But that caused a problem when a user logs in. When we access authenticate.jsp in one app server, it works well. However, when we submit the username, the request are actually transferred to app server 2. And server 1 reports session expire error, with a link for us to go back. When we click that link, the request goes back to server 1 again and seems that the username has been approved. But when we submit anything in there, server 2 takes control again and server 1 reports session expire again. So the "working well" and "session expire" apprear consecutively as the request goes back and forth between those two app servers.
Could anyone tell me if this is a problem in application or in JBoss configuration. If it is due to JBoss, what should I do? Thanks, in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055806#4055806
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055806
18Â years, 10Â months
[Tomcat, HTTPD, Servlets & JSP] - Jboss-4.2 + LambdaProbe
by paulalbano
Hi,
I'm using "jboss-4.2.0.GA", but lambdaprobe dont work with this version of jboss.
I used "jboss-4.0.5.GA" until now and everything worked correctely.
I can log in lambdaprobe, but it gets me a error.
The error is :
"
There was an error
Application encountered an unexpected error. We would greatly appreciate if you send the information below back to us so we can correct the problem as soon as possible!
java.lang.StackOverflowErrorjavax.servlet.ServletException: java.lang.StackOverflowError at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784) at org.apache.jsp.index_jsp._jspService(index_jsp.java:64) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at ...
"
Someone has this problem too??
tks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055805#4055805
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055805
18Â years, 10Â months
[JBoss Seam] - Set do not work
by KoniKoni
<rich:dataTable rendered="#{not empty entList}"
| onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
| onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
| cellpadding="0" cellspacing="0"
| width="100%" border="0" var="cat" value="#{catList}">
|
|
|
| <rich:column>
|
| <f:facet name="header">
| <h:outputText value="Datum"/>
| </f:facet>
| <h:outputText value="#{cat.bezeichnung}" />
| </rich:column>
|
|
| <rich:subTable
| onRowMouseOver="this.style.backgroundColor='#F8F8F8'"
| onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
| var="tournament" value="#{cat.tournaments}">
| <rich:column>
| <f:facet name="header">
| <h:outputText value="Datum"/>
| </f:facet>
| <h:outputText value="#{tour.bezeichnung}" />
| </rich:column>
|
| </rich:subTable>
| </rich:dataTable>
@DataModel private List<Category> catList;
AND Entitybean:
@OneToMany(mappedBy="category",cascade=CascadeType.ALL, fetch=FetchType.LAZY)
| private Set<Tournament> tournaments;
SCHWERWIEGEND: Error Rendering View[/sports.xhtml]
| java.lang.IllegalArgumentException: value of context variable is not an instance of the component bound to the context variable: tournament
| at org.jboss.seam.Component.getInstance(Component.java:1659)
| at org.jboss.seam.Component.getInstance(Component.java:1614)
| at org.jboss.seam.Component.getInstance(Component.java:1608)
| at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
| at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
| at javax.faces.component.UIOutput.getValue(UIOutput.java:173)
| at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:189)
| at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:320)
| at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:200)
| at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:286)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChildren(RendererBase.java:262)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:284)
| at org.richfaces.renderkit.AbstractRowsRenderer.encodeCellChildren(AbstractRowsRenderer.java:274)
| at org.richfaces.renderkit.AbstractTableRenderer.encodeOneRow(AbstractTableRenderer.java:216)
| at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:75)
| at org.ajax4jsf.ajax.repeat.SequenceDataModel.walk(SequenceDataModel.java:101)
| at org.ajax4jsf.ajax.repeat.UIDataAdaptor.walk(UIDataAdaptor.java:917)
| at org.richfaces.renderkit.AbstractRowsRenderer.encodeRows(AbstractRowsRenderer.java:92)
| at org.richfaces.renderkit.AbstractRowsRenderer.encodeChildren(AbstractRowsRenderer.java:124)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:809)
| at org.ajax4jsf.framework.renderer.RendererBase.renderChild(RendererBase.java:282)
| at org.richfaces.renderkit.AbstractRowsRenderer.encodeCellChildren(AbstractRowsRenderer.java:274)
| at org.richfaces.renderkit.AbstractTableRenderer.encodeOneRow(AbstractTableRenderer.java:216)
| at org.richfaces.renderkit.AbstractRowsRenderer.process(AbstractRowsRenderer.java:75)
| at org.ajax4jsf.ajax.repeat.SequenceDataModel.walk(SequenceDataModel.java:101)
| at org.ajax4jsf.ajax.repeat.UIDataAdaptor.walk(UIDataAdaptor.java:917)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055803#4055803
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055803
18Â years, 10Â months
[JBossWS] - Problem Accessing Web Service
by djayakaran
Hi,
I deployed a very simple web service to JBoss-4.2.0.GA, and used JBoss's wsconsume utility to generates stubs. I ran the client in its own JVM as a java application. It invokes the web service... no problem!
Then I coded a servlet (actually an Action class much like Struts) to call the web service. In this case the servlet and the web service are deployed within the same EAR. When the servlet invokes the web service from within the same container I get an exception when it tries to get the port. The offending line of code is in the generated service class:
return (CurrencyWS)super.getPort(new QName("http://currencyconverter.ws/", "CurrencyWSPort"), CurrencyWS.class);
The exception says:
javax.xml.ws.WebServiceException: SEI is missing @WebService annotation: interface ws.currencyconverter.CurrencyWS
All my annotations seem to be fine... the web service deploys fine and a client running in a separate JVM invokes it successfully.
If I run the web service on one machine and the servlet (web server) on another machine they communicate just fine.
Can someone tell me what I'm doing wrong?
Thanks,
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055801#4055801
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055801
18Â years, 10Â months
[JBossWS] - Endpoint does not contain operation meta data for: getAccoun
by Maffewl
I want to try and test the backwards compatibility of a webservice I upgraded from Axis to JBossWS.
Up to this point I have consumed the old wsdl w/ wsconsume and have the service deployed in Jboss 4.2.0.GA. I sent in the old xml and it hits the endpoint but i get the following message:
[org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
javax.xml.rpc.soap.SOAPFaultException: Endpoint {http://xxxxx/account}accountServicePort does not contain operation meta data for: getAccount
here is the request I am sending that works in our old environment (axis/jboss.net) but fails in the new environment:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://xxxxx/account">
| <SOAP-ENV:Body>
| <getAccount>
| ...
| </getAccount>
| </SOAP-ENV:Body>
| </SOAP-ENV:Envelope>
just for kicks I changed the getAccount tags to :
<m0:getAccount> ... </m0:getAccount>
as defined in the envelope, and i got a different error
[org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
org.jboss.ws.WSException: Cannot find child element: {http://xxxxx/type}getAccount
which seems to me that it it does find the 'getAccount'.
but the reality is, i cant really change the request. I have to try and upgrade transparently.
heres a portion of the deployed wsdl on the service if it helps
<definitions name='AccountService' targetNamespace='http://xxxxx/account' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:ns1='http://xxx/type' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://xxxxx/account' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
| <types>
| <xs:schema elementFormDefault='qualified' targetNamespace='http://xxxxx/type' version='1.0' xmlns:tns='http://xxxxx/type' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
|
| ...
|
| <xs:element name='getAccount'>
| <xs:complexType>
| <xs:sequence>
|
| ...
|
| </xs:sequence>
| </xs:complexType>
| </xs:element>
| </xs:schema>
| </types>
|
| ...
|
| <message name='accountService_getAccount'>
| <part element='ns1:getAccount' name='getAccount'></part>
| </message>
|
| ...
|
| <portType name='accountService'>
|
| ...
|
| <operation name='getAccount' parameterOrder='getAccount'>
| <input message='tns:accountService_getAccount'></input>
| <output message='tns:accountService_getAccountResponse'></output>
| </operation>
|
| ...
|
| </portType>
|
| <binding name='accountServiceBinding' type='tns:accountService'>
| <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
|
| ...
|
| <operation name='getAccount'>
| <soap:operation soapAction='urn:#GetAccount'/>
| <input>
| <soap:body use='literal'/>
| </input>
| <output>
| <soap:body use='literal'/>
| </output>
| </operation>
|
| ...
|
| </binding>
| <service name='accountService'>
| <port binding='tns:accountServiceBinding' name='accountServicePort'>
| <soap:address location='http://xxxxxxxx:8080/accountService'/>
| </port>
| </service>
| </definitions>
|
thanks
matt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055800#4055800
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055800
18Â years, 10Â months