[Remoting] - Re: Config for EJB3 over servlet-invoker with compression
by MarcReis
Hi,
thanks for the info!
I tried configuring it :
| <mbean code="org.jboss.remoting.transport.Connector" name="jboss.remoting:type=Connector,name=DefaultEjb3Connector,handler=ejb3">
| <depends>jboss.aop:service=AspectDeployer</depends>
| <attribute name="Configuration">
| <config>
| <invoker transport="servlet">
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">8080</attribute>
| <attribute name="path">servlet-invoker/ServerInvokerServlet</attribute>
| <attribute name="dataType" isParam="true">serializable
| </attribute>
| <attribute name="marshaller" isParam="true">org.jboss.remoting.marshal.compress.CompressingMarshaller
| </attribute>
| <attribute name="unmarshaller" isParam="true">org.jboss.remoting.marshal.compress.CompressingUnMarshaller
| </attribute>
| </invoker>
| <handlers>
| <handler subsystem="AOP">org.jboss.aspects.remoting.AOPRemotingInvocationHandler</handler>
| </handlers>
| </config>
| </attribute>
| </mbean
|
The Server WARN's when starting up
...
| 14:41:07,203 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
|
| 14:41:08,562 WARN [MarshalFactory] Found marshaller fully qualified class name within locator parameters, but was unable to load class: org.jboss.remoting.marshal.compress.CompressingMarshaller
|
| 14:41:11,390 INFO [EJB3Deployer] Starting java:comp multiplexer
| ...
|
and then throws an exception somewhat later
| 14:41:37,312 INFO [TomcatDeployer] deploy, ctxPath=/servlet-invoker, warUrl=.../deploy/servlet-invoker.war/
| 14:41:37,656 ERROR [[/servlet-invoker]] Servlet /servlet-invoker threw load() exception
| javax.servlet.ServletException: Can not find servlet server invoker with same locator as specified (servlet://localhost:8080/servlet-invoker/ServerInvokerServlet)
| at org.jboss.remoting.transport.servlet.web.ServerInvokerServlet.getInvokerFromInvokerUrl(ServerInvokerServlet.java:198)
| at org.jboss.remoting.transport.servlet.web.ServerInvokerServlet.init(ServerInvokerServlet.java:66)
| at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
| at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
|
I tried the config of the attribute's dataType, marshaller, unmarshaller under the element , then both above mentioned messages wont appear, but there is no compression.
I guess I am still messing up the config. Any help is greatly appreciated!
Sincerely
Marc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062418#4062418
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062418
18Â years, 10Â months
[Beginners Corner] - Dynamic Class loading
by brilleaben
Hello,
Having read through lots of posts, documents and pages found on Google and still having a, to me, strange problem, I turn to the gurus on jboss.org ...
Situation: I start my main application from within jboss. My application will generate dynamic java classes outside the jboss directories.
When the classes needs to be loaded the class loading fails with a "Class Not Found Exception".
However, if I restart jboss and loads the previously generated classes everything runs smoothly.
In the jboss-service.xml for the .sar I have a line:
My classes are in a com.hp package and their name starts with Dyn{autogen-id}. The {autogen-id} is a autogenerated name based on a md5 sum of some of the properties of the class (path, name etc).
A full path to a class would be:
c:\HP\myapp\classes\com\hp\DynXXX.class
To find/load the class I use the following:
class = Thread.currentThread().getContextClassLoader().loadClass("com.hp.DynXXX");
So ... my question is: how do I "hot deploy" a class outside of the jboss directory hierarchy?
Kind regards,
Brian
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062417#4062417
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062417
18Â years, 10Â months
[Security & JAAS/JBoss] - JBoss NegotiateKerberos [HttpServletRequestResponseValve] R
by netcom
i config NegotiateKerberos at jboss
Login as domain user, happen some error
20:24:23,328 DEBUG [SPNEGO] CallbackHandler: org.jboss.web.tomcat.security.AdvancedWebCallbackHandler@1991e21
20:24:23,328 DEBUG [JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@189346e
20:24:23,328 DEBUG [SPNEGO] CachePolicy set to: org.jboss.util.TimedCachePolicy@d13e3e
20:24:23,328 DEBUG [JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@d13e3e
20:24:23,328 DEBUG [JaasSecurityManagerService] Added SPNEGO, org.jboss.security.plugins.SecurityDomainContext@11ff1b8 to map
20:24:23,328 DEBUG [AdvancedWebCallbackHandler] Got SecurityAssociationCallback: org.jboss.security.auth.callback.SecurityAssociationCallback@1ac9cff
20:24:23,328 DEBUG [AdvancedWebCallbackHandler] Sending back authorization header
20:24:23,328 DEBUG [HttpServletRequestResponseValve] Realm returned: null
20:24:27,546 DEBUG [AdvancedWebCallbackHandler] Got NegotiateCallback: [B@121f4ef
20:24:27,546 DEBUG [AdvancedWebCallbackHandler] Token was Type 1 NTLM
20:24:27,546 DEBUG [HttpServletRequestResponseValve] Realm returned: null
20:24:27,546 DEBUG [AdvancedWebCallbackHandler] Got NegotiateCallback: [B@8c8a04
20:24:27,546 DEBUG [AdvancedWebCallbackHandler] Token was Type 3 NTLM
20:24:27,546 DEBUG [NegotiateLoginModule] Found NTLM token in SPNEGO: [B@8c8a04
20:24:27,546 DEBUG [HttpServletRequestResponseValve] Realm returned: null
login-config.xml
<application-policy name="SPNEGO">
<login-module code="org.jboss.security.auth.NegotiateLoginModule" flag="required">
<module-option name="loadBalance">false</module-option>
<module-option name="domainController">192.168.0.31</module-option>
<module-option name="defaultDomain">TEST</module-option>
</login-module>
</application-policy>
Web.xml
<login-config>
<auth-method>Negotiate</auth-method>
<realm-name>Domain Realm</realm-name>
</login-config>
jboss-web.xml
<jboss-web>
<security-domain>java:/jaas/SPNEGO</security-domain>
</jboss-web>
context.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062404#4062404
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062404
18Â years, 10Â months
[JBoss Seam] - Incremental 'hot' deployment problem
by damianharvey
I have changed a Seam-Gen EAR based project to use the incremental deployment utilising WEB-INF/dev. I have left my src/model in the normal place but changed the src/action to output it's class files to resources/WEB-INF/dev. I have set core:init debug="true" and changed the build.xml to move the resources/WEB-INF/dev classes to the {war.dir}/WEB-INF/dev directory. I'm not referring to any of these classes from anywhere outside of WEB-INF/dev. All of these classes are JavaBeans (no SFSB or SLSB).
This all deploys fine and runs without problem, however when I change something (eg. an EntityHome based class) I have errors:
| Caused by: java.lang.IllegalArgumentException: Could not set field value by reflection.....[etc etc]
| Caused by: java.lang.IllegalArgumentException
| at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)....
|
This wasn't an issue deploying in the normal way and doesn't appear to break the rules of the incremental deployment. Can anyone point me in the right direction?
Also, when the Seam classloader runs through the list of classes in WEB-INF/dev it prints out only the unchanged classes and omits the ones that have changed. Is this intended?
Thanks,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062403#4062403
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062403
18Â years, 10Â months