[JBoss Tools] - Update site broken for Maven Integration in Tools 3.2
by Pete Miller
Pete Miller [http://community.jboss.org/people/peterg.miller] created the discussion
"Update site broken for Maven Integration in Tools 3.2"
To view the discussion, visit: http://community.jboss.org/message/618956#618956
--------------------------------------------------------------
Hi,
I get this output when I try to install Maven support in Helios (up to date installation):
An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.maven.ide.eclipse.wtp,0.12.0.20110421-1500
No repository found containing: org.eclipse.update.feature,org.maven.ide.eclipse.wtp.feature,0.12.0.20110421-1500
Config problem JBoss end?
Cheers,
The Captn
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/618956#618956]
Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months
[JNDI and Naming] - JBoss As 7 problem with jndi port
by Pedro Rocha
Pedro Rocha [http://community.jboss.org/people/pd.rocha] created the discussion
"JBoss As 7 problem with jndi port"
To view the discussion, visit: http://community.jboss.org/message/618580#618580
--------------------------------------------------------------
I got a problem with jndi port on Windows Vista 64-Bit using JBoss 7.
Using the command "netstat -na" the port 1099 doesn't appear and can not connect to it using the telnet.
Is there any special configuration for this port run on JBoss AS 7?
Because when I run the code below have the following error: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
private static final String JNDI_NAME_CALC = "java:global/primeiroejb-0.0.1-SNAPSHOT/SimpleCalculatorBean";
@BeforeClass
public static void obtainProxyReferences() throws Throwable
{
//configure appender eclipse
BasicConfigurator.configure();
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
props.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
props.put(Context.PROVIDER_URL, "jnp://localhost:1099"); // HA-JNDI port.
namingContext = new InitialContext(props);
// Obtain EJB 3.1 Business Reference
calc = (SimpleCalculatorBean) namingContext.lookup(JNDI_NAME_CALC);
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/618580#618580]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months
[JNDI and Naming] - Using JNDI to connect to Websphere MQ, without hardcoded info
by zecas zecas
zecas zecas [http://community.jboss.org/people/zecas] created the discussion
"Using JNDI to connect to Websphere MQ, without hardcoded info"
To view the discussion, visit: http://community.jboss.org/message/619269#619269
--------------------------------------------------------------
Hi,
I'm struggling with JBoss to properly use a JNDI connection to completly make a connection to Websphere MQ Series, to feed an MDB.
I need some help, I'm trying to "sell" the idea of JBoss for this specific client I'm working for, and I would like to pass this difficulty, but I need some help from the community.
Versions:
JBoss 5.1.0 GA
Java JDK 1.6.0
WebSphere MQ 7.0.1 (on remote machine, 192.168.1.30:1414)
I've copied the "wmq.jmsra.rar" file into c:\...\jboss-5.1.0.GA\server\default\deploy folder. In that same location, I've created the file "wmq.jmsra-ds.xml", for the queue settings.
File "wmq.jmsra-ds.xml" contents:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<connection-factories>
<mbean code="org.jboss.resource.deployment.AdminObject" name="jboss.jca:service=WASDestination,name=TestQ">
<!--<mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=TestQ">-->
<depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'</depends>
<attribute name="JNDIName">queue/TestQ</attribute>
<attribute name="Type">javax.jms.Queue</attribute>
<attribute name="Properties">
baseQueueManagerName=QM_server01
baseQueueName=TestQ
</attribute>
</mbean>
<tx-connection-factory>
<jndi-name>conn/TestQ</jndi-name>
<xa-transaction></xa-transaction>
<rar-name>wmq.jmsra.rar</rar-name>
<connection-definition>javax.jms.ConnectionFactory</connection-definition>
<config-property name="channel" type="java.lang.String">SYSTEM.DEF.SVRCONN</config-property>
<config-property name="hostName" type="java.lang.String">192.168.1.30</config-property>
<config-property name="port" type="java.lang.String">1414</config-property>
<config-property name="queueManager" type="java.lang.String">QM_gestaosw_dds02</config-property>
<config-property name="transportType" type="java.lang.String">CLIENT</config-property>
<!--<max-pool-size>20</max-pool-size>-->
<security-domain-and-application>JmsXARealm</security-domain-and-application>
</tx-connection-factory>
</connection-factories>
In WebSphere MQ server, I have the queue manager instance named "QM_server01" and I've created a queue "TestQ" with default values applied. It was a fresh MQ install, I've just entered "IBM MQ Explorer" and created the "TestQ" queue.
Now from my project, I have the following Message Driven Bean:
@MessageDriven(
activationConfig = {
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination", propertyValue="queue/TestQ"),
@ActivationConfigProperty(propertyName="useJNDI", propertyValue="true"),
@ActivationConfigProperty(propertyName="hostName", propertyValue="192.168.1.30"),
@ActivationConfigProperty(propertyName="port", propertyValue="1414"),
@ActivationConfigProperty(propertyName="queueManager", propertyValue="QM_server01")
})
@ResourceAdapter("wmq.jmsra.rar")
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public class TestMQ implements MessageListener {
public void onMessage(Message message) {
System.out.println(message.toString());
}
}
Now this works fine. If I insert a message in the Websphere MQ, my MDB will pick it up with no problem.
My real problem is that, although I have defined the "mbean" in my "wmq.jmsra-ds.xml" JBoss deploy file, I cannot find a way to use it to get the MQ info.
Looking at my MDB code, I have the IP, PORT, QueManager name all hardcoded. And also I have a reference to "@ResourceAdapter" JBoss specific annotation.
I was hoping to configure this info in some server specific file, like the "wmq.jmsra-ds.xml", and eventually in the "jboss.xml" or some binding file that I could provide in my EJB jar file (which is part of an EAR).
I need to make the project work on JBoss and WebSphere Application Servers, and also (and specially) to not relly on remote MQ location hardcoded in my MDB's.
My project will go through several environments until reaching the final production environment, and I don't want to make builds for each of them.
So any way of just pointing to the JNDI and JBoss pick it up? Do I need to provide a jboss-specific xml binding file in my project?
It this a limitation of JBoss 5.1.0 GA? If so, will JBoss 6 provide the solution I'm looking for?
Again, I'm hopping the community to help me solve this situation. As I have it now, I will have a hard time moving on with the project in JBoss.
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/619269#619269]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months
[jBPM] - Re: In memory TaskClient without Mina or JMS
by Daniele Ulrich
Daniele Ulrich [http://community.jboss.org/people/daniele.ulrich] created the discussion
"Re: In memory TaskClient without Mina or JMS"
To view the discussion, visit: http://community.jboss.org/message/619242#619242
--------------------------------------------------------------
Hi Franklin
**public** executeEscalatedDeadline(Task task,Deadline deadline,
EntityManager em,
TaskService service) {
**if** ( deadline == **null** || *deadline.getEscalations() ==* ***null*** ) {
;}
If I check the references to getEscalations() or setEscalations().... you will not find any except in a test case... even for the Entity "Escalation" itself you won't find references where the object would be created...
So it will be up to you to write an EscalationHandler of your own and to register it with this constructor:
***public
**
TaskService(EntityManagerFactory emf, SystemEventListener systemEventListener, EscalatedDeadlineHandler escalationHandler)
*
By the way: we have decided not to use this service anymore. As I said before it is not mature enough, furthermore we have found heavy memory leaks and inefficiencies (if you're using the EventListeners) and the effort to write a similar functionality is very low. Furthermore you can have a better integration in an existing user management.
Regards
Daniele
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/619242#619242]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months
[JNDI and Naming] - ORA-12519, TNS:no appropriate service handler found
by tamizharasi periyasamy
tamizharasi periyasamy [http://community.jboss.org/people/tamizharasi.periyasamy] created the discussion
"ORA-12519, TNS:no appropriate service handler found"
To view the discussion, visit: http://community.jboss.org/message/619159#619159
--------------------------------------------------------------
Hi,
I am trying to connect a oracle 10g server. Following is my
Oracle ds entry
<local-tx-datasource>
<jndi-name>dnbame</jndi-name>
<use-java-context>false</use-java-context>
<connection-url>jdbc:oracle:thin:@...................:XE</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>....</user-name>
<password>...</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>50</max-pool-size>
<idle-timeout-minutes>5</idle-timeout-minutes>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>OracleXE</type-mapping>
</metadata>
</local-tx-datasource>
I am able to make connection and fetch the data. But it throws the warning like
10:15:14,523 WARN [JBossManagedConnectionPool] Unable to fill pool
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Listener refused the connection with the following error:
ORA-12519, TNS:no appropriate service handler found
The Connection descriptor used by the client was:
...................:XE
)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:190)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:584)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:531)
at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
at java.lang.Thread.run(Unknown Source)
Could any one tell me why I am getting this error and how to solve this issue?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/619159#619159]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 4 months