[JBoss AS 7 Development] - Servlet IP filter
by austin pio
austin pio [https://community.jboss.org/people/austin.pio] created the discussion
"Servlet IP filter"
To view the discussion, visit: https://community.jboss.org/message/743535#743535
--------------------------------------------------------------
hi i am using jboss as 7.1.1.Final brontes version.
i have a web application deployed and works fine. now i am trying to add IP based filter to restrict access to my application.
this is my web.xml
<filter>
<filter-name>RemoteHostFilter</filter-name>
<filter-class>org.jboss.remotehostfilter.RemoteHostFilter</filter-class>
<init-param>
<param-name>deny</param-name>
<param-value>*specific ip*</param-value>
</init-param>
<init-param>
<param-name>allow</param-name>
<param-value>*specific ip*</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>RemoteHostFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
i get a deployment exception stating
Caused by: java.lang.ClassNotFoundException: org.jboss.remotehostfilter.RemoteHostFilter from [Module "deployment.RestSecureWithBasicAuthentication-1.0.0.war:main" from Service Module Loader]
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/743535#743535]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 6 months
[JBoss Profiler Development] - Re: JBoss Profiler Quick Start
by cooldownthethroat
cooldownthethroat [https://community.jboss.org/people/cooldownthethroat] created the discussion
"Re: JBoss Profiler Quick Start"
To view the discussion, visit: https://community.jboss.org/message/743228#743228
--------------------------------------------------------------
I am trying to run JBOSS Profiler in JBOSS 5.0 and following steps which are mentioned in the userguide.
My HTTP port for my web application is 8080.
When I configure the same port in Jboss-profiler.properties file even after that during startup I see
JBoss Profiler: Communicator for JBoss Profiler 2.0.0.Beta5
JBoss Profiler: Socket=IP:5400 (say IP is 10.10.10.10)
Now, the server starts up pretty well and when I open JMX console I can see the Mbean also for both communicator and profiler.
However when I try to access http://10.10.10.10:8080/jboss-profiler http://10.10.10.10:8080/jboss-profiler I get no page found error
and when I try to access http://10.10.10.10:5400/jboss-profiler http://10.10.10.10:5400/jboss-profiler I get the following error:-
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.remoting.transport.socket.ServerThread.createServerSocketWrapper(ServerThread.java:907)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:489)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230)
Caused by: java.io.StreamCorruptedException: invalid stream header: 47455420
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:782)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:279)
at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:97)
at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:54)
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:7
at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:5
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:179)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:162)
at org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:66)
at org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:46)
... 7 more
Can anyone please guide me how to run it properly....
Steps followed to configure Profiler:-
Copy jboss-profiler.jar to jbossas/bin
• Copy jboss-profiler.properties to jbossas/bin
• Edit jboss-profiler.properties in jbossas/bin to include the classes to be profiled
• Copy jboss-profiler-plugins.jar to jbossas/bin
• Edit run.bat (Windows) in jbossas/bin to include JBoss Profiler in JAVA_OPTS
• Copy jboss-profiler.sar to jbossas/server/<conf>/deploy
• Boot application server
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/743228#743228]
Start a new discussion in JBoss Profiler Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months