[Remoting] - Re: Remoting 2.4.0.GA is now available
by ron.sigal@jboss.com
Is Remoting 2.5 compatible with AS 4.2.x? Good question. It's not a combination that has been tested officially, although it's clear from the forum that people are using them together.
Generally speaking, EJB2 and EJB3 are fairly independent of Remoting details, so I would guess that they would be compatible with Remoting 2.5. On the other hand, JBossMessaging is much more tied to Remoting details, so I would get a new JBM release. In particular, I would look for a version of JBM that ships with AS 5, which is an environment in which JBM uses Remoting 2.5 You would have to check with the JBM guys about their other dependencies.
Good luck. If you go ahead and try Remoting 2.5 with AS 4.2.x, please let us know how it goes.
-Ron
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204146#4204146
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204146
17 years, 3 months
[Tomcat, HTTPD, Servlets & JSP] - Re: JBoss Web
by dgenkin
Peter, what do you mean by 'jboss_native/bin'?
I added this to catalina.sh:
# Setup JBosst Native library path
JBOSSWEB_NATIVE_DIR="$JBOSSWEB_HOME/bin/native"
if [ -d "$JBOSSWEB_NATIVE_DIR" ]; then
if $cygwin ; then
export PATH="$JBOSSWEB_NATIVE_DIR:$PATH"
JBOSSWEB_NATIVE_DIR=`cygpath --dos "$JBOSSWEB_NATIVE_DIR"`
fi
if [ "x$LD_LIBRARY_PATH" = "x" ]; then
LD_LIBRARY_PATH="$JBOSSWEB_NATIVE_DIR"
else
LD_LIBRARY_PATH="$JBOSSWEB_NATIVE_DIR:$LD_LIBRARY_PATH"
fi
export LD_LIBRARY_PATH
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-Djava.library.path=$JBOSSWEB_NATIVE_DIR"
else
JAVA_OPTS="$JAVA_OPTS -Djava.library.path=$JBOSSWEB_NATIVE_DIR"
fi
fi
and get the following error:
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /home/jbossweb/product/jbossweb/bin/native
java.libray.path is different now.
I am obviously doing something wrong here...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204145#4204145
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204145
17 years, 3 months
[Remoting] - Re: Socket Read Timeout on stressing calls for validating pr
by ron.sigal@jboss.com
"vink" wrote :
| ... can we use the local fixed version in our product where org.jboss.remoting.Client class is working with static invokerDestructionTimer instance & other places instantiating timer object in disconnect() is commented.
|
That may be a two part question.
1. If you have a support contract and are using an EAP product, then there's no support for a nonstandard library.
2. Technically, it's not enough to just create a static Timer, because, in the absence of TimerTasks, a Timer can turn itself off and become unusable. I do something like this:
| private static Timer timer;
| private static Object timerLock = new Object();
| ...
|
| {
| ...
| synchronized (timerLock)
| {
| if (timer == null)
| {
| timer = new Timer(true);
| }
| try
| {
| timer.schedule(pingTimerTask, pingFrequency, pingFrequency);
| }
| catch (IllegalStateException e)
| {
| log.debug("Unable to schedule TimerTask on existing Timer", e);
| timer = new Timer(true);
| timer.schedule(pingTimerTask, pingFrequency, pingFrequency);
| }
| }
| ...
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204142#4204142
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204142
17 years, 3 months
[Security & JAAS/JBoss] - JAAS + multiple web configurations
by marianokm
Hi Everyone!
Actually i have 8 web-apps packaged as war files and all of them are running against an ldap based security domain.
So far so good...
Also each web application has his own web.xml in which the proper security constraints and security roles are defined as well.
The thing is that these 8 web.xml files are absolutely identical except for the jaas stuffs, i mean: The web resource collections, the allowed roles for each resource and so on...
So far, what i'm actually doing is to execute an external ant-task at build time who takes the base web.xml file and includes in this one the proper jaas configuration for each web application. (thats means that im dynamically generating 8 web.xml files each one for each web app).
Does anybody know if there is an external configuration file (another like web.xml) who allows me to put my jaas stuffs alone ?
I'm looking for something like this:
1. deploy 8 .wars
2. Each one of them will contain a base web.xml file (Servlets, Facelets, Rich, index, error pages, etc)
3. Another extra configuration file with only the proper jaas configurations (web resource collections, allowed roles, login-config, etc )
In this way i would be able to avoid the ant's tasks work and simplicity.
Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204139#4204139
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204139
17 years, 3 months
[Remoting] - Re: Can't connect to JBoss Messaging behind firewall
by ron.sigal@jboss.com
I'll explain the meaning of "secondaryBindPort" and "secondaryConnectPort", and maybe that will help.
The Remoting bisocket transport creates two ServerSockets on the server. The "primary" ServerSocket is used to create connections used for ordinary invocations, e.g., a request to create a JMS consumer, and the "secondary" ServerSocket is used to create "control" connections for internal Remoting messages. The port for the primary ServerSocket is configured by the "serverBindPort" parameter, and the port for the secondary ServerSocket is, by default, chosen randomly.
The "secondaryBindPort" parameter can be used to assign a specific port to the secondary ServerSocket. Now, if there is a translating firewall between the client and server, the client should be given the value of the port that is translated to the actual binding port of the secondary ServerSocket.
For example, your configuration will tell the secondary ServerSocket to bind to port 14000, and it will tell the client to connect to port 14001. It assumes that there is a firewall which will translate 14001 to 14000. Apparently, that's not happening.
Hope that helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204136#4204136
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204136
17 years, 3 months
[Tomcat, HTTPD, Servlets & JSP] - Error occured during JSP compilation in JBoss 5.0
by 4663
Hi all,
I've posted this message to 'jboss-user' list too.
While trying to view a jsp page I've deployed in a WAR (inside an EAR), I'm
getting following error:
01:55:08,585 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
| org.apache.jasper.JasperException: Unable to compile class for JSP:
|
| An error occurred at line: 30 in the generated java file
| The method getJspApplicationContext(ServletContext) is undefined for the type
| JspFactory
|
| Stacktrace:
| at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
| at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
| at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
| at org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
| at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
| at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
| at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
| at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
| 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:235)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
| at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:636)
Following is an excerpt from the generated java code (with line numbers):
28 public void _jspInit() {
| 29 _005fjspx_005ftagPool_005fc_005fif_0026_005ftest = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
| 30 _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
| 31 _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
| 32 }
From the Google search, I've concluded that this could be due to the
classloading issues. So I checked my EAR, to see if there is any system-provided
jar is deployed, but I found none. Then I started the JBoss with java's
-verbose:class switch, and found the javax.servlet.jsp.JspFactory is loaded from
the "jsp-api.jar" file shipped with JBoss.
% ./run.sh |fgrep JspFactory
| [Loaded javax.servlet.jsp.JspFactory from jar:file:/home/dev/jboss-5.0.0.GA/common/lib/jsp-api.jar!/]
| [Loaded org.apache.jasper.runtime.JspFactoryImpl from jar:file:/home/dev/jboss-5.0.0.GA/server/default/deploy/jbossweb.sar/jbossweb.jar!/]
| [Loaded org.apache.jasper.runtime.JspFactoryImpl$1 from jar:file:/home/dev/jboss-5.0.0.GA/server/default/deploy/jbossweb.sar/jbossweb.jar!/]
| The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
Any ideas how to troubleshoot this issue ?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4204129#4204129
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4204129
17 years, 3 months