[JBoss Tools (users)] - Getting source code for jboss plugin in eclipse
by jjaleel
Hi all, I have an .ear file that we normally deploy to WAS. I want to test it on JBoss and debug the source through eclipse. So I am using the jboss plugin for eclipse.
Now the .ear file is throwing an exception from one of the servlets during initialization as the server starts up. So I want to debug this servlet to see exactly what is up.
But when I try to I find that the source is missing. Here is what I see in my server log.....
org.apache.commons.digester.xmlrules.DigesterLoader.createDigester(DigesterLoader.java:79)
at com.hfa.web.InitMenuServlet.init(Unknown Source)
So in my JBoss server in eclipse, I go to "Edit Launch Configuration" and through the source tab I want to tell it where to look for the source of the servlet. But no matter what I specify it still does not seem to find the source. I told it the folder where the .java file for the servelet was, I packaged the .java file as ZIP, and it still does not find the source.
Any help would be greatly appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129263#4129263
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129263
18 years, 2 months
[JBossCache] - TreeCache Replication in Cluster not working
by kpandey
[Jboss - 4.2.2.GA
JGroups - 2.4.1-SP4
JBossCache - 1.4.1.SP5]
I'm testing simple TreeCache replication in Cluster mode. When some data is put in cache of node1, node2 is notified but the cache on node2 is not updated with the new data.
Here's the log snippet
Node1 log where data is added to cache
------------------------------------
2008-02-13 21:53:08,112 DEBUG [org.jboss.cache.eviction.BaseEvictionAlgorithm] Adding element /a/b/c for a node that doesn't exist yet. Process as an add.
2008-02-13 21:53:08,114 DEBUG [org.jboss.cache.eviction.BaseEvictionAlgorithm] Adding element /a/b/c/d for a node that doesn't exist yet. Process as an add.
Node2 log
-------------------------------------
2008-02-13 20:53:17,073 DEBUG [org.jboss.cache.marshall.TreeCacheMarshaller140] Received call on an inactive Fqn region (/a/b/c). Calling notifyCallOnInactiveMetod
2008-02-13 20:53:17,079 DEBUG [org.jboss.cache.marshall.TreeCacheMarshaller140] Received call on an inactive Fqn region (/a/b/c/d). Calling notifyCallOnInactiveMetod
Howerver node2 still shows 0 nodes
org.jboss.cache.TreeCache [0 nodes, 0 locks]
Hrere's my cache config file
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
|
| <!-- ========================================================== -->
| <!-- Clustered Seratelbe cache config for use with JBoss Cache 1.4.x -->
| <!-- ========================================================== -->
| <mbean code="org.jboss.cache.TreeCache"
| name="jboss.cache:service=SeratelBeClusteredCache">
|
| <depends>jboss:service=Naming</depends>
| <!--depends>jboss:service=TransactionManager</depends-->
|
| <attribute name="IsolationLevel">NONE</attribute>
|
| <attribute name="CacheMode">REPL_SYNC</attribute>
|
| <!-- We want to activate/inactivate regions as beans are deployed -->
| <attribute name="UseRegionBasedMarshalling">true</attribute>
| <!-- Must match the value of "useRegionBasedMarshalling" -->
| <attribute name="InactiveOnStartup">true</attribute>
|
| <!--
| JGroups stuff here --Omitted
| -->
|
|
| <attribute name="InitialStateRetrievalTimeout">17500</attribute>
|
| <attribute name="SyncReplTimeout">17500</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. -->
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <name>statefulClustered</name>
| <!-- So default region would never timeout -->
| <region name="/_default_">
| <attribute name="maxNodes">0</attribute>
| <attribute name="timeToIdleSeconds">0</attribute>
| </region>
|
| </config>
| </attribute>
|
| <!-- Store passivated sessions to the file system -->
| <attribute name="CacheLoaderConfiguration">
| <config>
|
| <passivation>true</passivation>
| <shared>false</shared>
|
| <cacheloader>
| <class>org.jboss.cache.loader.FileCacheLoader</class>
| <!-- Passivate to the server data dir -->
| <properties>
| location=${jboss.server.data.dir}${/}seratelbeCache
| </properties>
| <async>false</async>
| <fetchPersistentState>true</fetchPersistentState>
| <ignoreModifications>false</ignoreModifications>
| </cacheloader>
|
| </config>
| </attribute>
| </mbean>
|
| </server>
|
I copied this config file from SFSB config file and I'm wondering If I missed some nuances on setup.
Code putting data on the node1 is like so
cache.put("/a/b/c", "name", "Ben");
cache.put("/a/b/c/d", "uid", new Integer(322649));
Any pointers on proceeding forward on troubleshooting this would be great.
Thanks
Kumar
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129258#4129258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129258
18 years, 2 months
[JBoss Seam] - Re: <s:fileUpload> problem on Internet Explorer
by kai222
I tried it now out on two other PCs with IE6 and Firefox. It doesn't work on IE6 and Firefox 1.0, neither for my application nor for the seamspace example from 2.0.1.GA. On Firefox 2 it's ok.
There are no script errors.
This is my xhtml:
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition xmlns="http://www.w3.org/1999/xhtml"
| xmlns:s="http://jboss.com/products/seam/taglib"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:j4j="http://javascript4jsf.dev.java.net/"
| xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| template="layout/template.xhtml">
|
| <ui:define name="body">
|
| <s:div rendered="#{s:hasRole('UserRoleAuthorizedUser')}">
|
| <h:messages styleClass="message" globalOnly="true"/>
|
| <h:form id="uploadArtwork" enctype="multipart/form-data">
|
| <rich:panel>
| <f:facet name="header">#{messages['UploadImage']}</f:facet>
| <div class="dialog">
| <s:validateAll>
| <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
|
| <h:outputLabel for="artwork">#{messages['SelectImage']}</h:outputLabel>
| <s:decorate>
| <s:fileUpload id="artwork" styleClass="input-field"
| data="#{uploadService.data}" accept="images/jpg,images/gif,images/png"
| contentType="#{uploadService.contentType}"
| fileName="#{uploadService.fileName}" fileSize="#{uploadService.size}"
| size="40" maxlength="40" required="true"/>
| <j4j:idProxy id="_focus"/>
| </s:decorate>
|
| </h:panelGrid>
| </s:validateAll>
| </div>
| </rich:panel>
|
| <div class="actionButtons">
| <h:commandButton id="uploadButton" value="#{messages['Upload']}"
| action="#{uploadService.upload}"/>
| </div>
|
|
| </h:form>
| </s:div>
| </ui:define>
| </ui:composition>
|
and the components.xml part:
| <component class="org.jboss.seam.web.MultipartFilter">
| <property name="createTempFiles">true</property>
| <property name="maxRequestSize">500000</property>
| <property name="url-pattern">*.seam</property>
| </component>
|
Do other users have experience with file uploading on IE? Are there other alternatives to <s:fileUpload>?
----
To test it on other machines I first had to jump over two traps. Maybe it's useful to know for other users:
1. From Tomcat I was used to have access to my server over the network by http://192.168.0.4/myproject/. For JBoss it is different. For security reasons the default host is 127.0.0.1.
You have to start JBoss with the -b option from the console "run -b 192.168.0.4". (I had to start it from console because in Eclipse 3.3 a changed server address had no effect.)
2. Pay attention to the JDK versions. My JBoss had 1.5, my Eclipse 1.6 ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129254#4129254
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129254
18 years, 2 months