7.0.1 Master and Backwards Compatibility
by Jason T. Greene
Right now master is being targeted for 7.0.1, so if you have anything
that breaks compatibility, we are going to need to spin off another
branch for 7.0.x. Please indicate this somehow. Either ping me or
mention it in the pull request.
--
Jason T. Greene
JBoss, a division of Red Hat
13 years, 8 months
Howto bind stuff to JNDI?
by Thomas Diesler
Folks,
[AS7-1426 <https://issues.jboss.org/browse/AS7-1426>] Provide injectable
BundleContext in JNDI
I currently use this code to bind the OSGi system BundleContext to
java:global/osgi/BundleContext
// Register BundleContext in JNDI
BinderService service = new
BinderService(CONTEXT_LONG_NAME, context);
service.getManagedObjectInjector().inject(new
StaticManagedObject(context));
ServiceBuilder<?> …
[View More]builder =
target.addService(CONTEXT_LONG_SERVICE_NAME, service);
builder.addDependency(CONTEXT_BASE_SERVICE_NAME,
NamingStore.class, service.getNamingStoreInjector());
builder.install();
is this the right code and JNDI context?
The resource injection works like this
@Resource(lookup = "java:global/osgi/BundleContext")
private BundleContext context;
What needs to be done to get rid of the lookup attribute (i.e. injection
by type)?
cheers
-thomas
--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[View Less]
13 years, 8 months
New Pull Request Process
by Jason T. Greene
Hi Everyone,
I hacked a way for github to send pull request notifications to our pull
request mailing list. This is good because now everyone can see when a
pull request comes in, and we can have dialogue on it.
From now on please send all pull requests via the github pull request
interface.
CHERRYPICKING WARNING.
When you do a pull request in git it always treats it like a branch even
when you do a single commit id. To someone processing the request, it
will look like all commits …
[View More]before it are wanted. To prevent this problem
just create a new branch for the commits you want rabased against master
and link that. Although I don't mind if you just leave a comment saying
you only want commit id blah and nothing before it.
--
Jason T. Greene
JBoss, a division of Red Hat
[View Less]
13 years, 8 months
Description provider duplication example acme-subsystem
by David Bosschaert
Hi Kabir,
Looking at the example acme-subsystem in [1] I noticed that there are 2
decription providers that contain the same attribute description. Once
in the TypeAddHandler and another one in SubsystemProviders.TYPE_CHILD.
They describe exactly the same property - the code seems to be copied. I
see that they are used in 2 places, the TypeAddHandler description is
used in registerOperationHandler() while SubsystemProviders.TYPE_CHILD
is used in the registerSubModel() call.
Is this …
[View More]duplication intentional/needed?
Thanks,
David
BTW here's the duplicated code:
public ModelNode getModelDescription(Locale locale) {
ModelNode node = new ModelNode();
node.get(DESCRIPTION).set("Contains information about a tracked
deployment type");
node.get(ATTRIBUTES, "tick", DESCRIPTION).set("How often in
milliseconds to output the information about the tracked deployments");
node.get(ATTRIBUTES, "tick", TYPE).set(ModelType.LONG);
node.get(ATTRIBUTES, "tick", REQUIRED).set(true);
node.get(ATTRIBUTES, "tick", DEFAULT).set(10000);
return node;
}
[1] https://docs.jboss.org/author/display/AS7/Extending+JBoss+AS+7
[View Less]
13 years, 8 months
Issue in EJB ?
by Jim Ma
I tried to deploy a webserivce endpoint impl with @Stateless annotation
packaged in a war file which works with AS5 and AS6 into latest AS7
snapshot and got CNF exception.
Below I list the error statck trace , endpoint impl class and the
web.xml used to deploy this ws endpoint. From the error stack trace ,
it looks like the issue in ejb side ? But it works
when I deploy this endpoint with an ejb jar file. Is it another
classloader issue ?
Thanks
Jim
-------------------error …
[View More]message------------------
1.
de/git-client/maerqiang-work/jboss-as/build/target/jboss-as-7.1.0.Alpha1-SNAPSHOT/standalone/data/wsdl/jaxws-benchmark-datatypes-pojo.war/EndpointWrappedRPCService.wsdl
2.
11:03:14,450 ERROR [stderr] (MSC service thread 1-12)
javax.xml.datatype.DatatypeConfigurationException: Provider
__redirected.__DatatypeFactory not found
3.
11:03:14,451 ERROR [stderr] (MSC service thread 1-12) at
javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:137)
4.
11:03:14,451 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointPOJOWrappedDocImpl.<clinit>(EndpointPOJOWrappedDocImpl.java:54)
5.
11:03:14,452 ERROR [stderr] (MSC service thread 1-12) at
sun.misc.Unsafe.ensureClassInitialized(Native Method)
6.
11:03:14,452 ERROR [stderr] (MSC service thread 1-12) at
sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
7.
11:03:14,453 ERROR [stderr] (MSC service thread 1-12) at
sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
8.
11:03:14,453 ERROR [stderr] (MSC service thread 1-12) at
java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
9.
11:03:14,454 ERROR [stderr] (MSC service thread 1-12) at
java.lang.reflect.Field.getFieldAccessor(Field.java:899)
10.
11:03:14,454 ERROR [stderr] (MSC service thread 1-12) at
java.lang.reflect.Field.get(Field.java:358)
11.
11:03:14,454 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.invocation.proxy.AbstractProxyFactory$MethodAccessibilitySetter.run(AbstractProxyFactory.java:253)
12.
11:03:14,455 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.invocation.proxy.AbstractProxyFactory$MethodAccessibilitySetter.run(AbstractProxyFactory.java:244)
13.
11:03:14,455 ERROR [stderr] (MSC service thread 1-12) at
java.security.AccessController.doPrivileged(Native Method)
14.
11:03:14,456 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.invocation.proxy.AbstractProxyFactory.afterClassLoad(AbstractProxyFactory.java:108)
15.
11:03:14,456 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.invocation.proxy.AbstractClassFactory.defineClass(AbstractClassFactory.java:158)
16.
11:03:14,457 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.invocation.proxy.AbstractProxyFactory.getCachedMethods(AbstractProxyFactory.java:118)
17.
11:03:14,457 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.as.ejb3.component.stateless.StatelessComponentDescription$2.configure(StatelessComponentDescription.java:121)
18.
11:03:14,457 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.as.ee.component.ComponentDescription$DefaultFirstConfigurator.configure(ComponentDescription.java:778)
19.
11:03:14,458 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:65)
20.
11:03:14,458 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
21.
11:03:14,459 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
22.
11:03:14,459 ERROR [stderr] (MSC service thread 1-12) at
org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
23.
11:03:14,459 ERROR [stderr] (MSC service thread 1-12) at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
24.
11:03:14,460 ERROR [stderr] (MSC service thread 1-12) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
25.
11:03:14,460 ERROR [stderr] (MSC service thread 1-12) at
java.lang.Thread.run(Thread.java:662)
26.
11:03:14,461 ERROR [stderr] (MSC service thread 1-12) Caused by:
java.lang.ClassNotFoundException: __redirected/__DatatypeFactory
27.
11:03:14,461 ERROR [stderr] (MSC service thread 1-12) at
java.lang.Class.forName0(Native Method)
28.
11:03:14,462 ERROR [stderr] (MSC service thread 1-12) at
java.lang.Class.forName(Class.java:247)
29.
11:03:14,462 ERROR [stderr] (MSC service thread 1-12) at
javax.xml.datatype.FactoryFinder.getProviderClass(FactoryFinder.java:121)
30.
11:03:14,463 ERROR [stderr] (MSC service thread 1-12) at
javax.xml.datatype.FactoryFinder.newInstance(FactoryFinder.java:146)
31.
11:03:14,463 ERROR [stderr] (MSC service thread 1-12) at
javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:187)
32.
11:03:14,463 ERROR [stderr] (MSC service thread 1-12) at
javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:131)
33.
11:03:14,464 ERROR [stderr] (MSC service thread 1-12) ... 22 more
-------------------EndpointPOJOWrappedDocImpl.java------------------
@WebService(serviceName = "EndpointWrappedDocService", portName =
"EndpointWrappedDocPort", endpointInterface =
"org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc")
@Stateless public class EndpointPOJOWrappedDocImpl implements
EndpointDoc { private static Duration dayDuration; static { try {
dayDuration = DatatypeFactory.newInstance().newDuration(86400000L); }
catch (DatatypeConfigurationException e) { dayDuration = null;
e.printStackTrace(); } } private static final List<String> stringList;
static { stringList = new ArrayList<String>(); for (int i = 0; i < 10;
i++) { stringList.add("item " + i); } } public String sayHello(String
toWhom) { String greeting = "Hello World Greeting for '" + toWhom + "'
today"; return greeting; } } -------web.xml---------- <?xml
version="1.0" encoding="UTF-8"?> <web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
<servlet> <servlet-name>EndpointPOJOWrappedDocImpl</servlet-name>
<servlet-class>org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointPOJOWrappedDocImpl</servlet-class>
</servlet> <servlet-mapping>
<servlet-name>EndpointPOJOWrappedDocImpl</servlet-name>
<url-pattern>/EndpointPOJOWrappedDocImpl</url-pattern>
</servlet-mapping> </web-app>
[View Less]
13 years, 8 months
Invitation for Open Source Project
by Peter Penzov
Hi,
I'm starting an open source project which involves web based Java, JBoss
application server and JBoss Seam 3. I'm a student and I work on the project
in my free time for training. Every one who want to take a part in this
hobby project in his free time is invited. Send me e-mail.
peter. penzov(at)gmail. com
Regards
Peter
13 years, 8 months
Help adding a native Hibernate 3.x unit test
by Scott Marlow
Hi,
I'd like to hack together a unit test that packages a 3.6.x version of
Hibernate and references a class that only lives in 3.6.x (not in
Hibernate 4.0).
Is there anything built directly into Arquillian for obtaining a test
jar from an external repo? I assume not but wanted to ask anyway. :)
Just looking for the simplest way to handle this test.
Thanks,
Scott
13 years, 8 months
packaging of demos in AS7
by Jonathan Halliday
Is there any documentation describing how to package and include demo
source code and instructions in AS7?
Now that XTS is (almost) integrated I'm looking at how we can ship the
demo app for it. IMO it should really be bundled with the AS rather than
a separate download, but the source for it will remain in the TS rather
than AS repo.
So, I need some way of packaging the source and instructions into maven,
then having the AS build get them back out and unpack them into some
suitable …
[View More]place. Ideally the AS build should then build and run the demo
to ensure it works too.
I'd also be interested to know if there are particular convestions in
place for how demos should build. Are they e.g. using relative paths to
reference libraries in the AS dir tree, or using maven? What is the
standard format for demo README files, instructions etc? plain text, html?
Thanks
Jonathan.
--
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SI4 1TE, United Kingdom.
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham (USA), Mark Hegarty (Ireland), Matt Parson
(USA), Charlie Peters (USA)
[View Less]
13 years, 8 months
hornet bootstrap errors (AS7-1402)
by Heiko Braun
when booting domain-preview.xml I get this:
[Server:server-one] 14:37:20,714 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC00001: Failed to start service jboss.messaging.jms.connection-factory.RemoteConnectionFactory: org.jboss.msc.service.StartException in service jboss.messaging.jms.connection-factory.RemoteConnectionFactory: failed to create connection-factory
[Server:server-one] at org.jboss.as.messaging.jms.ConnectionFactoryService.start(ConnectionFactoryService.java:83)
…
[View More][Server:server-one] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
[Server:server-one] at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
[Server:server-one] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]
[Server:server-one] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]
[Server:server-one] at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]
[Server:server-one] Caused by: HornetQException[errorCode=104 message=Connector 'netty' not found on the main configuration file]
[Server:server-one] at org.hornetq.jms.server.impl.JMSServerManagerImpl.internalCreateCFPOJO(JMSServerManagerImpl.java:1174)
any idea where this is coming from?
Ike
[View Less]
13 years, 8 months