[JBoss Seam] - Outjection of previous value: selectOneMenu : One 2 Many Rel
by kryptontri
JBoss 4.0.4.GA
JBoss Seam 1.0.1 GA
Hi, I am really stuck and cant progress :-(
I have a page called viewRatePage, which allows
users to add Rate objects to their profile. When
I add a new rate, the selectOneMenu items never
clear on the refresh when a new rate is added,
it contains the old selection of the previous
rate. I do force a null on the injected rate, but
this has no effect. Please please can anyone help?
This issue affects other pages which have the same
relationship, ie adding items to a list.
These are my previous posts:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87408
This is my view:
| <div class="section">
| <fieldset>
|
| <div class="entry_small">
|
| <c:choose>
| <c:when test='${ratesPageManager.rates == null or ratesPageManager.rowCount == 0}'>
| Empty Rates
| </c:when>
| <c:otherwise>
| <h:dataTable value="#{ratesPageManager.rates}" var="item" rendered="#{ratesPageManager.rowCount>0}" rowClasses="rvgRowOne,rvgRowTwo">
|
| <h:column>
| <f:facet name="header"><h:outputText value="Duration"/></f:facet>
| <h:outputText value="#{item.duration}"/>
| </h:column>
| <h:column>
| <f:facet name="header"><h:outputText value="Unit"/></f:facet>
| <h:outputText value="#{item.unit}"/>
| </h:column>
| <h:column>
| <f:facet name="header"><h:outputText value="Currency"/></f:facet>
| <h:outputText value="#{item.currency}"/>
| </h:column>
| <h:column>
| <f:facet name="header"><h:outputText value="Cost"/></f:facet>
| <h:outputText value="#{item.cost}"/>
| </h:column>
| <h:column>
| <f:facet name="header">Action</f:facet>
| <h:commandLink action="#{ratesPageManager.deleteRate}">Delete</h:commandLink>
| </h:column>
|
| </h:dataTable>
| </c:otherwise>
| </c:choose>
|
| </div>
| </fieldset>
|
| <br/>
| <fieldset>
| <div class="entry_small">
| <h:form>
| <table>
| <tr>
| <td><div class="label"><h:outputLabel>Duration:</h:outputLabel></div></td>
| <td><div class="select"><h:selectOneMenu value="#{rate.duration}"><f:selectItems value="#{ratesManager.durations}"/></h:selectOneMenu></div></td>
| <td><div class="label"><h:outputLabel>Unit:</h:outputLabel></div></td>
| <td><div class="select"><h:selectOneMenu value="#{rate.unit}"><f:selectItems value="#{ratesManager.units}"/></h:selectOneMenu></div></td>
| <td><div class="label"><h:outputLabel>Currency:</h:outputLabel></div></td>
| <td><div class="select"><h:selectOneMenu value="#{rate.currency}"><f:selectItems value="#{ratesManager.currencys}"/></h:selectOneMenu></div></td>
| <td><div class="label"><h:outputLabel>Cost:</h:outputLabel></div></td>
| <td><div class="select"><h:selectOneMenu value="#{rate.cost}"><f:selectItems value="#{ratesManager.costs}"/></h:selectOneMenu></div></td>
| </tr>
| <tr>
| <td colspan="8">
| <h:commandButton value="Add Rate" action="#{ratesPageManager.addRate}" class="button"/>
| </td>
| </tr>
| </table>
| </h:form>
| </div>
| </fieldset>
| </div>
|
Any my Rate object that gets instantiated is an entity bean:
| @Entity
| @Name("rate")
| @Scope(EVENT)
| public class Rate implements Serializable {
|
| protected int Id = 0;
|
| protected int duration = 0;
| protected String unit = null;
| protected String currency = null;
| protected int cost = 0;
| protected RatesPage ratesPage = null;
|
| @Id
| @GeneratedValue(strategy = GenerationType.AUTO)
| public int getId() {
| return Id;
| }
|
| public void setId(int id) {
| Id = id;
| }
| ... // for brevity
|
My session bean behind the page is (with unnecessary methods removed):
| @Stateful
| @Scope(ScopeType.SESSION)
| @Name("ratesPageManager")
| @Interceptors(SeamInterceptor.class)
| @LoggedIn
| @TransactionAttribute(REQUIRES_NEW)
| public class RatesPageManagerBean implements RatesPageManager {
|
| @In
| @Out
| @Valid
| private User user;
|
| @In
| @Out
| @Valid
| private Profile profile;
|
| @In(required = false)
| @Out(required = false)
| @Valid
| private RatesPage ratesPage;
|
| @PersistenceContext
| private EntityManager em;
|
| @In
| private transient FacesContext facesContext;
|
| @DataModel
| private List<Rate> rates = new ArrayList();
|
|
| @DataModelSelection
| private Rate selectedRate;
|
| @In(required = false)
| private Rate rate;
|
|
| //public Rate getRate() {
| // return newRate;
| //}
|
| // public void setRate(Rate rate) {
| // this.newRate = rate;
| // }
|
|
|
| @IfInvalid(outcome = REDISPLAY)
| public String create() {
| if (profile.getRatesPage() == null) {
| em.persist(ratesPage);
| profile.setRatesPage(ratesPage);
| profile = em.merge(profile);
| ratesPage = em.merge(ratesPage);
| em.refresh(user);
| return "viewRatesPage";
| } else {
| facesContext.addMessage(null, new FacesMessage("RatesPage already exists"));
| return "viewProfile";
| }
| }
|
| public String select() {
| profile = user.getProfile();
| ratesPage = profile.getRatesPage();
| rates.clear();
| rates.addAll(ratesPage.getRates());
| clearRatesOnDisplay();
| return "viewRatesPage";
| }
|
| private boolean isUnSet(Rate rateToCheck) {
|
| boolean isOk = (
| (rateToCheck.getCost() == 0) || (rateToCheck.getCurrency().equals("-")) ||
| (rateToCheck.getDuration() == 0) || (rateToCheck.getUnit().equals("-"))
| );
| log.info("Rate check:: cost=" + rateToCheck.getCost() + " currency=" +rateToCheck.getCurrency()
| + " duration=" + rateToCheck.getDuration() + " unit=" + rateToCheck.getUnit());
| return isOk;
| }
|
|
| public String addRate() {
| log.info("addRate() called - " + rate);
|
| if(isUnSet(rate)) {
| log.warn("Failed rates check");
| rate = null;
| facesContext.addMessage(null, new FacesMessage("Please enter rates"));
| return "viewRatesPage";
| }
| log.info("trying to add rate - " + rate);
| rate.setRatesPage(ratesPage);
| em.persist(rate);
| ratesPage.addRate(rate);
| ratesPage = em.merge(ratesPage);
| profile = em.merge(profile);
| log.info("Persisted! and trying to remove");
| clearRatesOnDisplay();
| return select();
| }
|
| public String deleteRate() {
| log.info("deleteRate() called, removing " + selectedRate);
| rates.remove(selectedRate);
| ratesPage.removeRate(selectedRate);
| em.remove(selectedRate);
| clearRatesOnDisplay();
| return "viewRatesPage";
| }
|
| public String delete() {
| profile.setRatesPage(null);
| em.remove(ratesPage);
| profile = em.merge(profile);
| ratesPage = null;
| return "viewProfile";
| }
|
| private void clearRatesOnDisplay() {
| Contexts.getPageContext().remove("rate");
| //Contexts.getPageContext().remove("ratesManager");
| rate = null;
| selectedRate = null;
| }
| }
|
The component/javabean that provides the rate types and values is
| @Name("ratesManager")
| @Interceptors(SeamInterceptor.class)
| @Scope(ScopeType.APPLICATION)
| public class Rates {
|
| public Rates() {
| log.info("** Rates (RatesManager) instantated **");
| }
|
| /**
| * The durations
| */
| static final String[][] DURATION = // left out for brevity
|
| /**
| * The units
| */
| static final String[][] UNIT = // left out for brevity
|
| /**
| * The currency
| */
| static final String[][] CURRENCY = // left out for brevity
|
| /**
| * The cost
| */
| static final String[][] COST = // left out for brevity
|
| /**
| * The duration list
| *
| * @return List
| */
| public List<SelectItem> getDurations() {
| List<SelectItem> result = new ArrayList<SelectItem>();
| for (int i = 0; i < DURATION.length; i++) { // value, label, desc
| result.add(new SelectItem(DURATION[0], DURATION[1], DURATION[2]));
| }
| return result;
| }
|
| /**
| * The unit list
| *
| * @return List
| */
| public List<SelectItem> getUnits() {
| List<SelectItem> result = new ArrayList<SelectItem>();
| for (int i = 0; i < UNIT.length; i++) { // value, label, desc
| result.add(new SelectItem(UNIT[0], UNIT[1], UNIT[2]));
| }
| return result;
| }
|
| /**
| * The currency list
| *
| * @return List
| */
| public List<SelectItem> getCurrencys() {
| List<SelectItem> result = new ArrayList<SelectItem>();
| for (int i = 0; i < CURRENCY.length; i++) { // value, label, desc
| result.add(new SelectItem(CURRENCY[0], CURRENCY[1], CURRENCY[2]));
| }
| return result;
| }
|
| /**
| * The cost list
| *
| * @return List
| */
| public List<SelectItem> getCosts() {
| List<SelectItem> result = new ArrayList<SelectItem>();
| for (int i = 0; i < COST.length; i++) { // value, label, desc
| result.add(new SelectItem(COST[0], COST[1], COST[2]));
| }
| return result;
| }
|
|
| }
|
Upon inserting the first rate, the view still shows the previous rate in the selectMenus, if you
change it and reinsert, the following exception is thrown
| 20:32:37,698 ERROR [STDERR] Jul 26, 2006 8:32:37 PM com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View
| java.lang.IllegalStateException: Client-id : _id0 is duplicated in the faces tree.
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:241)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:255)
| at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:204)
| at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:46)
| at com.sun.facelets.FaceletViewHandler.writeState(FaceletViewHandler.java:589)
| at org.apache.myfaces.renderkit.html.HtmlFormRendererBase.encodeBegin(HtmlFormRendererBase.java:74)
| at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:307)
| at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:511)
| at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:518)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:447)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:92)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| 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(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| 20:32:37,700 ERROR [STDERR] Jul 26, 2006 8:32:37 PM com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Took Type: java.io.PrintWriter
| 20:32:37,717 INFO [RatesPageManagerBean] getRates() called size = 1
|
The server debug log shows that the previous rate object is passed down.
I tried modifiying the messages example with no success as the input field in the view
still had the old inserted value, see previous thread i mentioned.
Any ideas people ... i tried formatting this properly to get some help about this :-(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961114#3961114
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961114
19 years, 9 months
[JBoss Portal] - jar in .sar lib : bug or normal behavior ?
by Antoine_h
Hello,
I have a strange behaviour.
with Jboss 4.0.4 and Portal 2.4.0 CR2.
I deploy my portal in a main XXX.sar folder, with a XXX.sar/lib sub folder.
This is for the services (like my own url mapper like portal:commandFactory=CMSObject, etc...) of my portal, and also there are some .war sub folders, for the portlets.
this is like the main jboss-portal.sar with the lib folder and all the .war folder of jboss portal.
When I put the jar file : portal-common-lib.jar
in the deploy/XXX.sar/lib folder, and then start jboss, I have an error (which does not seem related to adding this jar).
When I take the jar away (with jboss shutdown), jboss starts smoothly... no error
21:04:58,109 INFO [Server] Core system initialized
| 21:04:59,656 INFO [WebService] Using RMI server codebase: http://pca64:8083/
| 21:04:59,671 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 21:04:59,875 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50,
| no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
| 21:05:02,656 INFO [AspectDeployer] Deployed AOP: file:/C:/serveurs/jboss-4.0.4/server/shwa/deploy/j
| boss-portal.sar/portal-aop.xml
| 21:05:04,765 ERROR [MainDeployer] Could not create deployment: file:/C:/serveurs/jboss-4.0.4/server/
| shwa/deploy/jboss-portal.sar/
| org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowable
| Exception)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
| at org.jboss.system.ServiceController.install(ServiceController.java:226)
| 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.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.install(Unknown Source)
| at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
and many others error follow, all related to deploying modules...
It does the same with another jar I need : portal-core-lib.jar
it seems that it does not like having the same jars in two lib folder, even if they are exactly the same.
is this "normal" ?
(I am not very familiar with deployement rules)
It look strange because the error does not say anything about the jar...
only that the jar "is distrurbing" deployements of many other things...
how can I use classes from JBoss Portal in my services and portlets, and tell JBoss where it can find the class def ?
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961110#3961110
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961110
19 years, 9 months
[JBossWS] - Is it me, JAX-WS, or JBoss?
by Arno Werr
Hi everybody!
I've encountered this issue while trying JPA artifacts with WS on JBoss Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
Created a very simple entity class inspired by the latest Bill Burk & Richard Monson-Haefel Enterprise JavaBeans, 3.0 (Great book BTW, strongly recommended)
| package com.bruno.net.domain;
| import java.io.Serializable;
| import javax.persistence.Entity;
| import javax.persistence.GeneratedValue;
| import javax.persistence.GenerationType;
| import javax.persistence.Id;
|
| @Entity
| public class Cabin implements Serializable {
| private static final long serialVersionUID = 1353L;
|
| @Id
| @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "hibernate3_sequence")
| private int id;
| private String name;
| public String getName() {
| return name;
| }
| public void setName(String name) {
| this.name = name;
| }
| public int getId() {
| return id;
| }
| public void setId(int id) {
| this.id = id;
| }
| }
|
Created EJB to deal with a webservice
| package com.bruno.net.ejb;
| import javax.ejb.Stateless;
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebResult;
| import javax.jws.WebService;
| import javax.persistence.EntityManager;
| import javax.persistence.PersistenceContext;
| import javax.xml.ws.WebServiceRef;
|
| import com.bruno.net.domain.Cabin;
|
| @WebService(name = "TravelAgent", serviceName = "TravelAgentService")
| @WebServiceRef(name="service/TravelAgentService")
| @Stateless
| public class TravelAgentBean implements TravelAgentRemote {
| @PersistenceContext(unitName = "titan")
| private EntityManager manager;
|
| @WebMethod
| public void createCabin(@WebParam(name = "Cabin")
| Cabin cabin) {
| manager.persist(cabin);
| }
|
| @WebMethod
| @WebResult(name = "Cabin")
| public Cabin findCabin(@WebParam(name = "ID")
| int pKey) {
| return manager.find(Cabin.class, pKey);
| }
| }
|
Ran my client against JBoss and it works. Great. Well there is some ruffle with accessability of id. If I follow good Hibernate practices and change the setter of id to private, i.e. like this
| private void setId(int id) {
| this.id = id;
| }
my client does not return properly from the server. Yet I can live with it.
My real problem is with inheritance.
If I refactor my entity into BaseEntity
| package com.bruno.net.base;
| import java.io.Serializable;
| import javax.persistence.GeneratedValue;
| import javax.persistence.GenerationType;
| import javax.persistence.Id;
| import javax.persistence.MappedSuperclass;
|
| @MappedSuperclass
| public abstract class BaseEntity implements Serializable {
|
| @Id
| @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "hibernate3_sequence")
| private int id;
|
| public int getId() {
| return id;
| }
|
| public void setId(int id) {
| this.id = id;
| }
| }
|
to hold info which should be applied to all entities like id, version, comparators etc. and rewrite my Cabin like this
| package com.bruno.net.domain;
| import javax.persistence.Entity;
| import com.bruno.net.base.BaseEntity;
| @Entity
| public class Cabin extends BaseEntity {
| private static final long serialVersionUID = 1353L;
|
| private String name;
|
| public String getName() {
| return name;
| }
| public void setName(String name) {
| this.name = name;
| }
| }
|
I cannot deploy on JBoss. The whole list of errors
| 2006-07-26 14:17:05,398 DEBUG [org.jboss.ws.jaxrpc.TypeMappingImpl] register: TypeMappingImpl@12616765 [xmlType={http://ejb.net.ileonov.com/jaws}findCabinResponse,javaType=com.i...]
| 2006-07-26 14:17:05,615 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/home/iouri/java/server/JBoss/jboss-4.0.4/server/titan/tmp/deploy/tmp8343webservice.ear-contents/facade.jar
| org.jboss.ws.WSException: Element id found in jaxrpc-mapping but not in the schema: {http://domain.net.bruno.com/jaws}Cabin
| at org.jboss.ws.jaxb.SchemaBindingBuilder.processXmlElementName(SchemaBindingBuilder.java:289)
| at org.jboss.ws.jaxb.SchemaBindingBuilder.processNonArrayType(SchemaBindingBuilder.java:189)
| at org.jboss.ws.jaxb.SchemaBindingBuilder.processJavaXmlTypeMapping(SchemaBindingBuilder.java:139)
| at org.jboss.ws.jaxb.SchemaBindingBuilder.bindSchemaToJava(SchemaBindingBuilder.java:111)
| at org.jboss.ws.jaxb.SchemaBindingBuilder.buildSchemaBinding(SchemaBindingBuilder.java:91)
| at org.jboss.ws.metadata.ServiceMetaData.getSchemaBinding(ServiceMetaData.java:332)
| at org.jboss.ws.metadata.ServiceMetaData.eagerInitialize(ServiceMetaData.java:400)
| at org.jboss.ws.metadata.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:143)
| at org.jboss.ws.server.ServiceEndpoint.start(ServiceEndpoint.java:131)
| at org.jboss.ws.server.ServiceEndpointManager$DefaultServiceLifecycle.startServiceEndpoint(ServiceEndpointManager.java:513)
| at org.jboss.ws.server.ServiceEndpointManager$ServiceLifecycleChain.startServiceEndpoint(ServiceEndpointManager.java:458)
| at org.jboss.ws.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:427)
| 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.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
| at $Proxy30.startServiceEndpoint(Unknown Source)
| at org.jboss.ws.server.WebServiceDeployer.startServiceEndpoints(WebServiceDeployer.java:203)
| at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:126)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy35.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| 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 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
| 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.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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:464)
| at java.lang.Thread.run(Thread.java:595)
| 2006-07-26 14:17:05,640 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
| 2006-07-26 14:17:05,640 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
| 2006-07-26 14:17:05,640 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
| 2006-07-26 14:17:05,641 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@cd7ba7e7{ url=file:/home/iouri/java/server/JBoss/jboss-4.0.4/server/titan/deploy/webservice.ear, deployedLastModified=0 }
| org.jboss.deployment.DeploymentException: Could not create deployment: file:/home/iouri/java/server/JBoss/jboss-4.0.4/server/titan/tmp/deploy/tmp8343webservice.ear-contents/facade.jar; - nested throwable: (org.jboss.ws.WSException: Element id found in jaxrpc-mapping but not in the schema: {http://domain.net.bruno.com/jaws}Cabin)
| at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1032)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| 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 org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
| 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.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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:464)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.ws.WSException: Element id found in jaxrpc-mapping but not in the schema: {http://domain.net.bruno.com/jaws}Cabin
| at org.jboss.ws.jaxb.SchemaBindingBuilder.processXmlElementName(SchemaBindingBuilder.java:289)
| at org.jboss.ws.jaxb.SchemaBindingBuilder.processNonArrayType(SchemaBindingBuilder.java:189)
| at org.jboss.ws.jaxb.SchemaBindingBuilder.processJavaXmlTypeMapping(SchemaBindingBuilder.java:139)
| at org.jboss.ws.jaxb.SchemaBindingBuilder.bindSchemaToJava(SchemaBindingBuilder.java:111)
| at org.jboss.ws.jaxb.SchemaBindingBuilder.buildSchemaBinding(SchemaBindingBuilder.java:91)
| at org.jboss.ws.metadata.ServiceMetaData.getSchemaBinding(ServiceMetaData.java:332)
| at org.jboss.ws.metadata.ServiceMetaData.eagerInitialize(ServiceMetaData.java:400)
| at org.jboss.ws.metadata.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:143)
| at org.jboss.ws.server.ServiceEndpoint.start(ServiceEndpoint.java:131)
| at org.jboss.ws.server.ServiceEndpointManager$DefaultServiceLifecycle.startServiceEndpoint(ServiceEndpointManager.java:513)
| at org.jboss.ws.server.ServiceEndpointManager$ServiceLifecycleChain.startServiceEndpoint(ServiceEndpointManager.java:458)
| at org.jboss.ws.server.ServiceEndpointManager.startServiceEndpoint(ServiceEndpointManager.java:427)
| 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.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:287)
| at $Proxy30.startServiceEndpoint(Unknown Source)
| at org.jboss.ws.server.WebServiceDeployer.startServiceEndpoints(WebServiceDeployer.java:203)
| at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:126)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy35.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
| ... 69 more
| 2006-07-26 14:17:05,645 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/home/iouri/java/server/JBoss/jboss-4.0.4/server/titan/deploy/webservice.ear -> file:/home/iouri/java/server/JBoss/jboss-4.0.4/server/titan/deploy/webservice.ear
| 2006-07-26 14:17:05,647 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@cd7ba7e7 { url=file:/home/iouri/java/server/JBoss/jboss-4.0.4/server/titan/deploy/webservice.ear }
| deployer: org.jboss.deployment.EARDeployer@5e9db7
| status: Deployment FAILED reason: Could not create deployment: file:/home/iouri/java/server/JBoss/jboss-4.0.4/server/titan/tmp/deploy/tmp8343webservice.ear-contents/facade.jar; - nested throwable: (org.jboss.ws.WSException: Element id found in jaxrpc-mapping but not in the schema: {http://domain.net.bruno.com/jaws}Cabin)
| state: FAILED
| watch: file:/home/iouri/java/server/JBoss/jboss-4.0.4/server/titan/deploy/webservice.ear
| altDD: null
| lastDeployed: 1153937813402
| lastModified: 1153937812000
| mbeans:
| persistence.units:ear=webservice.ear,unitName=titan state: Started
| jboss.j2ee:ear=webservice.ear,jar=facade.jar,name=TravelAgentBean,service=EJB3 state: Started
|
|
| 2006-07-26 14:17:05,652 DEBUG [org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread] Notified that enabled: true
|
Any idea how to use inheritance in EJB3+JPA+WS+JBoss environment?
Is it a known issue or bug or something :)
Cheers,
Arno
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961108#3961108
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961108
19 years, 9 months
[JBoss jBPM] - Re: JBPM-BPEL 1.1-beta1 and JBOSS AS 4.0.4 helloworldservice
by alex.guizar@jboss.com
If you run ant -p, it will show you the documented targets:
build build bpel and webapp libraries
| build.service.402 build service archive for JBoss 4.0.2
| build.service.403 build service archive for JBoss 4.0.3
| build.service.404 build service archive for JBoss 4.0.4
| clean remove all generated files
| compile compile all source files
| dist build bpel distribution
| javadoc generate jbpm bpel api documentation
| report.coverage generate coverage report
| test execute all tests
| test.coverage execute the tests and measure the coverage
If you found the clean target then finding the build target to build bpel and webapp libraries ought to be easy. Plus, it is the main target :)
The reason why build.service.XXX does not depend on build is that, in order to build the .jar and .war files, the source files have to be compiled. I do not want folks to recompile the distribution libraries unless they need to change something.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961105#3961105
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961105
19 years, 9 months
[JBossWS] - sample example for sending /processing axml file in webserv
by kiran22
Hi,
I am new to web services /xml technologies and using Jboss4.0.4 with jbossws 1.0.0. Following is the requirement I have to develop in two weeks.
1. End Client sends an XML file to a web service
2. Web service has to accept the xml file and process it - update the database, checks with directory...etc
3. return the response in xml.
I tried to look for some examples but couldn't find complete example. I suggested to my client that document style webservice will serve the purpose .Meanwhile, I was trying to develop sample example but when send I request to SOAP, Jboss is throwinng the exception:
My XML FIle:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<SOAP-ENV:Body>
<ns1:echoStringResponse xmlns:ns1="http://user.webservices.abc.com/">
<result xsi:type="xsd:string">Hello!
</ns1:echoStringResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Exception is:
javax.xml.soap.SOAPException: Unsupported content type: application/x-www-form-urlencoded
at org.jboss.ws.soap.MessageFactoryImpl.createMessageInternal(MessageFactoryImpl.java:217)
at org.jboss.ws.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:157)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:215)
at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
ava: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.j
ava: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.ja
va: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(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt
p11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:534)
14:05:44,140 ERROR [SOAPFaultExceptionHelper] Error creating SOAPFault message
org.jboss.ws.WSException: Cannot obtain NamespaceRegistry, because there is no SOAPMessage associate
d with this context
at org.jboss.ws.soap.SOAPMessageContextImpl.getNamespaceRegistry(SOAPMessageContextImpl.java
:140)
at org.jboss.ws.soap.SOAPMessageContextImpl.getSerializationContext(SOAPMessageContextImpl.j
ava:130)
at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.toSOAPMessage(SOAPFaultExceptionHelper.java:
223)
at org.jboss.ws.jaxrpc.SOAPFaultExceptionHelper.exceptionToFaultMessage(SOAPFaultExceptionHe
lper.java:177)
at org.jboss.ws.server.ServiceEndpoint.handleRequest(ServiceEndpoint.java:248)
at org.jboss.ws.server.ServiceEndpointServlet.doPost(ServiceEndpointServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717).
If anybody has small example to meet above requirement, pleaes share with me.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961104#3961104
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961104
19 years, 9 months