-
1. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
jaikiran Jun 15, 2015 11:25 PM (in response to manan28)Manan parikh wrote:
clien/jbossall-client.jar needs to be imported in web project in order to call ejb hosted on Jboss.
jbossall-client.jar refers to all other jars(172 of them) in the same folder.
...
We are building our project via maven.
Is there any dependency which can be used for the above mentioned jar so that we dont have to mention each of the jars individually.
You'll have to add a dependency on this module https://repo1.maven.org/maven2/org/jboss/jbossas/jboss-as-client/6.1.0.Final/
-
2. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
manan28 Jun 16, 2015 10:50 AM (in response to manan28)Hi Jaikiran,
Thanks for the reply.
We already tried doing that but seems there is some problem with maven repository for that particular dependency.
When we add it we get below failure during build
[ERROR] Failed to execute goal on project DITWAR: Could not resolve dependencies for project amdocs.o2a:DITWAR:war:1.0-SNAPSHOT: The following artifacts could not be resol
ved: org.jboss.jbossas:jboss-as-client:jar:6.1.0.Final, com.sun.istack:istack-commons-runtime:jar:1.1: Could not find artifact org.jboss.jbossas:jboss-as-client:jar:6.1.0.
Final in central (https://repo.maven.apache.org/maven2) -> [Help 1]
-
3. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
jaikiran Jun 16, 2015 11:37 PM (in response to manan28)Post the relevant section from your pom.xml where you have added this dependency.
-
4. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
manan28 Jun 17, 2015 12:54 PM (in response to jaikiran)This is the dependency i am using
<dependency>
<groupId>org.jboss.jbossas</groupId>
<artifactId>jboss-as-client</artifactId>
<version>6.1.0.Final</version>
</dependency>
-
5. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
jaikiran Jun 17, 2015 1:04 PM (in response to manan28)Manan parikh wrote:
This is the dependency i am using
<dependency>
<groupId>org.jboss.jbossas</groupId>
<artifactId>jboss-as-client</artifactId>
<version>6.1.0.Final</version>
</dependency>
Change it to include the type element:
<dependency> <groupId>org.jboss.jbossas</groupId> <artifactId>jboss-as-client</artifactId> <version>6.1.0.Final</version> <type>pom</type> </dependency>
-
6. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
manan28 Jun 17, 2015 1:13 PM (in response to jaikiran)Issue still persists even after adding type
[INFO] Total time: 17.932 s
[INFO] Finished at: 2015-06-17T12:12:16-05:00
[INFO] Final Memory: 32M/351M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project DITWAR: Could not resolve dependencies for project amdocs.o2a:DITWAR:war:1.0-SNAPSHOT: Could not find artifact com.sun.istack:ist
ack-commons-runtime:jar:1.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
Can it be a maven repository problem?
-
7. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
jaikiran Jun 17, 2015 1:17 PM (in response to manan28)Manan parikh wrote:
Issue still persists even after adding type
...
[ERROR] Failed to execute goal on project DITWAR: Could not resolve dependencies for project amdocs.o2a:DITWAR:war:1.0-SNAPSHOT: Could not find artifact com.sun.istack:ist
ack-commons-runtime:jar:1.1 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR]
Can it be a maven repository problem?
That's not the same problem. It's a different one. You are either using the wrong Maven co-ordinates for that istack-commons-runtime artifact or it isn't available in Maven central.
-
8. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
manan28 Jun 17, 2015 1:28 PM (in response to jaikiran)yes, different problem. Sorry for the wordings.
I am not using the dependency in my application pom.
istack-commons-runtime artifact is being referenced via one of the poms of jar mentioned in jboss-as-client
And I just checked com.sun.istack:istack-commons-runtime:jar:1.1 doesnt exist in maven central repository.
Is there a way to check which pom has istack-commons-runtime:jar:1.1 as its dependency?
-
9. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
jaikiran Jun 17, 2015 11:17 PM (in response to manan28)Manan parikh wrote:
Is there a way to check which pom has istack-commons-runtime:jar:1.1 as its dependency?
You could use:
mvn dependency:tree
but I am not sure if it will show the dependency tree when a dependency itself is missing. Give it a try though.
-
10. Re: Client jar needed for jboss-6.1.0.Final for ejb war application
manan28 Jun 18, 2015 11:16 AM (in response to jaikiran)Already tried that but didn't come of much use.
Guess, will have to turn towards maven central repo to have them fix one of the POM's.
Thanks a lot for your replies. Really appreaciate it.
I have also posted one more question for which we are having issues with hibernate with JBoss.
It'll be great if you can give me more insight on that as well.
Link:org.hibernate.hql.ast.QuerySyntaxException: for ear deployed via jboss
Question : org.hibernate.hql.ast.QuerySyntaxException: for ear deployed via jboss - See more at: https://developer.jboss.org/thread/260615?sr=inbox#sthash.nijmIdGM.dpuf