[JBoss JIRA] Created: (JBAS-3509) org.jboss.test.cache.bean.MBeanUnitTestCase because "ejb" is not bound
by Jaroslaw Kijanowski (JIRA)
org.jboss.test.cache.bean.MBeanUnitTestCase because "ejb" is not bound
----------------------------------------------------------------------
Key: JBAS-3509
URL: http://jira.jboss.com/jira/browse/JBAS-3509
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Test Suite
Affects Versions: JBossAS-5.0.0.Beta
Environment: win xp
Reporter: Jaroslaw Kijanowski
org.jboss.test.cache.bean.MBeanUnitTestCase because "ejb" is not bound because of missing xml files.
Resolve:
Copy following xml files to testsuite\src\resources\cache\META-INF
************
ejb-jar.xml:
************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar >
<description><![CDATA[No Description.]]></description>
<display-name>Generated by XDoclet</display-name>
<enterprise-beans>
<!-- Session Beans -->
<session >
<description><![CDATA[]]></description>
<ejb-name>CacheObjectMeanTester</ejb-name>
<home>org.jboss.test.cache.bean.CacheObjectMeanTesterHome</home>
<remote>org.jboss.test.cache.bean.CacheObjectMeanTester</remote>
<ejb-class>org.jboss.test.cache.bean.CacheObjectMeanTesterBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
<session >
<description><![CDATA[Proxy to the TreeCache MBean.]]></description>
<ejb-name>test/TreeCacheTester</ejb-name>
<home>org.jboss.test.cache.bean.TreeCacheTesterHome</home>
<remote>org.jboss.test.cache.bean.TreeCacheTester</remote>
<ejb-class>org.jboss.test.cache.bean.TreeCacheTesterBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
<session >
<description><![CDATA[Proxy to the TreeCacheAop MBean.]]></description>
<ejb-name>test/TreeCacheAopTester</ejb-name>
<home>org.jboss.test.cache.bean.TreeCacheAopTesterHome</home>
<remote>org.jboss.test.cache.bean.TreeCacheAopTester</remote>
<ejb-class>org.jboss.test.cache.bean.TreeCacheAopTesterBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
<session >
<description><![CDATA[EJB proxy to the TreeCache MBean service.]]></description>
<ejb-name>test/TreeCacheMBeanTester</ejb-name>
<home>org.jboss.test.cache.bean.TreeCacheMBeanTesterHome</home>
<remote>org.jboss.test.cache.bean.TreeCacheMBeanTester</remote>
<ejb-class>org.jboss.test.cache.bean.TreeCacheMBeanTesterBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
<session >
<description><![CDATA[Proxy to the TreeCacheAop MBean.]]></description>
<ejb-name>test/TreeCacheAopMBeanTester</ejb-name>
<home>org.jboss.test.cache.bean.TreeCacheAopMBeanTesterHome</home>
<remote>org.jboss.test.cache.bean.TreeCacheAopMBeanTester</remote>
<ejb-class>org.jboss.test.cache.bean.TreeCacheAopMBeanTesterBean</ejb-class>
<session-type>Stateful</session-type>
<transaction-type>Container</transaction-type>
</session>
<!--
To add session beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called session-beans.xml that contains
the <session></session> markup for those beans.
-->
<!-- Entity Beans -->
<!--
To add entity beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called entity-beans.xml that contains
the <entity></entity> markup for those beans.
-->
<!-- Message Driven Beans -->
<!--
To add message driven beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called message-driven-beans.xml that contains
the <message-driven></message-driven> markup for those beans.
-->
</enterprise-beans>
<!-- Relationships -->
<!-- Assembly Descriptor -->
<assembly-descriptor >
<!--
To add additional assembly descriptor info here, add a file to your
XDoclet merge directory called assembly-descriptor.xml that contains
the <assembly-descriptor></assembly-descriptor> markup.
-->
<!-- finder permissions -->
<!-- finder permissions -->
<!-- finder permissions -->
<!-- finder permissions -->
<!-- finder permissions -->
<!-- transactions -->
<container-transaction >
<method >
<ejb-name>test/TreeCacheTester</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
<container-transaction >
<method >
<ejb-name>test/TreeCacheAopTester</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
<container-transaction >
<method >
<ejb-name>test/TreeCacheMBeanTester</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
<container-transaction >
<method >
<ejb-name>test/TreeCacheAopMBeanTester</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Supports</trans-attribute>
</container-transaction>
<!-- finder transactions -->
</assembly-descriptor>
</ejb-jar>
************
************
jboss.xml
************
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">
<jboss>
<enterprise-beans>
<!--
To add beans that you have deployment descriptor info for, add
a file to your XDoclet merge directory called jboss-beans.xml that contains
the <session></session>, <entity></entity> and <message-driven></message-driven>
markup for those beans.
-->
<session>
<ejb-name>CacheObjectMeanTester</ejb-name>
<jndi-name>test/CacheObjectMeanTester</jndi-name>
</session>
<session>
<ejb-name>test/TreeCacheTester</ejb-name>
<jndi-name>ejb/test/TreeCacheTester</jndi-name>
</session>
<session>
<ejb-name>test/TreeCacheAopTester</ejb-name>
<jndi-name>test/TreeCacheAopTester</jndi-name>
</session>
<session>
<ejb-name>test/TreeCacheMBeanTester</ejb-name>
<jndi-name>ejb/test/TreeCacheMBeanTester</jndi-name>
</session>
<session>
<ejb-name>test/TreeCacheAopMBeanTester</ejb-name>
<jndi-name>ejb/test/TreeCacheAopMBeanTester</jndi-name>
</session>
</enterprise-beans>
<resource-managers>
</resource-managers>
</jboss>
***************
--
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
18 years, 5 months
[JBoss JIRA] Created: (JBAS-3954) Cannot compile jsp on Windows with reference to a class in WEB-INF/classes of the same name but difference case as a package name
by Jim Moran (JIRA)
Cannot compile jsp on Windows with reference to a class in WEB-INF/classes of the same name but difference case as a package name
---------------------------------------------------------------------------------------------------------------------------------
Key: JBAS-3954
URL: http://jira.jboss.com/jira/browse/JBAS-3954
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Tomcat) service
Affects Versions: JBossAS-4.0.4.GA
Reporter: Jim Moran
Assigned To: Remy Maucherat
If UseJBossWebLoader is true in jbossweb-tomca55.sar/META-INF/jboss-service.xml
And there is a class in a war's WEB-INF/classes that has a classname identical to a package name except that the cases are different
And there is a jsp which references this class
And this war is deployed on Windows
Then the jsp causes error on Compile such as:
2006-11-22 12:04:40,414 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jdt].[jsp]] Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 5 in the jsp file: /index.jsp
Generated servlet error:
test.mypackage.name cannot be resolved to a type
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
--
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
18 years, 5 months
[JBoss JIRA] Created: (JBAOP-305) annotations not found for non-generic implementations of generic interface methods
by Havoc Pennington (JIRA)
annotations not found for non-generic implementations of generic interface methods
----------------------------------------------------------------------------------
Key: JBAOP-305
URL: http://jira.jboss.com/jira/browse/JBAOP-305
Project: JBoss AOP
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Havoc Pennington
I'm not sure if this is an AOP problem or a how-jboss-is-using-AOP-on-EJB3-session-beans problem, but I'll file it here to start.
The original issue is TransactionAttribute(NEVER) being ignored on certain session bean methods, the test case / details on that are in this list post:
http://groups.google.com/group/mugshot/browse_thread/thread/bc43e0dd34c8c...
I made an AOP test case that either shows an AOP problem or shows a way jboss could easily misuse AOP.
In the AOP test case, If there is an interface Foo<T> with method frobate(T t), then you look that up in AOP as resolveAnnotation("frobate", new Class[] { Object.class })
But if you implement that interface ("class FooImpl implements Foo<Double>") then you have to look that up in AOP as
resolveAnnotation("frobate", new Class[] { Double.class }) - looking it up with the erasure (Object.class arg) will not work, it returns null for the annotation.
So if someone were iterating over methods in the interface, looking each one up on the implementing class, they would not get the annotation for any generic methods in the interface implemented in the class.
The case that's going wrong in EJB3 is a little bit more complicated, so maybe there is some attempt at handling this that isn't catching all the cases.
It looks like further investigation requires messing with jboss TxInterceptor etc. itself, which is a little bit more than I think I can bite off, but hopefully this info is a helpful start.
Thanks
--
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
18 years, 5 months