Okey I spent couple of longer hours with the debugger. It actually starts here unitInfo.setRootUrlAndJarUrls(info.persistenceUnitRootUrl, info.jarFiles); in PersistenceBuilder.java further in function toURL within PersistenceUnitInfoImpl.java
When I run same on the Linux the this.persistenceUnitRootUrl looks normally like jar:file:/home/bla/bla Looks like on the windows the MalformedURLException is thrown in toURL(root) and then getURI().toURL doing some bad stuff maybe related to Windows \\ or // \/ /\ ... Screenshots from the debugger are here: https://www.dropbox.com/s/7pz5e1yq24ltgfl/step_1.PNG https://www.dropbox.com/s/0twxn4srcwkjtrg/step_2.PNG and actually I dont need the commons-model.jar!META-INF/persistence.xml because I do prepare PU by hand in application composer. SO if we can get rid of it, would be nice workaround. OpenEJB-core version 4.7.4 Hibernate 4.3.8 Using ApplicationComposer and dont need problematic path actually. Thanks for help! -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/IllegalArgumentException-on-weird-constructed-URL-tp4678460p4678468.html Sent from the TomEE Dev mailing list archive at Nabble.com.