[JBoss Cache] - Using JdbmCacheLoader
by Eugeny Balakhonov
Eugeny Balakhonov [https://community.jboss.org/people/c0ff75] created the discussion
"Using JdbmCacheLoader"
To view the discussion, visit: https://community.jboss.org/message/801763#801763
--------------------------------------------------------------
Hello!
I want to use JdbmCacheLoader in my configuration for a cache persistence. I have created simple config:
<?xml version="1.0" encoding="UTF-8"?>
<jbosscache xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:jboss:jbosscache-core:config:3.2">
<loaders passivation="false" shared="false">
<loader
class="org.jboss.cache.loader.jdbm.JdbmCacheLoader"
async="false"
fetchPersistentState="true"
ignoreModifications="false"
purgeOnStartup="false">
<properties>
location=D:/cache/#data
</properties>
</loader>
</loaders>
</jbosscache>
But this isn't working:
1. After a first start of application I see two DB files created in the directory d:/cache/.
2. I don't use cache during application run: I just start it and stop immediately.
3. During a second start of application I see a lot of errors. JBoss cache can't read persistence database which were created during first start. Generic reason:
Caused by: jdbm.helper.WrappedRuntimeException: org.jboss.cache.loader.jdbm.JdbmFqnComparator
at jdbm.helper.DefaultSerializer.deserialize(DefaultSerializer.java:99)
at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341)
at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263)
at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:242)
at jdbm.btree.BTree.load(BTree.java:276)
at org.jboss.cache.loader.jdbm.JdbmCacheLoader.openDatabase(JdbmCacheLoader.java:186)
at org.jboss.cache.loader.jdbm.JdbmCacheLoader.start(JdbmCacheLoader.java:157)
at org.jboss.cache.loader.CacheLoaderManager.startCacheLoader(CacheLoaderManager.java:461)
4. If I change in my config file JdbmCacheLoader to FileCacheLoader then cache works fine.
Where is my error in the configuration? How to correctly use JdbmCacheLoader ?
Please help me by good advice ;)
Best regards,
Eugeny
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/801763#801763]
Start a new discussion in JBoss Cache at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[JBoss Web Services] - get Jboss 7 to use custom top down WSDL definition of your choosing, without having CXF generate a wsdl
by jonathan wilson
jonathan wilson [https://community.jboss.org/people/888yyy888] created the discussion
"get Jboss 7 to use custom top down WSDL definition of your choosing, without having CXF generate a wsdl"
To view the discussion, visit: https://community.jboss.org/message/801668#801668
--------------------------------------------------------------
we are moving a topdown (wsdl first) ws from jboss4 to jboss7 and are having some difficulties with CFX I am noticing that the large wsdl file located in standalone\data\wsdl\x.ear\x.war\x.wsdl is not generated off the supplied xsd set, it seems to be generating off the classes. For instance our definition from JBoss4 reads (obfuscated)
<element name="x"> <complexType> <sequence> <element minOccurs="0" name="x" type="x"/> <choice> <element name="x" type="x"/> <element name="x" type="x"/> <element name="x" type="x"/> <element name="x" type="x"/> <element name="x" type="x"/> </choice> </sequence> </complexType> </element>
and the one generated by CXF has all the coice element replaced with minoccurs = 0, totally invalid for our actual use.
<xs:element name="x"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="x" type="xs:string"/> <xs:element minOccurs="0" name="x" type="ns1:x"/> <xs:element minOccurs="0" name="x" type="ns1:x"/> <xs:element minOccurs="0" name="x" type="ns1:x"/> <xs:element minOccurs="0" name="x" type="ns1:x"/> <xs:element minOccurs="0" name="x" type="ns1:x"/> </xs:sequence> </xs:complexType> </xs:element>
for the record, this wsdl works just fine, the reason we need to use our exact wsdl is that we have huge customers hitting this wsdl using c# proxy generated with wsdl.exe, wsdl.exe generates a totally different proxy class when presented with the CXF wsdl, and we cant get them to switch.
we use wsconsume to build our java classes and it annotates them well enough to be parsed by cxf, but not well enough to actually present the initial intent of the complexTypes, so after much looking, how do you get Jboss 7 to use the WSDL definition of your choosing, without having CXF generate a wsdl? We will not be using Spring to make this happen, so...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/801668#801668]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[jBPM] - Guvnor configuration for Postgres
by David Harris
David Harris [https://community.jboss.org/people/dmwpepper] created the discussion
"Guvnor configuration for Postgres"
To view the discussion, visit: https://community.jboss.org/message/801646#801646
--------------------------------------------------------------
Hi, I seem to have a number of database config questions. My latest is using Postrgres for Guvnor/Drools. I installed the jbpm 5.4.0 release. When I first brought up JBoss Guvnor it asked if I wanted to install the sample repository, so I did. I then changed the database configuration to Postgres and created a new set of packages and process artifact. I thought the package and process metadata would be in postgres, but I don't see it. Should it be there? Also, I wanted to verify the new repository configuration, but going back to the Manage Repository Configuration tab, I didn't see a way to view the current configuration. Instead it prompted me to reenter postgres configuration information. Why is that? a
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/801646#801646]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[jBPM] - Re: Startup of task service
by roxy1987
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion
"Re: Startup of task service"
To view the discussion, visit: https://community.jboss.org/message/801611#801611
--------------------------------------------------------------
Well to start up human task using ant, all you need to run is start.h2 before it. Or the target data base server should be runnning in case you have migrated it to another db.
If you run the ant scripts in the sequence
+ant start.h2+
+ant start.jboss+
+ant start.human.task+
+ant start.eclipse+
Then I believe you will get a conflict with the address:port usage as the script +ant start.jboss+ has already started task service. I dont remember correctly but If I am not wrong, in the very first draft of jbpm 5, task service was required to start up this way. STarting up jboss did not start human task service with that version. And quite a lot of documentation has not been modified with the upgrades. I am not sure about it though.
Well All you need to do is
+ant start.h2+
+ant start.human.task+
+Regards.+
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/801611#801611]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[Beginner's Corner] - Re: JBoss AS 7.1.x Securing Management Console - Authentication/SSL
by Kevin Gorman
Kevin Gorman [https://community.jboss.org/people/kevgo] created the discussion
"Re: JBoss AS 7.1.x Securing Management Console - Authentication/SSL"
To view the discussion, visit: https://community.jboss.org/message/801598#801598
--------------------------------------------------------------
Who would have thought spelling mattered..
<management>
<security-realms>
<security-realm name="ManagementRealm">
*<!-- server-identities is required for the ManagementRealm to point to SSL certs keystore can be placed anywhere that makes sense -->*
<server-identities>
<ssl>
<keystore path="/usr/share/jboss-as/jboss-eap-6.0/jboss.keystore" keystore-password="changeit"/>
</ssl>
</server-identities>
<authentication>
<local default-user="$local"/>
<properties path="mgmt-users.properties" relative-to="jboss.server.config.dir"/>
</authentication>
</security-realm>
And then..
<http-interface security-realm="ManagementRealm">
*<!-- Small typos causes grief don't forget socket-binding http's' in this statement -->*
<socket-binding http*s*="management-https"/>
</http-interface>
</management-interfaces>
</management>
Likely won't be the last time I stare at XML looking for typos...
Next step is the tie in to LDAP.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/801598#801598]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[jBPM] - JBPM 5.4 Installation Does not work
by ed de jongh
ed de jongh [https://community.jboss.org/people/edejongh] created the discussion
"JBPM 5.4 Installation Does not work"
To view the discussion, visit: https://community.jboss.org/message/801543#801543
--------------------------------------------------------------
Hi all after playing around with this software I am thoroughly unimpressed. My requirements are simple, get the basic jBPM 5 install up and running with drools-guvnor, jBPM console etc. working. Well for starters I had to hack the hell out of the build.xml to get everything installed. Then the ant start.demo also simply does not work. When you look in the deployments folder all you see are the failed deployments e.g. drools-guvnor.war.failed etc. I have used numerous tutrials and the jBPM Developer Guide Book, but still no joy.
I have also bee trying to get a simple process flow working with jbds. The thing that concerns me most is the conflicting information out there. Some articles say you can only use 32 bit, others tell you that the required jboss tools will not work in jboss studio 6, the list goes on and on.
I am trying to promote JBoss over the Oracle stack for a huge project, but if this is the state of the basic installs and tutorials where NOT ONE has worked correctly, I am more than a little hesitant.
In less than no time I have managed to configure the full Oracle Fusion Middleware suite without hassles and the demos all work.
Could somebody please point me in the direction of a relavent up to date tutorial for getting the jBPM suite installed with all the necessary plugins etc. ideally on JBoss DEV Studio 6 with EAP including the SOA platform. The server installs all work, but not once have I had success with the eclipse demo.
Some advice would be greatly appreciated, I have been through dozens of tutorials and there are a lot of posts complaining about the same or very similar issues.
All I am trying to do is model a very simple process in jBPM and integrate with JBoss ESB. Previous versions were a lot more stable and easy to use.
I am running on Mac OS X, but will ultimately port to RH as the OS.
Any help would be appreciated
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/801543#801543]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month