Michael Van

Ranch Hand
+ Follow
since Nov 25, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Michael Van

I'm migrating an older application from JBoss 4.2.2 to JBoss 6.1.0.FINAL. I've worked through most of the issues, however there is one last JMS problem I'm seeing. After creating the hornetq-jms.xml file with all of my queues, and attempting to get the queues and injecting them into my jms template, I'm getting the following excepion:
12:32:26,133 ERROR [STDERR] javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
12:32:26,133 ERROR [STDERR] java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled)]]
12:32:26,134 ERROR [STDERR] at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1356)
12:32:26,134 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:819)
12:32:26,134 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
12:32:26,134 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:392)
12:32:26,134 ERROR [STDERR] at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
12:32:26,134 ERROR [STDERR] at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
12:32:26,134 ERROR [STDERR] at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
12:32:26,135 ERROR [STDERR] at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
12:32:26,135 ERROR [STDERR] at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
12:32:26,135 ERROR [STDERR] at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
12:32:26,135 ERROR [STDERR] at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201)
12:32:26,135 ERROR [STDERR] at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187)
12:32:26,135 ERROR [STDERR] at com.myCompany.util.external.domainObject.patch.JmsTemplateFactory.init(JmsTemplateFactory.java:66)
12:32:26,135 ERROR [STDERR] at com.myCompany.util.external.domainObject.patch.JmsTemplateFactory.<init>(JmsTemplateFactory.java:43)
12:32:26,136 ERROR [STDERR] at com.myCompany.util.external.patch.ObjectMessageReceiver.start(ObjectMessageReceiver.java:53)
12:32:26,136 ERROR [STDERR] at com.myCompany.util.external.patch.ObjectMessageReceiver.run(ObjectMessageReceiver.java:37)
12:32:26,136 ERROR [STDERR] at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172)
12:32:26,136 ERROR [STDERR] at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
12:32:26,136 ERROR [STDERR] at org.jboss.threads.CleanupExecutor.execute(CleanupExecutor.java:38)
12:32:26,136 ERROR [STDERR] at org.jboss.threads.CleanupExecutor.execute(CleanupExecutor.java:38)
12:32:26,137 ERROR [STDERR] at org.jboss.threads.QueuelessExecutor$Worker.run(QueuelessExecutor.java:614)
12:32:26,137 ERROR [STDERR] at java.lang.Thread.run(Thread.java:662)
12:32:26,137 ERROR [STDERR] at org.jboss.threads.JBossThread.run(JBossThread.java:122)
12:32:26,137 ERROR [STDERR] Caused by: javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
12:32:26,137 ERROR [STDERR] java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled)]
12:32:26,138 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:841)
12:32:26,138 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
12:32:26,138 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:392)
12:32:26,138 ERROR [STDERR] at org.jnp.interfaces.NamingContext.resolveLink(NamingContext.java:1350)
12:32:26,138 ERROR [STDERR] ... 22 more
12:32:26,139 ERROR [STDERR] Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
12:32:26,139 ERROR [STDERR] java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled)
12:32:26,139 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:178)
12:32:26,139 ERROR [STDERR] at org.jboss.ha.framework.server.HARMIServerImpl_Stub.invoke(Unknown Source)
12:32:26,139 ERROR [STDERR] at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:225)
12:32:26,139 ERROR [STDERR] at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:327)
12:32:26,140 ERROR [STDERR] at $Proxy210.lookup(Unknown Source)
12:32:26,140 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
12:32:26,140 ERROR [STDERR] ... 25 more
12:32:26,140 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class loader disabled)
12:32:26,141 ERROR [STDERR] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:373)
12:32:26,141 ERROR [STDERR] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:163)
12:32:26,141 ERROR [STDERR] at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
12:32:26,141 ERROR [STDERR] at org.jboss.system.JBossRMIClassLoader.loadClass(JBossRMIClassLoader.java:91)
12:32:26,141 ERROR [STDERR] at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
12:32:26,141 ERROR [STDERR] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
12:32:26,142 ERROR [STDERR] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
12:32:26,142 ERROR [STDERR] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
12:32:26,142 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
12:32:26,142 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
12:32:26,142 ERROR [STDERR] at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1666)
12:32:26,142 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1322)
12:32:26,143 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
12:32:26,143 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
12:32:26,143 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
12:32:26,143 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
12:32:26,143 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
12:32:26,143 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
12:32:26,144 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
12:32:26,144 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
12:32:26,144 ERROR [STDERR] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
12:32:26,144 ERROR [STDERR] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
12:32:26,144 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
12:32:26,144 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
12:32:26,144 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
12:32:26,145 ERROR [STDERR] at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
12:32:26,145 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)
12:32:26,145 ERROR [STDERR] ... 30 more

My hornetq-jms.xml file is pretty standard:



The pertinent portions of my jmsTemplate102 implementation are:



Any idea why this is giving me the exception?
11 years ago
You should consider using Aries or Spring to register your service is the OSGi Service Admin Service. In my opinion, it is more straight-forward than putting in your classes.

Mike Van
Apache Software Foundation Committer

olze oli wrote:hi,

i'm building an application which can send events (with EventAdmin from apache felix), thats the GUI part (eg. "event/buttonXYZ"), so the listeners know when the user hits something in the gui that they should react, or not.
The problem is now that i dont know how many listeners i will have that listen to my main application (they are dynamic), so i have to tell the bundles(plugins) somehow to register itself with the EventHandler


