[JBoss Tools] - Can't change JSF version back to 1.2
by Karsten Wutzke
Karsten Wutzke [http://community.jboss.org/people/kwutzke] created the discussion
"Can't change JSF version back to 1.2"
To view the discussion, visit: http://community.jboss.org/message/643529#643529
--------------------------------------------------------------
Hello,
I've just recently upgraded to JBoss Tools 3.3.0.M5. For one of my projects I then got some strange dialog that required some action with the project facets and I pressed OK. After that (I believe) the project facets were updated and a few other things, e.g. WEB-ROOT dir created and bin (build) dir.
I now have a few JSF 2 warnings which are caused by the fact that JSF 2 retired a few features, e.g. the FaceletViewHandler in faces-config.xml and others. I then realized that my JSF version has somehow switched to 2.0. I suspect it was caused by that dialog that I didn't understand.
Now when trying to switch back to JSF 1.2, which the project is, I get an error in the project facets dialog saying:
Cannot change version of project facet JavaServer Faces to 1.2.
I tried a few things, e.g. setting Dynamic Web Module to 2.x, or JPA to 1.0, or Seam 2 to 1.2, and so on, but none of them helped.
Does anyone know what's going on?
Karsten
PS: I have no idea which part of Eclipse is responsible, JBT is just a guess
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/643529#643529]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years
[EJB3] - can't find message-driven bean..
by Joseph Hwang
Joseph Hwang [http://community.jboss.org/people/aupres] created the discussion
"can't find message-driven bean.."
To view the discussion, visit: http://community.jboss.org/message/643136#643136
--------------------------------------------------------------
I make codes Message-Driven Bean on JBoss 7 and Eclipse Indigo.
Architecture is
JMSTestEAR
|
|--JMSTestEJB (contains Message-Driven Bean)
|
|--JMSTestWeb (contains jsp which calls Message-Bean)
And Codes are
==================Message Driven Bean =====================
@MessageDriven(
activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "*queue/testQueue*") })
public class MDBean implements MessageListener {
public MDBean() {
// TODO Auto-generated constructor stub
}
public void onMessage(Message message) {
// TODO Auto-generated method stub
TextMessage m = (TextMessage) message;
try {
System.out.println(m.getText());
} catch (JMSException e) {
e.getMessage();
}
}
}
=============== JSP ============
........
<body>
<%
try {
Context ctx = new InitialContext();
Queue queue = (Queue) ctx.lookup("queue/testQueue"); *//throws Exception*
QueueConnectionFactory qcf = (QueueConnectionFactory) ctx.lookup("ConnectionFactory");
QueueConnection conn = qcf.createQueueConnection();
QueueSession qs = conn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);
TextMessage msg = qs.createTextMessage("Hi !");
QueueSender sender = qs.createSender(queue);
sender.send(msg);
} catch (Exception e) {
out.println(e.getMessage());
}
%>
</body>
....
Deploymemts are successful. ear , jar and war are deployed. But JSP throws exception below:
queue/testQueue -- service jboss.naming.context.java.queue.testQueue
Is ejb3 jar deployment succeeded? or do i miss any process in deploying message-driven bean?
I need your advice! Thanks in advance..
Best regards.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/643136#643136]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years