[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-12 Thread natoine
Thanks for your time. It works fine. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181686#4181686 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181686 ___ jboss-user mailin

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread bvogt
you need to have a portlet/transaction definition in the jboss-portlet.xml (as mentioned abaove) in which the 'portlet-name' corresponds to the name defined in the portet.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181571#4181571 Reply to the post :

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread natoine
hum. I have stopped my JBoss et launchd it again. Error is not the same: anonymous wrote : ERROR [HibernateUserModuleImpl] Cannot count users | org.hibernate.HibernateException: Unable to locate current JTA transaction | at org.hibernate.context.JTASessionContext.currentSession(JTASe

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread natoine
Well no problem for deployment but when i do userModule.getUserCount(); I have an error in konsole. Last message of this error : anonymous wrote : INFO [WebappClassLoader] Illegal access: this web application instance has been stopped already. Could not load org/apache/axis/configuration/Engi

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread bvogt
sorry, name it: jboss-portlet.xml View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181496#4181496 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181496 ___ jboss-user mailing li

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread bvogt
web.xml is not meant, but jboss-web.xml instead - just create one. It resides in WEB-INF too. Try this one: | | | UserAdminPortlet | | Required | | | | UserModule | org.jboss.portal.identity.UserModule | :service=Module,type=User |

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread natoine
Ok now i deploy without problems but i still have my nullpointerexception... My jboss-web.xml : | | | UserModule | org.jboss.portal.identity.UserModule | :service=Module,type=User | | View the original post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread natoine
Well i don't find any tutoriels... I have the following error when trying to deploy : anonymous wrote : Failed to parse WEB-INF/jboss-web.xml; - nested throwable: (org.jboss.deployment.DeploymentException: expected one service-ref-name tag) View the original post : http://www.jboss.com/index.h

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread natoine
well my web.xml file was really simple : | 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";> | Portlet for testing usermodule | | I have

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread [EMAIL PROTECTED]
You can get userModule by modifying your jboss-web.xml to add UserModule | org.jboss.portal.identity.UserModule | :service=Module,type=User Then you can get it in your portlet by calling userModule = (UserModule)getPortletContext().getAttribute("UserModule"); View the ori

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread natoine
Yep it's done. Now i have a NullPointerException cause my userModule is null. I have tested my context and i don't have an attribute "userModule" define. thanks for your time View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181452#4181452 Reply to the post :

[jboss-user] [JBoss Portal] - Re: how to develop a JBossPortlet?

2008-10-10 Thread bvogt
try removing the jar files (as mentioned below) from your deployment file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181447#4181447 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181447