[JBossCache] - Re: improve s:cache performances
by Zerg-Spirit
Config file wasn't pasted correctly:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <!-- ===================================================================== -->
| <!-- -->
| <!-- PojoCache Service Configuration -->
| <!-- -->
| <!-- ===================================================================== -->
|
| <server>
|
| <!-- Used inside JBoss AS
| <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/>
| -->
|
| <!-- ==================================================================== -->
| <!-- Defines configuration -->
| <!-- ==================================================================== -->
|
| <mbean code="org.jboss.cache.aop.PojoCache" name="jboss.cache:service=testPojoCache">
|
| <!-- Used inside JBoss AS -->
| <depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends>
|
| <!--
| Configure the TransactionManager
| <attribute name="TransactionManagerLookupClass">org.jboss.cache.DummyTransactionManagerLookup</attribute>
| -->
|
| <!--
| Node locking scheme:
| OPTIMISTIC
| PESSIMISTIC (default)
| -->
| <attribute name="NodeLockingScheme">PESSIMISTIC</attribute>
|
| <!--
| Note that this attribute is IGNORED if your NodeLockingScheme above is OPTIMISTIC.
|
| Isolation level : SERIALIZABLE
| REPEATABLE_READ (default)
| READ_COMMITTED
| READ_UNCOMMITTED
| NONE
| -->
| <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
|
| <!--
| Valid modes are LOCAL
| REPL_ASYNC
| REPL_SYNC
| INVALIDATION_ASYNC
| INVALIDATION_SYNC
| -->
| <attribute name="CacheMode">LOCAL</attribute>
|
| <!-- Name of cluster. Needs to be the same for all clusters, in order
| to find each other
| -->
| <attribute name="ClusterName">Sample-Cluster</attribute>
|
| <!-- JGroups protocol stack properties. Can also be a URL,
| e.g. file:/home/bela/default.xml
| <attribute name="ClusterProperties"></attribute>
| -->
|
| <attribute name="ClusterConfig">
| <config>
| <!-- UDP: if you have a multihomed machine,
| set the bind_addr attribute to the appropriate NIC IP address -->
| <!-- UDP: On Windows machines, because of the media sense feature
| being broken with multicast (even after disabling media sense)
| set the loopback attribute to true -->
| <UDP mcast_addr="228.1.2.5" mcast_port="45577" ip_ttl="64" ip_mcast="true" mcast_send_buf_size="150000"
| mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" loopback="false" />
| <PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false" />
| <MERGE2 min_interval="10000" max_interval="20000" />
| <FD shun="true" up_thread="true" down_thread="true" />
| <VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />
| <pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800" up_thread="false" down_thread="false" />
| <pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />
| <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false" />
| <FRAG frag_size="8192" down_thread="false" up_thread="false" />
| <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true" />
| <pbcast.STATE_TRANSFER up_thread="false" down_thread="false" />
| </config>
| </attribute>
|
|
| <!--
| The max amount of time (in milliseconds) we wait until the
| initial state (ie. the contents of the cache) are retrieved from
| existing members in a clustered environment
| -->
| <attribute name="InitialStateRetrievalTimeout">20000</attribute>
|
| <!--
| Number of milliseconds to wait until all responses for a
| synchronous call have been received.
| -->
| <attribute name="SyncReplTimeout">15000</attribute>
|
| <!-- Max number of milliseconds to wait for a lock acquisition -->
| <attribute name="LockAcquisitionTimeout">10000</attribute>
|
| <!-- Name of the eviction policy class. We have commented it off to disable eviction.
| -->
| <attribute name="EvictionPolicyClass">org.jboss.cache.aop.eviction.AopLRUPolicy</attribute>
|
| <!-- Specific eviction policy configurations. This is LRU -->
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <!-- Cache wide default -->
| <region name="/_default_">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">5</attribute>
| </region>
| <region name="/aop">
| <attribute name="maxNodes">5</attribute>
| <attribute name="timeToLiveSeconds">4</attribute>
| </region>
| <region name="/pojo">
| <attribute name="maxNodes">100</attribute>
| <attribute name="timeToLiveSeconds">4</attribute>
| </region>
| <region name="/Topic">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">10000</attribute>
| <attribute name="maxAgeSeconds">1800</attribute>
| </region>
| </config>
| </attribute>
| </mbean>
|
| </server>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111153#4111153
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111153
18 years, 4 months
[JBossCache] - improve s:cache performances
by Zerg-Spirit
Hi, I already posted this message in the Seam forums, but I figured it was most probably a topic that would fit here.
I'm currently working on a big page displaying a topic and every of its children hierarchically.
Since these topics can have a lot of children, I figured out I should cache my page to enhance my performances.
I actually managed to cache it, jumping from a poor 40s~ page generation time to a big but-still-not-great enhancement to 6s.
Thanks to a sysout, I've also noticed that when a cached page is rendered, my backing bean is being used!
I actually don't understand why it takes so much time, since as far as I understood, the whole page should be cached, so it should basically result to a 'static page', ie. almost an instant loading.
Here's the code:
Code:
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.ajax4jsf.org/rich"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
xmlns:c="http://java.sun.com/jstl/core"
template="/layout/template.xhtml">
<ui:define name="body">
<s:cache key="#{topicHome.instance}" region="/Topic" enabled="true">
<h:form>
<s:link value="#{messages['lrb.message.back_to_main_list']}" view="/Thesaurus.xhtml"/>
<h:outputText value=" | " />
<h:inputText value="#{searchTopic}" />
<h:commandButton value="#{messages['lrb.action.search']}"
action="#{thesaurusManager.searchTopic()}" />
<h:commandLink action="#{thesaurusManager.showTopic(topicHome.instance)}"
value="#{topicHome.instance.name}" />
<h:commandLink
action="#{thesaurusManager.selectTopic(topicHome.instance)}"
value="(#{topicHome.instance.relatedBooks} #{messages['lrb.thesaurus.hits']})"
rendered="#{topicHome.instance.relatedBooks.intValue() != 0}" />
<ui:include src="/layout/alphabetLinks.xhtml"/>
<c:forEach items="#{topicHome.instance.sortedColumnedChildren}"
var="superList">
<c:forEach items="#{superList}" var="list">
<c:forEach items="#{list}" var="t">
<f:subview >
<s:link view="/showTopic" value="#{t.name}" propagation="nest"> <f:param name="topicId" value="#{t.id}" /> </s:link>
(<s:link value="#{t.relatedBooks} #{messages['lrb.thesaurus.hits']}" view="/showBooks" propagation="nest"> <f:param name="topicId" value="#{t.id}"/> </s:link>)
<ui:include src="/showChild.xhtml">
<ui:param name="topic" value="#{t}" />
</ui:include>
</f:subview>
</c:forEach>
</c:forEach>
</c:forEach>
</h:form>
</s:cache>
</ui:define>
</ui:composition>
This page is the main one, the one I surrounded with s:cache tag.
Then showChild is called recursively to load every children:
Code:
<c:forEach items="#{topic.children}" var="t">
<f:subview>
<s:link view="/showTopic" value="#{t.name}" propagation="nest"> <f:param name="topicId" value="#{t.id}" /> </s:link> (<s:link value="#{t.relatedBooks} #{messages['lrb.thesaurus.hits']}" view="/showBooks" propagation="nest"> <f:param name="topicId" value="#{t.id}"/> </s:link>)
<ui:include src="/showChild.xhtml">
<ui:param name="topic" value="#{t}" />
</ui:include>
</f:subview>
</c:forEach>
Then, finally, my treecache.xml config file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- PojoCache Service Configuration -->
<!-- -->
<!-- ===================================================================== -->
<!-- Used inside JBoss AS
-->
<!-- ==================================================================== -->
<!-- Defines configuration -->
<!-- ==================================================================== -->
<!-- Used inside JBoss AS -->
jboss:service=Naming
jboss:service=TransactionManager
<!--
Configure the TransactionManager
org.jboss.cache.DummyTransactionManagerLookup
-->
<!--
Node locking scheme:
OPTIMISTIC
PESSIMISTIC (default)
-->
PESSIMISTIC
<!--
Note that this attribute is IGNORED if your NodeLockingScheme above is OPTIMISTIC.
Isolation level : SERIALIZABLE
REPEATABLE_READ (default)
READ_COMMITTED
READ_UNCOMMITTED
NONE
-->
REPEATABLE_READ
<!--
Valid modes are LOCAL
REPL_ASYNC
REPL_SYNC
INVALIDATION_ASYNC
INVALIDATION_SYNC
-->
LOCAL
<!-- Name of cluster. Needs to be the same for all clusters, in order
to find each other
-->
Sample-Cluster
<!-- JGroups protocol stack properties. Can also be a URL,
e.g. file:/home/bela/default.xml
-->
<!-- UDP: if you have a multihomed machine,
set the bind_addr attribute to the appropriate NIC IP address -->
<!-- UDP: On Windows machines, because of the media sense feature
being broken with multicast (even after disabling media sense)
set the loopback attribute to true -->
<UDP mcast_addr="228.1.2.5" mcast_port="45577" ip_ttl="64" ip_mcast="true" mcast_send_buf_size="150000"
mcast_recv_buf_size="80000" ucast_send_buf_size="150000" ucast_recv_buf_size="80000" loopback="false" />
<PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false" />
<MERGE2 min_interval="10000" max_interval="20000" />
<FD shun="true" up_thread="true" down_thread="true" />
<VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />
<pbcast.NAKACK gc_lag="50" retransmit_timeout="600,1200,2400,4800" up_thread="false" down_thread="false" />
<pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />
<UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false" />
<FRAG frag_size="8192" down_thread="false" up_thread="false" />
<pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true" />
<pbcast.STATE_TRANSFER up_thread="false" down_thread="false" />
<!--
The max amount of time (in milliseconds) we wait until the
initial state (ie. the contents of the cache) are retrieved from
existing members in a clustered environment
-->
20000
<!--
Number of milliseconds to wait until all responses for a
synchronous call have been received.
-->
15000
<!-- Max number of milliseconds to wait for a lock acquisition -->
10000
<!-- Name of the eviction policy class. We have commented it off to disable eviction.
-->
org.jboss.cache.aop.eviction.AopLRUPolicy
<!-- Specific eviction policy configurations. This is LRU -->
5
<!-- Cache wide default -->
5000
5
5
4
100
4
5000
10000
1800
I guess there's something wrong with my config file or something,
Thanks for your help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111152#4111152
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111152
18 years, 4 months
[JBoss Seam] - Seam eats exceptions
by MSchmidke
Hello all,
the following problem cost two days of my life ...
I had an ClassCastException in one of my property getters. Ok, admitted, it was my fault, but it is not very nice that Seam completely eats up this exception. Nothing about it in the logs, absolutely nothing.
Just useful hints like "don't @Begin in a long running conversation, try join=true" and so on. Of course I know that exceptions can cause totally different followup exceptions, so I am used to ignore exceptions I don't understand, searching for collateral exceptions I understand better. But there were none, just this "use join" thing.
So I went into deep - how could the conversation context be lost? I stepped through half of Seam. For two days. Then I found my component being inexpectedly "removed" from conversation context.
This remove was called from RemoveInterceptor.removeIfNecessary, and in that method, I was able to have a look at the root causing exception.
I could not really figure out why this exception isn't logged at all, but I think it would clearly better if it was ...
I was able to call printStackTrace in the debugger, so I can give you a strack trace of the original exception. Perhaps it helps:
| 11:14:07,021 ERROR [STDERR] java.lang.reflect.InvocationTargetException
| 11:14:07,021 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
| 11:14:07,021 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 11:14:07,021 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 11:14:07,021 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| 11:14:07,021 ERROR [STDERR] at org.jboss.seam.Component.getPropertyValue(Component.java:1753)
| 11:14:07,021 ERROR [STDERR] at org.jboss.seam.Component.access$400(Component.java:138)
| 11:14:07,021 ERROR [STDERR] at org.jboss.seam.Component$BijectedMethod.get(Component.java:2515)
| 11:14:07,021 ERROR [STDERR] at org.jboss.seam.Component$BijectedProperty.get(Component.java:2553)
| 11:14:07,021 ERROR [STDERR] at org.jboss.seam.Component.outjectDataModel(Component.java:1519)
| 11:14:07,021 ERROR [STDERR] at org.jboss.seam.Component.outjectDataModels(Component.java:1511)
| 11:14:07,021 ERROR [STDERR] at org.jboss.seam.Component.outject(Component.java:1463)
| 11:14:07,021 ERROR [STDERR] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:48)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.core.ConversationInterceptor.aroundInvoke(ConversationInterceptor.java:65)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
| 11:14:07,053 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
| 11:14:07,053 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 11:14:07,053 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| 11:14:07,053 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:204)
| 11:14:07,053 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:100)
| 11:14:07,053 ERROR [STDERR] at $Proxy141.getVersion(Unknown Source)
| 11:14:07,053 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor136.invoke(Unknown Source)
| 11:14:07,053 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 11:14:07,053 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:41)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
| 11:14:07,053 ERROR [STDERR] at org.javassist.tmp.java.lang.Object_$$_javassist_5.getVersion(Object_$$_javassist_5.java)
| 11:14:07,053 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source)
| 11:14:07,053 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 11:14:07,053 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 11:14:07,053 ERROR [STDERR] at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
| 11:14:07,053 ERROR [STDERR] at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| 11:14:07,053 ERROR [STDERR] at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| 11:14:07,053 ERROR [STDERR] at org.jboss.el.parser.AstPropertySuffix.getTarget(AstPropertySuffix.java:38)
| 11:14:07,053 ERROR [STDERR] at org.jboss.el.parser.AstValue.getTarget(AstValue.java:47)
| 11:14:07,053 ERROR [STDERR] at org.jboss.el.parser.AstValue.setValue(AstValue.java:83)
| 11:14:07,053 ERROR [STDERR] at org.jboss.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
| 11:14:07,053 ERROR [STDERR] at com.sun.facelets.el.TagValueExpression.setValue(TagValueExpression.java:93)
| 11:14:07,053 ERROR [STDERR] at javax.faces.component.UIInput.updateModel(UIInput.java:765)
| 11:14:07,053 ERROR [STDERR] at javax.faces.component.UIInput.processUpdates(UIInput.java:697)
| 11:14:07,053 ERROR [STDERR] at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1056)
| 11:14:07,053 ERROR [STDERR] at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1056)
| 11:14:07,053 ERROR [STDERR] at javax.faces.component.UIForm.processUpdates(UIForm.java:255)
| 11:14:07,053 ERROR [STDERR] at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:1056)
| 11:14:07,053 ERROR [STDERR] at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:706)
| 11:14:07,053 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot.access$101(AjaxViewRoot.java:57)
| 11:14:07,053 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot$2.invokeRoot(AjaxViewRoot.java:291)
| 11:14:07,053 ERROR [STDERR] at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
| 11:14:07,053 ERROR [STDERR] at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:173)
| 11:14:07,053 ERROR [STDERR] at org.ajax4jsf.component.AjaxViewRoot.processUpdates(AjaxViewRoot.java:305)
| 11:14:07,053 ERROR [STDERR] at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:101)
| 11:14:07,053 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| 11:14:07,053 ERROR [STDERR] at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| 11:14:07,053 ERROR [STDERR] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 11:14:07,053 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:307)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| 11:14:07,053 ERROR [STDERR] at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
| 11:14:07,053 ERROR [STDERR] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| 11:14:07,053 ERROR [STDERR] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 11:14:07,053 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| 11:14:07,053 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| 11:14:07,053 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| 11:14:07,053 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| 11:14:07,053 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| 11:14:07,053 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| 11:14:07,053 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| 11:14:07,053 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| 11:14:07,053 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
| 11:14:07,053 ERROR [STDERR] Caused by: java.lang.ClassCastException: de.prosystemsit.argos3.business.modell.Anwendungsattribute_Allgemein_Uebergreifend
| 11:14:07,053 ERROR [STDERR] at de.prosystemsit.argos3.business.modell.Anwendung.getAktuelleAttribute(Anwendung.java:147)
| 11:14:07,053 ERROR [STDERR] at de.prosystemsit.argos3.business.modell.Version.getAktuelleAttribute(Version.java:231)
| 11:14:07,053 ERROR [STDERR] at de.prosystemsit.argos3.web.VersionBearbeitenImpl.getAttribute(VersionBearbeitenImpl.java:140)
| 11:14:07,053 ERROR [STDERR] at de.prosystemsit.argos3.web.VersionBearbeitenImpl.getEigentuemer(VersionBearbeitenImpl.java:145)
| 11:14:07,053 ERROR [STDERR] ... 132 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111151#4111151
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111151
18 years, 4 months
[Remoting] - SSL Handshake Exception
by anupamkakade
My rmi SSL server which is deployed in .sar file now runs fine in JBOSS 4.0.5
I can connect to server by command line client using SSL.
But now my client runs inside MDB . i.e. client is deployed .
Now when i am trying to connect to server (rmis) which is deployed in same server i am getting the exception as follows,
Please note that there is no SSLSocket in RMIS Server and RMIS client.
Please help me . I am new to JBOSS.
Thanks a lot in advance .
14:41:18,221 INFO [STDOUT] javax.naming.CommunicationException [Root exception is java.rmi.Conn
ectIOException: error during JRMP connection establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake]
14:41:18,221 ERROR [STDERR] javax.naming.CommunicationException [Root exception is java.rmi.Conn
ectIOException: error during JRMP connection establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake]
14:41:18,236 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:72
2)
14:41:18,236 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:58
7)
14:41:18,236 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:392)
14:41:18,236 ERROR [STDERR] at com.atom.mdb.MessageReceiver.onMessage(MessageReceiver.java:6
1)
14:41:18,236 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:41:18,236 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
14:41:18,252 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
14:41:18,252 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
14:41:18,268 ERROR [STDERR] at org.jboss.invocation.Invocation.performCall(Invocation.java:3
59)
14:41:18,268 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.inv
oke(MessageDrivenContainer.java:495)
14:41:18,268 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionIntercep
tor.invoke(CachedConnectionInterceptor.java:158)
14:41:18,268 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke
(MessageDrivenInstanceInterceptor.java:116)
14:41:18,283 ERROR [STDERR] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallVa
lidationInterceptor.java:63)
14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstra
ctTxInterceptor.java:121)
14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx
InterceptorCMT.java:350)
14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCM
T.java:181)
14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSe
curityInterceptor.java:109)
14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.ja
va:205)
14:41:18,299 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(Pr
oxyFactoryFinderInterceptor.java:136)
14:41:18,315 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDr
ivenContainer.java:402)
14:41:18,315 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:954)
14:41:18,315 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSConta
inerInvoker.java:987)
14:41:18,315 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListener
Impl.onMessage(JMSContainerInvoker.java:1287)
14:41:18,315 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession
.java:266)
14:41:18,330 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage
(SpyMessageConsumer.java:905)
14:41:18,330 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer
.java:170)
14:41:18,330 ERROR [STDERR] at org.jboss.mq.SpySession.run(SpySession.java:323)
14:41:18,330 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:
194)
14:41:18,330 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Po
oledExecutor.java:743)
14:41:18,346 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
14:41:18,346 ERROR [STDERR] Caused by: java.rmi.ConnectIOException: error during JRMP connection
establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
14:41:18,346 ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.
java:286)
14:41:18,346 ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.jav
a:184)
14:41:18,377 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
14:41:18,377 ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
14:41:18,377 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:62
5)
14:41:18,377 ERROR [STDERR] ... 29 more
14:41:18,377 ERROR [STDERR] Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed c
onnection during handshake
14:41:18,377 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSock
etImpl.java:741)
14:41:18,393 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHand
shake(SSLSocketImpl.java:1029)
14:41:18,393 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSoc
ketImpl.java:621)
14:41:18,393 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputS
tream.java:59)
14:41:18,393 ERROR [STDERR] at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream
.java:65)
14:41:18,393 ERROR [STDERR] at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:
123)
14:41:18,393 ERROR [STDERR] at java.io.DataOutputStream.flush(DataOutputStream.java:106)
14:41:18,393 ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.
java:211)
14:41:18,408 ERROR [STDERR] ... 33 more
14:41:18,408 ERROR [STDERR] Caused by: java.io.EOFException: SSL peer shut down incorrectly
14:41:18,408 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.jav
a:333)
14:41:18,408 ERROR [STDERR] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSock
etImpl.java:722)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111146#4111146
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111146
18 years, 4 months
[JBoss Seam] - Seam generated entity failed to deploy on JBossAS 4.2.2
by berna
Hi Guys,
I have just started with Seam (pardon my newbiness). My setup:
Seam 2.0.0.GA
JBossAS 4.2.2 GA
Eclipse 3.3.1 with JBossTool plug-in RC1
WinXP
SqlServer 2K (using MS JDBC driver for SqlServer 2005)
I created a Seam project and reverse engineered existing database using seam generate-entities. Opened the project in Eclipse and deployed to JBoss server.
I have tlb_employee mapped to osa_ServerAccessType on many-to-one.
The join key is of type CHAR (6) and the generated type is String.
When deploying the application, I got exception telling me the expected type is VARCHAR (6).
tbl_employee.staff_id <---> osa_ServerAccessType.DefaultResource
How to get around this? The actual database type is CHAR (6), somehow after the entity is generated the verification process insist it has to be VARCHAR (6). What should I do to get this working?
On tbl_employee side:
| @Id
| @Column(name = "Staff_id", unique = true, nullable = false, length = 6)
| @NotNull
| @Length(max = 6)
| public String getStaffId() {
| return this.staffId;
| }
|
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tblEmployee")
| public Set<OsaServerAcessType> getOsaServerAcessTypes() {
| return this.osaServerAcessTypes;
| }
|
On serverAccessType side
| @ManyToOne(fetch = FetchType.LAZY)
| @JoinColumn(name = "DefaultResource")
| public TblEmployee getTblEmployee() {
| return this.tblEmployee;
| }
|
StackTrace:
| 16:59:45,822 INFO [TableMetadata] table found: iipl-osa.dbo.OSA_ServerAcessType
| 16:59:45,822 INFO [TableMetadata] columns: [defaultresource, description, name, id]
| 16:59:45,822 WARN [ServiceController] Problem starting service persistence.units:ear=osa.ear,unitName=osa
| javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: DefaultResource, expected: varchar(6)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 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.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy69.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.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.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy33.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 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 $Proxy34.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor20.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.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 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 $Proxy9.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| 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.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.hibernate.HibernateException: Wrong column type: DefaultResource, expected: varchar(6)
| at org.hibernate.mapping.Table.validateColumns(Table.java:261)
| at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1083)
| at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:116)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:317)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
| ... 145 more
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111138#4111138
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111138
18 years, 4 months
[JBoss Seam] - Jboss Seam application within Websphere AS 6.1.0.13
by ceaserme
Hi All,
We have developed an developed using Seam 1.2.1 GA and Facelets. It deploys properly and functions as desired when deployed within JBoss 4.0.5
For Prod we need to deploy it on WAS 6.1.0.13 and it gives an error saying "Could not start transaction".
It will be great if anybody could provide a heads up (direction) for going forward.... Please find stack trace attached.
[7/12/07 18:45:06:482 EST] 00000061 SeamFilter I org.jboss.seam.web.SeamFilter init Initializing filter: org.jboss.seam.servlet.exceptionFilter
[7/12/07 18:45:06:485 EST] 00000061 SeamFilter I org.jboss.seam.web.SeamFilter init Initializing filter: org.jboss.seam.debug.hotDeployFilter
[7/12/07 18:45:06:486 EST] 00000061 SeamFilter I org.jboss.seam.web.SeamFilter init Initializing filter: org.jboss.seam.servlet.redirectFilter
[7/12/07 18:45:06:488 EST] 00000061 SeamFilter I org.jboss.seam.web.SeamFilter init Initializing filter: org.jboss.seam.servlet.multipartFilter
[7/12/07 18:45:06:546 EST] 00000061 SeamPhaseList E org.jboss.seam.jsf.SeamPhaseListener beforePhase uncaught exception
org.jboss.seam.TransactionException: Could not start transaction
at org.jboss.seam.jsf.AbstractSeamPhaseListener.begin(AbstractSeamPhaseListener.java:313)
at org.jboss.seam.jsf.TransactionalSeamPhaseListener.handleTransactionsBeforePhase(TransactionalSeamPhaseListener.java:30)
at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:48)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:210)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
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.RedirectFilter.doFilter(RedirectFilter.java:45)
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.ExceptionFilter.doFilter(ExceptionFilter.java:57)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:766)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:674)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.ClassCastException: com.ibm.ws.Transaction.JTA.UserTransactionImpl incompatible with javax.transaction.UserTransaction
at org.jboss.seam.util.Transactions.getUserTransaction(Transactions.java:153)
at org.jboss.seam.util.Transactions.isUTTransactionActiveOrMarkedRollback(Transactions.java:122)
at org.jboss.seam.util.Transactions.isTransactionActiveOrMarkedRollback(Transactions.java:50)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.begin(AbstractSeamPhaseListener.java:305)
... 39 more
[7/12/07 18:45:06:559 EST] 00000061 SeamPhaseList E org.jboss.seam.jsf.SeamPhaseListener beforePhase swallowing exception
org.jboss.seam.TransactionException: Could not start transaction
at org.jboss.seam.jsf.AbstractSeamPhaseListener.begin(AbstractSeamPhaseListener.java:313)
at org.jboss.seam.jsf.TransactionalSeamPhaseListener.handleTransactionsBeforePhase(TransactionalSeamPhaseListener.java:30)
at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:48)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:210)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
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.RedirectFilter.doFilter(RedirectFilter.java:45)
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.ExceptionFilter.doFilter(ExceptionFilter.java:57)
at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:766)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:674)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3276)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:113)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.lang.ClassCastException: com.ibm.ws.Transaction.JTA.UserTransactionImpl incompatible with javax.transaction.UserTransaction
at org.jboss.seam.util.Transactions.getUserTransaction(Transactions.java:153)
at org.jboss.seam.util.Transactions.isUTTransactionActiveOrMarkedRollback(Transactions.java:122)
at org.jboss.seam.util.Transactions.isTransactionActiveOrMarkedRollback(Transactions.java:50)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.begin(AbstractSeamPhaseListener.java:305)
... 39 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111134#4111134
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111134
18 years, 4 months