[JBossWS] - .war Deployment fails after upgrade to jbossws-1.2.0.GA
by alperez
Good morning.
We are currently running Jboss 4.0.4 GA on JDK 1.5.
Our application was deploying and running without issue while using jbossws 1.0.3 GA. This morning I upgraded to 1.2.0.GA following the install notes included in the jbossws-1.2.0.GA.zip.
Upon starting my server our application fails to deploy. I have included a section from the server.log below.
Anyone encounter this issue? Any incite? Thanks!
2007-02-28 10:57:26,753 ERROR [org.jboss.deployment.MainDeployer]
Could not start deployment: file:/C:/jboss-4.0.4/server/xxx/deploy/xxx.war
java.lang.NoSuchMethodError: com.sun.xml.bind.api.JAXBRIContext.newInstance([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext;
at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java:67)
at org.jboss.ws.metadata.acessor.JAXBAccessor$1.create(JAXBAccessor.java:54)
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@e1f306a0 { url=file:/C:/jboss-4.0.4/server/xxx/deploy/xxx.war }
deployer: MBeanProxyExt[jboss.web:service=WebServer]
status: Deployment FAILED reason: com.sun.xml.bind.api.JAXBRIContext.newInstance([Ljava/lang/Class;)Ljavax/xml/bind/JAXBContext;
state: FAILED
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023795#4023795
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023795
17 years, 10 months
[JBossWS] - NullPointerException with JBossWS1.0.4GA and JBoss 4.0.5
by meghanai_99
I have installed JBossAS 4.0.5GA and JBossWS's latest release I found on the site 1.0.4.GA. I followed the installation instructions given in install.txt under JBossWS.
In order to install JBossWS the following steps are necessary:
1.) Copy lib/jbossws-client.jar to $JBOSS_HOME/client/
2.) Unzip lib/jbossws.sar to $JBOSS_HOME/server/default/deploy/
3.) Replacing jboss-xml-binding.jar
You need to manually replace the jboss-xml-binding.jar in the $JBOSS_HOME/client and $JBOSS_HOME/lib directories.
The compatible release can be found here: http://repository.jboss.com/jboss/jbossxb/1.0.0.CR7
On running wstools for my wsdl files I get following exception -
Exception in thread "main" java.lang.NullPointerException
at java.io.File.(File.java:194)
at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGeneration(Too
lsHelper.java:282)
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.WSTools.main(WSTools.java:61)
My wstools.xml looks like this -
| <?xml version="1.0"?>
| <configuration xmlns="http://www.jboss.org/jbossws-tools">
| <global>
| <package-namespace package="org.jbpm.bpel.tutorial.hello"
| namespace="http://jbpm.org/examples/hello" />
| <package-namespace package="org.jbpm.bpel.tutorial.hello"
| namespace="http://www.eclipse.org/alf/schema/EventBase/1" />
| </global>
| <wsdl-java file="file://D:/jbpm-bpel-1.1.Beta3/examples/hello/target/resources/web/wsdl/hello-service.wsdl">
| <mapping file="jaxrpc-mapping.xml" />
| </wsdl-java>
| </configuration>
|
The reason for having full path there is to make sure that the problem wasn't related to relative path which was 'wsdl/hello-service.wsdl'
My hello.wsdl looks like this -
| <?xml version="1.0" encoding="UTF-8"?>
| <definitions targetNamespace="http://jbpm.org/examples/hello"
| xmlns="http://schemas.xmlsoap.org/wsdl/"
| xmlns:tns="http://jbpm.org/examples/hello"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xmlns:evt="http://www.eclipse.org/alf/schema/EventBase/1">
|
|
| <import namespace="http://www.eclipse.org/alf/schema/EventBase/1" location="resources/xml/ALFEventManagerSOAP.wsdl" />
| <!-- characterizes the relationship between the greeter and its caller -->
| <plt:partnerLinkType name="Greeter-Caller">
| <plt:role name="Greeter">
| <plt:portType name="evt:ALFServiceFlowWithReply" />
| </plt:role>
| <!-- the Caller does not provide services to the Greeter,
| this is why we omit the "Caller" role -->
| </plt:partnerLinkType>
|
| </definitions>
|
and my ALFEventManagerSOAP.wsdl is located under that relative path 'resources/xml'.
Please let me know what is wrong here. Is my configuration file right?
>From the error and the source code it fails on this line
| if (wsdlURL == null)
| {
| File wsdlFile = new File(w2jc.wsdlLocation);
| if (wsdlFile.exists())
| {
| wsdlURL = wsdlFile.toURL();
| }
| }
|
Line where it says new File so I guess something is wrong with my configuration and it cannot file wsdl files correctly?
Thank you,
Meghana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023274#4023274
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023274
17 years, 10 months
[JBossWS] - Undeploy processDefnition...
by daresan
I am trying to undeploy processdefinition from oracle database by using jbpm api. but it is throughing error. these are follows
code:
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
try {
ProcessDefinition processDefinition = jbpmContext.getGraphSession().findLatestProcessDefinition(processDefn.getName());
jbpmContext.getGraphSession().deleteProcessDefinition(processDefinition);
}finally {
jbpmContext.close();
}
error:
12:48:23,799 WARN [JDBCExceptionReporter] SQL Error: 904, SQLState: 42000
12:48:23,799 ERROR [JDBCExceptionReporter] ORA-00904: "TEMPLATESE0_"."ID_": inva
lid identifier
12:48:23,831 ERROR [STDERR] org.hibernate.exception.SQLGrammarException: could n
ot initialize a collection: [org.jbpm.taskmgmt.def.Task.templateSet#1662789]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.j
ava:65)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelp
er.java:43)
at org.hibernate.loader.Loader.loadCollection(Loader.java:1926)
at org.hibernate.loader.collection.CollectionLoader.initialize(Collectio
nLoader.java:71)
at org.hibernate.persister.collection.AbstractCollectionPersister.initia
lize(AbstractCollectionPersister.java:520)
at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onIn
itializeCollection(DefaultInitializeCollectionEventListener.java:60)
at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:
1627)
at org.hibernate.collection.AbstractPersistentCollection.initialize(Abst
ractPersistentCollection.java:344)
at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPe
rsistentCollection.java:86)
at org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:13
8)
at org.hibernate.type.CollectionType.getElementsIterator(CollectionType.
java:196)
at org.hibernate.type.CollectionType.getElementsIterator(CollectionType.
java:188)
at org.hibernate.engine.CascadingAction.getAllElementsIterator(Cascading
Action.java:266)
at org.hibernate.engine.CascadingAction.access$100(CascadingAction.java:
21)
at org.hibernate.engine.CascadingAction$2.getCascadableChildrenIterator(
CascadingAction.java:52)
at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:2
88)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:185)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:160)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
at org.hibernate.engine.Cascade.cascade(Cascade.java:248)
at org.hibernate.engine.Cascade.cascade(Cascade.java:223)
at org.hibernate.event.def.DefaultDeleteEventListener.cascadeBeforeDelet
e(DefaultDeleteEventListener.java:220)
at org.hibernate.event.def.DefaultDeleteEventListener.deleteEntity(Defau
ltDeleteEventListener.java:169)
at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDe
leteEventListener.java:110)
at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:764)
at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:757)
at org.hibernate.engine.CascadingAction$2.cascade(CascadingAction.java:4
7)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:213)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:157)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108)
at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:2
90)
i have checked so many messages about this topic
e.g.
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=78471
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=82667
i have tried to delete processinstance before processdefinition
code:
jbpmContext.getGraphSession().deleteProcessInstance(pi);
but still i am not able to undeploy
if someone who has encountered this problem can u plz help me out regarding this.
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022891#4022891
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022891
17 years, 10 months