[JBoss-user] [EJB 3.0] - Re: Cannot get connection to Progress 10.0B DB

2006-06-26 Thread jatsrt
Since EJB is more Hibernate based, it being in the standardjboss.xml is less 
important.  I have not use dit, but is there a dialect available for it?

Also, if you have a proper driver and a proper connection URL(see your driver's 
documantation) it should at least start up.  The mapping is only used later.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953459#3953459

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953459

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB 3.0] - Re: Cannot get connection to Progress 10.0B DB

2006-06-26 Thread jatsrt
Does nobody want to point out that Progress DB 10 is NOT PostgreSQL 8



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953434#3953434

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953434

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: Error Loading RolePortlet

2006-06-05 Thread jatsrt
So here is the offending piece of code:

Session session = getCurrentSession();
Query query = session.createQuery("select count(g.id) from RoleImpl as g");
return ((Integer) query.uniqueResult()).intValue();


The org.hibernate.Query.uniqueResult() returns an object, which appears to be 
coming across as a Long.  

I am using EJB3 which uses a newer hibernate, is that possibly the problem?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949176#3949176

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949176


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Error Loading RolePortlet

2006-06-05 Thread jatsrt
I am running JBoss 4.0.4GA and Portal 2.2.1SP1

When I go into management I get the following error, I have also tried to 
remove and recreate the portlet instance and I get the same thing.  Also, this 
is with a freshly created database.

Any thought why?

14:23:08,736 ERROR [RolePortlet] The portlet threw an exception
java.lang.ClassCastException: java.lang.Long
at 
org.jboss.portal.core.impl.role.RoleModuleImpl.getRolesCount(RoleModuleImpl.java:343)
at sun.reflect.GeneratedMethodAccessor491.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.AttributeDispatcher.invoke(AttributeDispatcher.java:99)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at 
org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor.invoke(ModelMBeanAttributeInterceptor.java:197)
at 
org.jboss.mx.interceptor.PersistenceInterceptor.invoke(PersistenceInterceptor.java:76)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at 
org.jboss.mx.server.AbstractMBeanInvoker.getAttribute(AbstractMBeanInvoker.java:362)
at 
org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:556)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:140)
at $Proxy128.getRolesCount(Unknown Source)
at 
org.jboss.portal.core.portlet.role.RolePortlet.getNbRolesString(RolePortlet.java:658)
at 
org.jboss.portal.core.portlet.role.RolePortlet.doView(RolePortlet.java:157)
at org.jboss.portlet.JBossPortlet.doDispatch(JBossPortlet.java:230)
at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:217)
at org.jboss.portlet.JBossPortlet.render(JBossPortlet.java:360)
at 
org.jboss.portal.portlet.PortletContainer.invokeRender(PortletContainer.java:521)
at 
org.jboss.portal.portlet.PortletContainer.dispatch(PortletContainer.java:433)
at 
org.jboss.portal.server.app.ComponentInvocation.dispatch(ComponentInvocation.java:79)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:140)
at 
org.jboss.portal.core.aspects.component.TransactionInterceptor.invoke(TransactionInterceptor.java:72)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.core.aspects.component.HeaderInterceptor.invoke(HeaderInterceptor.java:50)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.server.aspects.component.NavigationInterceptor.invoke(NavigationInterceptor.java:76)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.server.aspects.component.CacheInterceptor.invoke(CacheInterceptor.java:167)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.server.aspects.component.ModesInterceptor.invoke(ModesInterceptor.java:88)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.server.aspects.component.WindowStatesInterceptor.invoke(WindowStatesInterceptor.java:87)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.portlet.aspects.component.SessionPostDispatchInterceptor.invoke(SessionPostDispatchInterceptor.java:65)
at 
org.jboss.portal.server.app.ComponentInterceptor.invoke(ComponentInterceptor.java:38)
at 
org.jboss.portal.server.invocation.Invocation.invokeNext(Invocation.java:130)
at 
org.jboss.portal.server.aspects.component.ContextDispatcherInterceptor$InvokeNextCommand.execute(ContextDispatcherInterceptor.java:129)
at sun.reflect.GeneratedMethodAccessor273.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:

