[JBoss Portal] - Portal Login
by jkoek
Hello,
I'm using a JSPPortlet with contains a form with the login credentials.
This portlet runs on a portal page on a different portal then the default portal.
/portal/portal/MyPortal/Home for instance
When I submit the form the portal/Tomcat complains with the following error;
HTTP Status 400 - Invalid direct reference to form login page
The reason why I want to use this way of login in, is that I don't want to change another package in the deployment set (web.xml in portal-server.war).
Because my deployment must be able to run on different portals or integrate with my customers portal.
Where my customer has it's own login modules.
I can check with the JSPPortlet if a user is logged on, if that is the case I don't have to show the login dialog but can so a welcome message.
Underneath the jsp content of the jsp file I'm using to log;
<center>
| <div id="login-container" style="width:250px" >
| <fieldset>
| <legend>Login</legend>
| <form method="POST" action="<%= response.encodeURL("/portal/j_security_check") %>" id="loginForm" >
| <label for="username">Username:</label><input type="text" name="j_username" id="username" value=""/><br>
| <label for="password">Password:</label><input type="password" name="j_password" id="password" value=""/><br>
| <br>
| <input type="submit" id="loginButton" name="login" value="Login"/>
| </form>
| </fieldset>
| </div>
| </center>
Does anyone have a clue what I'm doing wrong?
Thanks in advance,
Jeroen.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967492#3967492
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967492
19 years, 8 months
[EJB 3.0] - Hashing local homes in a stateful session bean
by urswag
I use a hash map in my stateful session bean to store the local home references. Is this not allowed? I get this exeception!
anonymous wrote :
|
| Caused by: javax.ejb.EJBException: Application Error: no concurrent calls on stateful beans
| at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:71)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:190)
| at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
| at $Proxy334.setAssortId(Unknown Source)
| at org.flohmarkt.web.WelcomePage.goLeftAssortment(WelcomePage.java:126)
| 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.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
| ... 27 more
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967481#3967481
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967481
19 years, 8 months
[JBoss Seam] - Re: EntityManager newibe Question
by mrohad
here are how I define the EM:
| @PersistenceContext(unitName="globalEM")
| private transient EntityManager em;
|
here is xml
| <persistence>
| <persistence-unit name="globalEM">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/DefaultDS</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="validate"/>
| <property name="hibernate.show_sql" value="true"/>
| <!-- These are the default for JBoss EJB3, but not for HEM: -->
| <property name="hibernate.cache.provider_class" value="org.hibernate.cache.HashtableCacheProvider"/>
| <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/selectItemsEntityManagerFactory"/>
| <property name="jboss.entity.manager.jndi.name" value="java:/selectItemsEntityManager"/>
| </properties>
| </persistence-unit>
| </persistence>
I am getting null pointer exception
while using em.find(...)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3967480#3967480
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3967480
19 years, 8 months