[JBossCache] - Jgroup exception while not connected to the interent
by mrohad
i am using jboss 2nd level cache to cahce my entity beans
but now after I added jgroups.jar to my project and the xml below i am getting many excpetion everytime i am not connected:
| 14:56:35,103 ERROR [UDP] failed sending message
| java.lang.Exception: dest=/224.0.0.36:55566 (63 bytes)
| at org.jgroups.protocols.UDP._send(UDP.java:358)
| at org.jgroups.protocols.UDP.sendToAllMembers(UDP.java:302)
| at org.jgroups.protocols.TP.doSend(TP.java:947)
| at org.jgroups.protocols.TP.send(TP.java:936)
| at org.jgroups.protocols.TP.down(TP.java:725)
| at org.jgroups.stack.DownHandler.run(Protocol.java:121)
| Caused by: java.net.NoRouteToHostException: No route to host: Datagram send failed
| at java.net.PlainDatagramSocketImpl.send(Native Method)
| at java.net.DatagramSocket.send(DatagramSocket.java:612)
| at org.jgroups.protocols.UDP._send(UDP.java:332)
| ... 5 more
here is also my ejb3-entity-cache-service.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
|
| <!-- ==================================================================== -->
| <!-- Defines TreeCache configuration -->
| <!-- ==================================================================== -->
| <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=EJB3EntityTreeCache">
| <depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends>
|
| <!-- uncomment next three statements if using JGroups multiplexer,
| requires JGroups 2.3 or later, JBossCache 1.4 or later -->
| <!--
| <depends>jgroups.mux:name=Multiplexer</depends>
| <attribute name="MultiplexerService">jgroups.mux:name=Multiplexer</attribute>
| <attribute name="MultiplexerStack">fc-fast-minimalthreads</attribute>
| -->
|
| <!-- Configure the TransactionManager -->
| <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
|
| <!--
| Node locking level : SERIALIZABLE
| REPEATABLE_READ (default)
| READ_COMMITTED
| READ_UNCOMMITTED
| NONE
| -->
| <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
|
| <!-- Valid modes are LOCAL
| REPL_ASYNC
| REPL_SYNC
| -->
| <attribute name="CacheMode">REPL_SYNC</attribute>
|
| <!-- Name of cluster. Needs to be the same for all clusters, in order
| to find each other -->
| <attribute name="ClusterName">EJB3-entity-cache-ohad</attribute>
|
| <attribute name="ClusterConfig">
| <config>
| <!-- UDP: if you have a multihomed machine,
| set the bind_addr attribute to the appropriate NIC IP address
| -->
| <!-- UDP: On Windows machines, because of the media sense feature
| being broken with multicast (even after disabling media sense)
| set the loopback attribute to true
| -->
| <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}" mcast_port="43333" ip_ttl="2" ip_mcast="true"
| mcast_send_buf_size="150000" mcast_recv_buf_size="80000" ucast_send_buf_size="150000"
| ucast_recv_buf_size="80000" loopback="false" />
| <PING timeout="2000" num_initial_members="3" up_thread="false" down_thread="false" />
| <MERGE2 min_interval="10000" max_interval="20000" />
| <FD shun="true" up_thread="true" down_thread="true" />
| <VERIFY_SUSPECT timeout="1500" up_thread="false" down_thread="false" />
| <pbcast.NAKACK gc_lag="50" max_xmit_size="8192" retransmit_timeout="600,1200,2400,4800" up_thread="false"
| down_thread="false" />
| <UNICAST timeout="600,1200,2400" window_size="100" min_threshold="10" down_thread="false" />
| <pbcast.STABLE desired_avg_gossip="20000" up_thread="false" down_thread="false" />
| <FRAG frag_size="8192" down_thread="false" up_thread="false" />
| <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="true" print_local_addr="true" />
| <pbcast.STATE_TRANSFER up_thread="false" down_thread="false" />
| </config>
| </attribute>
|
| <!-- The max amount of time (in milliseconds) we wait until the
| initial state (ie. the contents of the cache) are retrieved from
| existing members in a clustered environment
| -->
| <attribute name="InitialStateRetrievalTimeout">5000</attribute>
|
| <!-- Number of milliseconds to wait until all responses for a
| synchronous call have been received.
| -->
| <attribute name="SyncReplTimeout">10000</attribute>
|
| <!-- Max number of milliseconds to wait for a lock acquisition -->
| <attribute name="LockAcquisitionTimeout">15000</attribute>
|
| <!-- Name of the eviction policy class. -->
| <attribute name="EvictionPolicyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
|
| <!-- Specific eviction policy configurations. This is LRU -->
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <!-- Cache wide default -->
| <region name="/_default_">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">1000</attribute>
| </region>
| </config>
| </attribute>
|
| </mbean>
|
| </server>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973524#3973524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973524
19 years, 7 months
[JBoss Seam] - Re: Oracle ADF
by mrohad
I am using Trinidad which is the same as ADF and it doesn't work , I wonder if u can tell me why
web.xml:
<?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
| <!-- trinidad -->
| <filter>
| <filter-name>trinidad</filter-name>
| <filter-class>org.apache.myfaces.trinidad.webapp.TrinidadFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>trinidad</filter-name>
| <!-- This assumes that the FacesServlet has been registered -->
| <!-- under the name "faces" -->
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <servlet>
| <servlet-name>resources</servlet-name>
| <servlet-class>org.apache.myfaces.trinidad.webapp.ResourceServlet</servlet-class>
| </servlet>
|
| <!-- This cannot be configured currently -->
| <servlet-mapping>
| <servlet-name>resources</servlet-name>
| <url-pattern>/adf/*</url-pattern>
| </servlet-mapping>
| <context-param>
| <param-name>org.apache.myfaces.trinidad.USE_APPLICATION_VIEW_CACHE</param-name>
| <param-value>false</param-value>
| </context-param>
| <context-param>
| <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
| <param-value>com.sun.facelets.FaceletViewHandler</param-value>
| </context-param>
| <context-param>
| <param-name>org.apache.myfaces.trinidadinternal.DISABLE_CONTENT_COMPRESSION</param-name>
| <param-value>true</param-value>
| </context-param>
|
|
|
| <context-param>
| <param-name>facelets.VIEW_MAPPINGS</param-name>
| <param-value>*.jsp</param-value>
| </context-param>
|
|
|
|
|
|
|
|
| <!-- Seam -->
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <!-- Propagate conversations across redirects -->
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
| </filter>
|
| <!-- ajax4jsf -->
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| </filter>
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
| <filter>
| <filter-name>Seam Exception Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>Seam Exception Filter</filter-name>
| <url-pattern>*.jsf</url-pattern>
| </filter-mapping>
|
| <!-- JSF -->
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
| <param-value>com.sun.facelets.FaceletViewHandler</param-value>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.jsp</param-value>
| </context-param>
| <context-param>
| <param-name>facelets.REFRESH_PERIOD</param-name>
| <param-value>2</param-value>
| </context-param>
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.validateXml</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.verifyObjects</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>org.ajax4jsf.SKIN</param-name>
| <param-value>DEFAULT</param-value>
| </context-param>
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
|
| <!-- Faces Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.seam</url-pattern>
| </servlet-mapping>
|
| <!-- MyFaces ok-->
| <listener>
| <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
| </listener>
| <!-- tomo -->
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
| </context-param>
|
|
| <filter>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
| <init-param>
| <param-name>maxFileSize</param-name>
| <param-value>20m</param-value>
| </init-param>
| </filter>
|
| <!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
| <filter-mapping>
| <filter-name>MyFacesExtensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
|
|
|
|
|
|
| </web-app>
|
faces-config
<?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE faces-config
| PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
| "http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
|
| <faces-config>
|
| <!--trinidad-->
| <application>
| <variable-resolver>org.jboss.seam.jsf.SeamVariableResolver</variable-resolver>
| <default-render-kit-id>org.apache.myfaces.trinidad.core</default-render-kit-id>
|
| <locale-config>
| <default-locale>en</default-locale>
| <supported-locale>iw_il</supported-locale>
| </locale-config>
| <message-bundle>com.wannabet.utils.validationMessages</message-bundle>
| </application>
|
|
|
|
|
| <!-- Navigation rules for the Booking demo app -->
|
| <navigation-rule>
| <navigation-case>
| <from-outcome>catEvents</from-outcome>
| <to-view-id>/event/categoryEvetns.jsp</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>login</from-outcome>
| <to-view-id>/home.jsp</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>register</from-outcome>
| <to-view-id>/register.jsp</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>joinWager</from-outcome>
| <to-view-id>/wager/joinWager.jsp</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>suggestions</from-outcome>
| <to-view-id>/suggestion/suggestions.jsp</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>eventWagers</from-outcome>
| <to-view-id>/wager/eventWagers.jsp</to-view-id>
| <redirect />
| </navigation-case>
|
| <navigation-case>
| <from-outcome>addWager</from-outcome>
| <to-view-id>/wager/addWager.jsp</to-view-id>
| <redirect/>
| </navigation-case>
|
| </navigation-rule>
|
| <navigation-rule>
|
| <from-view-id>/hotel.jsp</from-view-id>
|
| <navigation-case>
| <from-outcome>book</from-outcome>
| <to-view-id>/book.jsp</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
| <navigation-rule>
|
| <from-view-id>/book.jsp</from-view-id>
|
| <navigation-case>
| <from-outcome>confirm</from-outcome>
| <to-view-id>/confirm.jsp</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
| <navigation-rule>
|
| <from-view-id>/confirm.jsp</from-view-id>
|
| <navigation-case>
| <from-outcome>catEvents</from-outcome>
| <to-view-id></to-view-id>
| <redirect/>
| </navigation-case>
|
| <navigation-case>
| <from-outcome>back</from-outcome>
| <to-view-id>/book.jsp</to-view-id>
| <redirect />
| </navigation-case>
|
| </navigation-rule>
|
|
| <component>
| <component-type>requestTimeOutput</component-type>
| <component-class>com.wannabet.core.tags.UIRequestTimeOutput</component-class>
| </component>
|
| <!-- Select one of the two standard persistence lifecycle models for the Seam application -->
|
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener</phase-listener>
| </lifecycle>
|
|
| <!--convertors-->
| <converter>
| <converter-id>ParsedQuestionConverter</converter-id>
| <converter-class>com.wannabet.converter.ParsedQuestionConverter</converter-class>
| </converter>
|
| <!-- ADF -->
|
|
|
| </faces-config>
|
i am not getting any exception although the tags ain't rendered and this is what i am getting in my console
| 14:53:29,796 WARN [HtmlRenderKitImpl] Unsupported component-family/renderer-type: org.apache.myfaces.trinidad.Output/org.apache.myfaces.trinidad.Text
| 14:53:29,796 ERROR [STDERR] 22/09/2006 14:53:29 org.apache.myfaces.trinidad.component.UIXComponentBase _getRendererImpl
| WARNING: Could not find renderer for CoreOutputText[UIXFacesBeanImpl, id=_id46], rendererType = org.apache.myfaces.trinidad.Text
| 14:53:29,816 ERROR [HtmlResponseStateManager] No component states to be saved in client response!
| 14:53:29,826 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
| 14:53:29,826 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
| 14:53:29,826 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
| 14:53:29,826 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
| 14:53:29,826 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
| 14:53:29,826 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
| 14:53:29,826 WARN [HtmlRenderKitImpl] Unsupported component-family/renderer-type: org.apache.myfaces.trinidad.Output/org.apache.myfaces.trinidad.Text
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973522#3973522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973522
19 years, 7 months
[EJB 3.0] - Re: NameNotFoundException
by t.jayanandan
yes i tried .
that is my look up code is.....
initialContext.lookup("EARNAME/StockBean/remote");
but now it throws some other problem
javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.ncit.his.inventory.ejb.stock.test.TestClient.main(TestClient.java:40)
Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.JBossProxy (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:531)
at java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
at java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
at sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
at java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1494)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1457)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:652)
... 3 more
Please help me to rectify this problem
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973518#3973518
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973518
19 years, 7 months