[JBossWS] - Re: WSDL is not genreated
by yonghongb
META-INF/
META-INF/MANIFEST.MF
.classpath
.project
.settings/
.settings/.jsdtscope
.settings/org.eclipse.jdt.core.prefs
.settings/org.eclipse.jst.common.project.facet.core.prefs
.settings/org.eclipse.wst.common.component
.settings/org.eclipse.wst.common.project.facet.core.xml
.settings/org.eclipse.wst.jsdt.ui.superType.container
.settings/org.eclipse.wst.jsdt.ui.superType.name
build/
build/classes/
build/classes/client_log4j.properties
build/classes/consentWebService/
build/classes/consentWebService/Consent.class
build/classes/consentWebService/ConsentTier.class
build/classes/consentWebService/ConsentWS.class
build/classes/consentWebService/FindObjectHelper.class
build/classes/consentWebService/Services.class
build/classes/deploy.wsdd
build/classes/echo/
build/classes/echo/Echo.class
build/classes/echo/FindObjectHelper.class
build/classes/echo/Services.class
build/classes/remoteService.xml
build/classes-old/
build/classes-old/client_log4j.properties
build/classes-old/consentWebService/
build/classes-old/consentWebService/Consent.class
build/classes-old/consentWebService/ConsentTier.class
build/classes-old/consentWebService/ConsentWS.class
build/classes-old/consentWebService/FindObjectHelper.class
build/classes-old/consentWebService/Services.class
build/classes-old/deploy.wsdd
build/classes-old/echo/
build/classes-old/echo/Echo.class
build/classes-old/echo/FindObjectHelper.class
build/classes-old/echo/Services.class
build/classes-old/remoteService.xml
build.xml
conf/
conf/client_log4j.properties
conf/deploy.wsdd
conf/remoteService.xml
log4j.PROPERTIES
src/
src/consentWebService/
src/consentWebService/Consent.java
src/consentWebService/ConsentTier.java
src/consentWebService/ConsentWS.java
src/consentWebService/FindObjectHelper.java
src/consentWebService/Services.java
src/echo/
src/echo/Echo.java
src/echo/FindObjectHelper.java
src/echo/Services.java
WebContent/
WebContent/META-INF/
WebContent/META-INF/MANIFEST.MF
WebContent/WEB-INF/
WebContent/WEB-INF/lib/
WebContent/WEB-INF/lib/activation.jar
WebContent/WEB-INF/lib/aspectjrt.jar
WebContent/WEB-INF/lib/axis.jar
WebContent/WEB-INF/lib/castor-0.9.9.jar
WebContent/WEB-INF/lib/catissuecore-client.jar
WebContent/WEB-INF/lib/catissuecore.jar
WebContent/WEB-INF/lib/cglib-full-2.0.1.jar
WebContent/WEB-INF/lib/commonpackage.jar
WebContent/WEB-INF/lib/commons-codec-1.3.jar
WebContent/WEB-INF/lib/commons-discovery-0.2.jar
WebContent/WEB-INF/lib/commons-httpclient-3.0.1.jar
WebContent/WEB-INF/lib/commons-logging.jar
WebContent/WEB-INF/lib/edu.wustl.catissuecore.domain.pathology.xsd
WebContent/WEB-INF/lib/edu.wustl.catissuecore.domain.shippingtracking.xsd
WebContent/WEB-INF/lib/edu.wustl.catissuecore.domain.xsd
WebContent/WEB-INF/lib/hibernate3.jar
WebContent/WEB-INF/lib/jaxrpc.jar
WebContent/WEB-INF/lib/junit-3.8.1.jar
WebContent/WEB-INF/lib/junit-4.1.jar
WebContent/WEB-INF/lib/log4j-1.2.8.jar
WebContent/WEB-INF/lib/log4j-1.2.9.jar
WebContent/WEB-INF/lib/mail.jar
WebContent/WEB-INF/lib/mapping.dtd
WebContent/WEB-INF/lib/minimalDataSharing-client.jar
WebContent/WEB-INF/lib/odmg.jar
WebContent/WEB-INF/lib/saaj.jar
WebContent/WEB-INF/lib/shippingtracking.jar
WebContent/WEB-INF/lib/spring-richclient.jar
WebContent/WEB-INF/lib/spring.jar
WebContent/WEB-INF/lib/struts.jar
WebContent/WEB-INF/lib/washu-commons.jar
WebContent/WEB-INF/lib/wsdl4j-1.5.1.jar
WebContent/WEB-INF/lib/xalan-2.4.0.jar
WebContent/WEB-INF/lib/xalan.jar
WebContent/WEB-INF/lib/xercesImpl.jar
WebContent/WEB-INF/lib/xml.properties
WebContent/WEB-INF/log4j.PROPERTIES
WebContent/WEB-INF/web.xml
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245950#4245950
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245950
16 years, 12 months
[Beginners Corner] - Re: Unresolved references exist in JBossWebMetaData
by loren_
anonymous wrote : What is NewtDaoRemote? I don't see it being mapped as a remote interface for the bean and neither do i see the JNDI binding for that.
|
| If it was the local interface, here's what you would do to inject it:
|
| @EJB(mappedName = "NewtDao/local")
| | public NewtDaoLocal facade;
Doh! I've been trying this every which way and posted mismatched code. Unfortunately I get the same error when I use the correct interface:
2009-07-24 14:12:45,403 WARN [org.jboss.deployment.MappedReferenceMetaDataResolverDeployer] (HDScanner) Unresolved references exist in JBossWebMetaData:[#web-app:AnnotatedEJBReferenceMetaData{name=com.corenap.newt.Application/facade,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=NewtDao/local,resolved-jndi-name=null,beanInterface=interface com.corenap.newtDAO.NewtDaoLocal}]
If I specify nothing at all in @EJB it spits out this:
2009-07-24 13:43:07,609 WARN [org.jboss.deployment.MappedReferenceMetaDataResolverDeployer] (HDScanner) Unresolved references exist in JBossWebMetaData:[#web-app:AnnotatedEJBReferenceMetaData{name=com.coren
ap.newt.Application/facade,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface com.corenap.newtDAO.NewtDaoLocal}]
2009-07-24 13:43:07,651 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/NewtJboss
2009-07-24 13:43:07,663 WARN [org.jboss.web.tomcat.service.injection.WebEJBRemoteHandler] (HDScanner) EJBTHREE-1289: Using legacy EjbEncInjector, because mappedName for enc "env/com.corenap.newt.Application
/facade", field "null" is null (container.environmentRefGroup.annotatedEjbReferences = [AnnotatedEJBReferenceMetaData{name=com.corenap.newt.Application/facade,ejb-ref-type=null,link=null,ignore-dependecy=fal
se,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface com.corenap.newtDAO.NewtDaoLocal}])
2009-07-24 13:43:07,670 ERROR [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) ENC setup failed
java.lang.IllegalStateException: Resolution should not happen via injection container
I am using Wicket, and their javaee library is a bit of a bastard child, but it works without a hitch in Glassfish (though gf certainly has other faults). I did need to copy their ioc jars to server/default/lib/ before JBoss would successfully deploy a wicket war with ejb3 annotations. But because of the unresolved reference it still throws exceptions as soon as it trys to invoke an EJB.
I'm about ready to give up on JBoss all together, any help would be greatly appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245938#4245938
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245938
16 years, 12 months
[JBoss jBPM] - Re: jbpm 4.0 creating and running processes without persiste
by mihailrc
I managed to run a process without persistence.
Here is the code:
| import junit.framework.TestCase;
| import org.jbpm.jpdl.internal.model.JpdlProcessDefinition;
| import org.jbpm.jpdl.internal.xml.JpdlParser;
| import org.jbpm.jpdl.internal.activity.StartActivity;
| import org.jbpm.jpdl.internal.activity.StateActivity;
| import org.jbpm.jpdl.internal.activity.EndActivity;
| import org.jbpm.pvm.internal.model.ActivityImpl;
| import org.jbpm.pvm.internal.model.TransitionImpl;
| import org.jbpm.pvm.internal.model.ProcessDefinitionImpl;
| import org.jbpm.pvm.internal.client.ClientExecution;
| import org.jbpm.pvm.internal.xml.Parse;
| import org.jbpm.api.activity.ActivityExecution;
| import org.jbpm.api.activity.ExternalActivityBehaviour;
|
| import java.io.FileInputStream;
| import java.io.IOException;
| import java.util.Map;
|
| public class HelloWorldTest extends TestCase {
| public void test_helloWorldProcess() throws IOException {
| ProcessDefinitionImpl processDefinition = createProcessDefinition();
| ClientExecution execution = processDefinition.startProcessInstance();
| System.out.println("State After start : " + execution.findActiveActivityNames());
| execution.signal();
| System.out.println("State after signal: " + execution.findActiveActivityNames());
|
| }
|
| private ProcessDefinitionImpl createProcessDefinition() {
| ProcessDefinitionImpl processDefinition = new ProcessDefinitionImpl();
| processDefinition.setName("hello");
| //define states
| ActivityImpl start = processDefinition.createActivity("start");
| start.setBehaviour(new StartActivity());
| //it turns out is very important to call this since it says where the process starts
| processDefinition.setInitial(start);
| ActivityImpl state1 = processDefinition.createActivity("state1");
| state1.setBehaviour(new HelloActivity());
| ActivityImpl state2 = processDefinition.createActivity("state2");
| state2.setBehaviour(new StateActivity());
| ActivityImpl end = processDefinition.createActivity("end");
| end.setBehaviour(new EndActivity());
| //define transitions
| TransitionImpl transition = start.createOutgoingTransition();
| transition.setDestination(state1);
| TransitionImpl transition2 = state1.createOutgoingTransition();
| transition2.setDestination(state2);
| TransitionImpl endTransition = state2.createOutgoingTransition();
| endTransition.setDestination(end);
| return processDefinition;
| }
|
|
| private JpdlProcessDefinition loadProcessDefinition() throws IOException {
| JpdlParser jpdlParser = new JpdlParser();
| Parse parse = jpdlParser.createParse();
| FileInputStream inputStream = new FileInputStream("process.jpdl.xml");
| parse.setInputStream(inputStream);
| parse.execute();
| return (JpdlProcessDefinition) parse.getDocumentObject();
| }
|
| class HelloActivity implements ExternalActivityBehaviour {
| public void signal(ActivityExecution activityExecution, String signalName, Map<String, ?> stringMap) throws Exception {
| activityExecution.take(signalName);
| }
|
| public void execute(ActivityExecution activityExecution) throws Exception {
| System.out.println("=================Hello there===========");
| activityExecution.waitForSignal();
| }
| }
| }
|
|
As you can see it uses the internal API quite a bit.
Mihail
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245936#4245936
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245936
16 years, 12 months