can someone tell me whats the best practice in doing so?





This error is caused because your bundle is attempting to load a bundle with the symbolic name of "org.eclipse.jdt.junit", any version. Try deploying that before your application, and it should allow you to proceed to the next error.

Mike Van
Apache Software Foundation Committer
I would download Karaf and try your application in that, then look at your logs. Karaf is an OSGi container that provides additional functionality to the underlying framework. Currently, when Karaf is distributed, it uses Felix under the covers. So, you should be able to drop your bundles into the ${KARAF_HOME}/deploy directory and get everything running pretty quickly.

If this doesn't work, look for the log messages (in ${KARAF_HOME}/data/log/karaf.log) and paste the relevant exceptions here.

Mike Van
Apache Software Foundation Committer
I haven't seen a response to your posts in a couple of days, so I thought I'd respond. Before I continue, you should know that I'm an Apache Software Foundation Committer, and have been a contributor to the Apache Karaf project now for over a year. Additionally, I'm actively involved with thier efforts to migrate their provisioning mechanism so that it will be compliant with the OSGi Service Platform early release subsystem spec. What does this mean? It means I know what I'm talking about with respect to OSGi, Apache Felix, Apache Karaf, Aries, etc.

There was a quote about the use of the web-services in OSGI. Eclipse Virgo (SpringDM for those who are trying to keep-up) is able to use Virgo TomCat for web-interaction. This implementation of TomCat is OSGi compliant, and allows the deployment of WAB (Web Archive Bundles), and the speedy conversion of WAR's to WAB's if you dont' want to learn OSGi. Additionally, Karaf (the closest thing to a competitor of Virgo) allows you to use a number of different frameworks for Web interaction. I have used Jetty, and Jersey. Karaf uses Pax-Wicket internally. What I'm trying to say here is that the OSGi community of service-platforms and containers provides a number of very robust tools to allow RESTful and normal HTTP/S type of interaction.

SpringRoo's mention here seems out of place. So, I will not mention it other than to say that is "should" work well within any OSGi container. SpringSource has gone to great lengths to ensure their jar's play nicely within OSGi.

Yes, you can deploy Felix inside of a web container. That said, I fail to see why you would want to do this. Doing this is akin to sticking a small car in the trunk of a larger car and then trying to steer from the smaller car. Sure, with some fiddling you can get it to work, but why the heck would you want to?

Perhaps a different approach to help you would be for you to tell us what your final goal of this question is. What are you trying to create?
Check out the latest posting on my my Java.net blog!. While we wait for more folks to join our research group, we'll continue looking at various different bleeding edge open-source technologies. The first set being the NOSQL databases Hadoop, Cassandra, and Voldemort.
13 years ago
J2ME is old and busted, Android is the new hotness. I also feel the same way about the iPhone vs Droids.
13 years ago
Hey Ulf. We're tryiing to promote the idea of intellectual philanthropy. Just as the Open source community has for years developed free alternatives to popular packages, we're promoting the idea of using our skills to help out groups (focused on not-profits) who could use our services, but can't afford them. I don't know exactly how it will work out, it likely won't happen right away. However, that's the intent.

For the time being, we'll be putting our integration code online, and will release under GPL 3.0.
13 years ago
A banner ad would be awesome! We're not really looking for money though, trying to do it on the cheap. Any publicity Java Ranch could offer would be greatly appreciated.

BTW, thanks for your help a few years ago with Jess. You made me look like a rockstar when I deployed it inside of an HttpServletContext object.
13 years ago
I'll try this again, without mentioning my groups name so it won't come across as blatant advertising. My apologies for doing that before. So then, is there a way to ask for Java Ranch sponsorship for a non-profit-driven group?
13 years ago
Java Ranchers,

A group of software developers in Annapolis Junction, Maryland have been meeting regularly to discuss new and emerging open-source technologies. We are now a Java.net sponsored organization where we have a project in incubation and where I have a new blog. We would like to increase the number of Java developers who know about this effort so they can help us.

More information on our project is available at the FossESI Project page and my blog my blog

Respectfully requested,
13 years ago
Rest is the new hotness, SOAP is old and busted, and HTTP is the van they both go to school in.
13 years ago
All,

Would any of you please point me to a testing tool, or set of tools that can test web-services exposed in apache-service mix, and the workflows guiding data through web-service end-points in Apache Service Mix?

v/r,

Mike
14 years ago
Turns out the real problem was that instead of pointing the class attrib at the .ear file, I should have pointed it at the directory containing the .class files. Who'd have known that running Findbugs as documented wouldn't work? Meh.
15 years ago
All,

I've been scouring the 'boards looking for an answer to this question, but all I see is the question repeated with no useful feedback. I'm hoping that you JavaRanch folks will be able to help.

I have findbugs set-up and running as its own task in Ant. The problem is that when I attempt to run it against a .ear file, it gives me the "no classes found" error. However, when I run it against a .jar file, it behaves as I would expect it to.

The problem is, I'm using findbugs 1.3.x, and the issue with findbugs not being able to read .ear files was fixed in 0.6.2. Is there any chance one of you fine folks could help me with this?

The first person to respond with a useful solution gets a secret prize!
15 years ago