<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Need help running Jboss portal 2.7.2 with oracle XE
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/anand9722">anand9722</a> in <i>JBoss Portal</i> - <a href="http://community.jboss.org/message/589901#589901">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I downloaded and installed Jboss portal 2.7.2, created a database user with appropriate permission.</p><p>Changed the hibernate dialect to oracle 10g and database driver to oracle.jdbc.OracleDriver.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>However I am getting the below exception when starting jboss:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>13:11:42,171 ERROR [MainDeployer] Could not initialise deployment: file:/D:/jboss-portal-2.7.2/server/default/deploy/jboss-portal.sar/portal-wsrp.sar/default-wsrp.xml</p><p>org.jboss.deployment.DeploymentException: Failed to parse source: Couldn't create Consumer 'self'; - nested throwable: (org.jboss.xb.binding.JBossXBException: Failed to parse source: Couldn't create C</p><p>onsumer 'self')</p><p>        at org.jboss.portal.wsrp.deployment.WSRPDeployer.init(WSRPDeployer.java:111)</p><p>        at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)</p><p>        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)</p><p>        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)</p><p>..............</p><p>Caused by: org.hibernate.exception.SQLGrammarException: could not get next sequence value</p><p>        at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)</p><p>        at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)</p><p>        at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:96)</p><p>        at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:99)</p><p>        at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)</p><p>        at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)</p><p>        at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)</p><p>        at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:618)</p><p>        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:592)</p><p>        at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:596)</p><p>        at org.jboss.portal.wsrp.consumer.ConsumerRegistryService.org$jboss$portal$wsrp$consumer$ConsumerRegistryService$createConsumer$aop(ConsumerRegistryService.java:95)</p><p>        ... 168 more</p><p>Caused by: java.sql.SQLSyntaxErrorException: ORA-02289: sequence does not exist</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I tried to create the sequences manuall using the below command but it was no good:</p><p>create sequence hibernate_sequence;</p><p>create sequence portal_seq; </p><p>create sequence sec_seq; </p><p>create sequence instance_seq;</p><p>create sequence portlet_seq;</p><p>create sequence user_seq;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Below is the portal-oracle-ds.xml entries</p><p><datasources></p><p>  <local-tx-datasource></p><p>    <jndi-name>PortalDS</jndi-name></p><p>    <connection-url>jdbc:oracle:thin:jbossportal/jbossportal@localhost:1521/XE</connection-url></p><p>    <driver-class>oracle.jdbc.OracleDriver</driver-class></p><p>    <user-name>jbossportal</user-name></p><p>    <password>jbossportal</password></p><p>  </local-tx-datasource></p><p></datasources></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>and these are the SQL statements I used to create the user for Jboss portal:</p><p>create user jbossportal identified by jbossportal;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>create temporary tablespace jboss_portal_temp tempfile 'C:\oraclexe\oradata\XE\jboss_portal_temp.dbf' SIZE 200M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE UNLIMITED;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>create tablespace jboss_portal_sys datafile 'C:\oraclexe\oradata\XE\jboss_portal_sys.dbf' size 200M reuse autoextend on next 5120k maxsize unlimited;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>ALTER USER jbossportal temporary tablespace jboss_portal_temp default tablespace jboss_portal_sys quota unlimited on jboss_portal_sys;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p> GRANT CREATE SESSION TO jbossportal;</p><p> GRANT ALTER ANY TABLE to jbossportal;</p><p> GRANT SELECT ANY TABLE to jbossportal;</p><p> GRANT UPDATE ANY TABLE to jbossportal;</p><p> GRANT DROP ANY TABLE to jbossportal;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>GRANT CREATE ANY SEQUENCE to jbossportal;</p><p>GRANT ALTER ANY SEQUENCE to jbossportal;</p><p>GRANT DROP ANY SEQUENCE to jbossportal;</p><p>GRANT SELECT ANY SEQUENCE to jbossportal;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>and I have placed ojdbc6.jar in JBOSS_HOME\server\default\lib folder....</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Any idea where I am going wrong ? Any help would greatly be appreciated,</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/589901#589901">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Portal at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2011">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>