[jboss-user] [EJB 3.0] - EJB3 deployment failed on jboss5.0Beta4

2008-04-12 Thread MmarcoM
hello all,
 i have developed an ejb3 webservice.. which i was successfully able to deploy 
on jboss4.0.5.GA.
I was unable to invoke it froma  soapGUI, as i receive the following exception

  | 2008-04-12 22:52:29,953 DEBUG [javax.xml.rpc.soap.SOAPFaultException] new 
SOAPFaultException 
[code={http://schemas.xmlsoap.org/soap/envelope/}Client,string=setProperty must 
be overridden by all subclasses of SOAPMessage,actor=null,detail=null]
  | 2008-04-12 22:52:29,953 ERROR 
[org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper] SOAP request exception
  | java.lang.UnsupportedOperationException: setProperty must be overridden by 
all subclasses of SOAPMessage
  | at javax.xml.soap.SOAPMessage.setProperty(SOAPMessage.java:441)
  | at org.jboss.ws.soap.SOAPMessageImpl.init(SOAPMessageImpl.java:65)
  | at 
org.jboss.ws.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:209)
  | at 
org.jboss.ws.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:142)
  | at 
org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:190)
  | at 
org.jboss.ws.server.ServiceEndpointManager.processSOAPRequest(ServiceEndpointManager.java:355)
  | at 
org.jboss.ws.server.StandardEndpointServlet.doPost(StandardEndpointServlet.java:115)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  | at 
org.jboss.ws.server.StandardEndpointServlet.service(StandardEndpointServlet.java:76)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  | at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  | at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  | at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  | at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  | at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  | at org.apache.catalina.valves.ErrorReportValve.invoke(E
  | 

after googling it (and checking jboss site) i found out that the latest ejb3 
implementation is present in jboss5.0
so i downloaded jboss 5.0Beta4 and deployed my webservice.
However, when starting server, my bean does not get deployed. i receive instead 
this nasty exception


  | oss50.WebServiceDeployerEJB] Error during deploy: 
vfsfile:/C:/Sw/jboss-5.0.0.Beta4/server/default/deploy/echo.jar
  | java.lang.IllegalStateException: Cannot obtain context root
  | at 
org.jboss.wsf.framework.deployment.EndpointAddressDeploymentAspect.create(EndpointAddressDeploymentAspect.java:47)
  | at 
org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
  | at 
org.jboss.wsf.container.jboss50.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95)
  | at 
org.jboss.wsf.container.jboss50.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:63)
  | at 
org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
  | at 
org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
  | at 
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
  | at 
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
  | at 
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
  | at 
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
  | at 
org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
  | at 
org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
  | at 
org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
  | at 
org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
  | at 

[jboss-user] [JBossWS] - Error with WSTools / JDK 1.4

2007-02-08 Thread MmarcoM
hi all,
 i have a project that uses wstools to generate wsdl files etc for my EJB 
exposed as webservices.
I am using jboss-4.0.5GA, and was using jdk 1.5

now, for various reasons i had to move back to JDK 1.4, and now when i run 
wstools (via maven) with following ant task

  | taskdef name=wsclient classname=org.jboss.ws.tools.ant.wstools
  | classpath
  | fileset dir=${jboss.libdir}\client
  | include name=activation.jar/
  | include name=javassist.jar/
  | include name=jboss-common-client.jar/
  | include name=jbossretro-rt.jar/
  | include name=jboss-backport-concurrent.jar/
  | include name=jbossws-client.jar/
  | include name=jboss-xml-binding.jar/
  | include name=concurrent.jar/
  | include name=log4j.jar/
  | include name=mail.jar/
  | include name=wsdl4j.jar/
  | 
  | /fileset
  | fileset dir=${jboss.libdir}\lib\endorsed
  | include name=*.jar/
  | /fileset
  | 
  | /classpath
  | /taskdef --
  |   echo message= copying resources **/
  |   copy 
toDir=${project.build.outputDirectory}/resources
  | fileset dir=ejbModule/resources/
  |   /copy
  |   
  |   echo message=** Running jboss ws 
**/
  |   wstools dest=${project.build.outputDirectory}/META-INF 
  | 
config=${workspace.dir}/middleware/ngenMiddleware/jboss/wstools-messenger-config.xml/
  | 

i receive the following exception :


  | [ERROR] FATAL ERROR
  | [INFO] 

  | [INFO] org/jboss/ws/tools/ant/wstools (Unsupported major.minor version 49.0)
  | [INFO] 

  | [INFO] Trace
  | java.lang.UnsupportedClassVersionError: org/jboss/ws/tools/ant/wstools 
(Unsuppor
  | ted major.minor version 49.0)
  | at java.lang.ClassLoader.defineClass0(Native Method)
  | at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
  | at 
org.apache.tools.ant.loader.AntClassLoader2.defineClassFromData(AntCl
  | assLoader2.java:76)
  | at 
org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader
  | .java:1090)
  | at 
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoa
  | der.java:1154)
  | at 
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:110
  | 7)
  | at 
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977
  | )
  | at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
  | at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
  | at java.lang.Class.forName0(Native Method)
  | at java.lang.Class.forName(Class.java:219)
  | at 
org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
  | 
  | at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:183)
  | at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  | at org.apache.tools.ant.Task.perform(Task.java:364)
  | at org.apache.tools.ant.Target.execute(Target.java:341)
  | at 
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
  | ntMojo.java:99)
  | at 
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
  | 
  | at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
  | nManager.java:412)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  | ultLifecycleExecutor.java:534)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
  | fecycle(DefaultLifecycleExecutor.java:475)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
  | ltLifecycleExecutor.java:454)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
  | dleFailures(DefaultLifecycleExecutor.java:306)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
  | ts(DefaultLifecycleExecutor.java:273)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  | fecycleExecutor.java:140)
  | at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
  | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  | at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
  | 

[jboss-user] [JBossWS] - Re: Error with WSTools / JDK 1.4

2007-02-08 Thread MmarcoM
Hi Charly,
 i see.. i have downloaded jboss 4.0.5, probably it was built using java5...

thanx and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4013114#4013114

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4013114
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: Please help with EJB3 ClassCastException.

2007-01-13 Thread MmarcoM
can you pls post her eyour exception?
i remember having same problem and i fixed it by changing a parameter in 
ejb3-deployable 

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4001360#4001360

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4001360
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: correctly packaging ear, war, har and ejb3 in jboss

2007-01-12 Thread MmarcoM
hello,
 didnt read all the post.. it's quite long
deploying ear in jboss is actually straightforward, allyou need to avoid, as 
you said, is duplication of classes
so structure your ear:
- war
- ear

jars that are commons needs to be placed outside those war/ear/
those common jars needs to be included in the manifest file of the jar that are 
dependent on them

there's no ejb3 issues, i have deployed successfuly an ejb3 app made of jar, 
war and ear, and didnt need to do anything.
my build system (maven2) was taking care of classpath in manifest file

go ahead and try to deploy your ear, and you will see that it's easier than 
what you think

hth 
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4000788#4000788

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000788
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: cannot deploy sar in JBoss 4.0.5.GA

2007-01-11 Thread MmarcoM
Not sure it will be automatically extracted in your deploy dir..
but check  your work directory (/server/defalt/work), or the tmp 
(/server/default/tmp) and you might be able to see it


hth
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4000298#4000298

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000298
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: JBoss 4.0.5.GA MySQL integration

2007-01-10 Thread MmarcoM
Hi,
 i see...
ok if you want just a MYSQL datasource foryour own purposes, it's enough to do 
step 1/2/3, configure mysql-ds.xml and proper authentication in login-config.
All jboss MQ that comes with default dist i gues it is using hsql as database, 
so if you would have gone to do steps 5/6 that mean to me that you want 
tocompletely replace hsql with mysql, having mysql db handling everything,
at least, that's what looks to me by checking the link you provide

i have been using mysql with jboss for over 3 years, and all i needed todo was 
to configure properly a mysql-ds.xml

that's what it seems to me you want to do

hth
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=382#382

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=382
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: cannot deploy sar in JBoss 4.0.5.GA

2007-01-10 Thread MmarcoM
hi,
 how do you know that it goes undetected? do you know what's inside? if yes, 
have you tried the jmx console to seeif your service was deployed?

mail it tome at [EMAIL PROTECTED], i'll have a look 2morrow if you cant solve 
the problem  by then

hth
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4000159#4000159

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4000159
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: J2ME/JBossws 1.0.3 / chunking disabled but still error

2007-01-03 Thread MmarcoM
Nope
No luck

Nokia's carbide.j  stub creation is screwed up big time.. at least for my WS 
which is not a simple HelloWorld webservice..

i think i'll go for some J2ME SOAP packages or back to kXML/kSOAP... if anyone 
has any suggestion, they are all welcome..

thanks and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3997502#3997502

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3997502
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: J2ME / jbossws 1.0.4

2006-12-09 Thread MmarcoM
Hello,
when i googled jbossws http chunking, found this link

http://jira.jboss.org/jira/secure/ReleaseNote.jspa?projectId=12310050styleName=Htmlversion=12310952decorator=printable

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3992451#3992451

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3992451
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - J2ME/JBossws 1.0.3 / chunking disabled but still error

2006-12-06 Thread MmarcoM
hi all,
  i m fighting trying to have myJ2ME cdlient to communicate iwht my EJB3 
Webservice..
i noticed posts about http chunking, so i have disabled http chunking by 
setting this in deploy/tomcat/server.xml


