[JBoss.NET] - Problem using JBoss.net and JBossWS
by gisnalbert
Hi,
I have a problem in my hands that i dont know how to solve:
my application has webservices using JBoss.net, working in JBoss 3.2.7; but, inside this webservice, at some point, is made use of another webservice, using a classes that are in a jar (that i dont have the sources), and that jar uses a newer version o axis (from the package org.jboss.axis.*).
In my machine, using JUnit for testing only the webservice, all works well, but when i put this project in the JBoss and try to consume the webservice, there are many errors, because of classloader.
I have tried putting the jars that my jar uses in the JBOSS_HOME\server\all\lib (those are jbossall-client.jar, axis-ws4ee.jar and jboss-ws4ee.jar) but then, the server dont even start, giving me an error in the file JBOSS_HOME/server/all/conf/login-config.xml.
Someone has some light as how to solve my problem?
Thanks to everyone!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102572#4102572
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102572
18 years, 6 months
[JBoss Seam] - Re: How to start jbpm business process from an async quartz
by pietermartin
Solved,
| @Name("pollPosForOBF")
| @Scope(ScopeType.CONVERSATION)
| public class PollPosForOBF {
|
| @Logger
| Log log;
|
| @In(create=true)
| private OBFProcessAction oBFProcessAction;
|
| @Asynchronous
| @Transactional
| public QuartzTriggerHandle poll(@Expiration
| Date when, @IntervalDuration
| Long interval, @FinalExpiration
| Date endDate) {
| log.info("Async poll happening ja wol");
| oBFProcessAction.startOBFBusinessProcess();
| return null;
| }
| }
|
| @Name("oBFProcessAction")
| public class OBFProcessAction {
|
| @Logger Log log;
|
| @Out(scope=ScopeType.BUSINESS_PROCESS, required=false)
| String orderId;
|
| @CreateProcess(definition="OBFProcess")
| public void startOBFBusinessProcess() {
| log.info("startPolling");
| orderId = new UID().toString();
| }
| }
|
|
Seams like delegating @CreateProcess made it work, not sure why tho.
Cheers
Pieter
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102568#4102568
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102568
18 years, 6 months
[JBoss Seam] - converting time for selectOneMenu displaying time only
by damianharvey
I have an entity with a field 'openTime' that is a MySQL TIME datatype. Hibernate has converted this into an entity field as such: @Temporal(TemporalType.TIME)
| @Column(name = "OPEN_TIME", length = 0)
| public Date getOpenTime() {
| return this.openTime;
| }
I need to allow a user to enter a time on the page. Instead of allowing free text I am using an h:selectOneMenu and a list of times on the half hour (eg. "00:00", "00:30", etc). I can select a time from the list and it will save it in the database. However when I go to edit the record, the select list is not able to select the value that was already saved (ie. set one of the OPTIONs to selected="true").
I ran this through the debugger and the problem is that the com.sun.facces.renderkit.html_basic.MenuRenderer cannot convert from java.util.Date to java.sql.Time. The error produced (and swallowed on line 537) is: Cannot convert 1/1/70 7:00 AM of type class java.util.Date to class java.sql.Time
What is my best option here? Should I go for a custom converter (I haven't done one yet) rather than s:convertDateTime? Or is there an option I can set on the entity definition (maybe 'columnDefinition' on @Column)?
Any advice is very much appreciated.
Thanks,
Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102565#4102565
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102565
18 years, 6 months
[JBossCache] - Re: Strange ClassCastException in OptimisticCreateIfNotExist
by spennec
Thanks for the advice regarding Options.
What I always do is these calls:
final InvocationContext invocationContext = treeCache.getInvocationContext();
| final Option optionOverrides = invocationContext.getOptionOverrides();
I guess that I recieve a new option object each time, or at least one that is recent enough to apply to the current transaction. Based on what I've been able to observe until now, it seems to work fine.
You are correct: the CCE only happens on the remote node.
We are heavily using TreeCache on my project, so if I can be of any help to have this problem solved, I'd be more than happy! :-)
One more small question (slightly off topic, though): if I setup a TreeCacheListener on the two members of my cluster, and I remove a node in one member: is the other member's listener supposed to be called?
Thanks for your support!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102561#4102561
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102561
18 years, 6 months