I finished the installation of Ubuntu 8.04 last night. I just became a 100% open source developer by completely dumping windows. The installation was not very straight forward because I encountered several problems with eclipse running on Ubuntu. The following are the things I needed to solve while trying to install my Java development tools:
1. Eclipse keeps on crashing
This problem was really annoying because eclipse keeps on crashing every 5-10 minutes.
Solution:
Just add this at the end of your eclipse.ini (considering that no previous modification to that file was made):
-XX:MaxPermSize=90M
You will need to adjust the size depending on your computers memory.
2. Cannot open any file with JBoss Tools HTML Editor
When opening any file using JBoss Tools HTML Editor, I get a message box with the following error:
/home/jexter/app/eclipse/plugins/org.mozilla.xulrunner.gtk.linux.x86_1.8.1.3-20070904/xulrunner/libjavaxpcomglue.so: libstdc++.so.5: cannot open shared object file: No such file or directory
Solution:
Just install libstdc++5 by simply running this:
apt-get install libstdc++5
Don't forget to update your packages first.
Labels: bug, eclipse, jboss tools, ubuntu
[BUG] conversation ended, timed out or was processing another request
1 comments Posted by Rey Jexter Bumalay at 9:04 AMWhen using seam framework and ajax4jsf, there is a bug when trying to re render an area using aj4:poll. Here is my code:
<h:outputText id="currentDateTime" value="#{currentDatetime}" styleClass="dateTime">
<s:convertDateTime pattern="MMMM dd, yyyy - hh:mm:ss a"/>
</h:outputText>
<h:form>
<a4j:poll interval="1000" reRender="currentDateTime" eventsQueue="timerQueue"></a4j:poll>
</h:form>
The solution is not yet clear as some say they need to tweak the concurrent-request-timeout in components.xml and others say that you need to simply make sure that the ajax request is not aschronous by using the eventsQueue property. Although the idea worked for me, some knowledgeable people say that tweaking those things depends on app by app.
Here are some useful links:
http://sfwk.org/Community/ConversationEndedTimedOutOrWasProcessingAnotherRequest
http://docs.jboss.com/seam/2.0.1.GA/reference/en/html/conversations.html#d0e5208
Integration testing in Seam 2.0.0 GA, JDK 1.6 and JBoss 4.2.2 GA using JBoss Tools 2.0.0 GA is broken
0 comments Posted by Rey Jexter Bumalay at 9:00 PMI was trying my first integration test but just using the default generated test class and xml meta data by jboss tools, i get the following error:
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Instantiated: name=DeploymentFilter state=Described
java.lang.IllegalStateException: Class not found: [Ljava.lang.String;
at org.jboss.metadata.spi.signature.Signature.stringsToClasses(Signature.java:174)
i tried the following things:
1. followed this http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassNotFoundJava.lang.StringInJDK6
2. downloaded jboss embedded beta
3. upgraded to seam 2.1.0 AI
none of them worked for me.
lastly, i tried downloading seam 2.0.1 GA and installed jdk 1.5. i configured the test project's compiler compliance level to 5.0 instead of 6.0 (6.0 default for some reason. maybe because my default jdk is 1.6) and the result were so much better.
to remove the error message saying something like this:
Could not instantiate Seam component: authenticatordrools related libraries needs to be included since we are using the rule based engine and Identity class is part of it. just include the seam/lib/drools-core.jar, seam/lib/drools-compiler.jar and seam/lib/core.jar.
after copying the drools related libraries and executing the test, a different kind of error is thrown. this time an error saying that the "security.drl is missing" you will need to copy that file from seam/seam-gen/resource/security.drl and place it to
run it again and the test will be successful!
embedded jboss is needed when testing seam components or ejb's but based on the jboss seam integration testing documenation, the stable version have problems when using jdk 1.6. since there are compatability issues when testing using seam 2.0 GA on jdk 1.6, i think staying with 2.0.1GA and jdk 1.5 is better at the moment.
Fresh seam project created using Seam 2.0.0 GA, JBoss Tools 2.0.0 GA on JBoss 4.2.2 BUG
4 comments Posted by Rey Jexter Bumalay at 9:50 AMAfter creating a new project using JBoss Tools 2.0.0 GA, Seam 2.0.0 GA and tried deploying the application, I encountered this problem:
java.lang.RuntimeException: error while reading /WEB-INF/components.xml
at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:136)
at org.jboss.seam.init.Initialization.create(Initialization.java:86)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
and somewhere below the stack trace...
Caused by: java.lang.IllegalArgumentException: Exception setting property org.jboss.seam.core.init.jndiPattern on component org.jboss.seam.core.init. Expression @jndiPattern@ evaluated to null.
at org.jboss.seam.init.Initialization.installComponentFromXmlElement(Initialization.java:407)
at org.jboss.seam.init.Initialization.installComponentsFromXmlElements(Initialization.java:257)
at org.jboss.seam.init.Initialization.initComponentsFromXmlDocument(Initialization.java:132)
... 138 more
i think the problem here was when building the application. the value of @jndiPattern@ in components.properties should replace the same constant name defined in components.xml but for some reason, it did not.
my simple solution (although not very elegant) is to hardcode the value in components.xml. so instead of using @jndiPattern@ i copied its value from components.properties