this is the interface of my WS

  | /**
  |  * Copyright @ 2006
  |  * By Marco Mistroni
  |  * Session EJB test 
  |  */
  | package com.mm.j2me.ejb;
  | 
  | import java.util.Date;
  | import java.util.List;
  | 
  | import javax.ejb.Remote;
  | import javax.ejb.Stateless;
  | import javax.jws.WebService;
  | import javax.jws.WebMethod;
  | import javax.jws.WebParam;
  | import javax.jws.WebResult;
  | import javax.jws.soap.SOAPBinding;
  | 
  | import javax.persistence.EntityManager;
  | import javax.persistence.PersistenceContext;
  | import javax.persistence.Query;
  | 
  | import org.jboss.annotation.ejb.RemoteBinding;
  | //import org.jboss.ws.annotation.PortComponent;
  | 
  | import com.mm.j2me.core.Agency;
  | import com.mm.j2me.core.JobApplication;
  | import com.mm.j2me.core.Opportunity;
  | import com.mm.j2me.core.User;
  | import com.mm.j2me.core.WSFacade;
  | 
  | @WebService (name=WSRemoteSEI,
  |  serviceName=WSFacade,
  | targetNamespace=http://org.jboss.ws/ejb3ws;)
  | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
  | use=SOAPBinding.Use.LITERAL)
  | 
  |  
  | @Stateless
  | @Remote (WSFacade.class)
  | @RemoteBinding( jndiBinding=/ejb3/WSRemoteSEI)
  | 
  | public class TestFacade implements WSFacade{
  | 
  | @PersistenceContext
  | EntityManager em;
  | public void deleteAgency(Agency agency) {
  | // TODO Auto-generated method stub
  | Query query = getQuery(findAgencyById);
  | query.setParameter(id, agency.getId());
  | Agency agencyToDelete = (Agency)query.getSingleResult();
  | em.remove(agencyToDelete);
  | }
  | 
  | public void deleteJobApplication(JobApplication app) {
  | Query query = getQuery(findJAById);
  | query.setParameter(id, app.getId());
  | JobApplication jaToDelete = 
(JobApplication)query.getSingleResult();
  | em.remove(jaToDelete);
  | 
  | }
  | 
  | public void deleteOpportunity(Opportunity opp) {
  | Query query = getQuery(findOpportunityById);
  | query.setParameter(id, opp.getId());
  | Opportunity oppToDelete = (Opportunity)query.getSingleResult();
  | em.remove(oppToDelete);
  | 
  | }
  | 
  | public Agency[] getAllAgencies() {
  | // TODO Auto-generated method stub
  | Query query = getQuery(findAllAgencies);
  | ListAgency list =  query.getResultList();
  | Agency[] agencies = new Agency[list.size()];
  | return (Agency[])(list.toArray(agencies));
  | }
  | 
  | public JobApplication[] getAllJobApplications() {
  | return new JobApplication[]{};
  | }
  | 
  | public Opportunity[] getAllOpportunities() {
  | //Query query = getQuery(findAllOpportunities);
  | //return query.getResultList();
  | return new Opportunity[]{};
  | }
  | 
  | public void insertAgency(Agency agency) {
  | // TODO Auto-generated method stub
  | em.persist(agency);
  | }
  | 
  | public void insertJobApplication(JobApplication app) {
  | em.persist(app);
  | 
  | }
  | 
  | public void insertOpportunity(Opportunity opp) {
  | em.persist(opp);
  | 
  | }
  | 
  | 
  | 
  | private Query getQuery(String name) {
  | return em.createNamedQuery(name);
  | }
  | 
  | 
  | @WebMethod(action=urn:synchronizeAgency)
  | public @WebResult(name=returnAgency)Agency[] 
  | synchronizeAgency(@WebParam(name=inAgency)Agency[] inAgency) {
  | Agency[] agencies = new Agency[2];
  | Agency ag = new AgencyEEjb();
  | ag.setName(ag1);
  | ag.setEmailAddress([EMAIL PROTECTED]);
  | ag.setJobHunter(fuckya);
  | ag.setPhoneNumber(1234);
  | ag.setSite(mysite);
  | agencies[0] = ag;
  | Agency ag2 = new AgencyEEjb();
  | ag2.setName(ag2);
  | ag2.setEmailAddress([EMAIL PROTECTED]);
  | ag2.setJobHunter(f222);
  | ag2.setPhoneNumber(12);
  | ag2.setSite(mysite222);
  | agencies[1] = ag2;
  | return agencies;
  | }
  | 
  | @WebMethod(action=urn:synchronizeJobApplication)
  | public @WebResult(name=returnJA)JobApplication[] 
  | synchronizeJobApplication( 
@WebParam(name=inJA)JobApplication[] inJA) {
  | JobApplication[] jas = new JobApplication[2];
  | JobApplication ja1 = new JobApplicationEEjb();
  | ja1.setAgencyName(Pathway);
  |

[jboss-user] [JBossWS] - problems with EJB3WS invoked from J2ME client

2006-12-05 Thread MmarcoM
hi all,
 i wrote an EJB3 webservice and i am tryingn to connect to it using J2ME client 
written using WTK 2.5
Now, webservice is fine because when i try to connect to it using a java 
standalone client, everything works fine
But wihth J2ME, i receive following exception

  | javax.xml.rpc.JAXRPCException: java.rmi.MarshalException: (1)Missing end 
tag for Body or Envelope
  | at com.sun.j2mews.xml.rpc.SOAPDecoder.decode(+243)
  | at com.sun.j2mews.xml.rpc.OperationImpl.invoke(+90)
  | at com.mm.j2me.ws.WSRemoteSEI_Stub.login(+48)
  | at com.mm.j2me.midp.model.HTTPCommunicationHandler.createAccount(+36)
  | at com.mm.j2me.midp.model.RemoteModelRequestHandler.createAccount(+16)
  | at com.mm.j2me.midp.model.RemoteModelProxy.createAccount(+16)
  | at com.mm.j2me.midp.model.ModelFacade.createAccount(+16)
  | at com.mm.j2me.midp.ui.UIController$EventDispatcher.run(+277)
  | Remote exception in invoking WS...
  | java.lang.ArrayIndexOutOfBoundsException
  | at com.mm.j2me.midp.model.ModelFacade.createAccount(+31)
  | at com.mm.j2me.midp.ui.UIController$EventDispatcher.run(+277)
  | 

Now, i have seen a similar thread where it was said that J2ME clients are not 
HTTP1.1 compliant, and the solution suggeste dwas to list the J2ME agent in 
tomcat\server.xml
my tomcat\server.xml looks like this:

  | !-- A HTTP/1.1 Connector on port 8080 --
  |   Connector port=8090 address=${jboss.bind.address}
  |  maxThreads=250 strategy=ms maxHttpHeaderSize=8192
  |  emptySessionPath=true
  |  enableLookups=false redirectPort=8443 acceptCount=100
  |  connectionTimeout=2 disableUploadTimeout=true
  |   restrictedUserAgents=^.*MS Web Services Client Protocol 1.1.4322.*$ 
.*MIDP* /
  | 

but still i am getting the exception...
can anyone suggest me any workaround? or any solutions?

thanks in advance and regards
  Marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3991452#3991452

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3991452
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - problems in deploying jbossws-1.0.4 with jboss-4.0.5.GA

2006-12-04 Thread MmarcoM
HI ALL,
 i have just installed jboss-4.0.5.GA (was coming wth jbossws-1.0.3)...
deployed my app (J2EE-1.4 WS), everything is fine

i have then upgraded to jbossws-1.0.4 (replacing proper files)..and when i 
restart the server i got following exception


  | 2006-12-04 11:09:50,359 ERROR [org.jboss.deployment.MainDeployer] Could not 
create deployment: 
file:/D:/Sw/jboss-4.0.5.GA/server/default/tmp/deploy/tmp16811ngenMiddlewareEAR-1.0-SNAPSHOT.ear-contents/ngenMiddleware-1.0-SNAPSHOT.jar
  | java.lang.NullPointerException
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptor.getServiceEndpointDeployer(DeployerInterceptor.java:142)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInterceptor.java:80)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(DeployerInterceptorEJB.java:44)
  | at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
  | at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy27.create(Unknown Source)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
  | at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy6.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | at 

[jboss-user] [JBossWS] - Re: problems in deploying jbossws-1.0.4 with jboss-4.0.5.GA

2006-12-04 Thread MmarcoM
Fixed.
solution is here
http://www.jboss.com/index.html?module=bbop=viewtopict=95374


again, apologize fornot being proactive enough..(unfortunatley my leisure time 
for jboss is very limited and if i dont find solution within 30 min from 
problem i ask list)

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3990960#3990960

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3990960
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - java.lang.NoSuchMethodError: javax.jws.WebService.portName()

2006-11-29 Thread MmarcoM
hi all, 
been havign this exception after upgrading jbossws to 1.0.4

i have read similar threads that suggest to replace ejb3 files

i have downloaded ejb3-rc9, replaced ejb3-persistence.jar and jboss-ejb3-client 
wherever i could, but i am still getting same exception...

i think i am missing something... mayb some jboss-j2ee jars?

can anyone help me out?

thanks in advance and regards
 Marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3989773#3989773

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989773
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: java.lang.NoSuchMethodError: javax.jws.WebService.portNa

2006-11-29 Thread MmarcoM
hi all,
 i found solution (and i apologize for not being more proactive..)

i have downloaded ejb3.0-rc9fd  and haveupdated followign files:
- ejb3-persistence.jar
- jboss-ejb3-client.jar
- ejb3.deployer (directory)
- jboss-aop-jdk50.deployer (directory) 

in jbossAS 4.0.4GA.

all files above comes with ejb3.0-rc9fd or with microcontainer rc9

hth
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3989775#3989775

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989775
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: 1.0.4 integration problem with EJB-3RC8

2006-11-29 Thread MmarcoM
Hello,
 got same problems and found solution

it is in this thread

http://www.jboss.com/index.html?module=bbop=viewtopict=95953

hth
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3989776#3989776

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989776
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - JBossSeam Quartz: how?

2006-11-28 Thread MmarcoM
hi all,
 i have an existing JSF application that uses Spring + Hibernate.
in my app, i am using Quartz (configured via spring) for scheduling tasks..
I was wondering to move my application to use JBossSeam (it integrates well 
with JSF, and i can use EJB3 for persistence), but i am completely clueless on 
how to integrate quartz with SEam.
Thing is that at the moment all my beans are configured using Spring (i am 
using JSF-Spring to make my spring beans avaliable to JSF)...

so, the only choice that i can see is to integrate Seam with Spring

can anyone give me some pointers on how can i use Quartz with seam?

thanks in advance and regards
 Marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3989221#3989221

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3989221
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: Problems returning arrays from Webservice Method

2006-10-30 Thread MmarcoM
Hello,
 had same problem with arrays..
was able to fix it by specifying WebResult and WebParam  in my webservice 
methods..
As far as i read, the less you annotate your webservice method, the more 
jbossws will try to 'figure out' what the parameters/result would be..
No problem with primitive/wrappres return, but if you start to have 'arrays' or 
custom classes, then i guess jbossws would need a little help in order to 
generate WSDL etc..

You'd need to annotate your webservice method with
@WebResult
@WebParam

check jbossws samples, (or google it) i have found a similar example that uses 
WebParam and WebREsult and that fixed my problem

HTH
 marco

try to speci

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3981696#3981696

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3981696
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Endpoint address / server not running at port 8080

2006-10-25 Thread MmarcoM
hi all,
 i am deploying EJB3 webservices on jboss4.0.4..
the problem i have is that, no matter the fact that my server is running on 
port 9080, the Endpoint address of my webservice is always at 

http://localhost:8080/...  

here's what i have when i view services deployed in jboss


  | Registered Service Endpoints
  | ServiceEndpointID   ServiceEndpointAddress   
  | jboss.ws:context=ejbJ2me-app-1,endpoint=TestFacade  
http://WorldCorp:8080/ejbJ2me-app-1/TestFacade?wsdl
  | 

is there any way to override that??  

can anyone tell me what to do?

with best regards
   Marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3980825#3980825

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3980825
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - SOAP Address in wsdl file

2006-10-22 Thread MmarcoM
hi all,
 is there any way to specify the proper URL for an EJB3 deployed as a 
webservice?

in my wsdl, URL is *ALWAYS*at port 8080, while my jboss is runnign at port 
9080.

here's wsdl of EJB3 deployed as webservice

  | definitions name=WSFacade targetNamespace=http://org.jboss.ws/ejb3ws;
  | ?
  | types
  | ?
  | schema elementFormDefault=qualified 
targetNamespace=http://core.j2me.mm.com/jaws;
  | import namespace=http://org.jboss.ws/ejb3ws/
  | ?
  | complexType name=Agency
  | ?
  | sequence
  | element name=emailAddress nillable=true type=string/
  | element name=id type=int/
  | element name=jobHunter nillable=true type=string/
  | element name=name nillable=true type=string/
  | element name=phoneNumber nillable=true type=string/
  | element name=site nillable=true type=string/
  | /sequence
  | /complexType
  | /schema
  | ?
  | schema elementFormDefault=qualified 
targetNamespace=http://org.jboss.ws/ejb3ws;
  | import namespace=http://core.j2me.mm.com/jaws/
  | ?
  | complexType name=testWebServiceMethod
  | ?
  | sequence
  | element maxOccurs=unbounded minOccurs=0 name=Agency_1 
nillable=true type=ns2:Agency/
  | /sequence
  | /complexType
  | ?
  | complexType name=testWebServiceMethodResponse
  | ?
  | sequence
  | element maxOccurs=unbounded minOccurs=0 name=result nillable=true 
type=ns2:Agency/
  | /sequence
  | /complexType
  | element name=testWebServiceMethod type=tns:testWebServiceMethod/
  | element name=testWebServiceMethodResponse 
type=tns:testWebServiceMethodResponse/
  | /schema
  | /types
  | ?
  | message name=WSRemoteSEI_testWebServiceMethodResponse
  | part element=tns:testWebServiceMethodResponse name=result/
  | /message
  | ?
  | message name=WSRemoteSEI_testWebServiceMethod
  | part element=tns:testWebServiceMethod name=parameters/
  | /message
  | ?
  | portType name=WSRemoteSEI
  | ?
  | operation name=testWebServiceMethod
  | input message=tns:WSRemoteSEI_testWebServiceMethod/
  | output message=tns:WSRemoteSEI_testWebServiceMethodResponse/
  | /operation
  | /portType
  | ?
  | binding name=WSRemoteSEIBinding type=tns:WSRemoteSEI
  | soap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/
  | ?
  | operation name=testWebServiceMethod
  | soap:operation soapAction=/
  | ?
  | input
  | soap:body use=literal/
  | /input
  | ?
  | output
  | soap:body use=literal/
  | /output
  | /operation
  | /binding
  | ?
  | service name=WSFacade
  | ?
  | port binding=tns:WSRemoteSEIBinding name=WSRemoteSEIPort
  | soap:address location=http://WorldCorp:8080/ejbJ2me-app-1/TestFacade/
  | /port
  | /service
  | /definitions
  | 

is there any way to customize the soap address?

thanks in advance and regarsd
  Marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3979901#3979901

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3979901
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: jbossws supported return parameter types for webservice

2006-10-18 Thread MmarcoM
Hello Alessio,
 looks like i m having difficulties with jbossws.. 
even though you said that arrays of javabeans are supported, i am still getting 
exception while invoking client for my webservice...

i have done another post here that explains my problem..

http://www.jboss.org/index.html?module=bbop=viewtopict=92858

i'd appreciate if you can help me out... when i run wstools on my wsdl, it 
never generates the type Array.Agency

thanks and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3979208#3979208

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3979208
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Call invocation failed excepiton when invoking EJB3 WebServi

2006-10-17 Thread MmarcoM
hi all,
 i am exposing an EJB3 SLSB as WebServices
when i call it i am receiving this exception:


  | Exception in thread main java.rmi.RemoteException: Call invocation failed 
with
  |  code [Client] because of: Endpoint 
{http://org.jboss.ws/ejb3ws}WSRemoteSEIPort
  | does not contain operation meta data for: 
{http://org.jboss.ws/samples/jsr181ejb
  | }testWebServiceMethod; nested exception is:
  | javax.xml.rpc.soap.SOAPFaultException: Endpoint 
{http://org.jboss.ws/ejb
  | 3ws}WSRemoteSEIPort does not contain operation meta data for: 
{http://org.jboss.
  | ws/samples/jsr181ejb}testWebServiceMethod
  | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:713)
  | at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
  | at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
  | at $Proxy0.testWebServiceMethod(Unknown Source)
  | at 
ws.jboss.org.samples.jsr181ejb.WSFacadeTester.doTest(WSFacadeTester.j
  | ava:54)
  | at 
ws.jboss.org.samples.jsr181ejb.WSFacadeTester.main(WSFacadeTester.jav
  | a:36)
  | Caused by: javax.xml.rpc.soap.SOAPFaultException: Endpoint 
{http://org.jboss.ws/
  | ejb3ws}WSRemoteSEIPort does not contain operation meta data for: 
{http://org.jbo
  | ss.ws/samples/jsr181ejb}testWebServiceMethod
  | at 
org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.getSOAPFaultException(SO
  | APFaultExceptionHelper.java:100)
  | at 
org.jboss.ws.binding.soap.SOAPBindingProvider.unbindResponseMessage(S
  | OAPBindingProvider.java:486)
  | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:702)
  | ... 5 more
  | 

my wsdl is as follows


  | ?xml version=1.0 encoding=UTF-8?
  | definitions name='WSFacade' 
targetNamespace='http://org.jboss.ws/samples/jsr181ejb' 
xmlns='http://schemas.xmlsoap.org/wsdl/' 
xmlns:ns1='http://core.j2me.mm.com/jaws' 
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' 
xmlns:tns='http://org.jboss.ws/samples/jsr181ejb' 
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
  |  types
  |   schema targetNamespace='http://core.j2me.mm.com/jaws' 
xmlns='http://www.w3.org/2001/XMLSchema' 
xmlns:ns2='http://org.jboss.ws/samples/jsr181ejb' 
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' 
xmlns:tns='http://core.j2me.mm.com/jaws' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  |import namespace='http://org.jboss.ws/samples/jsr181ejb'/
  |complexType name='Agency'
  | sequence
  |  element name='emailAddress' nillable='true' type='string'/
  |  element name='id' type='int'/
  |  element name='jobHunter' nillable='true' type='string'/
  |  element name='name' nillable='true' type='string'/
  |  element name='phoneNumber' nillable='true' type='string'/
  |  element name='site' nillable='true' type='string'/
  | /sequence
  |/complexType
  |   /schema
  |   schema targetNamespace='http://org.jboss.ws/samples/jsr181ejb' 
