[Installation, Configuration & DEPLOYMENT] - jboss installation with easyEclipse JbossIDE
by wagner
Hi,
I'm new in ths forum, and in the jboss world.
As a insttallation method I just extract the jboss zip downloaded, then I have a folder "jboss-4.0.5.GA" created as a result it.
So in the easyeclipse I turned to JBoss AS view, and configured a new Jboss inc server 5.0 whith proper wizard.
When I start the server, the start log below is printed with a lot of errors. I really dont known whats could be wrong, and I'd like to ask what can I do about it.
When I do: http://localhost:8080/web-console/ I receave these compilation erros:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: no protocol: ..
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: no protocol: ..
org.jboss.web.tomcat.tc5.jasper.TagLibCache.init(TagLibCache.java:106)
org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation(TagLibCache.java:83)
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:526)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:422)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
java.net.MalformedURLException: no protocol: ..
java.net.URL.(URL.java:567)
java.net.URL.(URL.java:464)
org.jboss.web.tomcat.tc5.jasper.TagLibCache.loadStandardTlds(TagLibCache.java:223)
org.jboss.web.tomcat.tc5.jasper.TagLibCache.init(TagLibCache.java:100)
org.jboss.web.tomcat.tc5.jasper.TagLibCache.getLocation(TagLibCache.java:83)
org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:526)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:422)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1556)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063090#4063090
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063090
18Â years, 11Â months
[JBoss Tools (users)] - Re: Failed to Start JBoss 4.2.0 Application Platform with JB
by flindet
Okay, I've found the wiki entry explaining issues with IPv6 on GNU/Linux.
http://wiki.jboss.org/wiki/Wiki.jsp?page=IPv6
I don't know why I'm not seeing this when starting from the command line and only when starting from Eclipse, but adding the following to my VM arguments in Eclipse did seem to help:
-Djava.net.preferIPv4Stack=true
However, I'm still not able to complete the start of the JBoss 4.2.0 Application Platform.
I'm now using JBossTools-200707110856-nightly-ALL-linux-gtk
I'm on openSUSE 10.2.
09:02:42,493 INFO [ServerInfo] Java version: 1.5.0_10,Sun Microsystems Inc.
| 09:02:42,518 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_10-b03,Sun Microsystems Inc.
| 09:02:42,519 INFO [ServerInfo] OS-System: Linux 2.6.18.8-0.5-default,i386
I receive the following Exception:
2007-07-11 09:03:26,944 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/usr/local/jboss-eap-4.2/jboss-as/server/production/conf/jboss-service.xml
| org.jboss.deployment.DeploymentException: start operation failed on package
| file:/usr/local/jboss-eap-4.2/jboss-as/server/production/conf/jboss-service.xml; - nested throwable: (java.util.ConcurrentModificationException)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:311)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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:508)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: java.util.ConcurrentModificationException
| at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
| at java.util.AbstractList$Itr.next(AbstractList.java:420)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:299)
| ... 23 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063085#4063085
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063085
18Â years, 11Â months
[Clustering/JBoss] - Re: JBossAS 4.2.0, TCP Stack, Segmenting Partitions
by nhelder
Thanks for the tip, but changing the TCP start_port (along with changing the partition name) doesn't seem to do the trick... I still see messages along the lines of:
anonymous wrote : 2007-07-11 10:44:15,658 WARN [org.jgroups.protocols.UDP] discarded message from different group "DefaultPartition-EntityCache" (our group is "xyz_partition-EntityCache"). Sender was xxx.xxx.12.185:2961
>From this (older) thread http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840501#3840501 I'm led to believe these are legitimate WARN messages - that the partition I'm creating is not "validly" unique.
So, I guess I'm still wondering how to properly segment my partition from the other one... any additional suggestions would be greatly appreciated.
Thanks,
- Nathan
PS. The "other one" in this case is another developer's machine - interestingly, one that isn't using the TCP stack at all, just the default UDP stack. And when I don't specify a different partition name on my machine, the two JBoss servers actually do appear to cluster successfully... which is somewhat surprising to me. I wouldn't have thought a TCP based server would accept views from a UDP based server. But anyway.
PPS. For reference, here's the JGroups section of my cluster-service.xml file:
<!-- The JGroups protocol configuration -->
| <attribute name="PartitionConfig">
| <!--
| The default UDP stack:
| - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
| appropriate NIC IP address, e.g bind_addr="192.168.0.2".
| - On Windows machines, because of the media sense feature being broken with multicast
| (even after disabling media sense) set the UDP protocol's loopback attribute to true
| <Config>
| <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}"
| mcast_port="${jboss.hapartition.mcast_port:45566}"
| tos="8"
| ucast_recv_buf_size="20000000"
| ucast_send_buf_size="640000"
| mcast_recv_buf_size="25000000"
| mcast_send_buf_size="640000"
| loopback="false"
| discard_incompatible_packets="true"
| enable_bundling="false"
| max_bundle_size="64000"
| max_bundle_timeout="30"
| use_incoming_packet_handler="true"
| use_outgoing_packet_handler="false"
| ip_ttl="${jgroups.udp.ip_ttl:2}"
| down_thread="false" up_thread="false"/>
| <PING timeout="2000"
| down_thread="false" up_thread="false" num_initial_members="3"/>
| <MERGE2 max_interval="100000"
| down_thread="false" up_thread="false" min_interval="20000"/>
| <FD_SOCK down_thread="false" up_thread="false"/>
| <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
| <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
| <pbcast.NAKACK max_xmit_size="60000"
| use_mcast_xmit="false" gc_lag="0"
| retransmit_timeout="300,600,1200,2400,4800"
| down_thread="false" up_thread="false"
| discard_delivered_msgs="true"/>
| <UNICAST timeout="300,600,1200,2400,3600"
| down_thread="false" up_thread="false"/>
| <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
| down_thread="false" up_thread="false"
| max_bytes="400000"/>
| <pbcast.GMS print_local_addr="true" join_timeout="3000"
| down_thread="false" up_thread="false"
| join_retry_timeout="2000" shun="true"
| view_bundling="true"/>
| <FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
| <pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="false"/>
| </Config>
| -->
|
| <!-- Alternate TCP stack: customize it for your environment, change bind_addr and initial_hosts -->
| <Config>
| <TCP bind_addr="nhelder07l" start_port="7850" loopback="true"
| tcp_nodelay="true"
| recv_buf_size="20000000"
| send_buf_size="640000"
| discard_incompatible_packets="true"
| enable_bundling="false"
| max_bundle_size="64000"
| max_bundle_timeout="30"
| use_incoming_packet_handler="true"
| use_outgoing_packet_handler="false"
| down_thread="false" up_thread="false"
| use_send_queues="false"
| sock_conn_timeout="300"
| skip_suspected_members="true"/>
| <TCPPING initial_hosts="nhelder07l[7850]" port_range="3"
| timeout="3000"
| down_thread="false" up_thread="false"
| num_initial_members="1"/>
| <MERGE2 max_interval="100000"
| down_thread="false" up_thread="false" min_interval="20000"/>
| <FD_SOCK down_thread="false" up_thread="false"/>
| <FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
| <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
| <pbcast.NAKACK max_xmit_size="60000"
| use_mcast_xmit="false" gc_lag="0"
| retransmit_timeout="300,600,1200,2400,4800"
| down_thread="false" up_thread="false"
| discard_delivered_msgs="true"/>
| <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
| down_thread="false" up_thread="false"
| max_bytes="400000"/>
| <pbcast.GMS print_local_addr="true" join_timeout="3000"
| down_thread="false" up_thread="false"
| join_retry_timeout="2000" shun="true"
| view_bundling="true"/>
| <pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="false"/>
| </Config>
| </attribute>
| <depends>jboss:service=Naming</depends>
| </mbean>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063081#4063081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063081
18Â years, 11Â months
[Beginners Corner] - Help in Setting up Servlet which receives/sends SOAP request
by helgravis
Hi, I'm fairly new in JBoss and I was wondering how to properly implement a JAXMServlet.
Basically I needed a servlet which receives SOAP messages which is then passed to some EJBs.
Here's my code, compiled with jaxm-api.jar and jboss-saaj.jar. The servlet just receives a soap message, prints it out, and replies with a dummy soap message:
anonymous wrote : package com.app;
|
| import javax.servlet.ServletConfig;
| import javax.servlet.ServletException;
| import javax.xml.messaging.JAXMServlet;
| import javax.xml.messaging.ReqRespListener;
| import javax.xml.soap.*;
|
| public class SOAPServlet extends JAXMServlet implements ReqRespListener
| {
| public SOAPServlet()
| {
| }
|
| public void init(ServletConfig config) throws ServletException
| {
| super.init(config);
| }
|
| public void destroy() {}
|
| public String getServletInfo()
| {
| return null;
| }
|
| public javax.xml.soap.SOAPMessage onMessage(javax.xml.soap.SOAPMessage sOAPMessage)
| {
|
| System.out.println("Got a SOAP: "+sOAPMessage);
|
| SOAPMessage message = null;
|
| try
| {
| MessageFactory factory = MessageFactory.newInstance();
| message = factory.createMessage();
| SOAPPart soapPart = message.getSOAPPart();
| SOAPEnvelope envelope = soapPart.getEnvelope();
| SOAPBody body = envelope.getBody();
| Name bodyName = envelope.createName("Response");
|
| SOAPBodyElement gltp = body.addBodyElement(bodyName);
| Name nof = envelope.createName("blah");
|
| SOAPElement fileNumber = gltp.addChildElement(nof);
| fileNumber.addTextNode("123");
| }
| catch(Exception e)
| {
| System.out.println(e);
| }
|
| System.out.println("Returning message: "+message);
|
| return message;
| }
| }
It compiles fine. But when I deployed it, it fired an error saying it couldn't find javax.xml.messaging.ReqRespListener. I assumed that the current filepath isn't finding the right classes, so what I did is dump the jaxm-api.jar in the jbosshome/lib/endorsed folder. It filed an error saying it couldn't find HttpServlet, so I added servlet-api.jar as well. Now the servlet deploys fine.
But whenever I try to send a SOAP using a SOAPClient, the servlet fires an error saying:
anonymous wrote :
| 11:38:04,872 ERROR [[soapentrypoint]] Servlet.service() for servlet soapentrypoint threw exception
| javax.servlet.ServletException: JAXM POST failed setProperty must be overridden by all subclasses of SOAPMessage
| at javax.xml.messaging.JAXMServlet.doPost(Unknown Source)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
| at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:619)
|
|
Here's the SOAPClient code:
anonymous wrote : package com.app;
|
| import javax.xml.soap.*;
|
| import java.net.URL;
|
| public class SOAPsender
| {
| public static void main(String[] args)
| {
| try
| {
| SOAPConnectionFactory soapConnectionFactory =
| SOAPConnectionFactory.newInstance();
| SOAPConnection connection = soapConnectionFactory.createConnection();
| SOAPFactory soapFactory = SOAPFactory.newInstance();
|
| MessageFactory factory =
| MessageFactory.newInstance();
| SOAPMessage message = factory.createMessage();
|
| SOAPHeader header = message.getSOAPHeader();
| SOAPBody body = message.getSOAPBody();
| header.detachNode();
|
| Name bodyName = soapFactory.createName("asd");
| SOAPBodyElement bodyElement = body.addBodyElement(bodyName);
|
| Name name = soapFactory.createName("symbol");
| SOAPElement symbol = bodyElement.addChildElement(name);
| symbol.addTextNode("SUNW");
|
| URL endpoint = new URL ("http://localhost:8080/SOAPServlet/soap");
| SOAPMessage response = connection.call(message, endpoint);
|
| connection.close();
|
| SOAPBody soapBody = response.getSOAPBody();
|
| System.out.println(soapBody);
| }
| catch (Exception ex)
| {
| ex.printStackTrace();
| }
| }
| }
|
Please, can anyone tell me what I'm doing wrong? An asap reply is very much appreciated, or maybe just a simple working .war example with all the necessary jars packed in it?
I'm using jboss4.2.0, by the way.
Thank you very much
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063077#4063077
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063077
18Â years, 11Â months