[JBoss jBPM] - Re: Help with Timers
by gygerl
Hi.
Got the same problem.
I changed config in file "default.jbpm.cfg.xml"
| <string name="resource.hibernate.cfg.xml" value="oracle/hibernate.cfg.xml" />
|
and it worked.
Got another error so :
| 17:12:37,667 [JbpmScheduler] INFO ConnectionProviderFactory : Initializing connection provider: org.hibernate.connection.DatasourceConnectionProvider
| 17:12:37,682 [JbpmScheduler] INFO NamingHelper : JNDI InitialContext properties:{}
| 17:12:37,713 [JbpmScheduler] FATAL DatasourceConnectionProvider : Could not find datasource: java:/OracleDS
| javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
| at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
| at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
| at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284)
| at javax.naming.InitialContext.lookup(InitialContext.java:351)
| at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52)
| at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124)
| at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56)
| at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:366)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
| at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1859)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1152)
| at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
| at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
| at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
| at org.jbpm.persistence.db.DbPersistenceService.getSchedulerSession(DbPersistenceService.java:243)
| at org.jbpm.JbpmContext.getSchedulerSession(JbpmContext.java:425)
| at org.jbpm.scheduler.impl.SchedulerThread.executeTimers(SchedulerThread.java:103)
| at org.jbpm.scheduler.impl.SchedulerThread.run(SchedulerThread.java:70)
|
any idea ?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978574#3978574
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978574
19 years, 8 months
[JBoss Portal] - Re: getPreferences with JSF portlet
by franco12
ok thanks for your help Thomas :)
I removed "extends GenericPortlet" and the doView method
and I updated getSupprimer() like this
| import javax.portlet.PortletPreferences;
| import javax.portlet.PortletSecurityException;
| import javax.portlet.RenderRequest;
| import javax.portlet.RenderResponse;
| import javax.portlet.PortletException;
| import java.io.IOException;
|
| public class MDP_contribution_consultation
| {
| String consulter="ok";
| String supprimer;
| private String init="false";
|
| public String getConsulter()
| {
| return consulter;
| }
|
| public void setConsulter(String consulter)
| {
| this.consulter = consulter;
| }
|
| public String getSupprimer(RenderRequest request, RenderResponse response) throws PortletException, PortletSecurityException, IOException
| {
| PortletPreferences prefs = request.getPreferences();
| String parameter = prefs.getValue("edit",init);
| if (parameter.equals("true"))
| {
| return "ok";
| }
| else
| {
| return "pas ok";
| }
| }
|
| public void setSupprimer(String supprimer)
| {
| this.supprimer = supprimer;
| }
| }
|
now I'm having this error
An error occured while rendering window 'default.MaPage.contrib'
|
| org.apache.jasper.JasperException: Bean: MDP_contribution_consultation, property: supprimer
my portlet.xml has a jsp page as an init parameter, like this
<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>
| <portlet-name>MDP_contribution_consultation</portlet-name>
| <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
| <portlet-info>
| <title>MDP_contribution_consultation</title>
| </portlet-info>
| <init-param>
| <name>default-view</name>
| <value>/WEB-INF/jsp/view.jsp</value>
| </init-param>
| <init-param>
| <name>suppression_init</name>
| <value>false</value>
| </init-param>
| <portlet-preferences>
| <preference>
| <name>edit</name>
| <value>true</value>
| </preference>
| </portlet-preferences>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| </supports>
| </portlet>
| </portlet-app>
|
regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978565#3978565
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978565
19 years, 8 months