xmlns='http://www.w3.org/2001/XMLSchema' 
xmlns:ns1='http://core.j2me.mm.com/jaws' 
xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' 
xmlns:tns='http://org.jboss.ws/samples/jsr181ejb' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  |import namespace='http://core.j2me.mm.com/jaws'/
  |complexType name='Agency.Array'
  | sequence
  |  element maxOccurs='unbounded' minOccurs='0' name='value' 
nillable='true' type='ns1:Agency'/
  | /sequence
  |/complexType
  |   /schema
  |  /types
  |  message name='WSRemoteSEI_testWebServiceMethod'
  |   part name='arrayOfAgency_1' type='tns:Agency.Array'/
  |  /message
  |  message name='WSRemoteSEI_testWebServiceMethodResponse'
  |   part name='result' type='tns:Agency.Array'/
  |  /message
  |  portType name='WSRemoteSEI'
  |   operation name='testWebServiceMethod' parameterOrder='arrayOfAgency_1'
  |input message='tns:WSRemoteSEI_testWebServiceMethod'/
  |output message='tns:WSRemoteSEI_testWebServiceMethodResponse'/
  |   /operation
  |  /portType
  |  binding name='WSRemoteSEIBinding' type='tns:WSRemoteSEI'
  |   soap:binding style='rpc' 
transport='http://schemas.xmlsoap.org/soap/http'/
  |   operation name='testWebServiceMethod'
  |soap:operation soapAction=''/
  |input
  | soap:body namespace='http://org.jboss.ws/samples/jsr181ejb' 
use='literal'/
  |/input
  |output
  | soap:body namespace='http://org.jboss.ws/samples/jsr181ejb' 
use='literal'/
  |/output
  |   /operation
  |  /binding
  |  service name='WSFacade'
  |   port binding='tns:WSRemoteSEIBinding' name='WSRemoteSEIPort'
  |soap:address location='http://WorldCorp:9080/ejbJ2me-app-1/TestFacade'/
  |   /port
  |  /service
  | /definitions
  | 


can anyone tell me why i am having this exception??

thanks and regars
 Marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3978865#3978865

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978865

[jboss-user] [JBossWS] - Re: Call invocation failed excepiton when invoking EJB3 WebS

2006-10-17 Thread MmarcoM
hi,
 found out that i was uisng wrong namespace..
.but after fixing it.. i got this exception


  | creating service
  | Exception in thread main org.jboss.ws.WSException: Cannot obtain java 
type map
  | ping for: {http://org.jboss.ws/ejb3ws}Agency.Array
  | at 
org.jboss.ws.deployment.JSR109MetaDataBuilder.buildParameterMetaDataR
  | pc(JSR109MetaDataBuilder.java:247)
  | at 
org.jboss.ws.deployment.JSR109MetaDataBuilder.setupOperationsFromWSDL
  | (JSR109MetaDataBuilder.java:196)
  | at 
org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaDataInte
  | rnal(JSR109ClientMetaDataBuilder.java:208)
  | at 
org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR
  | 109ClientMetaDataBuilder.java:126)
  | at 
org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR
  | 109ClientMetaDataBuilder.java:82)
  | at org.jboss.ws.jaxrpc.ServiceImpl.init(ServiceImpl.java:96)
  | at 
org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryIm
  | pl.java:157)
  | at 
org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryIm
  | pl.java:142)
  | at 
ws.jboss.org.samples.jsr181ejb.WSFacadeTester.doTest(WSFacadeTester.j
  | ava:49)
  | at 
ws.jboss.org.samples.jsr181ejb.WSFacadeTester.main(WSFacadeTester.jav
  | a:36)
  | 
  | 

the signature of my webservice is

Agency[] testWebService(Agency[] in)  

i am usign SOAP RPC, and it is failing to find types.. is it too complex to use 
RPC? i am going to try literal now... but i am curious to know if someone has 
find similar problem
found this post

http://www.jboss.org/index.html?module=bbop=viewtopicp=3978884#3978884


but there is no solution yet..

any help?

thank in advance and regards
 Marco


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3978886#3978886

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978886
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Exception when invoking EJB3 webservice from clients/SchemaB

2006-10-14 Thread MmarcoM
hi all,
 i have exposed an EJB3 as a webservice
it is deployed fine on jboss, but whenn i try to invoke it from a client i got 
this bad exception..


  | Exception in thread main java.rmi.RemoteException: Call invocation 
failed: Cou
  | ld not transmit message; nested exception is:
  | javax.xml.soap.SOAPException: Could not transmit message
  | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:718)
  | at org.jboss.ws.jaxrpc.CallImpl.invoke(CallImpl.java:404)
  | at org.jboss.ws.jaxrpc.CallProxy.invoke(CallProxy.java:148)
  | at $Proxy0.testWebServiceMethod(Unknown Source)
  | at 
ws.jboss.org.samples.jsr181ejb.WSFacadeTester.doTest(WSFacadeTester.j
  | ava:49)
  | at 
ws.jboss.org.samples.jsr181ejb.WSFacadeTester.main(WSFacadeTester.jav
  | a:34)
  | Caused by: javax.xml.soap.SOAPException: Could not transmit message
  | at 
org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:204
  | )
  | at org.jboss.ws.jaxrpc.CallImpl.invokeInternal(CallImpl.java:687)
  | ... 5 more
  | Caused by: java.lang.NoSuchMethodError: 
org.jboss.xb.binding.sunday.unmarshallin
  | 
g.SchemaBinding.setXopMarshaller(Lorg/jboss/xb/binding/sunday/xop/XOPMarshaller;
  | )V
  | at 
org.jboss.ws.jaxb.JBossXBMarshallerImpl.marshal(JBossXBMarshallerImpl
  | .java:145)
  | at 
org.jboss.ws.jaxrpc.encoding.JAXBSerializer.serialize(JAXBSerializer.
  | java:107)
  | at 
org.jboss.ws.soap.SOAPContentElement.getXMLFragment(SOAPContentElemen
  | t.java:157)
  | at 
org.jboss.ws.soap.SOAPContentElement.expandToDOM(SOAPContentElement.j
  | ava:817)
  | at 
org.jboss.ws.soap.SOAPContentElement.handleMTOMTransitions(SOAPConten
  | tElement.java:1015)
  | at 
org.jboss.ws.soap.SOAPContentElement.write(SOAPContentElement.java:96
  | 8)
  | at 
org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
  | va:171)
  | at 
org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
  | va:184)
  | at 
org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
  | va:184)
  | at 
org.jboss.ws.soap.SAAJElementWriter.writeElement(SAAJElementWriter.ja
  | va:184)
  | at 
org.jboss.ws.soap.SAAJElementWriter.printInternal(SAAJElementWriter.j
  | ava:163)
  | at 
org.jboss.ws.soap.SAAJElementWriter.print(SAAJElementWriter.java:142)
  | 
  | at 
org.jboss.ws.soap.SOAPMessageImpl.writeTo(SOAPMessageImpl.java:266)
  | at 
org.jboss.ws.binding.soap.SOAPMessageMarshaller.write(SOAPMessageMars
  | haller.java:78)
  | at 
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnect
  | ion(HTTPClientInvoker.java:164)
  | at 
org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPCli
  | entInvoker.java:81)
  | at 
org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.jav
  | a:143)
  | at org.jboss.remoting.Client.invoke(Client.java:525)
  | at org.jboss.remoting.Client.invoke(Client.java:488)
  | at 
org.jboss.ws.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:189
  | )
  | ... 6 more
  | 

in running my client, i am launching application as follows..


  | C:\Sw\J2MEJobApp\wsclientjava -cp 
activation.jar;jbossall-client.jar;jboss-xml-
  | 
binding.jar;jbossws-client.jar;mail.jar;serializer.jar;xalan.jar;xercesImpl.jar;
  | xml-apis.jar;target\wsclient-1.0-SNAPSHOT.jar;. 
ws.jboss.org.samples.jsr181ejb.WSFacadeTester
  | 

i m guessing there's a classpath clash... can anyone help me in fixing the 
problem?

thanks and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3978333#3978333

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3978333
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - jbossws supported return parameter types for webservice

2006-10-05 Thread MmarcoM
hi all,
 i am exposing an EJB3 as a webservice.. and i was wondering if it was 
supported to return an array of javabeans in the webservice interface

i have following code

public Agency[] getAgencies()

i was wondering if i can expose it  in the webservice, or the array type of 
custom objects is not supported

anyone coudl comment?

thanks in advance and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3976334#3976334

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976334
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - help in generating WSDL

2006-10-05 Thread MmarcoM
hi all,
can anyone help me out in how to generate WSDL for my EJB?

i have this very simple EJB3 that i want to expose a s a webService

here's the interface


  | /**
  |  * Copyright @ 2006
  |  * By Marco Mistroni
  |  */
  | package com.mm.j2me.ejb;
  | 
  | 
  | import java.rmi.RemoteException;
  | 
  | import javax.ejb.*;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | import org.jboss.ws.annotation.PortComponent;
  | 
  | 
  | import com.mm.j2me.core.Agency;
  | import com.mm.j2me.core.WSFacade;
  | 
  | @WebService (name=WSFacade,
  |  targetNamespace=http://org.jboss.ws/samples/jsr181ejb;,
  |  serviceName=WSFacade,
  |  endpointInterface=com.mm.j2me.ejb.WSRemoteSEI)
  | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
  | use = SOAPBinding.Use.LITERAL,
  | parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
  | @PortComponent(transportGuarantee=NONE,
  | contextRoot = /,
  | urlPattern=/v1/soap/WSFacade)
  | public interface WSRemoteSEI extends Remote {
  | 
  | public String[] testWebServiceMethod() throws RemoteException;
  | 
  | }
  | 

here' smy simple EJB3

  | 
  | @WebService (name=WSFacade,
  |  serviceName=WSFacade,
  |  endpointInterface=com.mm.j2me.ejb.WSRemoteSEI)
  | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
  | use = SOAPBinding.Use.LITERAL,
  | parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
  |  
  | @Stateless
  | @Remote (WSFacade.class)
  | @RemoteBinding( jndiBinding=/ejb3/WSRemoteSEI)
  | 
  | public class TestFacade implements WSFacade{
  | 
  | @PersistenceContext
  | EntityManager em;
  | 
  | public void deleteAgency(Agency agency) {
  | // TODO Auto-generated method stub
  | Query query = getQuery(findAgencyById);
  | query.setParameter(id, agency.getId());
  | Agency agencyToDelete = (Agency)query.getSingleResult();
  | em.remove(agencyToDelete);
  | }
  | 
  | public void deleteJobApplication(JobApplication app) {
  | Query query = getQuery(findJAById);
  | query.setParameter(id, app.getId());
  | JobApplication jaToDelete = 
(JobApplication)query.getSingleResult();
  | em.remove(jaToDelete);
  | 
  | }
  | 
  | public void deleteOpportunity(Opportunity opp) {
  | Query query = getQuery(findOpportunityById);
  | query.setParameter(id, opp.getId());
  | Opportunity oppToDelete = (Opportunity)query.getSingleResult();
  | em.remove(oppToDelete);
  | 
  | }
  | 
  | public Agency[] getAllAgencies() {
  | // TODO Auto-generated method stub
  | Query query = getQuery(findAllAgencies);
  | ListAgency list =  query.getResultList();
  | Agency[] agencies = new Agency[list.size()];
  | return (Agency[])(list.toArray(agencies));
  | }
  | 
  | public JobApplication[] getAllJobApplications() {
  | return new JobApplication[]{};
  | }
  | 
  | public Opportunity[] getAllOpportunities() {
  | //Query query = getQuery(findAllOpportunities);
  | //return query.getResultList();
  | return new Opportunity[]{};
  | }
  | 
  | public void insertAgency(Agency agency) {
  | // TODO Auto-generated method stub
  | em.persist(agency);
  | }
  | 
  | public void insertJobApplication(JobApplication app) {
  | em.persist(app);
  | 
  | }
  | 
  | public void insertOpportunity(Opportunity opp) {
  | em.persist(opp);
  | 
  | }
  | 
  | public User login(String username) {
  | // TODO Auto-generated method stub
  | return null;
  | }
  | 
  | private Query getQuery(String name) {
  | return em.createNamedQuery(name);
  | }
  | 
  | @WebMethod
  | public String testWebServiceMethod() {
  | String[] agencies = {agency1;job1;, agency2;job2};
  | }
  | 
  | }
  | 

i m runnign wstools  with this cnfig file


  | ?xml version=1.0 encoding=UTF-8?
  | configuration  xmlns=http://www.jboss.org/jbossws-tools;
  | xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  | xsi:schemaLocation=http://www.jboss.org/jbossws-tools 
http://www.jboss.org/jbossws-tools/schema/jbossws-tool_1_0.xsd;
  | 
  |wsdl-java file=http://localhost:9080//v1/soap/WSFacade?wsdl;
  | mapping file=jaxrpc-mapping-client.xml /
  |/wsdl-java
  | 
  | /configuration
  | 

and all i got is plenty, plenty of generated classes:
Annotation, AnnotationType, AnnotationTypeResponse, Certificat, CertPath, 
Class, Classloader, CodeSigner

thing is that some classes does not even compile...
why does it generate all extra classes ? i need only 2 of them 
WSFacade_PortType 

[jboss-user] [JBossWS] - A service endpoint interface should extend Remote excepiton

2006-10-05 Thread MmarcoM
hi all,
 i am trying to generate a wsdl for my EJB3 webservivce...

i keep on getting this exception

  | log4j:WARN Please initialize the log4j system properly.
  | Exception in thread main org.jboss.ws.WSException: A service endpoint 
interfac
  | e should extend Remote
  | at 
org.jboss.ws.tools.metadata.ToolsUnifiedMetaDataBuilder.buildMetaData
  | (ToolsUnifiedMetaDataBuilder.java:82)
  | at 