[JBoss-user] [JBoss Portal] - Re: Error Loading RolePortlet

2006-06-05 Thread jatsrt
Thanks for the reply
I just finally hunted down the problem

EJB3.0 spec says count(*) must return Long.  So, hibernate changed this for 3.2 
to match the EJB3 SPEC.

Looks like 2.4 and probably what you mentioned above has this change to 
compensate for the problem.
return ((Number)query.uniqueResult()).intValue();


Thanks

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949187#3949187

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949187


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: JBoss AS 4.04.GA and Portal 2.2.1 deployment

2006-05-24 Thread jatsrt
Ignore me, I now see that SP1 is available and looks to solve the problem. 
Sorry for wasting time.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946228#3946228

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946228


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Re: JBoss AS 4.04.GA and Portal 2.2.1 deployment

2006-05-24 Thread jatsrt
Any follow up on this.

I am trying to use
JBoss 4.0.4GA
JBoss Portal 2.2.1
EJB3

And I am getting:
2:49:41,463 WARN  [ServiceController] Problem starting service 
portal:service=Hibernate,type=globalinstance
org.jboss.portal.common.transaction.NestedException: 
org.hibernate.cache.CacheException: Attempt to restart an already started 
EhCacheProvider. Use sessionFactory.close()  between repeated calls to 
buildSessionFactory. Consider using 
net.sf.ehcache.hibernate.SingletonEhCacheProvider. Error from  ehcache was: 
Cannot parseConfiguration CacheManager. Attempt to create a new instance of 
CacheManager using the diskStorePath "/tmp" which is already used by an 
existing CacheManager. The source of the configuration was classpath.
at 
org.jboss.portal.common.transaction.Transactions.apply(Transactions.java:233)

I have upgraded ehcache to version 1.2



With the current portal exchache lib I get:
12:58:38,826 WARN  [ServiceController] Problem starting service 
portal:service=Hibernate,type=globalportal
java.lang.IllegalAccessError: tried to access method 
net.sf.ehcache.CacheManager.()V from class org.hibernate.cache.EhCacheProvider
at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)

So stuck either way.

Any help would be appreciated, perhaps a patch to get it to work correctly?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946227#3946227

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946227


---
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Portal] - Portal 2.2.1RC3 and EnterpriseDB

2006-04-07 Thread jatsrt
It works and it doesn't.  Any suggestions.

I am using EnterpriseDB 8.1 with their JDBC driver.  I setup the ds with 
com.edb.Driver and the correct connection string.

I modify the hibernate.cfg.xml files to use the PostgreSQL dialect.  Then 
modify the portal-cms.sar/META-INF/jboss-service.xml to set the dialects in 
there.  However I keep getting the following error.  However if I use the 
postgres jdbc driver everything works great.  Should this be reported as a bug?

