RE: How to tell EAR packager to use the exact names created by addClasspathtrue/addClasspath?

2012-03-17 Thread Markus KARG
Maven is 3.0.4

What exactly do you think is the bug: The fact that Class-Path is
replacing -SNAPSHOT by version, or the fact that EAR plugin is NOT doing
so?

Thanks!
Markus

 -Original Message-
 From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On
 Behalf Of Anders Hammar
 Sent: Montag, 12. März 2012 11:21
 To: Maven Users List
 Subject: Re: How to tell EAR packager to use the exact names created by
 addClasspathtrue/addClasspath?
 
 Sounds like a bug when building a multi-module project. File a JIRA
 ticket with a test project to recreate the issue.
 Also, if you're not using Maven 3, try to build with that as well to
 see if that solves the problem.
 
 /Anders
 
 On Mon, Mar 12, 2012 at 10:06, Markus Karg k...@quipsy.de wrote:
  I am using the ear and acr plugins to build an ear that contains an
  app-client. It all works well but one thing is always wrong:
 
 
 
  The car must use addClasspathtrue/addClasspath so the client will
  find the needed libraries. When those libraries are SNAPSHOTs, the
  created manifest entry contains not SNAPSHOT but the latest date
 (as
  usual with SNAPSHOTs). But the ear plugin doesn't care for this. It
  always uses SNAPSHOT (the word, not the latest version). As a
  result, at runtime the client will not find the needed libraries, as
  it looks for it by date, but it actually is named SNAPSHOT.
 
 
 
  For me this looks like a bug in the conception of the EAR plugin: It
  must not statically build the name from the version string, but it
  certainly needs to use the actual name of the artifact (here: the
 date
  of the snapshot).
 
 
 
  Is that really a bug or am I too dumb to see the light? ;-)
 
 
 
  Regards
 
  Markus
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Exposing EJB3.1 bean as webservice and use from servlet!?

2012-03-17 Thread sim085
Hello, can please someone help me. I am at a loss how I can expose an EJB3.1
as a  Webservice in a maven project and access this from a Servlet. 

My EJB class is as follows:

[code]
@WebService(serviceName=EcoService)
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT)
@Stateless
public class EchoBean {

@WebMethod(operationName=EchoIn, action=EchoIn)
@WebResult(name=EchoOut)
public String echo(@WebParam(name = Message) String message){
return message;
}
}
[/code]

Now from my reading and examples on the Internet, I understand that somehow
I need to generate an Service to access 

[code]
@WebServiceRef(wsdlLocation=http://localhost:8080/EchoService/EcoBean?WSDL;)
EchoService echoService = null;
...
EchoBean echoBean = EchoService.getEchoBeanPort();
String result = echoBean.echo();
[/code]

However I am at a loss how I will generate the EchoService class! I tried
looking in to org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.2:wsgen and this
is generating classes for every method I have in EchoBean, but not a Service
class on which I can use the @WebServiceRef annotation on!! This could be
because I did not configure the plugin correctly

[code]
plugin
groupIdorg.jvnet.jax-ws-commons/groupId
artifactIdjaxws-maven-plugin/artifactId
version2.2/version
configuration
verbosetrue/verbose
/configuration
executions
execution
goals
goalwsgen/goal
/goals
/execution
/executions
/plugin   
[/code]
Can please someone help me out!! I have also made the whole project
available on my drop box account available from here:

http://dl.dropbox.com/u/27542229/webservice-example.zip



 

--
View this message in context: 
http://maven.40175.n5.nabble.com/Exposing-EJB3-1-bean-as-webservice-and-use-from-servlet-tp5574228p5574228.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org