org.jboss.ws.tools.metadata.ToolsUnifiedMetaDataBuilder.init(ToolsU
  | nifiedMetaDataBuilder.java:69)
  | at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:298)
  | at 
org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(Too
  | lsHelper.java:122)
  | at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
  | at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
  | at org.jboss.ws.tools.WSTools.main(WSTools.java:61)
  | C:\Sw\J2MEJobApp\ejbJ2ME
  | 

what is weird is that my endpoint interface extedns Remote!!

  | /**
  |  * Copyright @ 2006
  |  * By Marco Mistroni
  |  */
  | package com.mm.j2me.ejb;
  | 
  | 
  | import java.rmi.RemoteException;
  | 
  | import javax.ejb.*;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | import org.jboss.ws.annotation.PortComponent;
  | 
  | 
  | import com.mm.j2me.core.Agency;
  | import com.mm.j2me.core.WSFacade;
  | 
  | @WebService (name=WSFacade,
  |  targetNamespace=http://org.jboss.ws/samples/jsr181ejb;,
  |  serviceName=WSFacade,
  |  endpointInterface=com.mm.j2me.ejb.WSRemoteSEI)
  | @SOAPBinding(style = SOAPBinding.Style.RPC)
  | 
  | public interface WSRemoteSEI extends Remote {
  | 
  | public String testWebServiceMethod() throws RemoteException;
  | 
  | }
  | 

anyone can help?

thanks and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3976397#3976397

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976397
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - SErviceAlreadyRegistered exception

2006-10-04 Thread MmarcoM
hi all,
 i have an app in which i am exposing an EJB as  a webservice..
while deploying applicationi keep on receiving this exception


  | 14:08:19,953 ERROR [MainDeployer] Could not create deployment: 
file:/D:/Sw/jboss
  | 
-4.0.4.GA/server/default/tmp/deploy/tmp18651ngenMiddlewareEAR-1.0-SNAPSHOT.ear-c
  | ontents/ngenMiddleware-1.0-SNAPSHOT.jar
  | org.jboss.ws.WSException: Service already registerd: 
jboss.ws:context=ngenMiddle
  | ware-1,endpoint=Responder
  | at 
org.jboss.ws.server.ServiceEndpointManager.createServiceEndpoint(Serv
  | iceEndpointManager.java:501)
  | at 
org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpoin
  | tDeployer.java:120)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerInt
  | erceptor.java:80)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(Deployer
  | InterceptorEJB.java:44)
  | at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
  | create(SubDeployerInterceptorSupport.java:180)
  | at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
  | ptor.java:91)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy31.create(Unknown Source)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  | at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept
  | or.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM
  | BeanOperationInterceptor.java:142)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy6.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
  | tScanner.java:421)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
  | canner.java:634)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
  | doScan(AbstractDeploymentScanner.java:263)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
  | bstractDeploymentScanner.java:336)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
  | upport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
  | eanSupport.java:245)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | 

i have deleted all  tmp and work directory.. i cannot figure out where htis 
excpeiton is coming from..

can anyone help pls?

thanks in advance and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3976016#3976016

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976016
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: SErviceAlreadyRegistered exception

2006-10-04 Thread MmarcoM
solved and sorryf or bothering

i m building using maven2, i forgot to clean the build directory so my 
webservices.xml was messed up  big time

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3976017#3976017

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3976017
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - is my webservice too complicated to be handled by jbossws?

2006-10-03 Thread MmarcoM
hi all,
 i am trying to deploy an EJB3 as webservice
i have no problem on the serverside... however, i have PLENTY of problems while 
generating the clientside classes...and i am wondering if my webservice is too 
complicatedt o be handled by jboss ws..
here's code of interface of my ws


  | /**
  |  * Copyright @ 2006
  |  * By Marco Mistroni
  |  */
  | package com.mm.j2me.ejb;
  | 
  | 
  | import java.rmi.RemoteException;
  | 
  | import javax.ejb.*;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | 
  | import org.jboss.ws.annotation.PortComponent;
  | 
  | 
  | import com.mm.j2me.core.Agency;
  | import com.mm.j2me.core.WSFacade;
  | 
  | @WebService (name=WSFacade,
  |  targetNamespace=http://org.jboss.ws/samples/jsr181ejb;,
  |  serviceName=WSFacade,
  |  endpointInterface=com.mm.j2me.ejb.WSRemoteSEI)
  | @SOAPBinding (style = SOAPBinding.Style.RPC)
  | @PortComponent(transportGuarantee=NONE,
  | contextRoot = /,
  | urlPattern=/v1/soap/WSFacade)
  | public interface WSRemoteSEI extends Remote {
  | 
  | public Agency[] testWebServiceMethod() throws RemoteException;
  | 
  | }
  | 

here's code of agency class (a simple javabean)


  | public class AgencyEEjb implements java.io.Serializable,
  | Agency {
  | 
  | /**
  |  * 
  |  */
  | private static final long serialVersionUID = -7142342824458448020L;
  | private String emailAddress;
  | private int id;
  | private String jobHunter;
  | private String name;
  | private String phoneNumber;
  | private String site;
  | 
  | 
  | public AgencyEEjb() {
  | }
  | 
  | public AgencyEEjb(String emailAddress,
  | String jobHunter,
  | String name,
  | String phoneNumber,
  | String site) {
  | this.emailAddress = emailAddress;
  | this.jobHunter = jobHunter;
  | this.name = name;
  | this.phoneNumber = phoneNumber;
  | this.site = site;
  | }
  | 
  | 
  | 
  | public String getEmailAddress() {
  | // TODO Auto-generated method stub
  | return emailAddress;
  | }
  | 
  | @Id
  | @GeneratedValue
  | public int getId() {
  | return id;
  | }
  | 
  | public String getJobHunter() {
  | // TODO Auto-generated method stub
  | return jobHunter;
  | }
  | 
  | public String getName() {
  | // TODO Auto-generated method stub
  | return name;
  | }
  | 
  | public String getPhoneNumber() {
  | // TODO Auto-generated method stub
  | return phoneNumber;
  | }
  | 
  | public String getSite() {
  | // TODO Auto-generated method stub
  | return site;
  | }
  | 
  | public void setEmailAddress(String email) {
  | this.emailAddress = email;
  | }
  | 
  | public void setId(int id) {
  | this.id = id;
  | }
  | 
  | public void setJobHunter(String jobHunter) {
  | this.jobHunter = jobHunter;
  | }
  | 
  | public void setName(String name) {
  | this.name = name;
  | 
  | }
  | 
  | public void setPhoneNumber(String number) {
  | this.phoneNumber = number;
  | 
  | }
  | 
  | public void setSite(String site) {
  | this.site = site;
  | 
  | }
  | 
  | }
  | 

my webservice is returning an array of Agency objects...
wsdl generated is this (kinda complicated..)


  | definitions name=WSFacade 
targetNamespace=http://org.jboss.ws/samples/jsr181ejb;
  | ?
  | types
  | ?
  | schema elementFormDefault=qualified 
targetNamespace=http://reflect.lang.java/jaws;
  | import namespace=http://www.w3.org/2001/XMLSchema/
  | import namespace=http://cert.security.java/jaws/
  | import namespace=http://annotation.lang.java/jaws/
  | import namespace=http://core.j2me.mm.com/jaws/
  | import namespace=http://org.jboss.ws/samples/jsr181ejb/
  | import namespace=http://lang.java/jaws/
  | import namespace=http://net.java/jaws/
  | import namespace=http://security.java/jaws/
  | import namespace=http://util.java/jaws/
  | ?
  | complexType name=Constructor
  | ?
  | sequence
  | element maxOccurs=unbounded minOccurs=0 name=declaredAnnotations 
nillable=true type=ns4:Annotation/
  | element name=declaringClass nillable=true type=ns3:Class/
  | element maxOccurs=unbounded minOccurs=0 name=exceptionTypes 
nillable=true type=ns3:Class/
  | element maxOccurs=unbounded minOccurs=0 name=genericExceptionTypes 
nillable=true 

[jboss-user] [EJB/JBoss] - Re: Error when logging inside EJB s

2006-10-02 Thread MmarcoM
hello,
here they are..
it looks like (from logs), jboss is using log4j.properties which is embedded in 
my jar file

here it is


  | #
  | # Set the redbook EJB code priority to DEBUG
  | #
  | log4j.category.itso.was4ad.ejb=DEBUG
  | 
  | #
  | # Logging properties
  | # TC 06.03.03
  | #
  | log4j.rootLogger=debug, stdout, NGEN_LOG_FILE
  | 
  | log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  | #
  | # NGEN_LOG_FILE is a FileAppender that appends to logs\ngenTrace.log
  | #
  | log4j.appender.NGEN_LOG_FILE=org.apache.log4j.RollingFileAppender
  | log4j.appender.NGEN_LOG_FILE.File=ngenTrace.log
  | 
  | log4j.appender.NGEN_LOG_FILE.MaxFileSize=10KB
  | 
  | # Keep one backup file
  | log4j.appender.NGEN_LOG_FILE.MaxBackupIndex=1
  | 
  | log4j.appender.NGEN_LOG_FILE.layout=org.apache.log4j.PatternLayout
  | 
  | ###
  | # DO NOT CHANGE THIS!
  | ###
  | log4j.appender.NGEN_LOG_FILE.layout.ConversionPattern=%-5p (%c{2}): %m%n
  | log4j.appender.stdout.layout.ConversionPattern=%-5p (%c{2}): %m%n
  | 

and this is the one in conf directory of jboss

  | ?xml version=1.0 encoding=UTF-8?
  | !DOCTYPE log4j:configuration SYSTEM log4j.dtd
  | 
  | !-- = 
--
  | !--   
--
  | !--  Log4j Configuration  
--
  | !--   
--
  | !-- = 
--
  | 
  | !-- $Id: log4j.xml,v 1.26.2.10 2006/04/21 17:29:20 csuconic Exp $ --
  | 
  | !--
  || For more configuration infromation and examples see the Jakarta Log4j
  || owebsite: http://jakarta.apache.org/log4j
  |  --
  | 
  | log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; 
debug=false
  | 
  |!-- = --
  |!-- Preserve messages in a local file --
  |!-- = --
  | 
  |!-- A time/date based rolling appender --
  |appender name=FILE 
class=org.jboss.logging.appender.DailyRollingFileAppender
  |   errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |   param name=File value=${jboss.server.log.dir}/server.log/
  |   param name=Append value=false/
  | 
  |   !-- Rollover at midnight each day --
  |   param name=DatePattern value='.'-MM-dd/
  | 
  |   !-- Rollover at the top of each hour
  |   param name=DatePattern value='.'-MM-dd-HH/
  |   --
  | 
  |   layout class=org.apache.log4j.PatternLayout
  |  !-- The default pattern: Date Priority [Category] Message\n --
  |  param name=ConversionPattern value=%d %-5p [%c] %m%n/
  | 
  |  !-- The full pattern: Date MS Priority [Category] (Thread:NDC) 
Message\n
  |  param name=ConversionPattern value=%d %-5r %-5p [%c] (%t:%x) 
%m%n/
  |   --
  |   /layout
  |/appender
  | 
  |!-- A size based file rolling appender
  |appender name=FILE 
class=org.jboss.logging.appender.RollingFileAppender
  |  errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |  param name=File value=${jboss.server.log.dir}/server.log/
  |  param name=Append value=false/
  |  param name=MaxFileSize value=500KB/
  |  param name=MaxBackupIndex value=1/
  | 
  |  layout class=org.apache.log4j.PatternLayout
  |param name=ConversionPattern value=%d %-5p [%c] %m%n/
  |  /layout  
  |/appender
  |--
  | 
  |!-- == --
  |!-- Append messages to the console --
  |!-- == --
  | 
  |appender name=CONSOLE class=org.apache.log4j.ConsoleAppender
  |   errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |   param name=Target value=System.out/
  |   param name=Threshold value=INFO/
  | 
  |   layout class=org.apache.log4j.PatternLayout
  |  !-- The default pattern: Date Priority [Category] Message\n --
  |  param name=ConversionPattern value=%d{ABSOLUTE} %-5p [%c{1}] 
%m%n/
  |   /layout
  |/appender
  | 
  |!-- == --
  |!-- More Appender examples --
  |!-- == --
  | 
  |!-- Buffer events and log them asynchronously
  |appender name=ASYNC class=org.apache.log4j.AsyncAppender
  |  errorHandler class=org.jboss.logging.util.OnlyOnceErrorHandler/
  |  appender-ref ref=FILE/
  |  appender-ref ref=CONSOLE/
  |  appender-ref ref=SMTP/
  |/appender
  |--
  | 
  |!-- EMail events to an administrator
  |appender name=SMTP class=org.apache.log4j.net.SMTPAppender
  |  

[jboss-user] [EJB/JBoss] - EJB 2.0 / error while calling home.create for any session ej

2006-10-02 Thread MmarcoM
hi all,
 i am deploying an EJB 2.0 app on jboss 4.0.4.GA..
i have following code which results always in this exception (only thing that 
differs is the local bean involved in the exception)


  | 110:52:29,078 ERROR [STDERR] javax.ejb.EJBException: Invalid invocation, 
check yo
  | ur deployment packaging, method=public abstract 
com.waersystems.mw.ejb.DLFMainte
  | nanceSessionLocal com.mm.mw.ejb.DLFMaintenanceSessionLocalHome.create()
  |  throws javax.ejb.CreateException
  | 10:52:29,078 ERROR [STDERR] at 
org.jboss.ejb.StatelessSessionContainer$Conta
  | inerInterceptor.invokeHome(StatelessSessionContainer.java:175)
  | 10:52:29,078 ERROR [STDERR] at 
org.jboss.resource.connectionmanager.CachedCo
  | nnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:189)
  | 10:52:29,093 ERROR [STDERR] at 
org.jboss.ejb.plugins.StatelessSessionInstanc
  | eInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:98)
  | 10:52:29,093 ERROR [STDERR] at 
