[JBoss/Spring Integration] - Re: Jboss/Spring Integration, second attempt!
by beyarecords
Hi Alesj,
my mycompany.spring structure, which sits in the deploy directory with jboss-spring-jdk5-2.5.jar, is so:
| my-app.spring/
| org/
| acme/
| ~MyBean.class
| ~MyBean2.class
| META-INF/
| jboss-spring.xml
| lib/
| spring jars + dependencies
|
but I continue to get an incomplete deployment error:
| 2008-06-24 22:39:50,578 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Packages waiting for a deployer ---
| org.jboss.deployment.DeploymentInfo@ed2719 { url=file:/C:/Jboss/jboss-4.2.2.GA/server/default/deploy/mycompany.spring }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/C:/Jboss/jboss-4.2.2.GA/server/default/deploy/beyarecords.spring
| altDD: null
| lastDeployed: 1214343590562
| lastModified: 1214343590562
| mbeans:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@ed2719 { url=file:/C:/Jboss/jboss-4.2.2.GA/server/default/deploy/mycompany.spring }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/C:/Jboss/jboss-4.2.2.GA/server/default/deploy/mycompany.spring
| altDD: null
| lastDeployed: 1214343590562
| lastModified: 1214343590562
| mbeans:
|
Any ideas as to what I may be overlooking here?
Many thanks in advance.
Andrew
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160365#4160365
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160365
17 years, 10 months
[Persistence, JBoss/CMP, Hibernate, Database] - Specifying table schema in orm.xml
by serff
Hello,
I'm trying to find a way to configure which schema my tables exist within an oracle database. I have a single entity that was hand generated (i.e. not by hbm, i did generate my tables off the entity).
So far, I have found that you can specify the schema in the orm.xml, however, I cannot get this to work. I have tried:
| <persistence-unit-metadata>
| <persistence-unit-defaults>
| <schema>myschema</schema>
| </persistence-unit-defaults>
| </persistence-unit-metadata>
|
and also specifying the schema attribute on the entity-mappings element. Neither seem to have any affect. I do not have anything else in my orm.xml. I have tried specifying my one entity by just doing <entity class="my.class.name"/>
Does anyone have an example of how to do this or have any hints for me? Let me know.
Is there a better way to do this (i.e. not the orm.xml)? I actually don't think the orm.xml is the best solution because it is packaged up in the ejb-jar. I would rather be able to specify the schema name outside of the application and load it at run time, however this seems impossible because the table name, etc are specified in the classes annotations. Hopefully someone knows a better way...
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4160354#4160354
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4160354
17 years, 10 months