[EJB/JBoss] - Issues with scoped classloader
by tnine
Hi All,
I'm receiving strange ClassCastExceptions due to class loader issues in JBoss 4.0.2, I try to turn off parent delegation. According to the post here
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration
"Use the following constructs to enabled scoped class loading with the deployment classes overriding the server classes."
I have the following jboss-app.xml
| <jboss-app>
| <loader-repository>
| statements.purdueefcu.com:loader=statments-1.0.0-SNAPSHOT
| <loader-repository-config>
| java2ParentDelegation=false
| </loader-repository-config>
| </loader-repository>
| </jboss-app>
|
However, I still receive these errors. Whenever I run our POJO code in our integration tests, everything works perfectly. Once I package it up into an ear and deploy in JBoss, I start to see these issues. Specifically it seems to be a hibernate issue with annotations. I'm including the annotations version 3.3.0 ga, and hibernate version 3.2.4.sp1. It seems that either I'm missing a library in the include, or JBoss is not loading my classes first. Is my jboss-app.xml correct?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068893#4068893
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068893
18Â years, 8Â months
[JBoss Seam] - Target Unreachable error w/ Seam 2.0.0.Beta1?
by cupdike
Using Seam 2.0.0.Beta1 on JBoss AS 4.2, I generated my app using seam-gen. The list page for one of my entities, PpPemsItemMv, loads just fine and shows the table contents. However, when I try to filter using a search parameter, it blows up with the error below regarding "Target Unreachable".
Googling this via "seam target unreachable" finds several folks that had this error, but no obvious solution. Several folks suggested it was a configuration problem, but I'm using seam-gen which otherwise produces solid working examples (so I'm not sure what would be misconfigured).
Help appreciated. Thanks, Clark
16:02:12,972 WARN [lifecycle] /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsItemMv
| huapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
| javax.el.PropertyNotFoundException: /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsI
| edu.jhuapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
| at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
| at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:81)
| at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
| at javax.faces.component.UIInput.validate(UIInput.java:860)
| at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
| at javax.faces.component.UIInput.processValidators(UIInput.java:666)
| at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
| at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
| at javax.faces.component.UIForm.processValidators(UIForm.java:229)
| at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
| at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.access$201(AjaxViewRoot.java:53)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:315)
| at org.ajax4jsf.framework.ajax.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:53)
| at org.ajax4jsf.framework.ajax.AjaxContext.invokeOnRegionOrRoot(AjaxContext.java:191)
| at org.ajax4jsf.framework.ajax.AjaxViewRoot.processValidators(AjaxViewRoot.java:329)
| at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
| at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
| at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068892#4068892
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068892
18Â years, 8Â months
[JBoss Portal] - Re: Unable to Access a preference values from portlet-instan
by shanportal
Thanks a lot for you time and help. Please find below the xml file and the code. I am using jboss 4.2.0 GA and portal 2.6
Note: Some of the Element Names are Stripped in the display. I do not know why
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">
CMS Render Portlet
<portlet-name>CMSRender</portlet-name>
<display-name>CMS Render Portlet</display-name>
<portlet-class>com.portlet.PlainRenderPortlet</portlet-class>
<portlet-info>
CMS Renderer Title
</portlet-info>
<mime-type>text/html</mime-type>
<portlet-mode>VIEW</portlet-mode>
<portlet-mode>EDIT_CONTENT</portlet-mode>
<portlet-preferences>
path
/Company Home/highlights/sales.html
</portlet-preferences>
</portlet-app>
portlet-instances.xml
================================================
<?xml version="1.0" standalone="yes"?>
<!DOCTYPE deployments PUBLIC
"-//JBoss Portal//DTD Portlet Instances 2.6//EN"
"http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd">
<instance-id>cmsrenderInstance</instance-id>
<portlet-ref>CMSRender</portlet-ref>
path
/Company Home/highlights/Manager.tml
-object.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE deployments PUBLIC
"-//JBoss Portal//DTD Portal Object 2.6//EN"
"http://www.jboss.org/portal/dtd/dtd/portal-object_2_6.dtd">
<parent-ref>default</parent-ref>
<if-exists>overwrite</if-exists>
<instance-name>cmsrenderInstance</instance-name>
<component-ref>CMSRenderer.CMSRender</component-ref>
<parent-ref>default</parent-ref>
<if-exists>overwrite</if-exists>
<page-name>CMSRenderPage</page-name>
<window-name>cmsrenderWindow</window-name>
<instance-ref>cmsrenderInstance</instance-ref>
true
center
0
Portlet Code:
protected void doView(RenderRequest rReq, RenderResponse rRes) throws PortletException, PortletSecurityException, IOException{
rRes.setContentType("text/html");
PrintWriter writer = rRes.getWriter();
try{
String path=rReq.getPreferences().getValue("path", "/Company Home/highlights/default.html");
System.out.println("Path:"+path);
/*
I am doing my stuff here after getting the path from the peference.
*/
writer.println(getHtml());
}
catch(Exception e){
e.printStackTrace();
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068888#4068888
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068888
18Â years, 8Â months