org.jboss.ejb.plugins.AbstractInterceptor.inv
  | okeHome(AbstractInterceptor.java:105)
  | 10:52:29,093 ERROR [STDERR] at 
org.jboss.ejb.plugins.CallValidationIntercept
  | or.invokeHome(CallValidationInterceptor.java:56)
  | 10:52:29,093 ERROR [STDERR] at 
org.jboss.ejb.plugins.AbstractTxInterceptor.i
  | nvokeNext(AbstractTxInterceptor.java:125)
  | 10:52:29,093 ERROR [STDERR] at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWit
  | hTransactions(TxInterceptorCMT.java:350)
  | 10:52:29,093 ERROR [STDERR] at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke
  | Home(TxInterceptorCMT.java:161)
  | 10:52:29,125 ERROR [STDERR] at 
org.jboss.ejb.plugins.SecurityInterceptor.inv
  | okeHome(SecurityInterceptor.java:145)
  | 10:52:29,125 ERROR [STDERR] at 
org.jboss.ejb.plugins.LogInterceptor.invokeHo
  | me(LogInterceptor.java:132)
  | 10:52:29,125 ERROR [STDERR] at 
org.jboss.ejb.plugins.ProxyFactoryFinderInter
  | ceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
  | 10:52:29,125 ERROR [STDERR] at 
org.jboss.ejb.SessionContainer.internalInvoke
  | Home(SessionContainer.java:637)
  | 10:52:29,125 ERROR [STDERR] at 
org.jboss.ejb.Container.invoke(Container.java
  | :975)
  | 10:52:29,125 ERROR [STDERR] at 
org.jboss.ejb.plugins.local.BaseLocalProxyFac
  | tory.invokeHome(BaseLocalProxyFactory.java:359)
  | 10:52:29,125 ERROR [STDERR] at 
org.jboss.ejb.plugins.local.LocalHomeProxy.in
  | voke(LocalHomeProxy.java:133)
  | 10:52:29,125 ERROR [STDERR] at $Proxy109.create(Unknown Source)
  | 10:52:29,156 ERROR [STDERR] at 
com.waersystems.mw.ejb.DLFMaintenanceBusiness
  | Delegate.initEJB(DLFMaintenanceBusinessDelegate.java:52)
  | 10:52:29,156 ERROR [STDERR] at 
com.waersystems.mw.ejb.DLFMaintenanceBusiness
  | Delegate.init(DLFMaintenanceBusinessDelegate.java:35)
  | 10:52:29,156 ERROR [STDERR] at 
com.waersystems.mwweb.DLFMaintenanceSetUpActi
  | on.getBusinessDelegate(DLFMaintenanceSetUpAction.java:153)
  | 10:52:29,156 ERROR [STDERR] at 
com.waersystems.mwweb.DLFMaintenanceSetUpActi
  | on.getDLFs(DLFMaintenanceSetUpAction.java:114)
  | 10:52:29,156 ERROR [STDERR] at 
com.waersystems.mwweb.DLFMaintenanceSetUpActi
  | on.execute(DLFMaintenanceSetUpAction.java:75)
  | 10:52:29,156 ERROR [STDERR] at 
org.apache.struts.action.RequestProcessor.pro
  | cessActionPerform(RequestProcessor.java:431)
  | 10:52:29,171 ERROR [STDERR] at 
org.apache.struts.action.RequestProcessor.pro
  | cess(RequestProcessor.java:236)
  | 10:52:29,171 ERROR [STDERR] at 
org.apache.struts.action.ActionServlet.proces
  | s(ActionServlet.java:1196)
  | 10:52:29,171 ERROR [STDERR] at 
org.apache.struts.action.ActionServlet.doGet(
  | ActionServlet.java:414)
  | 10:52:29,171 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpSe
  | rvlet.java:697)
  | 10:52:29,171 ERROR [STDERR] at 
javax.servlet.http.HttpServlet.service(HttpSe
  | rvlet.java:810)
  | 10:52:29,171 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.internalDoFilter(ApplicationFilterChain.java:252)
  | 10:52:29,203 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.doFilter(ApplicationFilterChain.java:173)
  | 10:52:29,203 ERROR [STDERR] at 
org.jboss.web.tomcat.filters.ReplyHeaderFilte
  | r.doFilter(ReplyHeaderFilter.java:96)
  | 10:52:29,203 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.internalDoFilter(ApplicationFilterChain.java:202)
  | 10:52:29,203 ERROR [STDERR] at 
org.apache.catalina.core.ApplicationFilterCha
  | in.doFilter(ApplicationFilterChain.java:173)
  | 

can anyone explain me what's wrong?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975445#3975445

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975445
___
jboss-user mailing list
jboss-user@lists.jboss.org

[jboss-user] [EJB/JBoss] - Re: EJB 2.0 / error while calling home.create for any sessio

2006-10-02 Thread MmarcoM
hello
 i forgot to post ejb-jar.xml

here it is. i m calling  a local slsb from a web app deployed in same ear


  | ?xml version=1.0 encoding=UTF-8?
  | 
  | ejb-jar id=ejb-jar_1 xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd; version=2.1
  | 
  |description![CDATA[No Description.]]/description
  |display-nameGenerated by XDoclet/display-name
  | 
  |enterprise-beans
  | 
  |   !-- Session Beans --
  |   session id=Session_DLFMaintenanceSession
  |  description![CDATA[]]/description
  | 
  |  ejb-nameDLFMaintenanceSession/ejb-name
  | 
  |  
local-homecom.waersystems.mw.ejb.DLFMaintenanceSessionLocalHome/local-home
  |  localcom.waersystems.mw.ejb.DLFMaintenanceSessionLocal/local
  |  
ejb-classcom.waersystems.mw.ejb.DLFMaintenanceSessionBean/ejb-class
  |  session-typeStateless/session-type
  |  transaction-typeContainer/transaction-type
  | 
  |  ejb-local-ref id=EJBLocalRef_1
  | ejb-ref-nameejb/ConfiguratorLocalHome/ejb-ref-name
  | ejb-ref-typeEntity/ejb-ref-type
  | 
local-homecom.waersystems.mw.ejb.ConfiguratorLocalHome/local-home
  | localcom.waersystems.mw.ejb.ConfiguratorLocal/local
  | ejb-linkConfigurator/ejb-link
  |  /ejb-local-ref
  |  ejb-local-ref id=EJBLocalRef_2
  | ejb-ref-nameejb/SiteTransmissionTypeLocalHome/ejb-ref-name
  | ejb-ref-typeEntity/ejb-ref-type
  | 
local-homecom.waersystems.mw.ejb.SiteTransmissionTypeLocalHome/local-home
  | localcom.waersystems.mw.ejb.SiteTransmissionTypeLocal/local
  | ejb-linkSiteTransmissionType/ejb-link
  |  /ejb-local-ref
  |  ejb-local-ref id=EJBLocalRef_3
  | ejb-ref-nameejb/StatusRecipientLocalHome/ejb-ref-name
  | ejb-ref-typeEntity/ejb-ref-type
  | 
local-homecom.waersystems.mw.ejb.StatusRecipientLocalHome/local-home
  | localcom.waersystems.mw.ejb.StatusRecipientLocal/local
  | ejb-linkStatusRecipient/ejb-link
  |  /ejb-local-ref
  | 
  |   /session
  | 
  |   session id=Session_ContactMaintenance
  |  description![CDATA[]]/description
  | 
  |  ejb-nameContactMaintenance/ejb-name
  | 
  |  
local-homecom.waersystems.mw.ejb.ContactMaintenanceLocalHome/local-home
  |  localcom.waersystems.mw.ejb.ContactMaintenanceLocal/local
  |  
ejb-classcom.waersystems.mw.ejb.ContactMaintenanceBean/ejb-class
  |  session-typeStateless/session-type
  |  transaction-typeContainer/transaction-type
  | 
  |  ejb-local-ref id=EJBLocalRef_4
  | ejb-ref-nameejb/ContactLocalHome/ejb-ref-name
  | ejb-ref-typeEntity/ejb-ref-type
  | 
local-homecom.waersystems.ejb.partners.contact.ContactLocalHome/local-home
  | localcom.waersystems.ejb.partners.contact.ContactLocal/local
  |  /ejb-local-ref
  | 
  |   /session
  | 
  |   session id=Session_Responder
  |  description![CDATA[]]/description
  | 
  |  ejb-nameResponder/ejb-name
  | 
  |  
service-endpointcom.waersystems.mw.webservices.MessengerService/service-endpoint
  |  ejb-classcom.waersystems.mw.ejb.ResponderBean/ejb-class
  |  session-typeStateless/session-type
  |  transaction-typeContainer/transaction-type
  | 
  |  ejb-local-ref id=EJBLocalRef_5
  | ejb-ref-nameejb/ContactLocalHome/ejb-ref-name
  | ejb-ref-typeEntity/ejb-ref-type
  | 
local-homecom.waersystems.ejb.partners.contact.ContactLocalHome/local-home
  | localcom.waersystems.ejb.partners.contact.ContactLocal/local
  |  /ejb-local-ref
  | 
  |   /session
  | 
  |   session id=Session_ReplenRequestFacade
  |  description![CDATA[Bean implementation class for Enterprise 
Bean: ReplenRequestFacade]]/description
  | 
  |  ejb-nameReplenRequestFacade/ejb-name
  | 
  |  homecom.waersystems.mw.ejb.ReplenRequestFacadeHome/home
  |  remotecom.waersystems.mw.ejb.ReplenRequestFacade/remote
  |  
local-homecom.waersystems.mw.ejb.ReplenRequestFacadeLocalHome/local-home
  |  localcom.waersystems.mw.ejb.ReplenRequestFacadeLocal/local
  |  
ejb-classcom.waersystems.mw.ejb.ReplenRequestFacadeBean/ejb-class
  |  session-typeStateless/session-type
  |  transaction-typeContainer/transaction-type
  | 
  |   /session
  | 
  |   session id=Session_TranslationServiceSession
  |  description![CDATA[]]/description
  | 
  |  ejb-nameTranslationServiceSession/ejb-name
  | 
  |  
service-endpointcom.waersystems.mw.webservices.TranslationService/service-endpoint
  |  

[jboss-user] [EJB/JBoss] - Re: EJB 2.0 / error while calling home.create for any sessio

2006-10-02 Thread MmarcoM
hello, 
 problem solved..
i found a post somewhere that was saying that jboss 4.0 upwards is giving 
problems when, while deploying an ear, you have ejb classes also in your war 
application..
that was my stupid way of packaging things, sorry...
now that ihave removed ejb related classes from  war\lib directory everything 
works fine

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975552#3975552

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975552
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: problem in looking up EJB 2.0 in JBoss4.0.4.GA

2006-10-02 Thread MmarcoM
hello,
 yes definitively what you mentionedi sthe solution..
had same problems (wrong way of packaging, ejb files in WEB-INF\lib)

my callByVaue probably wasnt the solution but it is ejb files outside .war

thanks and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=397#397

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=397
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - EJB3 webservices and jbossws

2006-09-30 Thread MmarcoM
hi all,
 ihave been developing webservices ejbs for jdk 1.4 using jbossws
now i would like to expose my ejb3 as webservice using jbossws..
i have one small question:

is it still necessary to generate wsdl and include it in the jar file?

or is it enoug just to use WebService annotations, package ejb and depoly it?

thanks in advance and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975288#3975288

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975288
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - EJB3.0 as webservices/ error in geneerating wsdl

2006-09-30 Thread MmarcoM
hi all,
 i am trying to generate a wsdl file for my Stateless SessioinBean that i want 
to expose as a webservice.
here's bean code

  | @WebService (name=EndpointInterface,
  |  
targetNamespace=http://org.jboss.ws/samples/jsr181ejb;,
  |  serviceName=TestFacade)
  |  
  | @Stateless
  | @Remote ( {WSFacade.class})
  | @RemoteBinding( jndiBinding=/ejb3/WSFacade)
  | 
  | public class TestFacade implements WSFacade{
  | ...
  | 

whenever i run wstools ant task, i got back following exception


  | org.jboss.ws.WSException: A service endpoint interface should extend Remote
  | at 
org.jboss.ws.tools.metadata.ToolsUnifiedMetaDataBuilder.buildMetaDa
  | (ToolsUnifiedMetaDataBuilder.java:82)
  | at 
org.jboss.ws.tools.metadata.ToolsUnifiedMetaDataBuilder.init(Tool
  | nifiedMetaDataBuilder.java:69)
  | at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:298)
  | at 
org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(T
  | lsHelper.java:122)
  | at org.jboss.ws.tools.WSTools.process(WSTools.java:132)
  | at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
  | at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
  | at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275
  | at org.apache.tools.ant.Task.perform(Task.java:364)
  | at org.apache.tools.ant.Target.execute(Target.java:341)
  | at 
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(Abstrac
  | ntMojo.java:99)
  | at 
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:8
  | 
  | at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlu
  | nManager.java:412)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(De
  | ultLifecycleExecutor.java:534)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWith
  | 

and here is my wstools-config.xml

  | configuration xmlns=http://www.jboss.org/jbossws-tools;
  | java-wsdl
  | service name=TestFacade style=rpc 
endpoint=com.mm.j2me.ejb.TestFacade/
  | namespaces 
target-namespace=http://org.jboss.ws/samples/jsr181ejb;
  | 
type-namespace=http://org.jboss.ws/samples/jsr181ejb/
  | mapping file=jaxrpc-mapping.xml/
  | webservices ejb-link=TestFacade/
  | /java-wsdl
  | 
  | /configuration
  | 

but if my ejb has already the @Remote annotation, why am i getting this?

thanks in advance and regards
 marco



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975289#3975289

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975289
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: EJB3.0 as webservices/ error in geneerating wsdl

2006-09-30 Thread MmarcoM
found solution of my  problems/ it is described  here

http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975288

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975293#3975293

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975293
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Error when logging inside EJB s

2006-09-29 Thread MmarcoM
hi  all,
 i am having troubles iwth logging with jboss 4.0.4.GA..
