Anyone write up how to create your own data source on AS 7?
by Andrig Miller
Has anyone written up how you create your own data source in AS 7 Beta 1?
I'm trying to bring across my mysql-ds.xml into the configuration, but there are some tags that I don't understand (module stuff), and I'm also not sure about the carry over of things like transaction-isolation and connection-property tags.
Andy
13 years, 6 months
RFC: read-children-resources
by Heiko Braun
I realized one drawback with current API.
In order to fetch all sever groups, I need to get the list of sever group names first,
and for each group request the resource (N+1).
In order to reduce the number of requests necessary to fetch resources like
server groups, host, etc, I would suggest we add another generic operation that would be similar to read-children-names:
:read-children-resource(child-type=<name>)
It should return a list of resource representations that are children of <name>
Does it make sense?
Ike
13 years, 6 months
"application/dmr-encoded" decoding error
by Heiko Braun
The error we see when parsing the base64 response on the client side (discussed in a previous thread)
seems to relate to wrapping of response contents. I.e. when unwrapping (response = response.get("result"))
before encoding the corresponding decoding on the client side is successful.
I did just take a quick look, but couldn't find the answer. But I bet this does ring a bell?
Ike
13 years, 6 months
core dump when debugging?
by Scott Stark
I'm seeing the server vm core dump under both rhel and osx when I
connect a debugger to the server. Under osx I'm not finding the error
file, and the -XX:ErrorFile option is either not working, or the vm is
crashing so badly it is not creating an error file. Anyone else seeing
this currently?
[258](ironmaiden:bin) > ./standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /home/git/JBossAS/jboss-as/build/target/jboss-7.0.0.Beta2
JAVA:
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java
JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m
-Dorg.jboss.resolver.warning=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y
-XX:ErrorFile=/tmp/hs_err_pid.log
=========================================================================
Listening for transport dt_socket at address: 8787
15:42:42,537 INFO [org.jboss.modules] JBoss Modules version 1.0.0.Beta16
./standalone.sh: line 139: 46448 Segmentation fault
"/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java"
-Xms64m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y
-XX:ErrorFile=/tmp/hs_err_pid.log
"-Dorg.jboss.boot.log.file=/srv/web-apps/817468314962368366457975751090375370/app/data/logs/jboss/boot.log"
"-Dlogging.configuration=file:/home/git/JBossAS/jboss-as/build/target/jboss-7.0.0.Beta2/standalone/configuration/logging.properties"
-jar
"/home/git/JBossAS/jboss-as/build/target/jboss-7.0.0.Beta2/jboss-modules.jar"
-mp "/home/git/JBossAS/jboss-as/build/target/jboss-7.0.0.Beta2/modules"
-logmodule org.jboss.logmanager -jaxpmodule javax.xml.jaxp-provider
org.jboss.as.standalone
-Djboss.home.dir="/home/git/JBossAS/jboss-as/build/target/jboss-7.0.0.Beta2"
13 years, 6 months
detyped operation: read-children-names
by Heiko Braun
IMO the parameter 'child-types' is confusing:
[/] :read-children-names(child-type=host)
{
"outcome" => "success",
"result" => ["local"],
"compensating-operation" => undefined
}
does it make sense to turn it into something like 'item' ('element' or 'node' would do also) ?
in that case it would read:
[/] :read-children-names(item=host)
{
"outcome" => "success",
"result" => ["local"],
"compensating-operation" => undefined
}
Ike
13 years, 6 months
No description of why there are missing dependencies
by Scott Stark
I'm working on starting up the current as7 trunk code under makara, and
it is using various jboss.server.* properties to control various
locations. An example of the startup arguments is:
/opt/vostok/cartridges/jboss-7.0.0/bundle/bin/standalone.sh
-Dvostok.app.home=/srv/web-apps/817468314962368366457975751090375370
-Dvostok.app.base=/srv/web-apps/817468314962368366457975751090375370/app
-Dvostok.node.id=
-Djboss.server.data.dir=/srv/web-apps/817468314962368366457975751090375370/app/data/jboss
-Djboss.server.log.dir=/srv/web-apps/817468314962368366457975751090375370/app/data/logs/jboss
-Djboss.server.temp.dir=/srv/web-apps/817468314962368366457975751090375370/app/data/tmp/jboss
-Djboss.patch.url=file:/opt/vostok/cartridges/jboss-7.0.0/bundle/classes
-Djboss.server.config.dir=/srv/web-apps/817468314962368366457975751090375370/app/info/setup/jboss-7.0.0/configuration/
Now, the server is starting, but it shows 6 services with failed
dependencies. However, the logs do not show any errors, even at trace
level logging. How do I get more information on what the dependency
problem is?
10:59:08,865 INFO [org.jboss.as.deployment] (MSC service thread 1-4)
Started FileSystemDeploymentService for directory
/home/git/JBossAS/jboss-as/build/target/jboss-7.0.0.Alpha2/standalone/deployments
10:59:08,880 INFO
[org.jboss.wsf.common.management.AbstractServerConfig] (MSC service
thread 1-2) JBoss Web Services - Stack CXF Server 4.0.0.Alpha2
10:59:08,887 INFO [org.jboss.as.jmx.JMXConnectorService] (MSC service
thread 1-2) Starting remote JMX connector
10:59:08,929 INFO [org.jboss.remoting] (MSC service thread 1-3) JBoss
Remoting version 3.1.0.Beta2
10:59:08,997 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC
service thread 1-1) live server is starting..
10:59:09,198 INFO [org.apache.coyote.http11.Http11Protocol] (MSC
service thread 1-3) Starting Coyote HTTP/1.1 on http-8080
10:59:09,312 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor]
(MSC service thread 1-1) Started Netty Acceptor version
3.2.1.Final-r2319 localhost:5445 for CORE protocol
10:59:09,313 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor]
(MSC service thread 1-1) Started Netty Acceptor version
3.2.1.Final-r2319 localhost:5455 for CORE protocol
10:59:09,314 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC
service thread 1-1) HornetQ Server version 2.1.2.Final (Colmeia, 120)
started
10:59:09,390 ERROR [org.jboss.as] (MSC service thread 1-2) JBoss AS
7.0.0.Alpha2 "Halloween" started (with errors) in 3115ms - Started 79 of
108 services (6 services failed or missing dependencies, 23 services are
passive or on-demand)
Services missing dependencies:
service jboss.connector.config
service jboss.connector.defaultbootstrapcontext
service jboss.txn.ArjunaTransactionManager
service jboss.txn.TransactionManager
service jboss.txn.TransactionSynchronizationRegistry
service jboss.txn.UserTransaction
10:59:11,460 INFO [org.apache.coyote.http11.Http11Protocol] (MSC
service thread 1-3) Stopping Coyote HTTP/1.1 on http-8080
13 years, 6 months
Distributed cache in AS7
by Marcus Moyses
Hello,
I need to implement an authentication cache for AS7 and one of the
requirements we need is that it should be replicated in all nodes.
Do we have this use case implemented somewhere already? I was thinking
about using Infinispan but I don't see this dependency (or JGroups for
that matter) currently in AS7 so I was wondering if we are using
something else that I'm not familiar with.
I don't want to bring new dependencies if they are not necessary ;)
Regards,
--
Marcus Moyses
JBoss Core Developer
JBoss by Red Hat
13 years, 6 months