[JBoss Portal] - JBoss Wiki fails to deploy
by konstandinos
hi
we're running JBosss AS 4.0.5.GA (note: using the jems-installed version - i know the docs say this hasn't been tested), with postgresql 8.2 (latest jdbc driver).
jboss portal 2.6.1 deploys and works ok (with the exceptions of a few errors every now and then in stdout - i'm assuming this is because of the jems install, which we shall address).
however, when trying to install jboss wiki portlet, i deploy the wiki.ear file and get errors in stdout:
| 11:42:47,747 ERROR [StandardContext] Error filterStart
| 11:42:47,747 ERROR [StandardContext] Context [/wiki] startup failed due to previous errors
| 11:42:47,751 WARN [ServiceController] Problem starting service jboss.web.deployment:war=wiki.war,id=1070336527
| org.jboss.deployment.DeploymentException: URL file:/home/artemis/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp64174wiki.ear-contents/wiki-exp.war/ deployment failed
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:375)
|
and
| 11:42:47,752 ERROR [MainDeployer] Could not start deployment: file:/home/artemis/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp64174wiki.ear-contents/wiki.war
| org.jboss.deployment.DeploymentException: URL file:/home/artemis/jboss/jboss-4.0.5.GA/server/default/tmp/deploy/tmp64174wiki.ear-contents/wiki-exp.war/ deployment failed
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:375)
|
any ideas?
is it because of the jems install?
also, while we're on that topic, say we now decide to abandon the jems install, and instead use the 'normal' install technique. in windows it was just a matter of downloading the zip file, unpacking it, and starting up jboss (fairly straight forward). with linux, is it the same? we're using ubuntu linux 7.04 server.
finally - what wiki software does jboss.org wikis use?
thanks and cheers,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086522#4086522
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086522
18 years, 10 months
[JBoss Seam] - Re: Rich Text Editor
by mustaghattack
Hi,
I've something working fine with TinyMCE.
There's post about how to use it with ajax : http://www.jboss.com/index.html?module=bb&op=viewtopic&t=109794
This is how I use it (with ajax re-rendering):
- copy the tinymce scripts into your project
- add this script (init-tiny.js) :
| tinyMCE.init({
| mode:"none",
| theme : "advanced",
| theme_advanced_toolbar_location : "top",
| theme_advanced_statusbar_location : "bottom",
| theme_advanced_toolbar_align : "left",
| // everything on the first line
| theme_advanced_buttons1 : "bold,italic,underline,justifyleft,justifycenter,justifyright ,fontselect,fontsizeselect,forecolor,backcolor",
| theme_advanced_buttons2 : "",
| theme_advanced_buttons3 : "",
| theme_advanced_resize_horizontal : false,
| theme_advanced_resizing : true,
| convert_newlines_to_brs : true
| });
|
| function updateValue(control)
| {
| var textareas = document.getElementsByTagName('textarea');
| for( i = 0; i < textareas.length; i ++ ) {
| if( textareas[ i ].id == control ) {
| textareas[ i ].value = tinyMCE.getContent(control);
| }
| }
| }
|
| function addMCE(control) {
| cleanMCE();
| tinyMCE.execCommand('mceAddControl', false, control);
| tinyMCE.switchClassCache = [];
| }
|
| function cleanMCE() {
| tinyMCE.idCounter = 0;
| tinyMCE.instances = new Array();
| }
|
- to add the editor, add this attribute to your ajax tag :
| oncomplete="addMCE( 'yourFormComponentId:yourTxtAreaComponentId' );"
|
- to remove the editor, add this attribute to your ajax tag :
| oncomplete="cleanMCE();"
|
- add this attribute to your form tag (otherwise the textarea value is not updated) :
| onsubmit="updateValue('#formId:inputAreaId');"
|
PS: You should post this on the richfaces forum.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086521#4086521
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086521
18 years, 10 months
[JBoss Seam] - <a:support> with <s:selectItems> problem
by jquery@interia.pl
Hi,
what I am trying to do is to change the set of values in one <s:selectItems> component after changing the value on a facelets page in another <s:selectItems>. In other words speaking lets assume that we have two <s:selectItems> components. In the first one there are branches and in the second one there are categories. And now if I change the branch the categories in the new selected branch should be loaded into the second <s:selectItems> . The code is following:
| <h:form id="predefinedSkill" styleClass="edit">
|
| <h:outputLabel for="branch">
| #{messages.branch}
| </h:outputLabel>
|
| <s:decorate id="branchDecoration">
| <h:selectOneMenu value="#{branchHome.instance.name}">
| <s:selectItems value="#{branchList.resultList}" var="branch" label="#{branch.name}" />
| <s:convertEntity/>
| <a:support event="onchange" reRender="categoryDecoration" ajaxSingle="true" action="#{categoryHome.loadAllCategories()}"/>
| </h:selectOneMenu>
| </s:decorate>
|
|
| <h:outputLabel for="category">
| #{messages.category}
| </h:outputLabel>
|
| <s:decorate id="categoryDecoration">
| <h:selectOneMenu value="#{categoryHome.instance.name}" >
| <s:selectItems value="#{categoryHome.categoryList}" var="category" label="#{category.name}" />
| <s:convertEntity/>
| </h:selectOneMenu>
| </s:decorate>
|
| </h:form>
|
But when I change the branch I get the error:
| INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
| sourceId=predefinedSkill:branchDecoration:j_id29[severity=(ERROR 2), summary=(/specialist/spec_skills.xhtml @76,85 value="#{branchHome.instance.name}": java.lang.IllegalArgumentException: argument type mismatch), detail=(/specialist/spec_skills.xhtml @76,85 value="#{branchHome.instance.name}": java.lang.IllegalArgumentException: argument type mismatch)]
|
|
If the Branch Entity has additionally constraints on length i.e.
| @Column(name = "NAME", length = 100)
| @Length(max = 100)
| public String getName() {
| return this.name;
| }
|
I get the following error:
| INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
| sourceId=predefinedSkill:branchDecoration:j_id28[severity=(ERROR 2), summary=(length must be between 0 and 100), detail=(length must be between 0 and 100)]
| sourceId=predefinedSkill:predefinedSkillDecoration:j_id37[severity=(ERROR 2), summary=(length must be between 0 and 100), detail=(length must be between 0 and 100)]
|
In both cases the method categoryHome.loadAllCategories() [I don't use branchId as a parameter in this method for the simplicity reason] is not invoked! But if I invoke it from the simple <h:input> component:
| <h:form id="predefinedSkill" styleClass="edit">
|
| <h:inputText value="TEST">
| <a:support event="onchange" reRender="categoryDecoration" ajaxSingle="true" action="#{categoryHome.loadAllCategories()}"/>
| </h:inputText>
|
| <h:outputLabel for="branch">
| #{messages.branch}
| </h:outputLabel>
|
| <s:decorate id="branchDecoration">
| <h:selectOneMenu value="#{branchHome.instance.name}">
| <s:selectItems value="#{branchList.resultList}" var="branch" label="#{branch.name}" />
| <s:convertEntity/>
| <a:support event="onchange" reRender="categoryDecoration" ajaxSingle="true" action="#{categoryHome.loadAllCategories()}"/>
| </h:selectOneMenu>
| </s:decorate>
|
|
| <h:outputLabel for="category">
| #{messages.category}
| </h:outputLabel>
|
| <s:decorate id="categoryDecoration">
| <h:selectOneMenu value="#{categoryHome.instance.name}" >
| <s:selectItems value="#{categoryHome.categoryList}" var="category" label="#{category.name}" />
| <s:convertEntity/>
| </h:selectOneMenu>
| </s:decorate>
|
| </h:form>
|
everything works fine. Could anybody explain me why there is such a problem with <s:selectItems> and what are possible solutions for that.
Thanks for help in advance.
(I use Seam 2 CR1 + JBoss AS 4.2.0)
Best regards,
jquery
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086513#4086513
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086513
18 years, 10 months