[JBoss Tools] New message: "Re: Adding JBoss AS source to a project"
by henk de boer
User development,
A new message was posted in the thread "Adding JBoss AS source to a project":
http://community.jboss.org/message/524626#524626
Author : henk de boer
Profile : http://community.jboss.org/people/henk53
Message:
--------------------------------------------------------------
> mailto:max.andersen@jboss.com wrote:
> Sorry for brining confusion - the newest WTP adapter does it the *right* way by having a good default source lookup delegate (I just didnt realize that this would actually show up in the launch configuration under the "Default").
>
> As Snjezana said, our AS adapter had workarounds for bugs that were in the old WTP Adapter which now has been fixed so the new AS adapter matches the WTP adapter in behavior for this specific thing.
Thanks a lot for this explanation. It's much clearer to me now.
> mailto:max.andersen@jboss.com wrote:
>
> And yes, adding AS source distribution an easier way would be good - but for that to work we need some kind of co-release with AS that has the src available so if you point to such a thing we could attach it as source automatically. My understanding was that such a thing doesn't yet exist...do you know of one ?
Personally I of course do not know of any specific way to attach all of the JBoss AS source automatically, otherwise I wouldn't have started this thread. The one thing I can think of is a way to extract all jar files found in the source distribution recursively to one location. Delete all .class files. Then use some rules of thumb to copy the source files that are distributed as .java file to this same location (e.g. find a .java file, and trace back it's root directory to anything starting with .com, .org, etc.).
After having done that, jar anything again so you have one huge jboss51-src.jar. Write a small Eclipse plug-in that iterates over all jar files exposed by the JBoss AS runtime and attach this jboss51-src.jar to it.
It's rather hacky, but maybe this would work.
> mailto:max.andersen@jboss.com wrote:
>
> My best bet is that AS 6 should have maven artifacts for all its .jars so this should be much easier done for that.
>
> That of course leaves the question what to do for AS 4 and AS 5
Just having the ability for AS 6 would already be a major step forward and would be much welcomed! Indeed, AS 4 and AS 5 users would still be in the dark, but if the trade-of is between having no automatic source attachment at all or having it only for AS 6, then the latter would definitely be the way to go IMHO.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524626#524626
16 years, 5 months
[JBoss Tools] New message: "Target Unreachable, identifier resolved to null"
by Fabian Rivera
User development,
A new message was posted in the thread "Target Unreachable, identifier resolved to null":
http://community.jboss.org/message/524598#524598
Author : Fabian Rivera
Profile : http://community.jboss.org/people/Zirodark
Message:
--------------------------------------------------------------
Hello everyone, I'm just starting with SEAM so I'm sorry if this is an obvious question, but I can't resolve the following problem.
I started a new Seam Web Project in Eclipse using JBoss Tools, the home.seam page worked as expected. Then I changed the contents of home.xhtml following an example to this:
<!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:rich="http://richfaces.org/rich"
template="layout/template.xhtml">
<ui:define name="body">
<f:view>
<h:form >
<h:panelGrid columns="2">
Value1: <h:inputText value="#{calculator.value1}"/>
Value2: <h:inputText value="#{calculator.value2}"/>
The resutl is:<h:outputText value="#{calculator.answer}"/>
</h:panelGrid>
<h:commandButton value="Add" action="#{calcAction.calculate}"/>
</h:form>
</f:view>
</ui:define>
</ui:composition>
I created a new class in the ejb/ejbModule called Calculator:
@Name("calculator")
public class Calculator {
private double value1;
private double value2;
private double answer;
public void setValue1(double value1) {
this.value1 = value1;
}
public double getValue1() {
return value1;
}
public void setValue2(double value2) {
this.value2 = value2;
}
public double getValue2() {
return value2;
}
public void setAnswer(double answer) {
this.answer = answer;
}
public double getAnswer() {
return answer;
}
public void add()
{
this.answer=value1+value2;
}
}
Also the CalcAction class:
@Stateless
@Name("calcAction")
public class CalcAction implements Calc {
@In
@Out
private Calculator calculator;
public String calculate()
{
calculator.add();
return "";
}
}
with the Calc http://community.jboss.org/mailto:interface@Local
public interface Calc {
public String calculate();
}
@Local
The home.xhtml show all the elements, but when I click the Add button, I get the following exception:
23:03:38,019 WARNING [lifecycle] /home.xhtml @18,62 value="#{calculator.value1}": Target Unreachable, identifier 'calculator' resolved to null
javax.el.PropertyNotFoundException: /home.xhtml @18,62 value="#{calculator.value1}": Target Unreachable, identifier 'calculator' resolved to null
at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:62)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:92)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:942)
at javax.faces.component.UIInput.validate(UIInput.java:868)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1072)
at javax.faces.component.UIInput.processValidators(UIInput.java:672)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1058)
at javax.faces.component.UIForm.processValidators(UIForm.java:235)
at org.ajax4jsf.component.AjaxViewRoot$3.invokeContextCallback(AjaxViewRoot.java:439)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:455)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.web.HotDeployFilter.doFilter(HotDeployFilter.java:53)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
23:03:38,218 SEVERE [lifecycle] JSF1054: (Phase ID: PROCESS_VALIDATIONS 3, View ID: /home.xhtml) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@55b768]
What I am doing wrong or what should I modify in order for the page to work.
Thanks a lot.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524598#524598
16 years, 5 months