Yep. I don't know what is disabled on my company controlled laptop (damn
network nazis), but I took it to a network which I control and got it to work.
Thanks,
Michael
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3932833#3932833
Reply to the post :
1. Downloaded 1.3.0CR1
2. cd examples\PojoCache\annotated50
3. build run.aop.example
Buildfile: build.xml
|
| init:
|
| compile:
| [copy] Copying 1 file to C:\Program
Files\Java\JBossCache-1.3.0.CR1\example
| s\PojoCache\annotated50\output\etc\META-INF
|
|
To get this behavior, do the following:
In the properties of the persistence unit in the persistence.xml file:
properties
| property name=hibernate.ejb.naming_strategy
value=org.hibernate.cfg.DefaultComponentSafeNamingStrategy/
| /properties
This should be the default naming strategy.
JDK 1.5.0_06
JBoss 4.0.4RC1
@Embeddable
| class Vector3f
| {
| double getX()
| double getY()
| double getZ()
| }
|
| @Entity
| class Foo
| {
| @Embedded
| Vector3f getVelocity();
| @Embedded
| Vector3f getOrientation();
| }
I get some errors from
Give me a general direction to look in the code and I'll try to patch it.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928841#3928841
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928841
http://opensource2.atlassian.com/projects/hibernate/browse/ANN-279
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928844#3928844
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928844
I was able to do this in older JBoss versions, but now, I can't seem to get it
to work. It only works if I have the mysql-connector.jar file already in the
deploy or lib directories.
How do I get it so that this file is added to the applications 'classpath'
first so that my included -ds.xml
@Service()
class TestMBean
{
@EJB protected SomeSession ss;
}
Both this MBean and SomeSession session bean are in the same jar file.
So, why do I get an exception that it can't find SomeSession? Isn't that the
whole point of @EJB?
Thanks,
Michael
View the original post :
Can you explain why you have to use @Depends and @EJB?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3928289#3928289
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3928289
MyService.java:
@Service(...)
| class MyService
| {
| @EJB
| MySession ms;
| }
MyStateless.java:
@Stateless
| class MyStateless
| {
| @PersistenceUnit(...)
| EntityManager em;
| }
MyEntity.java:
@Entity
| class MyEntity
| {
| }
|
Now, it starts to deploy the
Did this change in the latest PFD?
I ask because the EJB3 trail I have has the entity-manager tag inside the
persistence.xml file, not a persistence-unit tag.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3925820#3925820
Reply to the post :
JBoss 4.0.3SP1.
I have a class:
class Person
| {
| protected Person parent;
| protected SetPerson children;
|
| @ManyToOne
| public Person getParent() ...
|
| @OneToMany(mappedBy = parent)
| public SetPerson getChildren() ...
| }
Everything deploys fine.
From EJB 3.0 spec:
anonymous wrote : The name element refers to the name by which the
EntityManager and its persistence unit are to be known in the environment
referencing context, and is not needed when dependency injection is used.
|
| The unitName element refers to the name of the
Windowx XP
java 1.5.0_06
I have 2 consoles opened (on the same machine), both in the following
directory: JBossCache-1.2.4\examples\aop\non-annotated
I run build.bat run.aop.demo in both windows.
Window 1:
run.aop.demo:
[java] ---
It seems like these limitations might not apply because Hibernate breaks down
the objects to the field level and puts them in the cache. Also, the data being
stored is probably at the primitive level.
Is that an appropriate interpretation?
View the original post :
Anyone else seeing this?
Friday jboss-head
jdk 1.4.1_02
RedHat 8.0
Michael
---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to
Quoting Sacha Labourey [EMAIL PROTECTED]:
So don't use it.
I'm no longer using it.
Ed Brown
So get the hell off the list. It *is* the 'jboss-user' list.
Michael
---
This SF.net email is sponsored by:
The Definitive IT and
My admin just moved me behind *another* firewall...
Now, my jboss-head, that was working fine, hangs on startup...
Last line in boot.log (no server.log gets created):
DEBUG [J2EEServer] postRegister(), parent:
jboss.management.local:j2eeType=J2EEDomain,name=Manager
My admin did screw around
Disregard... Problem solved. Configuration error.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 1:04 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] startup hangs
My admin just moved me behind *another* firewall...
Now,
I have my filter set up with a mapping of /*. I see my print out in
'init' but nothing comes out in 'doFilter'. What's up with that?
RedHat 7.2
jdk 1.4.1
fairly recent jboss-head
Any clues?
---
This SF.net email is sponsored by:Crypto
I want to use Velocity. I would like my Servlet to simply place my Local
EJBs inside of the Velocity template's context and then the template call
methods on the EJB. That's the simplest way, but I know that each call to
getXXX() would most likely require a new transaction. So, is it better to
I've noticed that in my bean class if I specify a method like:
/**
* @ejb.interface-method
* @ejb.persistence
*
* @return String
*/
public abstract String getState();
The resulting output in jbosscmp-jdbc.xml looks like:
cmp-field
I might have missed this, but what version of JBoss?
-Original Message-
From: Beau Cronin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 2:45 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Can two separate client threads make
simultaneous calls?
There are two
Do you have loader-repository in your jboss-app.xml file for you EAR? I
am getting this same error with jboss-head (1/16/03, 9:30am-ish EST) using a
mySQL datasource that was fine in jboss-head from 11/26/02. Everything
deploys fine when I use the default loader-repository.
-Original
I've traced the problem to DriverManager. In my case, I'm using mySQL, and
DriverManager has the Driver class loaded, but it skips it because it tries
to load the class from the callers ClassLoader, and class doesn't match the
class that was already loaded, so, it skips it.
So, either the
-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Subject: Re: [JBoss-user] classloading from WAR
The contents of wars is not treated as deployable unless you
happen to be using an snapshot from and old version of main.
Yep. I had to baseline HEAD, around
On first startup or on sequential startups ?
Depending on how hard You populated the DefaultDS Hypersonic backend, I
am guessing - Hypersonic on a sequential startup is rebuilding tables
and populating data while the jbossmq component idle's, since it is
dependent on DefaultDS to be
I have a WAR file with an applet. The applet requires some old classes that
conflict with those required by JSPs/Servlets in the WAR file. The classes
for the applet are in a jar file, applet_only_classes.jar. When I deploy my
WAR, JBoss creates a UCL for this jar file, even though it is only
jdk 1.4.1
jboss-head ~Nov 20th, noon
EAR structure:
thirdparty.jar // thirdparty library
util.jar // util classes that inherit/utilize thirdparty classes
ejb.jar// beans and classes that inherit/utilize util and thirdparty
classes
META-INF/application.xml
META-INF/jboss-app.xml
I
Red Hat 7.2
JDK 1.4.1-b21
jboss-head from ~2pm EST 10/29/2002
Scenario:
Session bean which gets some data from some EntityBeans. Session bean is
tied to a client GUI in which the user can 'click' a button and the client
calls a method on the Session bean to retrieve some data.
Problem:
We are
DJ This is pretty strange. You should be getting this
DJ consistently (if you are really using 2 resource managers
DJ in one transaction, one of them being only local tx
DJ capable) or never (if there is only one, for instance your
DJ only datasource).
I didn't think to mention my datasources.
DS Was this checked before or after my massive check in
DS yesterday? I know you wrote the 29th, but I want to
DS be sure as I messed with most of the interceptors.
10/29/2002 around 2pm EST.
Michael
---
This sf.net email is sponsored by:
We have a large, distributed, legacy application that uses RMI. This code
always checks System.getSecurityManager() and sets it to a new
RMISecurityManager() if the system one is null.
Now, we've rewritten some of the legacy guis to utilize some J2EE
components, but they still rely on some legacy
JDK 1.4.1
JBoss HEAD 10/29/2002
I have a session bean (A) in one EJB JAR that calls another session bean (B)
in another EJB JAR which calls another session bean (C) in another EJB JAR.
I get these warning when A calls B, then when B calls C (2 warnings). It
happens intermittently but when it
-Original Message-
From: Jon Haugsand [mailto:[EMAIL PROTECTED]]
Has anyone done anything to get dependent value classes by using
XDoclet?
1. Add @jboss.dvc-property tags to your getXXX() methods inside your
dependent value class.
public class Point3d
{
/**
*
This is specific to each JDBC driver you use. When you deploy an
application in JBoss, JBossCMP gets a Connection to the DataSource the
entity was deployed on and calls
Connection.getMetaData().getMaxTableNameLength() to determine the maximum
table name length. If its too short, it mangles it
Could someone check my understanding of these two elements? And then fill
in the holes...
'resource-ref': according to the spec, ... the Bean Provider must declare
all the resource manager connection factory references in the deployment
descriptor using the resource-ref elements.
So, in here,
(this didn't make it through to my mailbox, so if it made it through to
yours, I'm sorry for the repeat...)
I have a session bean with several different methods that look up a
datasource, create a connection, and execute some queries. My client keeps
getting this exception:
[java]
I have a session bean with several different methods that look up a
datasource, create a connection, and execute some queries. My client keeps
getting this exception:
[java] Exception in thread main
java.lang.reflect.UndeclaredThrowableException:
javax.resource.ResourceException:
39 matches
Mail list logo