[JBoss Portal] - findUserByUserName Problem
by djmacpac
Hi,
when i try to find a User on this way:
| User user = userModule.findUserByUserName(UserName);
|
i get following error:
Caused by: java.lang.reflect.InvocationTargetException
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.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:400)
... 274 more
Caused by: java.lang.ClassCastException: org.jboss.portal.identity.db.UserImpl
at $Proxy148.findUserByUserName(Unknown Source)
at TreeBacker.check_access(TreeBacker.java:100)
at TreeBacker.get_tree_rek(TreeBacker.java:139)
at TreeBacker.getTreeData(TreeBacker.java:232)
... 279 more
Can anybody help me? Do I need to work with Transactions? If yes, how does this work?
I want to user the User to get his Role...
thx
Marc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988879#3988879
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988879
19Â years, 5Â months
[JBoss Seam] - IceFaces & Seam 1.1CR1 -> <h:dataTabe problem...
by sherkan777
Hi All,
I have page with <h:dataTable "Person" of objects
Person has: id, name, surename, etc.
| @Stateful
| @Name("sampleAction")
| @Scope(ScopeType.CONVERSATION)
| public class SampleAction implements SampleConsole {
| public SampleAction() {}
|
| @In(scope=ScopeType.SESSION, value="person", required=false)
| private Person person;
| @PersistenceContext
| private EntityManager em;
| @DataModel
| private List<Person> personList;
| @DataModelSelection
| private Person selectedPerson;
|
And page:
| <h:dataTable id="personsTable"
| rows="20"
| var="person"
| value="#{personList}"
| style="border: none; width: 100%;"
| cellpadding="0"
| cellspacing="0">
| <ice:column>
| <f:facet name="header">
| <h:outputText value="myHead"/>
| </f:facet>
| <h:outputText value="#{person.name}"/>
| <s:link value="#{person.topic}" action="#{sampleAction.selectPerson}"/>
| </h:column>
|
Everythink works fine, when I open page i see name of all persons (16rows).
Today I've changed Seam 1.1 Beta to 1.1CR1. (I want to use IceFaces).
I've changed web.xml, and faces-config.xml as in example "icefaces", and when I started my project I saw, nothing! :/
I see dattable with 16 rows, but there where should be a person's name there is clear area with nothink. I have no errors on Jboss console.
Here's my web.xml
| <?xml version="1.0" ?>
| <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
| version="2.4">
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <!--
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
| -->
| <!-- Tomahawk-->
| <filter>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
| <init-param>
| <param-name>maxFileSize</param-name>
| <param-value>20m</param-value>
| </init-param>
| </filter>
|
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
| <!-- /Tomahawk -->
|
|
| <filter>
| <filter-name>Seam Exception Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Exception Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <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>
|
| <context-param>
| <param-name>com.icesoft.faces.actionURLSuffix</param-name>
| <param-value>.seam</param-value>
| </context-param>
|
| <context-param>
| <param-name>com.icesoft.faces.synchronousUpdate</param-name>
| <param-value>true</param-value>
| </context-param>
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet>
| <servlet-name>Blocking Servlet</servlet-name>
| <servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
| <load-on-startup> 1 </load-on-startup>
| </servlet>
|
| <servlet>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>/xmlhttp/*</url-pattern>
| </servlet-mapping>
|
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>/xmlhttp/*</url-pattern>
| </servlet-mapping>
|
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>*.iface</url-pattern>
| </servlet-mapping>
|
| <!-- Blocking Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Blocking Servlet</servlet-name>
| <url-pattern>/block/*</url-pattern>
| </servlet-mapping>
|
| <!-- Faces Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Persistent Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
| <!-- MyFaces -->
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
|
| <servlet>
| <servlet-name>Seam Remoting</servlet-name>
| <servlet-class>org.jboss.seam.remoting.SeamRemotingServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>Seam Remoting</servlet-name>
| <url-pattern>/seam/remoting/*</url-pattern>
| </servlet-mapping>
|
| <!--
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping> -->
|
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
| </context-param>
| </web-app>
|
and faces-config.xml:
| <?xml version='1.0' encoding='UTF-8'?>
|
| <!DOCTYPE faces-config PUBLIC
| "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
| "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
|
| <faces-config>
| <application>
| <view-handler>com.icesoft.faces.facelets.D2DSeamFaceletViewHandler</view-handler>
| </application>
|
|
| <!--
| <application>
| <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
| </application> -->
|
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>
| </lifecycle>
|
| <application>
| <message-bundle>messages</message-bundle>
| <locale-config>
| <default-locale>pl</default-locale>
| <supported-locale>en</supported-locale>
| </locale-config>
| </application>
|
| <navigation-rule>
| <navigation-case>
| <from-outcome>home</from-outcome>
| <to-view-id>/home.xhtml</to-view-id>
| <redirect />
| </navigation-case>
| </navigation-rule>
| </faces-config>
|
I've changed <h:datatable to <ice:datatable, <ice:column and <ice:outputText but still nothing.
Can anyone tell me why I see nothing on my table after migration to seam 1.1CR1.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988876#3988876
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988876
19Â years, 5Â months
[Installation, Configuration & Deployment] - Incidental class loading problems
by ruediger_e
Hi,
Since about 3 weeks we have severe class loading problems with jBoss 3.2.7.
When you restart jBoss with THE SAME EAR Files applications sometimes run without problems and sometimes they don't. When they have problems you'll get an NoClassDefFoundError.
So for example there's a class named ResourceLoader which is in a JAR file of an EAR file. Sometimes the Classloader doesn't find this class and writes a NoClassDefFoundError into the log file. Then you restart the server and everything runs fine. But then you get another NoClassDefFoundError in a different application.
I'm quite sure that those exceptions only happen with classes packaged in JAR files inside an EAR file.
My suspicion is that we've reached some limit of jBoss. We run 14 EAR files and some EAR file became quite large. These applications are deployed on 2 production instances (which run in a cluster) and on 2 identical test instances. The problems are nearly the same.
Does anyone have an idea?
Thanks a lot!
Rüdiger Engelberger
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988872#3988872
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988872
19Â years, 5Â months