[JBoss JIRA] Commented: (EJBTHREE-647) SecondaryTable
by jBossTester jBossTester (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-647?page=comments#action_12389828 ]
jBossTester jBossTester commented on EJBTHREE-647:
--------------------------------------------------
You can explain the workaround? Maybe with the same example.Thanks
> SecondaryTable
> --------------
>
> Key: EJBTHREE-647
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-647
> Project: EJB 3.0
> Issue Type: Bug
> Components: EJB3 Extensions
> Affects Versions: EJB 3.0 RC8 - FD
> Environment: PC Intel 2.8GHz, 1G RAM, OpenSuSE 10.0, Eclipse 3.1.2, JBoss-IDE 1.5.1.GS, AS JBoss-4.0.4.GA
> Reporter: Jose Jesus
> Assigned To: Emmanuel Bernard
>
> I'm using @SecondaryTable annoration and at deploy moment an exception occurs:
> 10:10:46,141 ERROR [AssertionFailure] an assertion failure occured (this may indicate a bug in Hibernate, but is more likely due to unsafe use of the session)
> org.hibernate.AssertionFailure: Table PERSON not found
> at org.hibernate.persister.entity.JoinedSubclassEntityPersister.getTableId(JoinedSubclassEntityPersister.java:444)
> at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(JoinedSubclassEntityPersister.java:225)
> at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:58)
> at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:223)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
> at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
> at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
> at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
> at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
> :
> :
> 10:10:46,189 WARN [ServiceController] Problem starting service persistence.units:jar=sgscore-ejb3.jar,unitName=sgscore
> org.hibernate.AssertionFailure: Table PERSON not found
> at org.hibernate.persister.entity.JoinedSubclassEntityPersister.getTableId(JoinedSubclassEntityPersister.java:444)
> at org.hibernate.persister.entity.JoinedSubclassEntityPersister.<init>(JoinedSubclassEntityPersister.java:225)
> at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:58)
> at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:223)
> at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
> at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631)
> at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760)
> at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:350)
> at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:119)
> at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
> :
> :
> my code and annotations are:
> @Entity
> @Table(name="USER")
> @Inheritance(strategy = InheritanceType.JOINED)
> @SecondaryTable(name = "PERSON", pkJoinColumns = {
> @PrimaryKeyJoinColumn(name = "PERSON_ID", referencedColumnName = "ID")
> }
> )
> public class User extends Participant {
> private String firstName;
> :
> :
> @Column(name="FIRST_NAME", table="PERSON")
> public String getFirstName(){
> return firstName;
> }
> public void setFirstName(String firstName) {
> this.firstName = firstName;
> }
> :
> :
> }
> @Entity
> @Table(name="PERSON")
> public class Person {
> private String firstName;
> :
> :
> @Column(name="FIRST_NAME")
> public String getFirstName() {
> return firstName;
> }
> public void setFirstName(String firstName) {
> this.firstName = firstName;
> }
> :
> :
> }
> @Entity
> @Table(name="PARTICIPANT")
> @Inheritance(strategy = InheritanceType.JOINED)
> public class Participant {
> private String id;
> :
> :
> @Id
> public String getId() {
> return id;
> }
> public void setId(String id) {
> this.id = id;
> }
> :
> :
> }
> Another observation is that in User class SecondaryTable annotation I already try:
> @SecondaryTable(name="PERSON")
> AND
> @SecondaryTables({
> @SecondaryTable(name = "PERSON", pkJoinColumns = {
> @PrimaryKeyJoinColumn(name = "PERSON_ID", referencedColumnName = "ID")
> }
> )
> }
> )
> AND
> @SecondaryTables({
> @SecondaryTable(name = "PERSON")
> }
> )
> the same exception occurs.
> What's the problem with implementation code or annotations???
> Thank's.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month
[JBoss JIRA] Created: (JBAS-4927) Code added in 4.2.1 breaks web app that works in 4.2.0
by Greg Bridges (JIRA)
Code added in 4.2.1 breaks web app that works in 4.2.0
------------------------------------------------------
Key: JBAS-4927
URL: http://jira.jboss.com/jira/browse/JBAS-4927
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Tomcat) service
Affects Versions: JBossAS-4.2.2.GA, JBossAS-4.2.1.GA
Environment: linux, java5
Reporter: Greg Bridges
Assigned To: Remy Maucherat
Code was added in version 4.2.1 to the WebAppClassLoader class to override the findClass() operation.
I have a web app that uses the sun rmi-iiop to connect to remote applications (which worked fine before). The stubs for my code are located in my deployed jars in the war.
At line 98 in WebAppClassLoader.java, a call is made to attempt to run the iiopstubcompiler. It gets a ClassDefNotFound on the IIOPStubCompiler class, which then bypasses the catch block (which is looking for a RuntimeException). It looks like the intent was to run the super.findClass() if there is any trouble, but that doesn't happen due to the catch block being bypassed.
If I change the code to catch Throwable or add a catch for ClassDefNotFound which runs super.findClass(), the app works as it did before.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month
[JBoss JIRA] Created: (JBAOP-473) Add 1.5.6 artifacts to the JBoss Maven respository
by Anders Hammar (JIRA)
Add 1.5.6 artifacts to the JBoss Maven respository
--------------------------------------------------
Key: JBAOP-473
URL: http://jira.jboss.com/jira/browse/JBAOP-473
Project: JBoss AOP
Issue Type: Task
Security Level: Public (Everyone can see)
Affects Versions: 1.5.6.GA
Environment: n/a
Reporter: Anders Hammar
Attachments: jboss-aop-1.5.6.GA.pom, jboss-aop-jdk50-1.5.6.GA.pom
Please add the jdk1.4 and jdk5.0 artifacts of jboss-aop 1.5.6.GA to the maven repository. I've attached the pom files for both artifacts.
To be consistent with the deployed 1.5.0.GA artifact, I've keept the "jboss.jboss-aop" groupId and I also kept the "jboss-aop" artifactId for the jdk1.4 artifact. The jdk5.0 artifact uses the "jboss-aop-jdk50" artifactId to be consistent with the jar file in the distribution zip. (While this is not artifact naming standard used in 2.0.0.beta1.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month
[JBoss JIRA] Created: (JBAS-5020) Incorrect system property usage in JMX console clustering service
by Brian Stansberry (JIRA)
Incorrect system property usage in JMX console clustering service
-----------------------------------------------------------------
Key: JBAS-5020
URL: http://jira.jboss.com/jira/browse/JBAS-5020
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: JBossAS-4.2.2.GA
Reporter: Brian Stansberry
Assigned To: Brian Stansberry
Priority: Minor
Fix For: JBossAS-5.0.0.Beta3, JBossAS-4.2.3.GA
In ./deploy/jmx-console.war/WEB-INF/web.xml: <param-value>UDP(ip_mcast=true;ip_ttl=16;loopback=false;mcast_addr=${jboss.partition.udpGroup:228.1.2.3};mcast_port=${jboss.partition.udpPort:45566}):
Should not be jboss.partition.udpPort as that property should NOT be set; it will cause all channels to use the same port.
Will switch it to jboss.jmxconsolepartition.mcast_port to be consistent with JBAS-4021 usage.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month