[JBossWS] - Re: WebService response problem
by EricJava
It's this:
[java] Exception in thread "main" com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
| [java] Message: Premature end of file.
| [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:256)
| [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:84)
| [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:99)
| [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:89)
|
| ....
|
| [java] Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]
| [java] Message: Premature end of file.
| [java] at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:563)
| [java] at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:92)
| [java] at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:65)
|
|
I'm working way too hard to make a SOAP request here. SOAP is supposed to be simple and I've been working for days on making a simple request to the server.
At this point it seems like it would be simpler to disregard all the SOAP libraries and just use JAXB and HttpClient and be done with it. It was easy to get everything working when it fetches the WSDL over the net every time but that would be a performance killer in this app.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129244#4129244
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129244
18 years, 2 months
[JBoss Messaging] - Tomcat and JBoss messaging
by jaya_srini
Hi
I have a tomcat app that needs to send and receive JMS messages from JBoss App server (4.2.2) with JBOSS messaging. Both the tomcat service and the JBoss App Server are on the same machine.
I made the following changes on the Tomcat side
1) Added the following to {catalina-home}/conf/context.xml
<Resource
name="/ConnectionFactory"
auth="Container" type="org.jboss.jms.server.connectionfactory.ConnectionFactory" factory="org.jboss.jms.server.bridge.JNDIConnectionFactoryFactory" description="JBOSS JMS Connection Factory for sending recieving messages"
/Resource>
2) Added the following to web-inf/web.xml
<resource-env-ref>
<resource-env-ref-name>/ConnectionFactory</resource-env-ref-name>
<resource-env-ref-type>org.jboss.jms.server.connectionfactory.ConnectionFactory</resource-env-ref-type>
</resource-env-ref>
3) In my java code I do the following
mLog.info("creeating InitialContext");
Properties jndiProps = new Properties();
jndiProps.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
jndiProps.setProperty(Context.URL_PKG_PREFIXES,
"org.jboss.naming:org.jnp.interface");
jndiProps.setProperty(Context.PROVIDER_URL, "jnp://10.195.4.123:1099");
ic = new InitialContext(jndiProps);
mLog.info("Looking up environment context");
Context envCtx = (Context) ic.lookup("java:comp/env");
mLog.info("Looking up Connection factory");
ConnectionFactory cf = (ConnectionFactory)envCtx.lookup("/ConnectionFactory");
When I run the above on Tomcat I get the following error
javax.naming.NameNotFoundException: comp not bound
I verified JBOSS app server was running on port 1099. Can someone help?
thanks!
Jaya
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129243#4129243
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129243
18 years, 2 months
OutOfMemoryError: PermGen space
by Chris Case
Hi Everyone,
My name is Chris and I'm new to the community. I am currently a J2EE
application designer during my day-job.
I am interested in using the WSRP capabilities of JBoss Portal, but I am
running into some errors that I figured some helpful individuals in the
community may be familiar with.
I got this error when I was trying to correct the name of my WSRP Producer
in the Consumer configuration.
Please let me know if you have any ideas, I would be most grateful.
~chris
*
*
*type* Exception report
*message*
*description* *The server encountered an internal error () that prevented it
from fulfilling this request.*
*exception*
javax.servlet.ServletException: Servlet execution threw an exception
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
*root cause*
java.lang.OutOfMemoryError: PermGen space
java.lang.Throwable.getStackTraceElement(Native Method)
java.lang.Throwable.getOurStackTrace(Throwable.java:592)
java.lang.Throwable.printStackTrace(Throwable.java:511)
org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)
org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
org.apache.log4j.Category.callAppenders(Category.java:203)
org.apache.log4j.Category.forcedLog(Category.java:388)
org.apache.log4j.Category.log(Category.java:853)
org.jboss.logging.Log4jLoggerPlugin.error(Log4jLoggerPlugin.java:206)
org.jboss.logging.Logger.error(Logger.java:234)
org.jboss.portal.core.controller.ControllerRequestDispatcher.include(ControllerRequestDispatcher.java:69)
org.jboss.portal.core.model.portal.control.portal.DefaultPortalControlPolicy.doControl(DefaultPortalControlPolicy.java:158)
org.jboss.portal.core.aspects.controller.ControlInterceptor.invoke(ControlInterceptor.java:63)
org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.PageCustomizerInterceptor.invoke(PageCustomizerInterceptor.java:133)
org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.PolicyEnforcementInterceptor.invoke(PolicyEnforcementInterceptor.java:78)
org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.node.PortalNodeInterceptor.invoke(PortalNodeInterceptor.java:81)
org.jboss.portal.core.controller.ControllerInterceptor.invoke(ControllerInterceptor.java:40)
org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.java:115)
org.jboss.portal.core.aspects.controller.NavigationalStateInterceptor.invoke(NavigationalStateInterceptor.java:42)
18 years, 2 months