[JNDI/Naming/Network] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam
by PeterJ
Let's try one more thing. Set this environment variable:
set _JAVA_LAUNCHER_DEBUG=1
Add the 'output' attribute to the < java > task so that you can capture the program output in a file. In addition, add the -verbose:class JVM argument. So the < java > task would look like:
<java classname="com.Client" classpathref="client.classpath" fork="true" output="output.txt">
| <jmvarg value="-verbose:class" />
| </java>
If you have problems with the above steps, run your client from the command line (instead of within Ant), and redirect stdout to a file.
The resulting output will be too long to post, so email it to me (click on my name in the Author column to see my email address).
Another suggestion is to write a very simple client that does nothing but get the initial context and request the EJB. If that works, then there is something about your client that is causing a class loader issue.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994107#3994107
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994107
19 years, 7 months
[JBoss Seam] - Re: Injecting EJB3 into a POJO
by jarkko@jab.fi
@In cause the stuff below:
anonymous wrote :
| Caused by: java.lang.IllegalArgumentException: Could not set field value by reflection: DragDropBean.kohdeEditor on: fi.jab.jsf.icefaces.DragDropBean with value: class org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$36c63494
| at org.jboss.seam.util.Reflections.set(Reflections.java:75)
| at org.jboss.seam.Component.setFieldValue(Component.java:1547)
| ... 105 more
| Caused by: java.lang.IllegalArgumentException: Can not set fi.tc.business.KohdeEditorBean field fi.jab.jsf.icefaces.DragDropBean.kohdeEditor to org.jboss.seam.intercept.Proxy$$EnhancerByCGLIB$$36c63494
| at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
| at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
| at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
| at java.lang.reflect.Field.set(Field.java:657)
| at org.jboss.seam.util.Reflections.set(Reflections.java:61)
| ... 106 more
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994099#3994099
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994099
19 years, 7 months
[JBoss Seam] - Re: Basic Seam questions
by lightbulb432
That works, thanks.
1) I've left my destroy() method as in the example from the previous post. What I don't understand, though, is don't @Remove and @End conflict in any way? It seems like if @End is called, the conversation ends, and if @Remove is called, then the SFSB is removed? But I never call @Remove...
The Seam tutorial says SFSB must have an @Destroy @Remove method...but it seems like @Remove does one thing and @Destroy does another. Why must they both be defined on the same method?
2) When using conversations, is it required to use a stateful session bean as opposed to stateless? What about an extended persistence context as opposed to a transaction-scoped one?
3) From the earlier posts about the Seam-Managed Persistence Context, how do I use it? What should I set @PersistenceContext(type=???????) to?
4) Is there a way to catch any exception from an action method and return a certain string, such as "failure"? I could place a catch block inside every action method, but that seems like a pain.
Is there some way to specify (through XML or annotations) that if a certain or any exception is thrown, that you simply return a certain value from the action method?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994096#3994096
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994096
19 years, 7 months
[JNDI/Naming/Network] - Re: java.lang.ClassNotFoundException: org.jnp.interfaces.Nam
by forumer
Here is an excerpt from build.xml. myClient.jar are my classes. Classpath must be ok as things work when I place the JNDI variables in system variables!
| <path id="client.classpath">
| <fileset dir="${build.dir}/jar">
| <include name="myClient.jar" />
| </fileset>
| <pathelement location="c:/Temp" />
| <!--<path refid="build.classpath"/>-->
|
| <fileset dir="${client.lib}">
| <include name="jbossall-client.jar" />
| <include name="jboss-aop-jdk50-client.jar" />
| <include name="jboss-aspect-jdk50-client.jar" />
| <include name="jboss-common-client.jar" />
| <include name="jbossall-client.jar" />
| </fileset>
|
|
| <target name="runClient" depends="package-client">
| <echo message="Client lib= ${client.lib}"/>
| <property name="clientClasspath" refid="client.classpath"/>
| <echo message="Client classpath= ${clientClasspath}"/>
| <java classname="com.Client" classpathref="client.classpath" fork="true">
| </java>
| </target>
|
|
|
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994093#3994093
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994093
19 years, 7 months
[Installation, Configuration & Deployment] - EAR Deployment, Third-party libraries and Struts
by KooKoolen
Hello everybody,
I'm currently developing a J2EE software which uses EJB3 for the business layer and a web front-end to access and input data.
I started developping the two modules separately and deploying them separately. It worked fine.
Now, I want to package them in a single EAR file. Since they share third-party libraries, I put those libraries in the lib directory at the root of my EAR archive and declared those JARs int the MANIFEST of both the web module and the EJB module (but not in the EAR MANIFEST, should I ?).
When deploying th EAR, the deployment goes well (no errors). That means third-party libraries are taken into account by the EJB module since it needs some of them at startup.
The problem arises when accessing the web front-end. My web module uses the Struts framework. I tried two different packaging:
- struts-core.jar and struts-taglibs.jar are in the WEB-INF/lib directory of my web module.
Jasper throws a compilation exception with the following message:
| org.apache.jasper.JasperException: Unable to compile class for JSP
|
| Generated servlet error:
| The method _jspx_meth_bean_message_0(JspTag, PageContext) in the type index_jsp is not applicable for the arguments (HtmlTag, PageContext)
|
| Generated servlet error:
| The method _jspx_meth_html_base_0(JspTag, PageContext) in the type index_jsp is not applicable for the arguments (HtmlTag, PageContext)
|
| Generated servlet error:
| The method _jspx_meth_html_rewrite_0(JspTag, PageContext) in the type index_jsp is not applicable for the arguments (HtmlTag, PageContext)
|
| Generated servlet error:
| The method _jspx_meth_bean_message_1(JspTag, PageContext) in the type index_jsp is not applicable for the arguments (HtmlTag, PageContext)
|
| Generated servlet error:
| The method _jspx_meth_bean_write_0(JspTag, PageContext) in the type index_jsp is not applicable for the arguments (MessagesTag, PageContext)
|
| Generated servlet error:
| javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN cannot be resolved
|
| Generated servlet error:
| The method doAfterBody() is undefined for the type MessagesPresentTag
|
| Generated servlet error:
| javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN cannot be resolved
|
The message is longer but they are all similar to the preceding.
- struts-core.jar and struts-taglibs.jar are in the lib directory of the EAR archive and referenced in the classpath entry of the MANIFEST for the web module
The web container throws an exception saying it can't find Struts TLDs nor in the web.xml, nor in the JARs packaged in the application.
So I tried to extract Struts TLDs, put them in my WEB-INF and referencing them in my web.xml and then I get the same error than the first packaging solution I tried.
I also tried to isolate the EAR classloading by setting true in the EAR deployer configuration but that way it can not even deploy my EAR.
Thanks for your answers and for the great job you do,
Sylvain
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994087#3994087
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994087
19 years, 7 months
[JBoss jBPM] - Re: how to get jBPM working without the starterkit
by kukeltje
James,
It is a dead horse. I was the first who got 'frustrated' by people who think OS means free, detailed support. Sorry, to not fullfil that. Cocampo has to some extend taken over the task to educate people, cause that is what I think it is, educating them.
If you think the jBPM documentation is lacking that might as well indeed say something about you (without wanting to punch you in the noise, cause if there is one thing we are NOT, it is aggressive). We've had lots of positive feedback, mostly of-forum, from people with the right amount of knowledge to get started with jBPM. on-forum, lots of times people say they have NO knowledge of jBPM and j2ee (even if there is no direct relation) but want basic support. I often hasitated to respond that they should take java 101 or j2ee for dummies classes first, cause that is what is mentioned as a primary requirement, some basic java knowledge. This does not make them an idiot, those are your words, but it makes them unfit to get started with jbpm (hell, even any other bpm solution)
Time to go to bed now (at least for me)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994082#3994082
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994082
19 years, 7 months
[JBoss jBPM] - Re: how to get jBPM working without the starterkit
by cocampo
Yeah, you're correct, I should let Java-noobs pollute the forum with nonsense (at least regarding jBPM) questions. However, in this particular case, the guy had NO clue at all regarding jBPM (even after reading -or at least he said so- the manual and the wikis). After a while, someone told him that maybe he should look for another tool, another language or another career.
Let me put it this way: I don't find amusing when people don't read the manual (most times is obvious) or when they come, ask for help and wait for others to do their job while they relax in their desk by seeing a movie, hearing jokes and drinking gallons of coffee and/or coke.
If you want this forum to be useful, you better try to find a solution BEFORE asking for help. Even better, you can stop comments like "I find jBPM documentation lacking as well...". Instead of making this personal (by asking if I want to punch you in the nose) and bitching about a product you're NOT PAYING a penny for it, I'll ask you to contribute: if you find a bug, provide a solution; if you find an error in the manual or "lacking" then edit it and enhance it.
Stop bugging me with comments like this, because is really boring, specially when they come from people that haven't contributed to this (or any other JBoss) forum.
Just my two cents.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994080#3994080
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994080
19 years, 7 months
[JBoss jBPM] - Re: how to get jBPM working without the starterkit
by james_hays@mac.com
Not to beat a dead horse, but you guys can be real asses. Gees, the guy was struggling, so he asked for help. If it's that painful to answer, don't. Somebody else will, or he'll continue looking somewhere else. What's the point in making them feel like an idiot? Truth is, I find the jBPM documentation lacking as well. You wanna punch me in the nose too?
"cocampo" wrote :
| BTW, this is the last question I answer you about JBoss, since this is a VERY basic question; you NEED to read your JBoss manual, or else go to the JBoss newbies forum. Be aware, this forum does NOT exist so you can relax while others do your work; you need to do your own work (read, research, test, etc.).
|
| I think you don't understand the purpose of forums, so, take a look at the next page http://www.catb.org/~esr/faqs/smart-questions.html before asking any other question.
|
| Regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994069#3994069
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994069
19 years, 7 months
[JBoss Seam] - Add in a message bundle from a component jar
by petemuir
I was hoping to be able to add an extra message bundle to the seam message bundle (it should be added as the lowest priority) from an included jar (in WEB-INF/lib). I tried
<components ...>
| <core:resource-bundle>
| <core:bundle-names>
| <value>org.jboss.seam.selectitems.messages</value>
| </core:bundle-names>
| </core:resource-bundle>
| </components>
in the jar/META-INF/components.xml and
<components ...>
| <core:resource-bundle>
| <core:bundle-names>
| <value>messages</value>
| </core:bundle-names>
| </core:resource-bundle>
| </components>
in the ear/war/WEB-INF/components.xml, but this just tells me
Two components with the same name and precedence: org.jboss.seam.core.resourceBundle
Is there any way to do this (add extra message bundles from a jar) or do I need to add a feature request?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994063#3994063
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994063
19 years, 7 months