[JBoss Portal] - Re: How to deploy a Seam Portlet?
by m.paranjape
I am using jboss-portletbridge in my application. I have the portletbridge-api-1.0.0.B3.jar and portletbridge-impl-1.0.0.B3.jar in my classpath. When the portlet is deployed in jboss server it gives a ClassCastException.
17:35:40,972 ERROR [STDERR] Caused by: java.lang.ClassCastException: javax.portlet.faces.GenericFacesPortlet
17:35:40,972 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:231)
17:35:40,972 ERROR [STDERR] ... 73 more
…
[View More]
My web.xml is as follows.
---------------- Web. xml ------------------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<display-name>Seam Booking Example</display-name>
<context-param>
<param-name>javax.portlet.faces.BridgeImplClass</param-name>
<param-value>org.apache.myfaces.portlet.faces.bridge.BridgeImpl</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
<param-value>
org.jboss.portletbridge.application.FaceletPortletViewHandler
</param-value>
</context-param>
<context-param>
<param-name>org.jboss.portletbridge.ExceptionHandler</param-name>
<param-value>
org.jboss.portletbridge.SeamExceptionHandlerImpl
</param-value>
</context-param>
<context-param>
<param-name>javax.faces.LIFECYCLE_ID</param-name>
<param-value>SEAM_PORTLET</param-value>
</context-param>
<context-param>
<param-name>javax.portlet.faces.renderPolicy</param-name>
<param-value>ALWAYS_DELEGATE</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.RESOURCE_URI_PREFIX</param-name>
<param-value>rfRes</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadStyleStrategy</param-name>
<param-value>DEFAULT</param-value>
</context-param>
<context-param>
<param-name>org.richfaces.LoadScriptStrategy</param-name>
<param-value>NONE</param-value>
</context-param>
<context-param>
<param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
<param-value>false</param-value>
</context-param>
<listener-class>
org.jboss.seam.servlet.SeamListener
</listener-class>
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>
org.jboss.seam.servlet.SeamResourceServlet
</servlet-class>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
<filter-name>Seam Filter</filter-name>
<filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>
<filter-mapping>
<filter-name>Seam Filter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
FORWARD
REQUEST
INCLUDE
</filter-mapping>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.seam</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>10</session-timeout>
</session-config>
</web-app>
My portlet.xml is as follows
------------------ portlet.xml ----------------------------------
<portlet-app version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet"
xmlns="http://java.sun.com/xml/ns/portlet">
<portlet-name>seamFinalPortlet</portlet-name>
<portlet-class>
javax.portlet.faces.GenericFacesPortlet
</portlet-class>
<init-param>
javax.portlet.faces.defaultViewId.view
/index.html
</init-param>
<init-param>
javax.portlet.faces.preserveActionParams
true
</init-param>
<expiration-cache>-0</expiration-cache>
<portlet-info>
Seam Final Example Portlet
</portlet-info>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
</portlet-app>
--------------------- portlet-instance.xml ---------------
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<instance-id>SeamFinalPortletInstance</instance-id>
<portlet-ref>seamFinalPortlet</portlet-ref>
<instance-id>SeamFinalPortletSecondInstance</instance-id>
<portlet-ref>seamFinalPortlet</portlet-ref>
-------------------- *-object.xml --------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<parent-ref>default</parent-ref>
<if-exists>overwrite</if-exists>
<instance-name>SeamFinalPortletInstance</instance-name>
<component-ref>seamFinalPortletApp.seamFinalPortlet</component-ref>
<parent-ref>default</parent-ref>
<if-exists>overwrite</if-exists>
<page-name>SeamTesting</page-name>
<window-name>seamBookingPortletWindow</window-name>
<instance-ref>SeamFinalPortletInstance</instance-ref>
center
0
<initial-window-state>maximized</initial-window-state>
theme.renderSetId
emptyRenderer
------------------------------------------------------------------------------------
I have build my sample app based on an exmaple provided by the portlet bridge download. The exmple contains a EAR file which when deployed in Jboss works but if I deploy just the portlet war file in Jboss it doesnt work...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167498#4167498
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167498
[View Less]
16 years, 6 months
[JBoss jBPM] - Not able to connect to Database
by Music123
Hi,
I want to develop a struts application using JBPM workflow engine.I tried to implement login functionality from struts Action class.
I want to check the existence of username and password given by user in database. I passed jbpm.cfg.xml as string. Its giving message as "hibernate.properties" not found.
I gave the datasource name in hibernate.cfg.xml. but its not detecting and connection to database.
Please correct me if i am wrong somewhere and direct me on the correct path.
Thanks in …
[View More]Advance.
Here is my code:
static JbpmConfiguration jbpmConfiguration = null;
static {
jbpmConfiguration = JbpmConfiguration.parseXmlString(
"<jbpm-configuration>" +
// A jbpm-context mechanism separates the jbpm core
// engine from the services that jbpm uses from
// the environment.
" <jbpm-context>" +
" <service name='persistence' " +
" factory='org.jbpm.persistence.db.DbPersistenceServiceFactory' />" +
" </jbpm-context>" +
// Also all the resource files that are used by jbpm are
// referenced from the jbpm.cfg.xml
" <string name='resource.hibernate.cfg.xml' " +
" value='hibernate.cfg.xml' />" +
" <string name='resource.business.calendar' " +
" value='org/jbpm/calendar/jbpm.business.calendar.properties' />" +
" <string name='resource.default.modules' " +
" value='org/jbpm/graph/def/jbpm.default.modules.properties' />" +
" <string name='resource.converter' " +
" value='org/jbpm/db/hibernate/jbpm.converter.properties' />" +
" <string name='resource.action.types' " +
" value='org/jbpm/graph/action/action.types.xml' />" +
" <string name='resource.node.types' " +
" value='org/jbpm/graph/node/node.types.xml' />" +
" <string name='resource.varmapping' " +
" value='org/jbpm/context/exe/jbpm.varmapping.xml' />" +
"</jbpm-configuration>"
);
}
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
IdentitySession iSession = new IdentitySession(jbpmContext.getSession());
final Object id = iSession.verify(username, password);
if (id == null) {
System.out.println(".............Invalid user name or password...............");
return mapping.findForward("invalidUser");
}
else if(id != null) {
System.out.println(".............User is valid...............");
return mapping.findForward("validUser");
}
Stacktrace:
INFO [STDOUT] 14:08:02,890 INFO [Environment] Hibernate 3.2.3
14:08:02,890 INFO [STDOUT] 14:08:02,890 INFO [Environment] hibernate.propertie
s not found
14:08:02,906 INFO [STDOUT] 14:08:02,906 INFO [Environment] Bytecode provider n
ame : javassist
14:08:02,921 INFO [STDOUT] 14:08:02,921 INFO [Environment] using JDK 1.4 java.
sql.Timestamp handling
14:08:03,281 INFO [STDOUT] 14:08:03,281 INFO [Configuration] configuring from
resource: hibernate.cfg.xml
14:08:03,281 INFO [STDOUT] 14:08:03,281 INFO [Configuration] Configuration res
ource: hibernate.cfg.xml
hibernate.cfg.xml:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- hibernate dialect -->
org.hibernate.dialect.MySQLInnoDBDialect
<!-- JDBC connection properties (begin)
org.hsqldb.jdbcDriver
org.hibernate.cache.HashtableCacheProvider
<!-- DataSource properties (begin) ===-->
java:/jpdlDS
<!--==== DataSource properties (end) -->
<!-- JTA transaction properties (begin) ===
org.hibernate.transaction.JTATransactionFactory
org.hibernate.transaction.JBossTransactionManagerLookup
==== JTA transaction properties (end) -->
<!-- CMT transaction properties (begin) ===
org.hibernate.transaction.CMTTransactionFactory
org.hibernate.transaction.JBossTransactionManagerLookup
==== CMT transaction properties (end) -->
<!-- logging properties (begin) === -->
true
true
<!--true
==== logging properties (end) -->
<!-- ############################################ -->
<!-- # mapping files with external dependencies # -->
<!-- ############################################ -->
<!-- following mapping file has a dependendy on -->
<!-- 'bsh-{version}.jar'. -->
<!-- uncomment this if you don't have bsh on your -->
<!-- classpath. you won't be able to use the -->
<!-- script element in process definition files -->
<!-- following mapping files have a dependendy on -->
<!-- 'jbpm-identity.jar', mapping files -->
<!-- of the pluggable jbpm identity component. -->
<!-- Uncomment the following 3 lines if you -->
<!-- want to use the jBPM identity mgmgt -->
<!-- component. -->
<!-- identity mappings (begin) -->
<!-- identity mappings (end) -->
<!-- following mapping files have a dependendy on -->
<!-- the JCR API -->
<!-- jcr mappings (begin) ===
==== jcr mappings (end) -->
<!-- ###################### -->
<!-- # jbpm mapping files # -->
<!-- ###################### -->
<!-- hql queries and type defs -->
<!-- graph.action mapping files -->
<!-- graph.def mapping files -->
<!-- graph.node mapping files -->
<!-- context.def mapping files -->
<!-- taskmgmt.def mapping files -->
<!-- module.def mapping files -->
<!-- bytes mapping files -->
<!-- file.def mapping files -->
<!-- scheduler.def mapping files -->
<!-- graph.exe mapping files -->
<!-- module.exe mapping files -->
<!-- context.exe mapping files -->
<!-- job mapping files -->
<!-- taskmgmt.exe mapping files -->
<!-- logging mapping files -->
</session-factory>
</hibernate-configuration>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167497#4167497
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167497
[View Less]
16 years, 6 months
Re: Stateless Session Bean - java.lang.reflect.UndeclaredThrowab
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=11297 Posted on behalf of a User
I am also experiencing this problem, using JBoss 4.2.0, Seam 2.0:
it happens intermittently while the application runs, and attempting the same action again always works...
Caused by: java.lang.InstantiationException: org.apache.log4j.Logger
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(…
[View More]ClassMetaData.java:334)
at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:239)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
at org.jboss.serial.persister.ArrayPersister.readObjectArray(ArrayPersister.java:196)
at org.jboss.serial.persister.ArrayPersister.readData(ArrayPersister.java:172)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject(DataContainer.java:643)
at org.jboss.serial.io.JBossObjectInputStream.readObjectOverride(JBossObjectInputStream.java:163)
at java.io.ObjectInputStream.readObject(Unknown Source)
at org.jboss.serial.io.MarshalledObject.get(MarshalledObject.java:68)
at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:790)
at org.jboss.ejb3.stateful.StatefulBeanContext.getInterceptorInstances(StatefulBeanContext.java:778)
at org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.getLifecycleInvocationContext(LifecycleInvocationContextImpl.java:65)
at org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postActivate(LifecycleInterceptorHandler.java:143)
at org.jboss.ejb3.stateful.StatefulContainer.invokePostActivate(StatefulContainer.java:400)
at org.jboss.ejb3.stateful.StatefulBeanContext.postActivate(StatefulBeanContext.java:385)
at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.activateSession(StatefulSessionFilePersistenceManager.java:316)
at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:387)
at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:375)
at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:333)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:81)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:139)
at $Proxy118.getAccountDTO(Unknown Source)
at au.com.demand.portal.flex.QuoteOrderDataProviderBean.findAggregationAddresses(QuoteOrderDataProviderBean.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at org.granite.tide.seam.TideInterceptor.aroundInvoke(TideInterceptor.java:140)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
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.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
at sun.reflect.GeneratedMethodAccessor399.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:94)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
at $Proxy330.findAggregationAddresses(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
at org.javassist.tmp.java.lang.Object_$$_javassist_2.findAggregationAddresses(Object_$$_javassist_2.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.granite.messaging.service.ServiceInvocationContext.invoke(ServiceInvocationContext.java:70)
at org.granite.messaging.service.security.AbstractSecurityService.endAuthorization(AbstractSecurityService.java:42)
at org.granite.seam.security.SeamSecurityService.authorize(SeamSecurityService.java:88)
at org.granite.messaging.service.ServiceInvoker.invoke(ServiceInvoker.java:132)
... 46 more
In Response To:
Hi ,
When i am accessing a stateless session bean methods in a servlet
i am able to access some methods without any problem. But some methods are throwing the following error.
I am not able to find oput why it is hapening with only some methods.
The error is as follows:
java.lang.reflect.UndeclaredThrowableException
2007-08-28 16:21:31,765 ERROR STDERR - at $Proxy458.getUserResource(Unknown Source)
2007-08-28 16:21:31,765 ERROR STDERR - at com.ecc.login.servlets.HomePage.login(HomePage.java:569)
2007-08-28 16:21:31,765 ERROR STDERR - at com.ecc.login.servlets.HomePage.doPost(HomePage.java:131)
2007-08-28 16:21:31,765 ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
2007-08-28 16:21:31,765 ERROR STDERR - at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
2007-08-28 16:21:31,765 ERROR STDERR - at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
2007-08-28 16:21:31,765 ERROR STDERR - at java.lang.Thread.run(Thread.java:595)
2007-08-28 16:21:31,765 ERROR STDERR - Caused by: java.io.IOException
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:107)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:269)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:845)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.io.MarshalledObjectForLocalCalls.get(MarshalledObjectForLocalCalls.java:60)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:94)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:70)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:103)
2007-08-28 16:21:31,765 ERROR STDERR - ... 23 more
2007-08-28 16:21:31,765 ERROR STDERR - Caused by: java.lang.reflect.InvocationTargetException
2007-08-28 16:21:31,765 ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2007-08-28 16:21:31,765 ERROR STDERR - at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2007-08-28 16:21:31,765 ERROR STDERR - at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2007-08-28 16:21:31,765 ERROR STDERR - at java.lang.reflect.Method.invoke(Method.java:585)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(RegularObjectPersister.java:103)
2007-08-28 16:21:31,765 ERROR STDERR - ... 33 more
2007-08-28 16:21:31,765 ERROR STDERR - Caused by: org.jboss.serial.exception.SerializationException: Could not create instance of org.apache.log4j.Logger - org.apache.log4j.Logger
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:342)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:239)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:845)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:845)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:845)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.ArrayPersister.readObjectArray(ArrayPersister.java:196)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.ArrayPersister.readData(ArrayPersister.java:172)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:845)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readSlotWithFields(RegularObjectPersister.java:353)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.defaultRead(RegularObjectPersister.java:273)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.RegularObjectPersister.readData(RegularObjectPersister.java:241)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming(ObjectDescriptorFactory.java:412)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription(ObjectDescriptorFactory.java:82)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.objectmetamodel.DataContainer$DataContainerInput.readObject(DataContainer.java:845)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.persister.ObjectInputStreamProxy.readObjectOverride(ObjectInputStreamProxy.java:68)
2007-08-28 16:21:31,765 ERROR STDERR - at java.io.ObjectInputStream.readObject(ObjectInputStream.java:342)
2007-08-28 16:21:31,765 ERROR STDERR - at java.util.Hashtable.readObject(Hashtable.java:848)
2007-08-28 16:21:31,765 ERROR STDERR - ... 38 more
2007-08-28 16:21:31,765 ERROR STDERR - Caused by: java.lang.InstantiationException: org.apache.log4j.Logger
2007-08-28 16:21:31,765 ERROR STDERR - at java.lang.Class.newInstance0(Class.java:335)
2007-08-28 16:21:31,765 ERROR STDERR - at java.lang.Class.newInstance(Class.java:303)
2007-08-28 16:21:31,765 ERROR STDERR - at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(ClassMetaData.java:334)
2007-08-28 16:21:31,765 ERROR STDERR - ... 68 more
can anybody suggests any solution.
I am using JBoss4.2.0 & JDK5.0.
Thanks in advance.
[View Less]
16 years, 6 months
[Tomcat, HTTPD, Servlets & JSP] - Re: mod_jk integration with JBoss for HTTP and HTTPS both
by deepakgupta_72@yahoo.com
Hi,
thanks for the reply I already have virtual host for SSL please tell me if it further requires some configuration or any other parameter, I am really stuck on this.
<VirtualHost _default_:443>
|
| DocumentRoot "C:/java/ApacheSoftwareFoundation/Apache2.2/htdocs"
| ServerName 59.160.109.11:443
| ServerAdmin d.gupta(a)mpstechnologies.com
| ErrorLog "C:/java/ApacheSoftwareFoundation/Apache2.2/logs/error.log"
| TransferLog "C:/java/ApacheSoftwareFoundation/Apache2.2/…
[View More]logs/access.log"
|
| SSLEngine on
|
| SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
| SSLCertificateFile "C:/java/ApacheSoftwareFoundation/Apache2.2/conf/sp-cert.pem"
|
| SSLCertificateKeyFile "C:/java/ApacheSoftwareFoundation/Apache2.2/conf/sp-key.pem"
|
| <FilesMatch "\.(cgi|shtml|phtml|php)$">
| SSLOptions +StdEnvVars
| </FilesMatch>
| <Directory "C:/java/ApacheSoftwareFoundation/Apache2.2/cgi-bin">
| SSLOptions +StdEnvVars
| </Directory>
|
| BrowserMatch ".*MSIE.*" \
| nokeepalive ssl-unclean-shutdown \
| downgrade-1.0 force-response-1.0
|
| CustomLog "C:/java/ApacheSoftwareFoundation/Apache2.2/logs/ssl_request.log" \
| "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
|
| </VirtualHost>
Thanks,
Deepak
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4167493#4167493
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4167493
[View Less]
16 years, 6 months