[jboss-jira] [JBoss JIRA] (HIBERNATE-18) Problem when path containing the project is too long

mary pablate (JIRA) issues at jboss.org
Wed Jan 29 10:13:28 EST 2014


    [ https://issues.jboss.org/browse/HIBERNATE-18?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12939750#comment-12939750 ] 

mary pablate commented on HIBERNATE-18:
---------------------------------------

Well, you can use Long Path Tool for such issues, it works good.
                
> Problem when path containing the project is too long
> ----------------------------------------------------
>
>                 Key: HIBERNATE-18
>                 URL: https://issues.jboss.org/browse/HIBERNATE-18
>             Project: Hibernate Integration
>          Issue Type: Bug
>         Environment: Eclipse 3.1
> Embeddable EJB 3.0
> Example: microcontainer-deployment
>            Reporter: Doink06 Doink06
>            Assignee: Gavin King
>
> Hello,
> I have the following configuration:
> - an eclipse workspace, which contains all the examples extrated from "Embeddable EJB 3.0"
> - Each example is transformed into a java project
> - a special project named Jboss is containing Embeddable EJB 3.0 with subdirectories lib/ and conf/
> Case #1
> The workspace is located on my disk at the following place : "D:/EJB3Examples"
> The example microcontainer-deployment is working perfectly
> Case #2
> I moved the workspace to the following place : "D:/Projects/Java/Eclipse3/EJB3Examples"
> The example microcontainer-deployment is crashing.
> WARN  30-08 01:02:38,906 (JBossEntityResolver.java:getLocalEntityName:201)  -Entity is not registered, publicId=null systemId=file:/D:/Projects/Java/Eclipse3/EJB3Examples/jboss/conf/bean-deployer_1_0.xsd
> WARN  30-08 01:02:38,953 (SaxJBossXBParser.java:warning:226)  -schema_reference.4: Failed to read schema document 'bean-deployer_1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. @ file:/D:/Projects/Java/Eclipse3/EJB3Examples/jboss/conf/embedded-jboss-beans.xml[5,45]
> WARN  30-08 01:02:41,062 (JBossEntityResolver.java:getLocalEntityName:201)  -Entity is not registered, publicId=null systemId=file:/D:/Projects/Java/Eclipse3/EJB3Examples/microcontainer-deployment/conf/bean-deployer_1_0.xsd
> WARN  30-08 01:02:41,062 (SaxJBossXBParser.java:warning:226)  -schema_reference.4: Failed to read schema document 'bean-deployer_1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. @ file:/D:/Projects/Java/Eclipse3/EJB3Examples/microcontainer-deployment/conf/ejb3-deployment.xml[5,45]
> ERROR 30-08 01:02:45,609 (EjbTimerUtil.java:getTimerService:43)  -Unable to initialize timer service
> ----------------------------------------------------------
> Exception in thread "main" javax.ejb.EJBException: null; CausedByException is:
> 	Unknown entity: org.jboss.tutorial.mcdeploy.Customer
> 	at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:46)
> 	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:70)
> 	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:152)
> 	at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:60)
> 	at $Proxy11.createCustomer(Unknown Source)
> 	at org.jboss.tutorial.mcdeploy.Main.main(Main.java:32)
> java.lang.IllegalArgumentException: Unknown entity: org.jboss.tutorial.mcdeploy.Customer
> 	at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:133)
> 	at org.jboss.ejb3.entity.InjectedEntityManager.persist(InjectedEntityManager.java:97)
> 	at org.jboss.tutorial.mcdeploy.CustomerDAOBean.createCustomer(CustomerDAOBean.java:28)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:585)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
> 	at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:32)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:66)
> 	at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:134)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:61)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:39)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:63)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:91)
> 	at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:91)
> 	at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:152)
> 	at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:60)
> 	at $Proxy11.createCustomer(Unknown Source)
> 	at org.jboss.tutorial.mcdeploy.Main.main(Main.java:32)
> Case #3
> I have copied the workspace to the following directory "D:\Projects\EJB3Examples"
> It works fine
> Case #4
> I have copied the workspace to the following directory "D:\Projects\Java\EJB3Examples"
> It works fine
> Case #5
> I have copied the workspace to the following directory "D:\Projects\Java\Eclips3\EJB3Examples"
> Without the "e" for eclips3. It works fine
> Case #5
> As soon as I rename the directory Eclips3 into Eclipse3, it crashes ... ?!?

--
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


More information about the jboss-jira mailing list