14:12:54,621 INFO  [Configuration] Reading mappings from resource: 
org/jboss/portal/cms/hibernate/CMSEntry.hbm.xml
14:12:54,665 INFO  [HbmBinder] Mapping class: 
org.jboss.portal.cms.hibernate.CMSEntry -> jbp_cms_cmsentry
14:12:54,666 INFO  [Configuration] Reading mappings from resource: 
org/jboss/portal/cms/hibernate/VersionEntry.hbm.xml
14:12:54,708 INFO  [HbmBinder] Mapping class: 
org.jboss.portal.cms.hibernate.VersionEntry -> jbp_cms_versionentry
14:12:54,711 INFO  [Configuration] Reading mappings from resource: 
org/jboss/portal/cms/hibernate/RepositoryEntry.hbm.xml
14:12:54,806 INFO  [HbmBinder] Mapping class: 
org.jboss.portal.cms.hibernate.RepositoryEntry -> jbp_cms_repositoryentry
14:12:54,807 INFO  [Configuration] processing extends queue
14:12:54,807 INFO  [Configuration] processing collection mappings
14:12:54,807 INFO  [Configuration] processing association property references
14:12:54,808 INFO  [Configuration] processing foreign key constraints
14:12:54,809 INFO  [NamingHelper] JNDI InitialContext properties:{}
14:12:54,809 INFO  [DatasourceConnectionProvider] Using datasource: 
java:PortalDS
14:12:54,810 INFO  [SettingsFactory] RDBMS: EnterpriseDB 2005, version: 8.1.3.12
14:12:54,810 INFO  [SettingsFactory] JDBC driver: EnterpriseDB Native Driver, 
version: EnterpriseDB 8.1.3.12
14:12:54,811 ERROR [HibernateStore] failed to initialize file system
org.hibernate.HibernateException: Hibernate Dialect must be explicitly set for 
database: EnterpriseDB 2005
at 
org.hibernate.dialect.DialectFactory.determineDialect(DialectFactory.java:62)
at 
org.hibernate.dialect.DialectFactory.buildDialect(DialectFactory.java:39)
at 
org.hibernate.cfg.SettingsFactory.determineDialect(SettingsFactory.java:378)
at 
org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:110)
at 
org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1823)
at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1143)
at 
org.jboss.portal.cms.hibernate.HibernateStore.init(HibernateStore.java:251)
at 
org.apache.jackrabbit.core.config.FileSystemConfig.init(FileSystemConfig.java:55)
at 
org.apache.jackrabbit.core.config.WorkspaceConfig.init(WorkspaceConfig.java:81)
at 
org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:249)
at 
org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:128)
at 
org.jboss.portal.cms.impl.jcr.jackrabbit.JackrabbitJCRService.start(JackrabbitJCRService.java:101)
at org.jboss.portal.cms.impl.jcr.JCRCMS.startJCR(JCRCMS.java:233)
at org.jboss.portal.cms.impl.jcr.JCRCMS.startService(JCRCMS.java:199)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:181)
at 
org.jboss.portal.common.system.AbstractJBossService.start(AbstractJBossService.java:86)
at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:960)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:428)
at org.jboss.system.ServiceController.start(ServiceController.java:446)
at org.jboss.system.ServiceController.start(ServiceController.java:446)
at org.jboss.system.ServiceController.start(ServiceController.java:446)
at org.jboss.system.ServiceController.start(ServiceController.java:446)
at sun.reflect.GeneratedMethodAcce

[JBoss-user] [Persistence & CMP/JBoss] - Definative JBOSS-QL Definition

2004-04-08 Thread jatsrt
Hi,
I am looking for the definative list of supported JBOSS-QL functions for a particular 
version of JBoss.
Currently I am using JBoss 3.2.  The AdminDevel guide does not have the supported 
functions.  The old CMP 2.0 doc has the JBoss-QL definition in it, but from the forums 
that seems out of date.  
What is the best way to know what is supported with JBOSS-QL.


Thanks

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829792#3829792

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829792


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Order By and JBOSS-QL

2004-04-08 Thread jatsrt
I am using JBoss 3.2.2 and MySQL 4.0.18

I I run this query
SELECT OBJECT(o) from Table o WHERE o.blah.id = ?1 ORDER BY o.meef.foo.id

It does not seem to joint correctly and generates a full cartesian product of the 
tables. 

However, if I do:
SELECT OBJECT(o) from Table o WHERE o.blah.id = ?1 AND o.meef.ORDER BY o.meef.foo.id

The query runs normally and returns the expected results.
Has anyone else seen this behavior and if sho what have they done about it?

Thanks,
Jake T.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829783#3829783

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829783


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Order By and JBOSS-QL

2004-04-08 Thread jatsrt
Sorry did not wat to come up right, here it is again

SELECT OBJECT(o) from Table o WHERE o.blah.id = ?1 AND o.meef.id < > -1 ORDER BY 
o.meef.foo.id 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3829784#3829784

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3829784


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user