Hi,
this thread contains a first cut attempt at writing an Interceptor to catch a
specific exception (the rollback and those things are not working correctly,
but you will get a good idea anyway;-)
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=76085
Louis
View the original post :
Testclass: testTransientVariablesOnly will fail if you do the transient bit
inside the conditional. Will also prove that you have to do the reverse bit as
well.
| /*
| * JBoss, Home of Professional Open Source
| * Copyright 2005, JBoss Inc., and individual contributors as indicated
|
MySQL 4.1 uses TINYINT for Boolean type, but MySQL 5.0 use Bit(1). After
upgrading to MySQL 5.0 and all mapping tables have been re-created.
I got
Data too long for column "read" that is a boolean type.
when inserting a row.
How to solve this problem?
Where is the Hibernate configuration
Web in UTF-8 (http request/response)
MySQL in UTF-8.
How to config JBoss/Hibernate to talk with MySQL using UTF-8?
Please help!
Dave
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921784#3921784
Reply to the post :
http://www.jboss.com/index.html?module=bb&o
Sorry,
no error-message occurred after I used jboss-4.0.3SP1.zip instead of
run-installer
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921783#3921783
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921783
Without testing it:
Does this has to be inside the conditional? This means that you have to have at
least one read/read-write mapping.
If the contract would state that all current transient variables are
transferred, this could be sufficient (I don't think you would have
read/read-write issues w
Just call a method of a Seam component. The Seam component can access the EM.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921781#3921781
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921781
---
Is there a way to use an EntityManager within a decision expression?
for instance. I have a decision task that needs to perform a check against
data in my database. I do not want to searcht he JBPM database.
Any ideas?
View the original post :
http://www.jboss.com/index.html?module=bb&op=vie
Hi,
I'm trying to get hold of JBoss JMS queue from my MBean. It works fine when I
"hot-deploy" my MBean when JBoss is allready started, but fails when I start
JBoss with my MBean deployed. I get following exception:
Failed to get JMS Queue. Exception = javax.naming.NameNotFoundException:
Conne
I cannot Copy ejb3.deployer from the lib/ directory of the distribution to
jboss-4.0.x/server/all/deploy because the directory jboss-4.0.3SP1/server/all
does not exist.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921777#3921777
Reply to the post :
http:
Hi,
Can anybody help me out to know the reason for occuring following exeception in
JBoss.
DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin ReadTask.run
DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin WriteTask.run
DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectInputStream
DEBUG [org.j
Hi Chris,
what do you mean by late? I do not expect replies within minutes or days. You
were perfectly well on time! Thanks for your help.
I changes the dialect attribute in persistance.xml and all worked fine.
By the way... why are hibernate classes controlling how to acces a persistance
data
No there are not, but it is simple:
|
|#{item.name}
|
And, then:
@Stateless
| @Name("itemFactory")
| public class ItemFactory {
|
|@Out Item item;
|@RequestParameter itemId;
|
|@Factory("item")
|public void getItem() {
| item = getItem(i
Jeez, and here I am converting the noejb/booking sample INTO a blog sample! :-\
Are there any current samples that show how to use RESTful request parameters?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921772#3921772
Reply to the post :
http://www.jboss
I'm guessing, as nobody else replied.
Try
select m from MyClass m join m.numbers mn where mn=4711
Give it a go and let me know.
Regards,
Chris
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921771#3921771
Reply to the post :
http://www.jboss.com/index.htm
Using the 1.5 final ide with 4.0.2; gave up trying to make 4.0.3sp1 work. still
can't launch jboss from within the ide. on one of the forums I saw someone
write that the 4.0 configuration doesn't work and the "workaround" was to use
the 3.2 configuration. so i tried that.
I am getting an error:
I have a lot of those :
2006-02-06 01:03:41,919 WARN [org.hibernate.cache.ReadWriteCache]
(org.hibernate.cache.ReadWriteCache.handleLockExpiry(ReadWriteCache.java:214))
An item was expired by the cache while it was locked (increase your cache
timeout): org.jboss.portal.core.impl.model.portal.O
I have a P200 MMX it's fast
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921768#3921768
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921768
---
This SF.net email
Looks like Tomcat is having trouble starting up there's also an error
about badly-formed XML files. I don't use Tomcat (I use Jetty), but if Tomcat
uses any XML config files and you've edited them, check you haven't
accidentally broken their "well-formedness".
A handy troubleshooting techn
Hi,
I'm trying to get hold of JBoss JMS queue from my MBean. It works fine when I
"hot-deploy" my MBean when JBoss is allready started, but fails when I start
JBoss with my MBean deployed. I get following exception:
Failed to get JMS Queue. Exception = javax.naming.NameNotFoundException:
Conne
Thanks for the answer.
I am still wondering why... I have an intel P IV Dual Core 3 GHz and 4 GB RAM
- am running Windows 2003, and the jvm is 1.4.2.
The server and the client run on the same machine (localhost port 8080)
If I find out what it is, I will let you know...
View the original post
"ploskikl" wrote :
| Does JBoss plan to provide server definitions elements for current (and
future) JBoss releases that can be downloaded using the Eclipse update manager?
|
i'm also interested in weather JBoss will support a JBoss app server definition
for eclipse wtp. i have eclipse wtp
The message "A CMR collection may only be used within the transction in which
it was created!" was often discussed here.
Creating the collection and iterating through it have to be don in the same
transaction.
>From a servlet you'll probably have to use a user transaction.
UserTransaction transa
Although, there is an example how to connect an MDB to a remote queue, probably
the same doesn't work when one wants to connect the same MDB to a CLUSTERED
remote topic.
Should it be possible? I just want to provide the topic in a clustered
environment, but a lot of MDB's on non-clustered JBos
I am not seeing slow reponse times between pages, but I just recently got a new
laptop for dev.
P 2.14
2GB
I am also using hypersonic right now, until I get around to installing PGres,
etc...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921760#3921760
Re
I posted questions regarding a performance issue we encountered when this
upgrade was performed:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74692
The problem turned out to be the garbage collector and our heap space settings.
This upgrade resulted in an increased use of permanent
I tried with 2.2.1 bundled, changed to postgresql, creating a new database.
Once the portal is started, the gui launched and connected under admin.
clicking back and forth on "management" tab and on "default" tab takes between
3 to 6 seconds. It is extremely slow.
Compared to that my portlet ar
No problem. I understand your frustration. I should have put more code up
there. Thanks for the help (really). It was a bit cryptic but so were my
questions. I thought my last post would lighten things up. Glad to see you
have a sense of humor.
View the original post :
http://www.jboss.c
Hi,
I am trying to get JBoss up for the first time. I am using the "run -c all"
command to start the server. At this time I am getting the following error
during startup. I have no idea what it means. Can you tell me what needs to
be done?
| WARN [org.jboss.ha.jndi.HANamingService] Fai
Take a look at the issue tracker example, which is not *exactly* what you are
describing (the search results are held in session scope), but is similar.
To propagate the selected hotel, I would rather use a request parameter, since
that will make the page bookmarkable (RESTful).
I need to finis
I forgot to mention that the same war file acted correctly on other App Servers.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921749#3921749
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921749
I'm in exactly the same situation -- I want a search list that's
conversationless-ly populated the first time the user hits the main list page,
and that then lets you start edit/etc. conversations via action links. It's as
if the noejb example always gave you a list of hotels the minute you pul
I created a web service implementing the ServiceLifeCycle interface. In doing
some tests it appeared that the init and destroy were called on every single
web service call. Is this really the case? It appears that the Servlets do
not do this and only call the init when the object is first cre
Yes, you catch the exception in the interceptor, or, you could catch it in a
servlet filter.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921745#3921745
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921745
---
As Gavin already said:
"[EMAIL PROTECTED]" wrote : For now, just write a Seam interceptor.
:-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921744#3921744
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921744
--
I have the following setup:
1. EJB1 <- POJOWS <- standalone ws client(outside the container)
2. EJB1 <- EJB2 <- <- standalone RMI-IIOP client (outside the container)
3. EJB1 <- standalone RMI-IIOP client (outside the container)
Only the last 2 scenarios are working. The first is returning "EJB1
does anyone know?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921739#3921739
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921739
---
This SF.net email is sponso
Hi;
I have an web application with the instructions to install on a standalone
tomcat 5.0.28. With the standalone installation, we need to place a file called
context.xml (context is the name of the context root) under
conf/catalina/localhost.
Please advise where I should put that file under a
So have you found the solution??? Sorry for the insistence but I need it.
Bye! =)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921731#3921731
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921731
--
"mcobery" wrote : Again thanks for your help. I know tech support can be
difficult sometimes but I think you may need therapy or maybe some time off to
deal with your anger.
|
Everybody thinks I am angry! If I was angry I would delete your user. ;-)
People mistake my directness in trying to
I did. But still my problem is there. @RolesAllowed throws exceptions that I am
not even able to catch them!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921728#3921728
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3
How to make JBoss more resistant to class exchange during debugging?
Scenario:
I run JBoss from Eclipse using my own launch configuration. In many classess
(beans implementation) I have to restart JBoss even after a really simple
change to the class (e.g. adding System.out.println() ).
Can I tr
I have read the http://wiki.jboss.org/wiki/Wiki.jsp?page=UsingEclipse
Now , I have no errors in the Eclipse IDE and I can successed build the Source
.I also install the JBoss AS Eclipse IDE .
Then i want to debug the source and want to track the source one by one line
.But i don't know how to
I have a stateless session bean with a method annotated with the transaction
attribute type SUPPORTS. The method performs a read-only query. I can't get
that to work. I always get the following stack trace:
javax.persistence.TransactionRequiredException: EntityManager must be access
within a tr
I'm also facing the same problem.
The valueChangeListener is not working. Please let me know if you come across
any solution.
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921725#3921725
Reply to the post :
http://www.jboss.com/index.html?module=bb
Hi Johannes,
This is a bit late, you may never see this or may have solved the problem.
The problem is: "Using dialect: org.hibernate.dialect.HSQLDialect"
Set up your persistence.xml to use org.hibernate.dialect.MySQLDialect
That should do it.
Chris
View the original post :
http://www.jboss.
This question has been asked at least twice. The answer is: "use an
intermediate entity to represent your assoc table"
I looked but could not find much on this in the Hibernate documentation. It is
most likely where I did not look.
I have an idea of what to do, but do not know if it right.
T
I am writing an interceptor and I need to access the sessionContext, could any
body tell me how can I do it?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921723#3921723
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3
you want to look at the parameterization of the CMSObjectCommandMapper that has
an attribute that specifies what is the default portal object window ref used
to show the content.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921721#3921721
Reply to the post
I am using Embedded EJB to unit test my Entity Beans. I have 2 tables dept and
emp, dept having a one-to-many association wuth emp.
if I define the association:
@javax.persistence.OneToMany(cascade = javax.persistence.CascadeType.ALL,
fetch = javax.persistence.FetchType.EAGER)
|@javax.p
Hi Gavin,
ignore my posting/question. Seam is working correctly and outjecting the right
stuff at the right time. My code was broken a bit.
Anyway, what I am doing (and wanted to do, but failed to explain properly
earlier): use the @Factory("xxx") annotation in a stateful bean. Have xxx event
I don't know if it is a bug, but I was also unable to inherit annotations. In
my case I tried to inherit the @Version and @Id annotations.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921718#3921718
Reply to the post :
http://www.jboss.com/index.html?mod
Here is the Base Class
| public class BaseDeptDTOImpl implements Serializable {
|
| private static final Log log = LogFactory.getLog(BaseDeptDTO.class);
|
|
|/** Primary key. */
|private int deptId;
|
|/**
| * auto_increment
| *
| * Get
This is a xerces bug, see comments in for work around:
http://jira.jboss.com/jira/browse/JBWS-686
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921716#3921716
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3921716
--
54 matches
Mail list logo