[Microcontainer] - Path tokenization and VFSUtils.addManifestLocations
by scott.stark@jboss.org
Although it makes some sense to disallow a relative path containing ".." from a VirtualFile.findChild, its too restricitve for the VFSUtils.addManifestLocations
| java.lang.IllegalArgumentException: Reverse paths are not allowed (containing a . or ..), use getParent(): ../cp-mf.jar
| at org.jboss.virtual.plugins.vfs.helpers.PathTokenizer.getTokens(PathTokenizer.java:67)
| at org.jboss.virtual.plugins.context.AbstractVirtualFileHandler.structuredFindChild(AbstractVirtualFileHandler.java:230)
| at org.jboss.virtual.plugins.context.file.FileHandler.findChild(FileHandler.java:166)
| at org.jboss.virtual.VirtualFile.findChild(VirtualFile.java:374)
| at org.jboss.virtual.VFSUtils.addManifestLocations(VFSUtils.java:130)
|
Its too common for Class-Path entries to refer to arbitrary relative locations using either "." or ".." in the path. VFSUtils.addManifestLocations is going to have to do more work to canonicalization the path.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978059#3978059
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978059
19 years, 8 months
[Beginners Corner] - Re: Newbie Need Help :)
by scout1lacno
The ports are ok for now.It seems that NetBeans is not shutting down JBOSS properly.. Im using my command line to start and shutdown JBOSS. I think by doing this, it will shutdown JBOSS properly.
Im ok for the ports for now. But Im having problem an error on my datasources again.
Im having an error below:
2006-10-13 10:54:16,047 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,unitName=CRMIBCJapan-ejbPU
| State: NOTYETINSTALLED
| I Depend On:
| jboss.jca:name=MySqlDS,service=ManagedConnectionFactory
| Depends On Me:
| jboss.j2ee:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,name=tblCustomerFacade,service=EJB3
|
| ObjectName: jboss.j2ee:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,name=tblCustomerFacade,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| persistence.units:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,unitName=CRMIBCJapan-ejbPU
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss.jca:name=MySqlDS,service=ManagedConnectionFactory
| State: NOTYETINSTALLED
| Depends On Me:
| persistence.units:ear=CRMIBCJapan.ear,jar=CRMIBCJapan-ejb.jar,unitName=CRMIBCJapan-ejbPU
Any ideas with this one? XML files? Im using MySQL as a datasource.
Thankz :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978055#3978055
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978055
19 years, 8 months
[EJB/JBoss] - Embeddable EJB3
by dangelo1
Hi All,
I tried running the Embeddable EJB3 in our unit test but was getting this exception when I'm initialising Hibernate:
Caused by: java.lang.ClassCastException: net.sf.hibernate.transaction.JTATransactionFactory
at org.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(TransactionFactoryFactory.java:37)
at org.hibernate.cfg.SettingsFactory.createTransactionFactory(SettingsFactory.java:389)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:121)
>From what I can see it looks like it is just instantiating the Transaction magaer setting in my hibernate.cfg.xml:
factory = (TransactionFactory)ReflectHelper.classForName(strategyClassName).newInstance();
strategyClassName = net.sf.hibernate.transaction.JTATransactionFactory
has anyone encountered this before?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978052#3978052
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978052
19 years, 8 months
[Persistence, JBoss/CMP, Hibernate, Database] - @DiscriminatorColumn HELP
by ccanonigo
based on the trailblazer example i have applied the @discriminatorcolumn in my customerbean to get the marketname which is in marketbean.
but i have another countrybean to be mapped to my customerbean in order to get the country. can i have multiple values for my @discriminatorcolumn? or what is the work around? did i declare this right? need your assistance on how to jointables. thanks.
here is my code snippet:
@Entity
@Table(name="Customer")
@DiscriminatorColumn(name="IDMarket")
@DiscriminatorValue(value="Market")
//getting the marketname from marketbean
@Column(name="IDMarket")
@OneToOne(optional=false)
@JoinColumn(name="IDMarket")
protected MarketBean market;
public MarketBean getMarket( ) { return market; }
public void setMarket(MarketBean _market) { market = _market; }
//getting the countryname from countrybean
@Column(name="IDCountry")
@OneToOne(optional=false)
@JoinColumn(name="IDCountry")
protected CountryBean country;
public CountryBean getCountry() { return country; }
public void setCountry(CountryBean _country) { country = _country; }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978051#3978051
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978051
19 years, 8 months