[JBoss Seam] - Re: Seam sources - html tags
by fredespi
Hello,
I am having problems using a urlrewrite rule in seam. I have a rule like:
| <rule>
| <from>^/(.*)$</from>
| <to last="true">/resultsPage.seam?searchString=$1</to>
| </rule>
|
This works fine unless the string that is caught by (.*) contains %26, i.e. ampersand. So if the incoming url looks like this:
anonymous wrote : http://localhost:8080/a+%26+b
The urlrewriter logs this:
anonymous wrote :
| 09:08:56,632 INFO [[/]:log] org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: Rule 1 run called with /a & b
| 09:08:56,632 INFO [[/]:log] org.tuckey.web.filters.urlrewrite.RuleBase DEBUG: matched "from"
| 09:08:56,640 INFO [[/]:log] org.tuckey.web.filters.urlrewrite.RuleExecutionOutput DEBUG: needs to be forwarded to /resultsPage.seam?searchString=a & b
| 09:08:56,641 INFO [[/]:log] org.tuckey.web.filters.urlrewrite.UrlRewriter DEBUG: rule is last
|
but the parameter searchString is set to
anonymous wrote :
| a
|
and not
anonymous wrote : a & b
I suppose I am doing something wrong. Can someone help me out?
Regards,
Fredrik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114525#4114525
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114525
18 years, 4 months
Deployment jar conflict when using applets
by pau carre
Hello, I have a problem with JBoss 3.2.8 when deploying a web app with
an applet. I have some .jar files with class utilities for the applet
(client-side) which I do not want the server to use them. The problem
is that server seems to detect this jar files and uses them for class
loading. As some of this classes have the same name as some of the
JBoss libs (for example, axis and Bouncy Castle), there are conflicts
executing EJBs (these EJB should use JBoss default libs instead of the
applet ones)
Is there any TAG for jboss-app.xml (or another configuration file)
that means something like "ignore this jars files for class loading" ?
Thanks,
Pau Carré
18 years, 4 months
[JBoss Messaging] - Re: how to send message to remote server with http
by libinggang
"ataylor" wrote : You need to configure jBoss Remoting. theres an example under docs/examples/http.
thanks!
is docs/examples/http the same as jboss-messaging-1.4.0.SP3/examples/http?
I can run that example successfully,but the access to jndi in that example is not over http,and i tried change configure in the jndi.properties from
[
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://172.25.67.39:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
]
to
[
java.naming.factory.initial=org.jboss.naming.HttpNamingContextFactory
java.naming.provider.url=http://172.25.67.39:8080/invoker/JMXInvokerServlet
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
]
but i got this exception:
sleep:
[echo] Sleeping for 2 seconds ...
run:
[java] javax.naming.NoInitialContextException: Cannot instantiate class: org.jboss.naming.HttpNamingContextFactory [Ro
.ClassNotFoundException: org.jboss.naming.HttpNamingContextFactory ]
[java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
[java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
[java] at javax.naming.InitialContext.init(InitialContext.java:223)
[java] at javax.naming.InitialContext.(InitialContext.java:175)
[java] at org.jboss.example.jms.common.Util.doesDestinationExist(Util.java:51)
[java] at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupport.java:214)
[java] at org.jboss.example.jms.common.ExampleSupport.setup(ExampleSupport.java:194)
[java] at org.jboss.example.jms.common.ExampleSupport.run(ExampleSupport.java:146)
[java] at org.jboss.example.jms.http.HttpExample.main(HttpExample.java:136)
[java] Caused by: java.lang.ClassNotFoundException: org.jboss.naming.HttpNamingContextFactory
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:242)
[java] at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
[java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
[java] ... 8 more
[java]
[java] #####################
[java] ### FAILURE! ###
[java] #####################
BUILD FAILED
what should i do next?
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114502#4114502
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114502
18 years, 4 months