The jar urls are gone in the current snaphsot. You do not need to go through the URL to read a resource. You can use the openStream method of the VirtualFile:
| VirtualFile jar1MF = jar1.findChild("META-INF/MANIFEST.MF");
| assertNotNull("jar1!/META-INF/MANIFEST.MF", jar1MF);
| InputStream mfIS = jar1MF.openStream();
| Manifest mf1 = new Manifest(mfIS);
| Attributes mainAttrs1 = mf1.getMainAttributes();
| String title1 = mainAttrs1.getValue(Attributes.Name.SPECIFICATION_TITLE);
| assertEquals("jar1", title1);
| jar1MF.close();
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993481#3993481
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993481
Well, nope, it was not.
This problem obviously stems from an apparent lack of understanding of the @Factory annotation. I looked at your examples and saw your factory methods not being accompanied by a property, but instead just returning the created lists. So I thought "well, that's cool, I don't need a property for this List". Alas, it did not work. Adding a "List companyTypes" property with an @Out annotation solved the problem.
Anybody care to educate me in why your example code doesn't need to do so?
/Kris
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993479#3993479
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993479
I have a java 1.5 jdk and jre installed on a Linux machine.
When attempting to create an EJB3 project using version 1.6 of JBossIDE, I receive an error message saying that no java5.0 is available.
The configuration details screen (under Help menu) indicates that JBossIDE and Eclipse are using java.version-1.5.0
How does JBossIDE determine if a java5.0 is available?
How can I modify this setting?
Thanks
Charlie
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993477#3993477
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993477
Hi,
I made My authentication module, I invoke, programmatically, into a servlet the login() method. It works but when I try to access to a protected resource i see the login dialog. In in the dialog I put my login and pwd, my LoginModule is invoked at I result authenticated. In other words I'm authenticated only If I operform a login via login dialog.
My question: How Can I tell to browser: "Ok this user is authenticated"? How can I "suppress" the login dialog?
THX
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993476#3993476
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993476
Is there any way to continue to use the EntityManager after encountering an OptimisticLockException? I'm flushing the EntityManager explicitly in my session bean within a try/catch block where I'm catching OptimisticLockException. In that catch block, I wanted to make one last read using the EntityManager but it complains that the transaction is no longer active. If I'm explicitly checking for and catching/handling the exception, shouldn't I be able to continue using the EntityManager? Is there any way to get this to work?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993474#3993474
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993474