[JBoss-user] [JCA/JBoss] - JBoss and Hibernate - mapping of classes to connections
I am using Hibernate 3.x. I am working on an application that uses data from three different databases (in dev, also on the same server, but prod could be different servers). Anyway, so far so good but I do not grasp just how Hibernate knows (if it does at all) that entity class X is to be found on connection Y. Since the configuration xml file doesn't list the entities related to the connection, are they automatically related to all Hbm connections? Is there no way to relate the objects? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955978#3955978 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955978 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Re: JBoss and Hibernate - mapping of classes to connections
Sorry about the wrong forum; Sybase 12.x. I have several dozen hbm.xml files for each entity class, and one hibernate-service.xml file (below). I found an old document (somewhere that showed (maybe in Hibenate 2.x and pre-JBoss AS 4) the various entities linked to a specific connection but trying that generated an error). The Hibernate engine during configuration, seems to read each hbm.xml file N times - one for each SessionFactory defined below. Seems to be a bit of a waste considering some don't belong on certain ones...? ?xml version=1.0 encoding=UTF-8? !-- datasource settings -- java:/applicationSecurity org.hibernate.dialect.SybaseDialect !-- bind the hibernate service to jndi -- java:/hibernate/SfApplicationSecurity org.hibernate.cache.HashtableCacheProvider !-- logging -- true !-- datasource settings -- java:/working org.hibernate.dialect.SybaseDialect !-- bind the hibernate service to jndi -- java:/hibernate/SfWorking org.hibernate.cache.HashtableCacheProvider !-- logging -- true !-- datasource settings -- java:/common org.hibernate.dialect.SybaseDialect !-- bind the hibernate service to jndi -- java:/hibernate/SfCommon org.hibernate.cache.HashtableCacheProvider !-- logging -- true !-- datasource settings -- java:/employeeWarehouse org.hibernate.dialect.SybaseDialect !-- bind the hibernate service to jndi -- java:/hibernate/SfEmployeeWarehouse org.hibernate.cache.HashtableCacheProvider !-- logging -- true View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955985#3955985 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955985 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Re: JBoss and Hibernate - mapping of classes to connections
If by move it there you are referring to the Hibernate.org site, that isn't an option. They have NO documentation on using it from JBoss as a AS service. Is there a particular forum here for this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955988#3955988 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955988 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - linking hbm entities to specific session factories in the hi
I am using Hibernate 3.x. I am working on an application that uses data from three different databases (in dev, also on the same server, but prod could be different servers). Anyway, so far so good - I have created Hbm SF's linked to the different JBoss connection pools. But I do not grasp just how Hibernate knows (if it does at all) that entity class X is to be found on connection Y. Since the configuration xml file doesn't list the entities related to the connection, are they automatically related to all Hbm connections? Is there no way to relate the objects explicitly? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3955994#3955994 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3955994 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - New Install of AS Portal - Immediate Error on Boot
Unzipped as 4040ga, patched it. System boots and I get the default server page. Unzipped the portal 2.2.1 archive. Moved the jboss-portal.sar folder and the portal-mysql-ds.xml file (which I edited as appropriate). During the portal startup: 2006-05-31 13:24:27,281 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/C:/Dev/jboss404ga/server/default/deploy/jboss-portal.sar/ 2006-05-31 13:24:27,281 DEBUG [org.jboss.system.ServiceCreator] About to create xmbean object: portal:service=ServerConfig with code: org.jboss.portal.server.config.ServerConfigService with descriptor: org/jboss/portal/server/config/ServerConfigService.xml 2006-05-31 13:24:27,343 DEBUG [org.jboss.system.ServiceCreator] Created bean: portal:service=ServerConfig 2006-05-31 13:24:27,343 DEBUG [org.jboss.system.ServiceConfigurator] ConfigLocation set to conf/config.xml in portal:service=ServerConfig 2006-05-31 13:24:27,343 DEBUG [org.jboss.system.ServiceCreator] About to create xmbean object: jboss.security:service=JaccPolicyProvider with code: org.jboss.portal.security.impl.jacc.PortalJaccPolicy with descriptor: org/jboss/portal/security/impl/jacc/PortalJaccPolicy.xml 2006-05-31 13:24:27,375 DEBUG [org.jboss.system.ServiceCreator] Created bean: jboss.security:service=JaccPolicyProvider 2006-05-31 13:24:27,375 DEBUG [org.jboss.system.ServiceConfigurator] ExternalPermissionTypes set to [Ljava.lang.Class;@c22a3b in jboss.security:service=JaccPolicyProvider 2006-05-31 13:24:27,375 DEBUG [org.jboss.system.ServiceCreator] About to create xmbean object: portal:service=SecurityProvider with code: org.jboss.portal.security.impl.jacc.JBossSecurityProviderImpl with embedded descriptor 2006-05-31 13:24:27,390 DEBUG [org.jboss.mx.server.AbstractMBeanInvoker] Setter not found: setObjectName(class javax.management.ObjectName) java.lang.NoSuchMethodException: org.jboss.portal.security.impl.jacc.JBossSecurityProviderImpl.setObjectName(javax.management.ObjectName) at java.lang.Class.getMethod(Class.java:1581) at org.jboss.mx.server.AbstractMBeanInvoker.inject(AbstractMBeanInvoker.java:948) at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:662) at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697) at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211) at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) and later on: 2006-05-31 13:24:47,171 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/C:/Dev/jboss404ga/server/default/deploy/dynclassloader-service.xml 2006-05-31 13:24:47,171 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/C:/Dev/jboss404ga/server/default/deploy/dynclassloader-service.xml 2006-05-31 13:24:47,171 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/C:/Dev/jboss404ga/server/default/deploy/dynclassloader-service.xml 2006-05-31 13:24:47,171 DEBUG [org.jboss.deployment.SARDeployer] Deploying SAR, create step: url file:/C:/Dev/jboss404ga/server/default/deploy/dynclassloader-service.xml 2006-05-31 13:24:47,171 DEBUG [org.jboss.deployment.SARDeployer] Registering service UCL=jmx.loading:UCL=6212dd 2006-05-31 13:24:47,171 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/C:/Dev/jboss404ga/server/default/deploy/dynclassloader-service.xml 2006-05-31 13:24:47,171 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true 2006-05-31 13:24:47,171 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false 2006-05-31 13:24:47,171 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.rmi:type=RMIClassLoader at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103) at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171) at org.jboss.system.ServiceController.install(ServiceController.java:226) at sun.reflect.GeneratedMethodAccessor70.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:155) at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) at org.jboss.mx.server.Invocation.invoke(Invocation.java:86) at
[JBoss-user] [JBoss Portal] - No ClassLoaders found for: org.jboss.portal.core.impl.user.L
Downloaded AS 4.04ga and got the database connections up. Installed the Portal based on the PDF. Can authenticate as admin and look around. Found the document http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingAnLDAPSourceForPortalAuthentication and edited the configuration files as described. Getting: 2006-05-30 10:02:35,890 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/C:/Dev/jboss404ga/server/default/deploy/jboss-portal.sar/ org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.portal.core.impl.user.LDAPUserModule; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.portal.core.impl.user.LDAPUserModule) at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196) In what JAR is the class in question found in? Is it not included in the AS setup or the portal SAR? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947711#3947711 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947711 --- 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=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Portal] - Re: No ClassLoaders found for: org.jboss.portal.core.impl.us
AS Version: 404ga, Portal Version: 2.2.1 Follow up: I believe this problem stems from typos in the document at http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingAnLDAPSourceForPortalAuthentication It states: These modules are declared and configured in the file jboss-service.xml. But then says: This file is located in JBOSS_HOME/server/default/deploy/jboss-portal-exploded.sar/conf/login-config.xml, or in the source bundle, core/src/resources/portal-core-sar/META-INF/jboss-service.xml. - both of which are FILES, not FOLDERS. Does the author(s) mean to say that the MBeans LDAPConnectionModule, LDAPUserModule and LDAPRoleModule should be added to a jboss-service.xml file in the /conf/ or /META-INF/ folders? I am using the compiled sar folder so I'm assuming that this jboss-service.xml file goes in the ..\default\deploy\jboss-portal.sar\META-INF folder. BUT that doesn't work: 2006-05-30 16:31:46,656 DEBUG [org.jboss.deployment.SARDeployer] create operation failed for package file:/C:/Dev/jboss404ga/server/default/deploy/jboss-portal.sar/ org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.portal.core.impl.conn.LDAPConnectionModule; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.portal.core.impl.conn.LDAPConnectionModule) Nor does it work putting the jboss-service.xml file in the ..\default\deploy\jboss-portal.sar\conf folder. So: 1) do all three mbeans go in the same file? 2) in which folder(s)? NOTE: I did add the line module-option name=passwordValidationremote/module-option to the login-config.xml file. That part is for the most clear, though the text gives the fully qualified file name in both locales rather than just a folder path. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3947866#3947866 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3947866 --- 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=lnkkid=107521bid=248729dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - HibernateContext - Deprecated - what to do?
org.jboss.hibernate.session.HibernateContext has been deprecated in version 3.1.x of Hibernate. http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch13.html is where I got the reference to this class. Is there a replacement for it? or do I just use the code: InitialContext ctx = new InitialContext(); SessionFactory factory = (SessionFactory) ctx. lookup(java:/hibernate/CaveatEmptorSessionFactory); Sessionhsession = factory.openSession(); View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3939356#3939356 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939356 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation, Configuration Deployment] - JBoss/Hibernate 3.1 Configuration in Portal Environment
I am trying to get Hiberate configured for use with our portal product, Novell exteNd. I am getting errors regarding unmapped classes which I do not understand (since the class it is complaining about is read just above it) and now I'm concerned about Hibernate's ability to fit into the environment. The hibernate-service.xml file (included below) has two MBean instances since I am trying to setup connections to two different databases. Since there isn't any documentation on how to do this, I'm guessing. You'll note the MapResources attribute that is commented out. This attribute is shown in the Hibernate In Action Book (page 56) but Hibernate complains of an unknown attribute at startup. Lastly, as the log shows, JBoss seems to try and start the Hibernate deployment twice (the Hibernate messages start over and occur twice in the file (truncated). Any clarification would be helpful. = hibernate-service.xml - (?xml version=1.0 encoding=UTF-8?) (server) (mbean code=org.jboss.hibernate.jmx.Hibernate name=jboss.har:service=HibernateAppSec) --) (!-- datasource settings --) (attribute name=DatasourceName)java:/applicationSecurity(/attribute) (attribute name=Dialect)org.hibernate.dialect.SybaseDialect(/attribute) (!-- bind the hibernate service to jndi --) (attribute name=SessionFactoryName)java:/hibernate/txoagPortalSfAppSec(/attribute) (attribute name=CacheProviderClass)org.hibernate.cache.HashtableCacheProvider(/attribute) (!-- logging --) (attribute name=ShowSqlEnabled)true(/attribute) (!-- (attribute name=MapResources) us/tx/state/oag/AppSecMgmt/HbmInfoUsersTable.hbm.xml (/attribute) --) (/mbean) (mbean code=org.jboss.hibernate.jmx.Hibernate name=jboss.har:service=HibernateWorking) --) (!-- datasource settings --) (attribute name=DatasourceName)java:/working(/attribute) (attribute name=Dialect)org.hibernate.dialect.SybaseDialect(/attribute) (!-- bind the hibernate service to jndi --) (attribute name=SessionFactoryName)java:/hibernate/txoagPortalSfWorking(/attribute) (attribute name=CacheProviderClass)org.hibernate.cache.HashtableCacheProvider(/attribute) (!-- logging --) (attribute name=ShowSqlEnabled)true(/attribute) (!-- (attribute name=MapResources) us/tx/state/oag/WfPersonnelAction/HbmWfPaCodeActionSignaturesTable.hbm.xml , us/tx/state/oag/WfPersonnelAction/HbmWfPaCodeActionStatusTable.hbm.xml , us/tx/state/oag/WfPersonnelAction/HbmWfPaCodeActionTypeTable.hbm.xml , us/tx/state/oag/WfPersonnelAction/HbmWfPaPersonnelActionTable.hbm.xml , us/tx/state/oag/WfPersonnelAction/HbmWfPaEmployeeTable.hbm.xml , us/tx/state/oag/WfPersonnelAction/HbmWfPaPositionTable.hbm.xml , us/tx/state/oag/WfPersonnelAction/HbmWfPaSegnaturesTable.hbm.xml (/attribute) --) (/mbean) (/server) = various hbm.xml files - (?xml version=1.0 encoding=UTF-8?) (!DOCTYPE hibernate-mapping PUBLIC -//Hibernate/Hibernate Mapping DTD 3.0//EN http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd;) (hibernate-mapping default-cascade=none default-access=property auto-import=true package=us.tx.state.oag.WfPersonnelAction) (class name=HbmWfPaCodeActionSignaturesTable table=code_wf_action_signatures entity-name=code_wf_action_signatures) (id name=id type=big_decimal column=action_type_id unsaved-value=null) (generator class=hilo) (param name=table)sys_next_ids(/param) (param name=column)next_action_signature_id(/param) (/generator) (/id) (property name=description type=string update=true insert=true/) (/class) (/hibernate-mapping) (?xml version=1.0 encoding=UTF-8?) (!DOCTYPE hibernate-mapping PUBLIC -//Hibernate/Hibernate Mapping DTD 3.0//EN http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd;) (hibernate-mapping default-cascade=none default-access=property auto-import=true package=us.tx.state.oag.WfPersonnelAction) (class name=HbmWfPaCodeActionStatusTable table=code_wf_action_status entity-name=code_wf_action_status) (id name=id type=big_decimal column=action_status_id unsaved-value=null) (generator class=hilo) (param name=table)sys_next_ids(/param) (param name=column)next_action_status_id(/param) (/generator) (/id) (property name=description type=string
[JBoss-user] [Installation, Configuration Deployment] - Re: JBoss/Hibernate 3.1 Configuration in Portal Environment
ALSO: Since xml markup cannot be handled by this web interface, I changed all and to ( and ). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938433#3938433 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938433 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - HAR problem: Incomplete Deployment listing: Packages waiting
Am trying to deploy a EAR with a WAR and HAR and getting the following: 10:16:05,562 INFO [EARDeployer] Started J2EE application: file:/C:/Dev/jboss401sp1/server/default/d eploy/txoag.ear 10:16:05,562 ERROR [URLDeploymentScanner] Incomplete Deployment listing: Packages waiting for a deployer: [EMAIL PROTECTED] { url=file:/C:/Dev/jboss401sp1/server/default/tmp/deplo y/tmp14151txoag.ear-contents/txoagPortal.har } deployer: null status: Starting state: START_SUBDEPLOYMENTS watch: file:/C:/Dev/jboss401sp1/server/default/tmp/deploy/tmp14151txoag.ear-contents/txoagPortal.h ar altDD: null lastDeployed: 1136564105609 lastModified: 1136564104750 mbeans: My structures are: -- txoag.ear |-- txoagPortal.har |--/meta-inf/jboss-service.xml (see below) |--/project name/class files |--/project name/hbm.xml files | |-- txoagPortal.war | |-- /meta-inf/application.xml | |-- /meta-inf/jboss-app.xml (see below) The hbm.xml files are in the same folders as their related class files. BEGIN - jboss-app.xml - BEGIN ?xml version='1.0' encoding='UTF-8' ? !DOCTYPE jboss-app PUBLIC -//JBoss//DTD J2EE Application 1.4//EN http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd; jboss-app loader-repositorycom.novell:loader=unique.ear.name loader-repository-configjava2ParentDelegation=true/loader-repository-config /loader-repository txoagPortal.har /jboss-app END - jboss-app.xml - END BEGIN - jboss-service.xml - BEGIN ?xml version=1.0 encoding=UTF-8? java:/appsec net.sf.hibernate.dialect.SybaseDialect java:/hibernate/txoagPortalSessionFactory -- net.sf.hibernate.cache.HashtableCacheProvider update true END - jboss-service.xml - END View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3916130#3916130 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3916130 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - HAR problem: Incomplete Deployment listing: Packages waiting
Am trying to deploy a EAR with a WAR and HAR and getting the following: 10:16:05,562 INFO [EARDeployer] Started J2EE application: file:/C:/Dev/jboss401sp1/server/default/d eploy/txoag.ear 10:16:05,562 ERROR [URLDeploymentScanner] Incomplete Deployment listing: Packages waiting for a deployer: [EMAIL PROTECTED] { url=file:/C:/Dev/jboss401sp1/server/default/tmp/deplo y/tmp14151txoag.ear-contents/txoagPortal.har } deployer: null status: Starting state: START_SUBDEPLOYMENTS watch: file:/C:/Dev/jboss401sp1/server/default/tmp/deploy/tmp14151txoag.ear-contents/txoagPortal.h ar altDD: null lastDeployed: 1136564105609 lastModified: 1136564104750 mbeans: My structures are: -- txoag.ear |-- txoagPortal.har |--/meta-inf/jboss-service.xml (see below) |--/project name/class files |--/project name/hbm.xml files | |-- txoagPortal.war | |-- /meta-inf/application.xml | |-- /meta-inf/jboss-app.xml (see below) The hbm.xml files are in the same folders as their related class files. BEGIN - jboss-app.xml - BEGIN ?xml version='1.0' encoding='UTF-8' ? !DOCTYPE jboss-app PUBLIC -//JBoss//DTD J2EE Application 1.4//EN http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd; jboss-app loader-repositorycom.novell:loader=unique.ear.name loader-repository-configjava2ParentDelegation=true/loader-repository-config /loader-repository txoagPortal.har /jboss-app END - jboss-app.xml - END BEGIN - jboss-service.xml - BEGIN ?xml version=1.0 encoding=UTF-8? java:/appsec net.sf.hibernate.dialect.SybaseDialect java:/hibernate/txoagPortalSessionFactory -- net.sf.hibernate.cache.HashtableCacheProvider update true END - jboss-service.xml - END View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3916131#3916131 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3916131 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: HAR problem: Incomplete Deployment listing: Packages wai
renamed the jboss-service.xml to hibernate-service.xml and things seem to be going now, but: 2006-01-06 11:15:07,859 INFO [net.sf.hibernate.cfg.Environment] Hibernate 2.1.6 2006-01-06 11:15:07,875 INFO [net.sf.hibernate.cfg.Environment] hibernate.properties not found 2006-01-06 11:15:07,875 INFO [net.sf.hibernate.cfg.Environment] using CGLIB reflection optimizer 2006-01-06 11:15:07,890 INFO [net.sf.hibernate.cfg.Configuration] Searching for mapping documents in jar: txoagPortal.har 2006-01-06 11:15:07,906 INFO [net.sf.hibernate.cfg.Configuration] Found mapping documents in jar: AppSecMgmt/Info_User.hbm.xml 2006-01-06 11:15:09,015 ERROR [net.sf.hibernate.cfg.Configuration] Could not configure datastore from input stream org.dom4j.DocumentException: Connection refused: connect Nested exception: Connection refused: connect at org.dom4j.io.SAXReader.read(SAXReader.java:353) Here is the contents of the lone hbm file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE hibernate-mapping PUBLIC -//Hibernate/Hibernate Mapping DTD 3.0//EN http://hiberate.sourceforge.net/hibernate-mapping-3.0.dtd; hibernate-mapping package=us.tx.state.oag.AppSecMgmt.hiberate schema=application_security/ id name=userID type=big_integer column=user_id unsaved-value=null generator-class=native/ /hibernate-mapping View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3916142#3916142 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3916142 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - JBoss JNDI Datasources - Move to LDAP?
I know it is possible to store Java objects in an LDAP server once the server's schema has been extended. The question now is does JBoss have a facility to store the data source information in an LDAP tree and pull them out at boot-time so we do not have to put that information in ASCII, unsecured files? If not, we right a Bean that would pull the information out, instantiate a class or two and then can we register the ready data source w/JBoss's JNDI service? Thanks in advance. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3897962#3897962 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3897962 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: JB's Developer Notebook - Omission and Error
My bad...I had been using mySQL with other tools and IDEs so I knew it was working. But JBoss didn't have a copy of the jdbc driver in its /lib folder. DOH! But it is really odd that it would say it had a db table creation error when it could even communicate with the db! Looks like something wasn't coming to the surface. Argh. All fine now. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3895169#3895169 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895169 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [O'Reilly JBoss 3.0/4.0 Workbook] - Re: Error: Can't find datasource
I'm following a tutorial too and it also mentions to alter the jbosscmp-jdbc.xml file - but WHICH ONE?! There are 7 of these in the project from the book. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894691#3894691 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894691 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - Re: JB's Developer Notebook - Omission and Error
I'm in eclipse too. Could you tell me what you did in the build.xml file? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894747#3894747 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894747 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Re: Database creation error on the start
It may be a debug message but the tables do NOT exist and any attempt the program to actually use the database via EJB's fails... Something ain't hooked up right. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894766#3894766 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894766 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Beginners Corner] - JB's Developer Notebook - Omission and Error
I am going through this book, which is GREAT by the way, but I have found one missing line of code and have now come up against something that is beyond me. I am in chapter 4: Connecting to a Real Database. I have created the jbossdb as root and assigned the todoapp user to the database w/full rights. I've done the ant with the -Doptional.ddl switch and deployed the WAR (which was working up to that point with Hypersonic. I can delve into the WAR and see the jbosscmp-jdbc.xml file. But when the war is deployed (before its first use): 2005-09-13 14:39:57,937 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Starting jboss.mq:service=PersistenceManager 2005-09-13 14:39:57,937 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Resolving uncommited TXS 2005-09-13 14:39:57,937 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Could not create table with SQL: CREATE CACHED TABLE JMS_MESSAGES ( MESSAGEID INTEGER NOT NULL, DESTINATION VARCHAR(255) NOT NULL, TXID INTEGER, TXOP CHAR(1), MESSAGEBLOB OBJECT, PRIMARY KEY (MESSAGEID, DESTINATION) ) java.sql.SQLException: Table already exists: JMS_MESSAGES in statement [CREATE CACHED TABLE JMS_MESSAGES] and 2005-09-13 14:39:57,953 DEBUG [org.jboss.mq.pm.jdbc2.PersistenceManager] Could not create table with SQL: CREATE CACHED TABLE JMS_TRANSACTIONS ( TXID INTEGER, PRIMARY KEY (TXID) ) java.sql.SQLException: Table already exists: JMS_TRANSACTIONS in statement [CREATE CACHED TABLE JMS_TRANSACTIONS] Which I know to be wrong since the database has no tables and still doesn't. I've created -ds.xml files for our production servers and other code is connecting so I know that's not it. The JMX shows the DS up and running and usable. Page 56 says to edit the jbosscmp-jdbc.xml file but there are 7 of these in the todo folder hierarchy and no mention is made to which needs to be edited and/or copied to another directory (/default?) What is causing this? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3894524#3894524 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3894524 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user