[JBoss Tools] - Can not install jboss tools in eclipse - help!
by Tanya Ruttenberg
Tanya Ruttenberg [https://community.jboss.org/people/daxxy] created the discussion
"Can not install jboss tools in eclipse - help!"
To view the discussion, visit: https://community.jboss.org/message/820192#820192
--------------------------------------------------------------
Because I work behind a firewall and because all contact with the internet is restricted to internet explorer, I can not take advantage of any of the handy tools you normally use to install software.
I can not seem to find the right combination of eclipse and jboss tools versions so that I can install jboss tools!
I have the following eclipse packages now on my PC
eclipse-dsl-kepler-RC1-win32.zip
eclipse-jee-juno-SR2-win32.zip
eclipse-standard-kepler-RC1-win32.zip
I don't particularly need DSL, but "standard" didnt' seem to have everything I wanted. I'm used to downloading the Jave EE version of eclipse for developers.
I have following jboss tools packages on my PC
jbosstools-3.3.2.Final.aggregate-Update-2013-01-18_18-03-25-H229.zip
jbosstools-4.0.1.Final.aggregate-Update-2013-03-27_16-17-05-B340.zip
I install these via the Install New Software.... feature where you select the archive and eclipse installs the software.
The most recent thing I tried was
eclipse-jee-juno-SR2-win32.zip
jbosstools-3.3.2.Final.aggregate-Update-2013-01-18_18-03-25-H229.zip
>From what I've read these both seemed stable. But I got this error
Cannot complete the install because one or more required items could not be found.
Software being installed: org.jboss.tools.maven.project.examples.feature.source.feature.group 1.3.2.v20130112-0608-H143-Final
Missing requirement: JBoss Maven Project Examples 1.3.2.v20130112-0608-H143-Final (org.jboss.tools.maven.project.examples.feature.feature.group 1.3.2.v20130112-0608-H143-Final) requires 'org.eclipse.m2e.feature.feature.group 0.13.0' but it could not be found
Cannot satisfy dependency:
From: org.jboss.tools.maven.project.examples.feature.source.feature.group 1.3.2.v20130112-0608-H143-Final
To: org.jboss.tools.maven.project.examples.feature.feature.group [1.3.2.v20130112-0608-H143-Final]
So I tried
eclipse-jee-juno-SR2-win32.zip
jbosstools-4.0.1.Final.aggregate-Update-2013-03-27_16-17-05-B340.zip
and got this
Cannot complete the install because one or more required items could not be found.
Software being installed: JBoss Maven Portlet Configurator 1.4.0.Final-v20130326-2027-B145 (org.jboss.tools.maven.portlet.feature.feature.group 1.4.0.Final-v20130326-2027-B145)
Missing requirement: JBoss Maven Portlet Configurator 1.4.0.Final-v20130326-2027-B145 (org.jboss.tools.maven.portlet.feature.feature.group 1.4.0.Final-v20130326-2027-B145) requires 'org.eclipse.m2e.feature.feature.group 1.1.0' but it could not be found
I've tried JBoss dev studio and every thing else I can think of. Nothing works for me!!
This is frustrating, but unfortunately not unexpected. I love eclipse, but I think I'm cursed.
And now I don't have a workable eclipse environment. :-(
(one more thing -- somehow eclipse juno was working earlier in the week, but it was so slow I decided to upgrade to Kepler, but then everything started breaking)
Thanks in advance for the help.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/820192#820192]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months
[Beginner's Corner] - Interceptor issue
by sri2
sri2 [https://community.jboss.org/people/sri2] created the discussion
"Interceptor issue"
To view the discussion, visit: https://community.jboss.org/message/820493#820493
--------------------------------------------------------------
Hi,
I created an interceptor extending from *BasicCustomInterceptor* implementing with *MBean* with simple methods.
Initialized/Uninitiazed in *start* and *stop* overrided methods. It accesses these methods when creating and destroying bean.
Somehow it has *not* accessed to *visitDistributedExecuteCommand* override method where my logic reside to compute something in distributed mode with numOwners=2. If I override other methods like *visitPutKeyValueCommand* then it accesses.
To find the issue, I added some couple of methods by putting print out statement along *return invokeNextInterceptor(ctx, command)* Just for testing purpose. These methods are :
1)//Not Accessed
@Override
public Object visitSizeCommand(InvocationContext ctx, SizeCommand command) throws Throwable {
System.out.println("Inside visitSizeCommand");
return invokeNextInterceptor(ctx, command);
}
2) //Not Accessed
@Override
public void visitCollection(InvocationContext ctx, Collection<? extends VisitableCommand> toVisit) throws Throwable {
System.out.println("Inside visitCollection");
// debug("Collection Size: " + toVisit.size() );
}
3) //Not Accessed
@Override
public <V> Object visitDistributedExecuteCommand(InvocationContext ctx, DistributedExecuteCommand<V> command) throws Throwable {
System.out.println("++++++++++++Inside visitDistributedExecuteCommand()");
Object o = invokeNextInterceptor(ctx, command);
// Some logic here
return o;
}
4) // Accessed
@Override
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand cmd) throws Throwable {
System.out.println("Ignoring this call to enforce read-only behavior");
return invokeNextInterceptor(ctx, cmd);
}
5) // Accessed
@Override
visitRemoveCommand(InvocationContext ctx, RemoveCommand cmd) throws Throwable {
System.out.println("Visited::::visitRemoveCommand");
return invokeNextInterceptor(ctx, cmd);
}
I'm using 5.3.0.Beta1 version with JDK 1.7.0_04. Interceptor added in config file. Testing with PiApproximationDemo and also with SimpleCache ( book, pay and list ) Infinispan book example.
Please advice how do I make it access to *visitDistributedExecuteCommand* override method.
And also advice how do I access to individual statistics from each node in distributed environment and show it on RHQ monitor/JConsole/JVisualVM by using MBeans or MXBeans.*
*
Do I have to write a plug in for RHQ? Or Do I have to write purely JMX code? I have to see each node info in addition to these statistics from URL http://docs.jboss.org/infinispan/5.1/apidocs/jmxComponents.html#Statistics http://docs.jboss.org/infinispan/5.1/apidocs/jmxComponents.html#Statistics.
Any input and code examples are appreciated. Thanks in Advance.
Sri
Partial Config file:
<global>
<transport>
<properties>
<property name="configurationFile" value="jgroups.xml"/>
</properties>
</transport>
</global>
<default>
<clustering mode="distribution">
<sync/>
<hash numOwners="2"/>
</clustering>
<customInterceptors>
<interceptor class="com.xxx.xxx.TestInterceptor" position="FIRST" />
</customInterceptors>
</default>
*Output from SimpleCache Example:*
May 30, 2013 3:31:11 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport start
INFO: ISPN000078: Starting JGroups Channel
May 30, 2013 3:31:11 PM org.jgroups.logging.JDKLogImpl warn
WARNING: [JGRP00014] TP.discard_incompatible_packets has been deprecated: incompatible packets are discarded anyway
May 30, 2013 3:31:11 PM org.jgroups.logging.JDKLogImpl warn
WARNING: [JGRP00014] TP.enable_bundling has been deprecated: will be ignored as bundling is on by default
May 30, 2013 3:31:11 PM org.jgroups.logging.JDKLogImpl warn
WARNING: [JGRP00014] UNICAST.setTimeout has been deprecated: not used anymore
May 30, 2013 3:31:14 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport viewAccepted
INFO: ISPN000094: Received new cluster view: [xxxx]
May 30, 2013 3:31:14 PM org.infinispan.remoting.transport.jgroups.JGroupsTransport startJGroupsChannelIfNeeded
INFO: ISPN000079: Cache local address is xxxx, physical addresses are [xxx]
May 30, 2013 3:31:14 PM org.infinispan.factories.GlobalComponentRegistry start
INFO: ISPN000128: Infinispan version: Infinispan 'Tactical Nuclear Penguin' 5.3.0.Beta1
*************registering MBean: com.xxx.xxx:type=TestInterceptor
********* Printing Interceptors from interceptorChain
********* Interceptor name: com.xxx.xxx.TestInterceptor
********* Interceptor name: org.infinispan.interceptors.InvocationContextInterceptor
********* Interceptor name: org.infinispan.statetransfer.StateTransferInterceptor
********* Interceptor name: org.infinispan.statetransfer.TransactionSynchronizerInterceptor
********* Interceptor name: org.infinispan.interceptors.NotificationInterceptor
********* Interceptor name: org.infinispan.interceptors.locking.NonTransactionalLockingInterceptor
********* Interceptor name: org.infinispan.interceptors.EntryWrappingInterceptor
********* Interceptor name: org.infinispan.interceptors.distribution.NonTxConcurrentDistributionInterceptor
********* Interceptor name: org.infinispan.interceptors.CallInterceptor
May 30, 2013 3:31:14 PM org.infinispan.jmx.CacheJmxRegistration start
INFO: ISPN000031: MBeans were successfully registered to the platform MBean server.
Ticket booking system
=====================
Commands: book, pay, list
> book
Enter name aaa
Enter show 111
Visited::::visitPutKeyValueCommand
Booked ticket Ticket{name='aaa', show='111'}
> book
Enter name bbb
Enter show 222
Visited::::visitPutKeyValueCommand
Booked ticket Ticket{name='bbb', show='222'}
> list
Ticket{name='aaa', show='111'}
Ticket{name='bbb', show='222'}
> pay
Enter ticketid 1
Visited::::visitRemoveCommand
Checked out ticket Ticket{name='aaa', show='111'}
>
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/820493#820493]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months
[Beginner's Corner] - MQ Howto?
by Thinus Pollard
Thinus Pollard [https://community.jboss.org/people/thinusp] created the discussion
"MQ Howto?"
To view the discussion, visit: https://community.jboss.org/message/777123#777123
--------------------------------------------------------------
Hi All
Pretty new to the whole JBoss thing.
I am looking for a Howto or something on getting MQ and Message Driven Beans to play nice. I've installed MQ (7.1.0-2) and latest nightly build of JBoss 7.2. (there is a bug in 7.1.1 where MDB's where not activated when a message is placed on a Queue).
I've deployed the resource adapter and it seems to deploy sucessfully. My MDB has an activation config via annotations. Upon deployment of the EAR project I get a RemoteFAP<init> NoSuchMethodException referring to the constructor for the RemoteFAP class. I have inspected the jar file (JMQI MQ jar file) and the constructor is definitly there.
So my initial questions are:
* Is there a step by step tutorial somewhere that shows how to get MQ working with JBoss for the above mentioned versions?
* Failing that, which MQ jars should be included in my EAR? (currently I have the com.ibm.mq, jmqi and jms jars included at this point in time).
Currently I have no idea where the issues may be hiding (is it MQ or the fact that I'm trying to use the nightly JBoss build). Any pointers would be appreciated.
Thinus
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/777123#777123]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months
[JBoss Web Services] - Is it possible to configure JAX-WS services with an external descriptor?
by Carlo Bonamico
Carlo Bonamico [https://community.jboss.org/people/carlo.bonamico] created the discussion
"Is it possible to configure JAX-WS services with an external descriptor?"
To view the discussion, visit: https://community.jboss.org/message/762155#762155
--------------------------------------------------------------
Hi,
I had to manage a situation similar to https://community.jboss.org/thread/146575 https://community.jboss.org/thread/146575 where a JBoss instance publishes a JaxWs service (annotated with @WebService) on plain http:// http:// on an internal network, and an external Apache httpd server with mod_proxy or mod_jk re-publishes the service over https:// https:// on the outside. The environment is JBoss-WS on JBoss AS 5.1.0.
In order to be able to rewrite the soap:address field in the WSDL I successfully followed @asoldano advice:
>Something else you might want to try is setting your soap:address to something like " https://replace-me/ https://REPLACE-ME", that should force the https protocol to be use in the soap:address when rewriting it. I think this probably has the side effect of overwriting the webServicePort you might want to >specify though.
Then enabled rewriting of the address in
jbossws.deployer/META-INF/jboss-beans.xml
<bean name="ServiceEndpointManager" class="org.jboss.ws.server.ServiceEndpointManager">
<!--
The WSDL, that is a required deployment artifact for an endpoint, has a <soap:address>
element which points to the location of the endpoint. JBoss supports rewriting of that SOAP address.
If the content of <soap:address> is a valid URL, JBossWS will not rewrite it unless AlwaysModifySOAPAddress is true.
If the content of <soap:address> is not a valid URL, JBossWS will rewrite it using the attribute values given below.
-->
<property name="webServiceHost">www.external.domain.com</property>
<property name="webServiceSecurePort">443</property>
<property name="alwaysModifySOAPAddress">true</property>
...
</bean>
In this way the resulting url exposed in the wsdl is https://www.external.domain.com/path/ https://www.external.domain.com/path/... which is what I needed to achieve.
However, apparently this only works for services which have an associated wsdl file provided by the developer (@WebService(wsdlLocation = "WEB-INF/...")) in the deployment. I would like to enable a similar behavior on services which have only the defining implementation class.
Is it possible to associate to an @WebService class an external deployment descriptor which only specifies soap:address and/or other specific jaxws parameters, without having to explcitely create (and obviously maintain over time) the wsdlby hand?
In general, I think that this scenario is not so uncommin, and it would be useful to have a parameter as suggested by @asoldano to simply enable rewriting of http:// into https://
>If nothing of this helps, please create a feature request jira. We might think about adding another configuration option (webServiceProtocol) and achieve what you want throught that.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/762155#762155]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months
[JBoss Web Services] - Resteasy encryption using jboss
by amit kumar
amit kumar [https://community.jboss.org/people/amit02.sharma12] created the discussion
"Resteasy encryption using jboss"
To view the discussion, visit: https://community.jboss.org/message/820394#820394
--------------------------------------------------------------
i have made one web service now i want to encrypt that json data using s/mime rest easy encryption at server side
@Path("/All")
@GET
@Produces("application/json")
@GZIP
public EnvelopedOutput getAllOpenMeetings(@QueryParam("batchsize")
int batchSize, @QueryParam("offset")
int offset, @Context
HttpServletRequest req) {
String ipAddress = req.getRemoteAddr();
EnvelopedOutput output=null;
CustomerBean bean=null;
try {
bean=new CustomerBean();
bean.setDesc("abc");
bean.setName("xyz");
X509V3Generator generator=new X509V3Generator();
X509Certificate certificate=generator.get();
output = new EnvelopedOutput(bean, MediaType.APPLICATION_XML_TYPE);
output.setCertificate(certificate);
} catch (Exception ex) {
String result = "Error 500 - Internal Server Error";
System.out.println("exception=="+ex.getMessage());
// throw new WebApplicationException(Response.status(500).entity(result).build());
}
return output;
}
but give eception:org.codehaus.jackson.map.JsonMappingException: Direct self-reference leading to cycle
but when i change @Produces("application/json")=@Produces("text/plain") then its not return the encrypted form its return simply object of EnvelopedOutput.
please help me
thank you
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/820394#820394]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months