[JBoss JIRA] (AS7-5062) PersistenceUnitRootURL for JPA providers may not be spec compliant
by Craig Ringer (JIRA)
Craig Ringer created AS7-5062:
---------------------------------
Summary: PersistenceUnitRootURL for JPA providers may not be spec compliant
Key: AS7-5062
URL: https://issues.jboss.org/browse/AS7-5062
Project: Application Server 7
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 7.1.1.Final
Environment: $ java -version
java version "1.7.0_03-icedtea"
OpenJDK Runtime Environment (fedora-2.2.1.fc17.8-x86_64)
OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)
$ uname -a
Linux ayaki.localdomain 3.4.2-4.fc17.x86_64 #1 SMP Thu Jun 14 22:22:05 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Reporter: Craig Ringer
Assignee: Scott Marlow
Discussion on the EclipseLink bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=383200 ("On JBoss AS 7, EclipseLink doesn't find entity classes unless they're explicitly listed in persistence.xml") suggests that JBoss AS 7 may not be providing a spec-compliant PersistenceUnitRootURL or contents.
EclipseLink can't scan the contents of a deployment for @Entity annotated classes, so it doesn't find any entities unless they're explicitly named in persistence.xml .
http://docs.oracle.com/javaee/6/api/javax/persistence/spi/PersistenceUnit... states:
{quote}
java.net.URL getPersistenceUnitRootUrl()
Returns the URL for the jar file or directory that is the root of the persistence unit. (If the persistence unit is rooted in the WEB-INF/classes directory, this will be the URL of that directory.) The URL will either be a file: URL referring to a jar file or referring to a directory that contains an exploded jar file, or some other URL from which an InputStream in jar format can be obtained.
*Returns*: a URL referring to a jar file or directory
{quote}
... and that's what EclipseLink expects. However, for EclipseLink class scanning to function correctly an adapter class must be provided, such as the classes provided here:
https://community.jboss.org/wiki/HowToUseEclipseLinkWithAS7
to integrate EclipseLink with JBoss's VFS.
It may be worth investigating why this is necessary and whether the current behavior is standards compliant.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] (AS7-5474) Url returned by PersistenceUnitInfo#getPersistenceUnitRootUrl() point to an empty folder
by Adriano Verona (JIRA)
Adriano Verona created AS7-5474:
-----------------------------------
Summary: Url returned by PersistenceUnitInfo#getPersistenceUnitRootUrl() point to an empty folder
Key: AS7-5474
URL: https://issues.jboss.org/browse/AS7-5474
Project: Application Server 7
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 7.2.0.Alpha1
Environment: $ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
Windows 7 x64
Reporter: Adriano Verona
Assignee: Scott Marlow
When setting "jboss.as.jpa.vfs" property to false in persistence.xml PersistenceUnitInfo#getPersistenceUnitRootUrl() returns an Url that points to an empty folder (named "Contents"). The parent of this folder does holds the application jar.
file:/D:/Java/jboss-as-7.2.0.Alpha1/standalone/tmp/vfs/temp9c270668d311f0c4/vjpa_jboss_example.jar-7ef91a4c66eeff18/contents/
Observed this at PersistenceProvider#createContainerEntityManagerFactory() method call.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] (AS7-5281) JBoss loading wrong Hibernate version when using Persistence unit in WAR file
by Kuthair Habboush (JIRA)
Kuthair Habboush created AS7-5281:
-------------------------------------
Summary: JBoss loading wrong Hibernate version when using Persistence unit in WAR file
Key: AS7-5281
URL: https://issues.jboss.org/browse/AS7-5281
Project: Application Server 7
Issue Type: Feature Request
Components: Class Loading, JPA / Hibernate
Affects Versions: 7.1.1.Final
Environment: JBoss 7.1.1.Final & Hibernate 4.1.5.SP1 on Mac OSX 10.7/10.8
SQL Server 2008 on Windows 7 virtual
Reporter: Kuthair Habboush
Assignee: David Lloyd
Attachments: hibernate-test.zip
JBoss is loading Hibernate 4.0.1.Final (ships with) instead of the version specified in my Maven POM file and embedded in WAR archive, version: 4.1.5.SP1.
This ONLY occurs when I have a Persistence Unit setup in my WAR file in directory: resources/META-INF.
If I rename persistence.xml to persistence.xml.old, JBoss loads the correct version: Hibernate 4.1.5.SP1.
I have a sample project.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] (AS7-2792) CLI doesn't show resolved multicast address for socket-binding definition like jgroups-udp or jgroups-mping
by Rostislav Svoboda (Created) (JIRA)
CLI doesn't show resolved multicast address for socket-binding definition like jgroups-udp or jgroups-mping
-----------------------------------------------------------------------------------------------------------
Key: AS7-2792
URL: https://issues.jboss.org/browse/AS7-2792
Project: Application Server 7
Issue Type: Bug
Components: CLI, Domain Management
Affects Versions: 7.1.0.Beta1
Reporter: Rostislav Svoboda
Assignee: Alexey Loubyansky
Fix For: 7.1.0.CR1
Hi Alexey.
CLI doesn't show resolved multicast address for socket-binding definition like jgroups-udp or jgroups-mping. I would expect to see 'resolved-multicast-address' or something similar to 'resolved-address' for interface definition.
I hope management model can provide such information. If not please reassign to Brian.
{code}
$ bin/standalone.sh -c standalone-ha.xml -u 224.34.3.154
$ bin/jboss-admin.sh -c
[standalone@localhost:9999 /] cd /socket-binding-group=standard-sockets/socket-binding=jgroups-udp
[standalone@localhost:9999 socket-binding=jgroups-udp] :read-resource(include-runtime=true)
{
"outcome" => "success",
"result" => {
"bound" => false,
"bound-address" => undefined,
"bound-port" => undefined,
"fixed-port" => false,
"interface" => undefined,
"multicast-address" => expression "${jboss.default.multicast.address:230.0.0.4}",
"multicast-port" => 45688,
"name" => "jgroups-udp",
"port" => 55200
}
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] Created: (AS7-1264) Add schema references to standalone.xml, domain.xml, host.xml
by Gerry Matte (JIRA)
Add schema references to standalone.xml, domain.xml, host.xml
-------------------------------------------------------------
Key: AS7-1264
URL: https://issues.jboss.org/browse/AS7-1264
Project: Application Server 7
Issue Type: Task
Components: Domain Management
Affects Versions: 7.0.0.CR1
Reporter: Gerry Matte
Assignee: Brian Stansberry
It appears that users of Jboss 7 will be often modifying these configuration files as they fine tune their server and when they discover how to implement new features.
It seems quite surprising to me that these files do not have the schema references identified in the file header. Any good XML editor would use those references to validate changes and new entries and thereby avoid a great deal of frustration for users and those who provide support for forum issues.
I realise that if jboss validated each xml file when starting up there would be performance penalty that may be unacceptable to many users. A command-line switch could be used to either turn on xml validation (if the default were that no validation is performed) or conversely to turn off xml validation if the default state was that xml validation was on.
Personally I favor having a switch that turns off validation - to be used on production servers only.
If the schema/dtd files were published online and referenced within the configuration xml files, future changes to the schema structure would be "enforced" upon the user community as they attemted to use an out-of-date version when upgrading to a new version of Jboss 7.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months