I have deployed (successfully) few EJBs in an .ear file on jboss-4.0.4
all my ejbs and web action classes use log4j for logging (i have my own 
log4j.properties file).
what happens is that whenever i run my application, log is fine on the web, but 
whenever i call an ejb, the console hangs giving me back this message


  | ERROR: invalid console appender config detected, console stream is looping
  | 

in one of ejbs, i have tried to replace log4j with System.err callls and it 
works just fine..
since my logger works in my web project, i have excluded it from being cause of 
probblems.
So, the trouble is that i cannt do  logging in my ejbs... can anyone tell me 
why?
are there any settings i need to modify?
can anyone help?

thanks in advance and regards
 marco


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975098#3975098

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975098
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: javax.persistence.PersistenceException: org.hibernate.ex

2006-09-29 Thread MmarcoM
could you post query as well as saying which rc version are you using for EJB3? 
it could be that your query is wrong, or that you are using a newer query with 
an old ejb3 release...

please full @NamedQuery, and then we'll see what's wrong

rgds
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975105#3975105

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975105
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: javax.persistence.PersistenceException: org.hibernate.ex

2006-09-29 Thread MmarcoM
well appaently yo udont have the license table...for some reason
did yo uspecify @Table in hte ejb.?
pls post ejb annotations.. 

rgds
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975115#3975115

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975115
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: Embedded EJB3 and JNDI lookups

2006-09-29 Thread MmarcoM
hello,
 i am testig ejb3 with microcontainer.. (rc9)

you can lookup JNDI with   YourBeanName/local if it is local or  ../remote if 
it is remote

but you might get a ClassCastException, because rather than having back your 
EJBLocal home you could have back a proxy..
that depends on the  CallByValue parameter of your naming service...
that might explain why you can successfully lookup DataSource but you cant 
EJBs..
try to put a try/catch around your JNDI lookup for the EJB.. i m sure you will 
see a ClassCastException while looking up bean...
i got that error with JBossContainer and was able to get over it by setting  
true   in ejb3-deployer.xml
i m not sure what you'd need to do with microcontainer, you might want to post 
your question in microcontainer forum

i had similar problems, resorte to test EEJB using EntityManager directly...

hth
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975134#3975134

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975134
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Re: javax.persistence.PersistenceException: org.hibernate.ex

2006-09-29 Thread MmarcoM
where is your License entity bean?
can  you post annotations on this?

have you checked for samples of NamedQuery for EJB3?  

hth
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975138#3975138

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975138
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Beginners Corner] - Logging problems wtih jboss 4.0.4.GA / console hanging

2006-09-28 Thread MmarcoM
hi all,
 i am deploying my .ear application in jboss 4.0.4.GA
i encountered problems with logging big time, found out htat jboss configures 
alredy its log4j properties. so i added this code into my logger ..


  | if(System.getProperty(log4j.configuration) == null) {
  |... configure my logger
  | 

things seems to work just fine, except for the fact thatn whenever in my 
BusinessDelegate i am trying to create an EJB from the home, i always get back 
this painful code and server hangs..
now i m not sure of why.

for example, this code

  | ServiceLocator locator = ServiceLocator.getInstance();
  | log.debug(Finding home..);
  | Object obj = locator.getLocalHome(
  | 
MWJNDINames.DLFMAINTENANCE_SESSION_LOCAL_HOME);
  | log.debug(.. got object from lookup.. it is: + 
obj.getClass().getName());
  | DLFMaintenanceSessionLocalHome home = 
(DLFMaintenanceSessionLocalHome)obj;
  | 
  | log.debug(Creating ejb..);
  | dlfMaintenance = home.create();
  | log.debug(..ejb created);
  | 

never arrives to display ..ejb created..
and it does not even throw any exception...

can anyone help me out? i cant see from console what is happeningand not 
even logs say anything..

thanks in advacne and regards
 marco



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3974840#3974840

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3974840
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Re: problem in looking up EJB 2.0 in JBoss4.0.4.GA

2006-09-28 Thread MmarcoM
hiya..
 i found and solved problem... didnt post cos i had no time
somehow, it has to do with naming system in jboss ..
check followign files
conf\jboss-service.xml
deploy\ejb-deployer.xml
deploy\ear-deployer.xml
deploy\naming**something**.xml

you'll see an entry  CallByValue.
you have to set it to true (if it is set to false)

this will fix your problem

pls post here or mail me at [EMAIL PROTECTED] fi this does not fix ur problem.. 
i have code @work, so i can postmor etomorrow

hth
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3975028#3975028

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3975028
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Problem with testing EJB3-rc9

2006-09-24 Thread MmarcoM
hi all,
 i am trying to test my ejb3 ejbs by starting the jboss microcontainer
i am using release rc9, and its related microcontainer..
here's my persistence.xml


  | !-- Persistence file for EJB3 application --
  | persistence
  |   persistence-unit name=j2me
  |  jta-data-sourcejava:/DefaultDS/jta-data-source
  |  properties
  |property name=hibernate.hbm2ddl.auto
  |   /persistence-unit
  | /persistence
  | 

i have this base test class which starts up jboss microcontainer (only relevant 
code

  | try {
  | 
  | System.err.println( bootstrapping EJB3 container);
  | 
  | // Boot the JBoss Microcontainer with EJB3 settings, loads 
ejb3-interceptors-aop.xml
  | EJB3StandaloneBootstrap.boot(null);
  | System.err.println(.. deploying embedded-jboss-beans);
  | EJB3StandaloneBootstrap.scanClasspath();
  | 
  | // Deploy everything we got
  | deployer.setKernel(EJB3StandaloneBootstrap.getKernel());
  | deployer.create();
  | System.err.println(.. deployer created);
  | 
  | deployer.start();
  | System.err.println(.. deployer started);
  | 
  | 
  | Hashtable props = new Hashtable();
  |   props.put(java.naming.factory.initial, 
org.jnp.interfaces.LocalOnlyContextFactory);
  |   props.put(java.naming.factory.url.pkgs, 
org.jboss.naming:org.jnp.interfaces);
  | // Create InitialContext from jndi.properties
  | initialContext = new InitialContext(props);
  | System.err.println( end of bootstrapping EJB3 
containerInitialContext is:);
  | 
  | } catch (Exception ex) {
  | ex.printStackTrace();
  | throw new RuntimeException(ex);
  | }
  | }
  | 

i have following session ejb

  | @Stateless(name=facade)
  | @Local ( {FacadeIF.class})
  | 
  | public class TestFacade implements FacadeIF {
  | 
  | @PersistenceContext
  | EntityManager em;
  | 
  | public void deleteAgency(Agency agency) {
  | // TODO Auto-generated method stub
  | Query query = getQuery(findAgencyById);
  | query.setParameter(id, agency.getId());
  | Agency agencyToDelete = (Agency)query.getSingleResult();
  | em.remove(agencyToDelete);
  | }
  | 
  | public void deleteJobApplication(JobApplication app) {
  | Query query = getQuery(findJAById);
  | query.setParameter(id, app.getId());
  | JobApplication jaToDelete = 
(JobApplication)query.getSingleResult();
  | em.remove(jaToDelete);
  | 
  | }
  | 
  | 

In one of my tests i am trying to lookup the ejb

  | public void testInsertAgency() throws Exception  {
  | System.err.println(Testing insertion of  an Agency..);
  | try {
  | 
  |   TestFacade sessionFacade = (TestFacade) 
EJB3Container.lookup(facade/local);
  | 
  | 
  | } catch(Exception e) {
  | 
  | System.err.println(an exception occurred...);
  | e.printStackTrace();
  | }
  |
  | 
  | }
  | 

but htis result sin following excepiton

  | java.lang.RuntimeException: Couldn't lookup: facade/local
  | at example1.EJB3Container.lookup(EJB3Container.java:101)
  | at example1.AgencyTest.testInsertAgency(AgencyTest.java:33)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
  | at org.testng.internal.Invoker.invokeMethod(Invoker.java:411)
  | at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
  | at 
org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
  | at org.testng.TestRunner.privateRun(TestRunner.java:693)
  | at org.testng.TestRunner.run(TestRunner.java:574)
  | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:241)
  | at org.testng.SuiteRunner.run(SuiteRunner.java:145)
  | at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
  | at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
  | at 
org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGE
  | xecutor.java:78)
  | at 
org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXml
  | TestSuite.java:76)
  | at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  | at 

[jboss-user] [EJB 3.0] - Re: Problem with testing EJB3-rc9

2006-09-24 Thread MmarcoM
small correction.. i forgot to paste hte hwole content of persistence.xml 
(SOmehow i mad ea mistake in copy/paste)


  | persistence
  |   persistence-unit name=j2me
  |  jta-data-sourcejava:/DefaultDS/jta-data-source
  |  properties
  |property name=hibernate.hbm2ddl.auto
  |   value=update/
  |  /properties
  |   /persistence-unit
  | 
  | /persistence
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3973753#3973753

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3973753
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - problem with microcontainer-alpha9 while testing ejb3s. cann

2006-09-24 Thread MmarcoM
hello all,
 i have just upgraded jboss ejb3 to rc9 release, so ihav updated also the 
embeddable alpha to rc9.
i am running junit test  by starting jboss microcontainer in my junit (testNG) 
test
i am currently using maven2... btw here' smy pom


  | project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
  | modelVersion4.0.0/modelVersion
  | groupIdejbJ2ME/groupId
  | artifactIdejbJ2ME/artifactId
  | packagingjar/packaging
  | version1.0-SNAPSHOT/version
  | nameejbJ2ME/name
  | urlhttp://maven.apache.org/url
  | dependencies
  | dependency
  | groupIdjunit/groupId
  | artifactIdjunit/artifactId
  | version3.8.1/version
  | scopetest/scope
  | /dependency
  | dependency
  | groupIdorg.testng/groupId
  | artifactIdtestng/artifactId
  | version5.1/version
  | scopetest/scope
  | classifierjdk15/classifier
  | /dependency
  | dependency
  | groupIdj2meCore/groupId
  | artifactIdJ2MECore/artifactId
  | version1.0-SNAPSHOT/version
  | /dependency
  | dependency
  | groupIdmicrocontainer/groupId
  | artifactIdhibernate-all/artifactId
  | versionrc9/version
  | scopesystem/scope
  | 
systemPath${basedir}\lib\hibernate-all-rc9.jar/systemPath
  | /dependency
  | dependency
  | groupIdmicrocontainer/groupId
  | artifactIdjboss-ejb3-all/artifactId
  | versionrc9/version
  | scopesystem/scope
  | 
systemPath${basedir}\lib\jboss-ejb3-all-rc9.jar/systemPath
  | /dependency
  | dependency
  | groupIdmicrocontainer/groupId
  | artifactIdjcainflow/artifactId
  | versionrc9/version
  | scopesystem/scope
  | 
systemPath${basedir}\lib\jcainflow-rc9.jar/systemPath
  | /dependency
  | dependency
  | groupIdmicrocontainer/groupId
  | artifactIdthirdparty-all/artifactId
  | versionrc9/version
  | scopesystem/scope
  | 
systemPath${basedir}\lib\thirdparty-all-rc9.jar/systemPath
  | /dependency
  | dependency
  | groupIdmicrocontainer/groupId
  | artifactIdjms-ra/artifactId
  | versionrc9/version
  | scopesystem/scope
  | systemPath${basedir}\lib\jms-ra-rc9.jar/systemPath
  | /dependency
  | dependency
  | groupIdmicrocontainer/groupId
  | artifactIdehcache/artifactId
  | version1.2/version
  | scopesystem/scope 
  | systemPath${basedir}\lib\ehcache-1.2.jar/systemPath
  |   /dependency
  |   
  | dependency
  | groupIddbunit/groupId
  | artifactIddbunit/artifactId
  | version2.1/version
  | scopetest/scope
  | /dependency
  | /dependencies
  | build
  | testSourceDirectorysrc/test/testSourceDirectory
  | testResources
  | testResource
  | directorysrc/test/resources/directory
  | includes
  | include*.*/include
  | /includes
  | /testResource
  | /testResources
  | pluginManagement
  | plugins
  | plugin
  | 
groupIdorg.apache.maven.plugins/groupId
  | 
artifactIdmaven-compiler-plugin/artifactId
  | configuration
  | source1.5/source
  | target1.5/target
  | /configuration
  | /plugin
  | plugin
  | 
groupIdorg.apache.maven.plugins/groupId
  | 
artifactIdmaven-surefire-plugin/artifactId
  | !--version2.8-SNAPSHOT/version--
  |   

[jboss-user] [Microcontainer] - Re: problem with microcontainer-alpha9 while testing ejb3s.

2006-09-24 Thread MmarcoM
hello,
 looklike i m ok now. i forgot few VERY important lines of code
while starting ejb3 container

deployer =  EJB3StandaloneBootstrap.createDeployer();
deployer.getArchivesByResource().add(META-INF/persistence.xml);
deployer.create();
deployer.start();

in fact, it turned out that getArchivesByResources made the difference...

thanks and regards 
marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3973755#3973755

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3973755
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Problem with testing EJB3-rc9

2006-09-24 Thread MmarcoM
hi,
 solutionis here.. forgot two lines inthe code that starts up microcontainer

http://www.jboss.com/index.html?module=bbop=viewtopicp=3973755#3973755

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3973756#3973756

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3973756
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - problem in looking up EJB 2.0 in JBoss4.0.4.GA

2006-09-22 Thread MmarcoM
hi all,
 i have deployed an .ear application that contains EJB 2.0 ejbs on 
jboss4.0.4.GA..
while my bUSINessDelegate looks up EJB, i always receive a ClassCastException 
as a result of the ejb lookup.
when i went to see what was the actual object being returned, i got that its 
class was $Proxy88 (which tells nothing to me.)

here' ssummaryof exception
 java.lang.ClassCastException: $Proxy88

i read some notes bout jboss4.0 not being compliant with J2EE 1.4 and some 
modifications needed to be done

can anyone tell me why jboss is returning a proxy and why i cannot cast it to 
my bean local home?

thanks in advance and regards
 marco



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3973564#3973564

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3973564
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: jbossws / problem in generating client. NoSuchMethod

2006-09-08 Thread MmarcoM
hello all,
 it is definitively a classpath problem in my build script
runnign wstools.bat on its own fixes the problem

sorry for messing around

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3970286#3970286

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970286
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - jbossws - multiple wsdl / webservices.xml

2006-09-07 Thread MmarcoM
hi all,
  i am exposing 2 ejbs as webservices using latest jbossws
i am using two different wstools-config files
JIRA JbossWS-1090 contained a fix in the sense that the webservice.xml does not 
get overridden by one of hte two services..

however, if my two services have different namespaces for eachservice, in 
webservices.xml only one of the two will be present...

example

1st wstools-config.xml


  | 
  | configuration xmlns=http://www.jboss.org/jbossws-tools;
  | 
  | java-wsdl
  | service name=MessengerService style=rpc 
endpoint=com..mw.webservices.MessengerService/
  | namespaces target-namespace=http://mw.com/messengerservice;
  | 
type-namespace=http://mw.com/messengerservice/types/
  | mapping file=mss-mapping.xml/
  | webservices ejb-link=Responder append=true/
  | /java-wsdl
  | 
  | /configuration
  | 

second


  | configuration xmlns=http://www.jboss.org/jbossws-tools;
  | 
  | java-wsdl
  | service name=TranslationServiceService style=rpc 
endpoint=com.mw.webservices.TranslationService/
  | namespaces target-namespace=http://mw.com/translationservice;
  | 
type-namespace=http://mw.com/translationservice/types/
  | mapping file=tss-mapping.xml/
  | webservices ejb-link=TranslationService append=true/
  | /java-wsdl
  | 
  | /configuration
  | 

the webservices.xml that gets generated lists this at the top

  | webservices version='1.1' xmlns='http://java.sun.com/xml/ns/j2ee' 
xmlns:impl='http://mw.waersystems.com/messengerservice' 
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
xsi:schemaLocation='http://java.sun.com/xml/ns/j2ee 
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd'
  | 

i can fix it easly by using same namespace for both services, but i wanted just 
to raise the issue

thanx and regards
 marco



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3970054#3970054

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970054
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - jbossws / problem in generating client. NoSuchMethod

2006-09-07 Thread MmarcoM
hi all,
 i  m trying to generate a client using jbossws  wstools ant task (within 
maven2)..
here's my task


  | tasks
  | taskdef name=wstools 
classname=org.jboss.ws.tools.ant.wstools
  | classpath refid=maven.dependency.classpath/
  | classpath
  | fileset dir=${jboss.libdir}\client
  | include name=activation.jar/
  | include name=javassist.jar/
  | include name=jbossall-client.jar/
  | include name=jbossretro-rt.jar/
  | include name=jboss-backport-concurrent.jar/
  | include name=jbossws-client.jar/
  | include name=jboss-xml-binding.jar/
  | include name=jbossws14-client.jar/
  | include name=log4j.jar/
  | include name=mail.jar/
  | include name=wsdl4j.jar/
  | /fileset
  | fileset dir=${jboss.libdir}\lib\endorsed
  | include name=*.jar/
  | /fileset
  | /classpath
  | /taskdef
  | echo message=** Running jboss ws 
**/
  |   mkdir dir=dd/ws /
  |   wstools dest=${project.build.outputDirectory}/META-INF 
  | 
config=${workspace.dir}/middleware/ngenMiddleware/jboss/wstools-messenger-config.xml/
  |   
  |   wstools 
dest=${project.build.outputDirectory}/META-INF 
  | 
config=${workspace.dir}/middleware/ngenMiddleware/jboss/wstools-translation-config.xml/
  |   
  |   wstools dest=client 
  | 
config=${workspace.dir}/middleware/ngenMiddleware/client/wstools-messenger-client-config.xml/
  |   
  | 

the first two (generation of wsdl ) worked fine, the latter not..

and here's the exception




  | [ERROR] FATAL ERROR
  | [INFO] 

  | [INFO] 
com.ibm.wsdl.xml.WSDLReaderImpl.setEntityResolver(Lorg/xml/sax/EntityReso
  | lver;)V
  | [INFO] 

  | [INFO] Trace
  | java.lang.NoSuchMethodError: 
com.ibm.wsdl.xml.WSDLReaderImpl.setEntityResolver(L
  | org/xml/sax/EntityResolver;)V
  | at 
org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitio
  | nsFactory.java:142)
  | at 
org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.java:121)
  | at 
org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(Too
  | lsHelper.java:324)
  | at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
  | at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
  | at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
  | at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
  | at org.apache.tools.ant.Task.perform(Task.java:364)
  | at org.apache.tools.ant.Target.execute(Target.java:341)
  | at 
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
  | ntMojo.java:99)
  | at 
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:82)
  | 
  | at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
  | nManager.java:412)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
  | ultLifecycleExecutor.java:534)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
  | fecycle(DefaultLifecycleExecutor.java:475)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
  | ltLifecycleExecutor.java:454)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
  | dleFailures(DefaultLifecycleExecutor.java:306)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
  | ts(DefaultLifecycleExecutor.java:273)
  | at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
  | fecycleExecutor.java:140)
  | at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
  | at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
  | at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  | java:39)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 

[jboss-user] [JBossWS] - Re: jbossws / problem in generating client. NoSuchMethod

2006-09-07 Thread MmarcoM
Hi all,
   i think i m having a clash between wsdl4j and jbossall-client.jar, in the 
sense that evenif i download (like i hav edone) wsdl4j.jar and replace jar in 
jboss, i still have an old copy of jbossall-client.jar which contains same 
classes (i installed jboss at end of july)

i try to get hte latest and see what happens

thanx
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3970084#3970084

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3970084
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: jbossws / problem in generating client. NoSuchMethod

2006-09-07 Thread MmarcoM
nope.. i aml ost!
even using onlyneeded jar files, plus the updated wsdlj4 from this link

http://www.jboss.org/index.html?module=bbop=viewtopicp=3968854 

doesnot work

and that sounds more strange... i have done a javap on the missing class's 
method, and the method shows just fine


  | Compiled from WSDLReaderImpl.java
  | public class com.ibm.wsdl.xml.WSDLReaderImpl extends java.lang.Object 
implements javax.wsdl.xml.WSDLReader{
  | protected boolean verbose;
  | protected boolean importDocuments;
  | protected javax.wsdl.extensions.ExtensionRegistry extReg;
  | protected java.lang.String factoryImplName;
  | protected javax.wsdl.xml.WSDLLocator loc;
  | protected javax.wsdl.factory.WSDLFactory factory;
  | protected org.xml.sax.EntityResolver entityResolver;
  | protected java.util.Map allSchemas;
  | static java.lang.Class class$javax$wsdl$Definition;
  | static java.lang.Class class$javax$wsdl$Types;
  | static java.lang.Class class$javax$wsdl$Import;
  | static java.lang.Class class$javax$wsdl$Binding;
  | static java.lang.Class class$javax$wsdl$BindingOperation;
  | static java.lang.Class class$javax$wsdl$BindingInput;
  | static java.lang.Class class$javax$wsdl$BindingOutput;
  | static java.lang.Class class$javax$wsdl$BindingFault;
  | static java.lang.Class class$javax$wsdl$Message;
  | static java.lang.Class class$javax$wsdl$Part;
  | static java.lang.Class class$javax$wsdl$PortType;
  | static java.lang.Class class$javax$wsdl$Operation;
  | static java.lang.Class class$javax$wsdl$Service;
  | static java.lang.Class class$javax$wsdl$Port;
  | static java.lang.Class class$javax$wsdl$Input;
  | static java.lang.Class class$javax$wsdl$Output;
  | static java.lang.Class class$javax$wsdl$Fault;
  | public com.ibm.wsdl.xml.WSDLReaderImpl();
  | public void setFeature(java.lang.String, boolean)   throws 
java.lang.IllegalArgumentException;
  | public boolean getFeature(java.lang.String)   throws 
java.lang.IllegalArgumentException;
  | public void 
setExtensionRegistry(javax.wsdl.extensions.ExtensionRegistry);
  | public javax.wsdl.extensions.ExtensionRegistry getExtensionRegistry();
  | protected javax.wsdl.factory.WSDLFactory getWSDLFactory()   throws 
javax.wsdl.WSDLException;
  | public void setFactoryImplName(java.lang.String)   throws 
java.lang.UnsupportedOperationException;
  | public java.lang.String getFactoryImplName();
  | protected javax.wsdl.Definition parseDefinitions(java.lang.String, 
org.w3c.dom.Element, java.util.Map)   throws javax.wsdl.WSDLException;
  | protected javax.wsdl.Import parseImport(org.w3c.dom.Element, 
javax.wsdl.Definition, java.util.Map)   throws javax.wsdl.WSDLException;
  | protected javax.wsdl.Types parseTypes(org.w3c.dom.Element, 
javax.wsdl.Definition)   throws javax.wsdl.WSDLException;
  | protected javax.wsdl.extensions.ExtensibilityElement 
parseSchema(java.lang.Class, org.w3c.dom.Element, javax.wsdl.Definition)   
throws javax.wsdl.WSDLException;
  | protected javax.wsdl.extensions.ExtensibilityElement 
parseSchema(java.lang.Class, org.w3c.dom.Element, javax.wsdl.Definition, 
javax.wsdl.extensions.ExtensionRegistry)   throws javax.wsdl.WSDLException;
  | protected javax.wsdl.Binding parseBinding(org.w3c.dom.Element, 
javax.wsdl.Definition)   throws javax.wsdl.WSDLException;
  | protected javax.wsdl.BindingOperation 
parseBindingOperation(org.w3c.dom.Element, javax.wsdl.PortType, 
javax.wsdl.Definition)   throws javax.wsdl.WSDLException;
  | protected javax.wsdl.BindingInput 
parseBindingInput(org.w3c.dom.Element, javax.wsdl.Definition)   throws 
javax.wsdl.WSDLException;
  | protected javax.wsdl.BindingOutput 
parseBindingOutput(org.w3c.dom.Element, javax.wsdl.Definition)   throws 
javax.wsdl.WSDLException;
  | protected javax.wsdl.BindingFault 
parseBindingFault(org.w3c.dom.Element, javax.wsdl.Definition)   throws 
javax.wsdl.WSDLException;
  | protected javax.wsdl.Message parseMessage(org.w3c.dom.Element, 
javax.wsdl.Definition)   throws javax.wsdl.WSDLException;
  | protected javax.wsdl.Part parsePart(org.w3c.dom.Element, 
javax.wsdl.Definition)   throws javax.wsdl.WSDLException;
  | protected void parseExtensibilityAttributes(org.w3c.dom.Element, 
java.lang.Class, javax.wsdl.extensions.AttributeExtensible, 
javax.wsdl.Definition)   throws javax.wsdl.WSDLException;
  | protected java.lang.Object 
parseExtensibilityAttribute(org.w3c.dom.Element, int, java.lang.String, 
javax.wsdl.Definition)   throws javax.wsdl.WSDLException;
  | protected javax.wsdl.PortType parsePortType(org.w3c.dom.Element, 
javax.wsdl.Definition)   throws javax.wsdl.WSDLException;
  | protected javax.wsdl.Operation parseOperation(org.w3c.dom.Element, 
javax.wsdl.PortType, javax.wsdl.Definition)   throws 

[jboss-user] [JBossWS] - Re: JBossWS and xdoclet with ejb

2006-09-06 Thread MmarcoM
THanx alex, it worked just fine!!

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3969654#3969654

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969654
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - org.jboss.ws.WSException: Cannot obtain UnifiedBeanMetaData

2006-09-06 Thread MmarcoM
hi all,
 i have deployed an EJB webservice in jboss4.0.4GA.. using latest download of 
jbossws..

this is my wsdl-config


  | configuration xmlns=http://www.jboss.org/jbossws-tools;
  | 
  | java-wsdl
  | service name=MessengerService style=rpc 
endpoint=com.mw.webservices.MessengerService/
  | namespaces target-namespace=http://mw.com/messengerservice;
  | 
type-namespace=http://mw.com/messengerservice/types/
  | mapping file=mss-mapping.xml/
  | webservices ejb-link=ResponderBean append=true/
  | /java-wsdl
  | 
  | /configuration
  | 
  | 

here's the ejb-jar (for ResponderBean part)


  | session id=Session_Responder
  |  description![CDATA[]]/description
  | 
  |  ejb-nameResponder/ejb-name
  | 
  | 
service-endpointcom.mw.webservices.MessengerService/service-endpoint
  |  ejb-classcom.mw.ejb.ResponderBean/ejb-class
  |  session-typeStateless/session-type
  |  transaction-typeContainer/transaction-type
  | 
  |  ejb-local-ref id=EJBLocalRef_5
  | ejb-ref-nameejb/ContactLocalHome/ejb-ref-name
  | ejb-ref-typeEntity/ejb-ref-type
  | 
local-homecom.ejb.partners.contact.ContactLocalHome/local-home
  | localcom.ejb.partners.contact.ContactLocal/local
  |  /ejb-local-ref
  | 


i have generated mapping.xml and webservices.xml, and i have put
them in the META-INF directory of the jar file where my ejbs are ..

when i deploy  my ear, i have received this exception


  | org.jboss.ws.WSException: Cannot obtain UnifiedBeanMetaData for: 
ResponderBean
  | at 
org.jboss.ws.deployment.JSR109ServerMetaDataBuilder.buildMetaData(JS
  | 109ServerMetaDataBuilder.java:152)
  | at 
org.jboss.ws.deployment.ServiceEndpointDeployer.create(ServiceEndpoi
  | tDeployer.java:85)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptor.create(DeployerIn
  | erceptor.java:80)
  | at 
org.jboss.ws.integration.jboss.DeployerInterceptorEJB.create(Deploye
  | InterceptorEJB.java:44)
  | at 
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor
  | create(SubDeployerInterceptorSupport.java:180)
  | at 
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterc
  | ptor.java:91)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker
  | java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy31.create(Unknown Source)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
  | at org.jboss.deployment.MainDeployer.create(MainDeployer.java:943)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
  | at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  | at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
  | at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
  | sorImpl.java:25)
  | at java.lang.reflect.Method.invoke(Method.java:585)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatc
  | er.java:155)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | at 
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercep
  | or.java:133)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(Model
  | BeanOperationInterceptor.java:142)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker
  | java:264)
  | at 
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | at $Proxy6.deploy(Unknown Source)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeployme
  | tScanner.java:421)
  | at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeployment
  | canner.java:634)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread
  | doScan(AbstractDeploymentScanner.java:263)
  | at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(
  | bstractDeploymentScanner.java:336)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBean
  | upport.java:289)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceM
  | eanSupport.java:245)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at 

[jboss-user] [JBossWS] - Re: org.jboss.ws.WSException: Cannot obtain UnifiedBeanMetaD

2006-09-06 Thread MmarcoM
hi all,
 sorry it was my fault.. my bean's name in DD is Responder..

sorry for bothering

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3969871#3969871

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969871
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: JBossWS and xdoclet with ejb

2006-09-05 Thread MmarcoM
Hello Thomas,
 thanks for your reply.. Unfortunately, i am trying to port an existing app 
(done with j2ee 1.3, currently deploying on websphere) to jboss..

THE problem i have is that i have more than 1 webservice in the same 
application, and putting them in the same wsdl-config results in one ws 
overriding the other in webservices.xml ...
i m using xdoclet just to build ejb classes and endpoint interfaces, i had to 
fight a little to find out how to generate webservices.xml etc.
foudn this jira about my problem

JBWS-1090

it will actually solve my problem... JIRA is marked as resolved, so will it be 
enough if i get the latest jboss app server from svn?

thanks and regards 
 marco


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3969383#3969383

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969383
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: JBossWS and xdoclet with ejb

2006-09-05 Thread MmarcoM
Hello,
  i have just downloaded  jbossws-1.0.3GA, and installed jars properly in my 
jboss directories

i am currently using Maven2, to build my application, here' sthe ant task that 
i have defined


  | tasks
  | taskdef name=wstools 
classname=org.jboss.ws.tools.ant.wstools
  | classpath refid=maven.dependency.classpath/
  | classpath
  | fileset dir=${jboss.libdir}\client
  | include name=activation.jar/
  | include name=javassist.jar/
  | include name=jbossall-client.jar/
  | include name=jbossretro-rt.jar/
  | include name=jboss-backport-concurrent.jar/
  | include name=jbossws-client.jar/
  | include name=jboss-xml-binding.jar/
  | include name=jbossws14-client.jar/
  | include name=log4j.jar/
  | include name=mail.jar/
  | /fileset
  | fileset dir=${jboss.libdir}\lib\endorsed
  | include name=*.jar/
  | /fileset
  | /classpath
  | /taskdef
  | echo message=** Running jboss ws 
**/
  |   mkdir dir=dd/ws /
  |   wstools dest=D:/Sw/step-by-step/middleware/dd/ws 
  | 
config=D:/Sw/step-by-step/middleware/boss/wstools-messenger-config.xml/
  |   
  |   wstools dest=D:/Sw/step-by-step/middleware/dd/ws 
  | 
config=D:/Sw/step-by-step/middleware/jboss/wstools-translation-config.xml/
  | 
  |  /tasks
  | 

here's my config files 


  | configuration xmlns=http://www.jboss.org/jbossws-tools;
  | java-wsdl
  | service name=TranslationService style=rpc 
endpoint=webservices.TranslationService/
  | namespaces target-namespace=http://mw.com/translationservice;
  | 
type-namespace=http://mw.com/translationservice/types/
  | mapping file=tss-mapping.xml/
  | webservices ejb-link=TranslationServiceSessionBean 
override=false/
  | /java-wsdl
  | 

  | configuration xmlns=http://www.jboss.org/jbossws-tools;
  | 
  | java-wsdl
  | service name=MessengerService style=rpc 
endpoint=webservices.MessengerService/
  | namespaces target-namespace=http://mw.com/messengerservice;
  | 
type-namespace=http://mw.com/messengerservice/types/
  | mapping file=mss-mapping.xml/
  | webservices ejb-link=ResponderBean override=false/
  | /java-wsdl
  | /configuration
  | 


but the webservice that gets generated shows only the last service (the 
translation service)

am i missingn something? am i using wrong jar files in the classpath?

can anyone help me out?

thanks and regards
 marco




  



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3969458#3969458

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969458
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - Re: jbossws-1.0.3.GA released

2006-09-05 Thread MmarcoM
hello heiko,
 i have just downloaded jbossws-1.0.3ga, but it looks like JBWS-1090 is not 
solved... unless i am doing something wrong

can you please chekc my post in this forum

http://www.jboss.org/index.html?module=bbop=viewtopict=89665

my guess is that somehow in my classpath some files gets overridden..

or i am doing something wrong...

coul dyou please help me out?

thanx and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3969516#3969516

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3969516
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBossWS] - JBossWS and xdoclet with ejb

2006-08-31 Thread MmarcoM
hi all,
 i am trying to expose an EJB via webserviecs using XDoclet
i have checked plenty of docs on the wbe on how to do that... and basically i 
end up with 2 different way of doing that:
- one where , using xdoclet, we generate proper ejb-jar.xml,then wsdl file, 
mapping.xml and webservices.xml
- another where xdoclet is not used at all, but it uses jbossws annotations..

i am tyring to move my EJBs/webservices from WAS to JBoss, could anyone tell me 
which of the two approaches shall  i follow?   i am finding more docs on the 
first option, but there are not much examples left out
could anyone help me out?
thanks in advance and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3968654#3968654

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968654
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss.NET] - exposing EJB as webservices endpoint using XDoclet

2006-08-31 Thread MmarcoM
hi all,
 i am trying to expose an EJB via webserviecs using XDoclet
i have checked plenty of docs on the wbe on how to do that... and basically i 
end up with 2 different way of doing that:
- one where , using xdoclet, we generate proper ejb-jar.xml,then wsdl file, 
mapping.xml and webservices.xml
- another where xdoclet is not used at all, but it uses jbossws annotations..

i am tyring to move my EJBs/webservices from WAS to JBoss, could anyone tell me 
which of the two approaches shall  i follow?   i am finding more docs on the 
first option, but there are not much examples left out
could anyone help me out?

does jboss 4.0.2 still supports this way of deployment? and what about later 
versions of jboss?

thanks in advance and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3968655#3968655

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3968655
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - error in deploying EJBS/jboss4.0.3sp1 / log4j? xerces?

2006-08-20 Thread MmarcoM
hi all,
 i  m really lost in this problem... :(
i have been deploying EJBs which inside have a log4j.properties file

i have been receiving following error
ERROR: invalid console appender config detected, console stream is looping

by browsing web, i found that as a solution ((since also jbos suses log4j) i 
needed to remove my log4j.properties from my jars
I did it, and redeployed EJBs, b ut after doiing that i got followng exception 
while deploying EJBs..


  | 2006-08-20 17:09:15,656 DEBUG [org.jboss.ejb.EntityContainer] Starting 
failed 
jboss.j2ee:jndiName=commons/ejb/partners/contact/ContactLocalHome,service=EJB
  | org.jboss.util.NestedRuntimeException: Failed to create new proxy target; - 
nested throwable: (java.lang.reflect.InvocationTargetException)
  | at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:52)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.init(JDBCCreateBeanClassInstanceCommand.java:56)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:124)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
  | at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:381)
  | at 
org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157)
  | at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
  | at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:428)
  | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  | at $Proxy56.start(Unknown Source)
  | at org.jboss.ejb.EjbModule.startService(EjbModule.java:395)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
  | at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
  | at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
  | at $Proxy0.start(Unknown Source)
  | at org.jboss.system.ServiceController.start(ServiceController.java:428)
  | at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | at java.lang.reflect.Method.invoke(Unknown Source)
  | at 
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
  | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
  | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
  | at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
  | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
  | at 

[jboss-user] [EJB/JBoss] - generating EJBs with Xdoclet, deployed on jboss4.0.2/ EJB sp

2006-08-16 Thread MmarcoM
hi all,
  i have written few EJBs (2.0)and have generated releted classes using 
xdoclet..
i have deployed them on jboss 4.0.2, and as a result i got this followign 
exception


  | ..
  | Bean   : StatusRecipient
  | Method : public abstract Collection findStatusRecipients(String, String) 
throws FinderException
  | Section: 10.5.6
  | Warning: Every finder method except findByPrimaryKey(key) must be 
associated with a query element in the deployment descriptor.
  | 
  | 2006-08-16 16:14:31,015 WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec 
violation: 
  | Bean   : ReplenRequest
  | Method : public abstract ReplenRequestLocal findByRecordKey(String) throws 
FinderException
  | Section: 10.5.6
  | Warning: Every finder method except findByPrimaryKey(key) must be 
associated with a query element in the deployment descriptor.
  | 
  | 2006-08-16 16:14:31,015 WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec 
violation: 
  | Bean   : TransferRecord
  | Method : public abstract Collection findTransferRecord(String, int, int, 
String) throws FinderException
  | Section: 10.5.6
  | Warning: Every finder method except findByPrimaryKey(key) must be 
associated with a query element in the deployment descriptor.
  | .

Thing is, i don't know why jboss is raising this excepiton since i can see the 
query correctly defined in ejb-jar.xml and in the generated LocalHome...

here are my files...(i pick only one of EJBs, since it looks like it fails for 
every custom finder..)

 ExpectedReceipt 

  | /**
  |  * @ejb.bean
  |  *  name=ExpectedReceipt
  |  *  type=CMP
  |  *  primkey-field=receiptID
  |  *  view-type=local
  |  *  local-jndi-name=marco/mw/ExpectedReceiptLocalHome
  |  *
  |  * @ejb.persistence table-name=expectedreceipt
  |  *
  |  * @ejb.finder
  |  *  signature=com.marco.mw.ejb.ExpectedReceiptLocal 
findByRecordKey(String recordKey)
  |  *  query=select object(o) from ExpectedReceipt o  where 
o.recordKey = ?1
  |  *
  |  * @ejb.finder
  |  *  signature=com.marco.mw.ejb.ExpectedReceiptLocal
  |  *  findByTicket(String ticket)
  |  *  query=select object(o) from ExpectedReceipt o
  |  *  where o.ticket = ?1
  |  *
  |  */
  | ..
  | 

*** ejb-jar.xml ***

  | query
  | query-method
  |method-namefindByRecordKey/method-name
  |method-params
  |   method-paramString/method-param
  |/method-params
  | /query-method
  | ejb-ql![CDATA[select object(o) from ExpectedReceipt o where 
o.recordKey = ?1]]/ejb-ql
  |  /query
  |  query
  | query-method
  |method-namefindByTicket/method-name
  |method-params
  |   method-paramString/method-param
  |/method-params
  | /query-method
  | ejb-ql![CDATA[select object(o) from ExpectedReceipt o where 
o.ticket = ?1]]/ejb-ql
  |  /query
  |   !-- Write a file named ejb-finders-ExpectedReceiptBean.xml if you 
want to define extra finders. --
  | 

and here's the localHome of bean, generated by xdoclet

  | ...
  |   public com.marco.mw.ejb.ExpectedReceiptLocal create(java.lang.String 
receiptID)
  |   throws javax.ejb.CreateException;
  | 
  |public com.marco.mw.ejb.ExpectedReceiptLocal findByRecordKey(String 
recordKey)
  |   throws javax.ejb.FinderException;
  | 
  |public com.marco.mw.ejb.ExpectedReceiptLocal findByTicket(String ticket)
  |   throws javax.ejb.FinderException;
  | 
  |public com.marco.mw.ejb.ExpectedReceiptLocal 
findByPrimaryKey(java.lang.String pk)
  |   throws javax.ejb.FinderException;
  | 

can anyone help me out?
heres' the exception


  | Bean   : StatusRecipient
  | Method : public abstract Collection findStatusRecipients(String, String) 
throws FinderException
  | Section: 10.5.6
  | Warning: Every finder method except findByPrimaryKey(key) must be 
associated with a query element in the deployment descriptor.
  | 
  | 2006-08-16 16:14:31,015 WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec 
violation: 
  | Bean   : ReplenRequest
  | Method : public abstract ReplenRequestLocal findByRecordKey(String) throws 
FinderException
  | Section: 10.5.6
  | Warning: Every finder method except findByPrimaryKey(key) must be 
associated with a query element in the deployment descriptor.
  | 
  | 2006-08-16 16:14:31,015 WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec 
violation: 
  | Bean   : TransferRecord
  | Method : public abstract Collection findTransferRecord(String, int, int, 
String) throws FinderException
  | Section: 10.5.6
  | Warning: Every finder method except findByPrimaryKey(key) must be 
associated with a query element in the deployment descriptor.
  | 
  | 2006-08-16 16:14:31,015 WARN  [org.jboss.ejb.EJBDeployer.verifier] EJB spec 
violation: 
  | 

[jboss-user] [EJB/JBoss] - Re: generating EJBs with Xdoclet, deployed on jboss4.0.2/ EJ

2006-08-16 Thread MmarcoM
solved

solution is here
http://myeclipseide.com/PNphpBB2+file-viewtopic-t-4757.html

i have to replace String with java.lang.String when i define query

regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3965532#3965532

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3965532
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - EJB3 and webservices / problems

2006-08-09 Thread MmarcoM
hi all,
  i m trying to deploy an EJB3 ejb as a webservice
i followed steps outlined in the tutorial (comeswith jboss-ejb3.0-rc7), but 
after deploying the code
on 4.0.4GA, when calling webservice i got following exception

org.jboss.util.NotImplementedException: HTTP GET not supported

what am i doing wrong? do i have to deploy a .war for the webservice?
i checked ant script etc, all got generated is a  jar file  containing ejbs...

anyone could help?

thanks and regards
 marco

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964157#3964157

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964157
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user