Generating physical class files in advance
is the simplest way. Otherwise, you might
be able to modify a class loader that loads
your EJB so that the class loader also can find
"virtual" class files generated on the fly.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewt
http://www.jboss.org/wiki/Wiki.jsp?page=CreateAJDBCDataSource
You cannot access the jndi names for Datasources outside of a VM as they are bound
using the java:/ namespace
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853695#3853695
Reply to the post :
htt
Hy,
Could any please let me know how to develop a ejb(session bean) client, where the
server is jboss 4, like what will be the properties and which jar files will be needed
to be set in the class path.
Thank you,
Umair Raza
View the original post :
http://www.jboss.org/index.html?module=bb&op
I don't believe there is still a currentTx in afterCompletion(). The incoming status
to afterCompletion is 3 (STATUS_COMMITTED).
A code snippet from the afterCompletion(int) handler that TopLink provides is as
follows (hope this is helpful):
public void afterCompletion(int status) {
One possibility is that URLClassLoader could find
the modified class file but failed bytecode verification.
(I'm not sure, though.)
Can you make sure that you can load the modified
class without a URL class loader (with a system
class loader)? If you cannot, that means the modified
class file is
Well, I figured out that the version I'm using access the jmx agent . this
way...
http://localhost:8082
Later versions use the /jmx-console and I don't even think the version I'm using 2.4.4
has a web-console .
View the original post :
http://www.jboss.org/index.html?module=bb&op=view
I am using Jboss3 , I would like to rollback the message when there is any exception
throw in the on Message() of my MDB.
However, I have followed the configuration on the internet .
I still have a exception like the followings . Is there any configuration that I
missed ?? Any suggestions are app
Hi,
I configured a datasource in JBoss and i tried to access it with in the Jboss it is
working fine ,but when i try to access it outside of the JBoss,it is throwing name not
bound exception.
Is it possible to configure a datasource in JBoss, such a way that it becomes
available from a standalon
When I use sun jdk1.4.2, it's no problem on linux; but when I use jdk IBMjava2-142,
some exceptions will occur, could u tell me how to solve this porblem?
I need to use IBMJava.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853686#3853686
Reply to the post
I worked with the tutorial at http://www.tusc.com.au/tutorial/html/ . However, this
tutorial
introduced an Eclipse plugin called Lomboz into the mix. It really didn't teach me
about EJB
design and development.
Quite frankly, the best book/tutorial I found on EJBs was Wiley's Mastering Enterpri
I found that one cannot specify the 'primkey-field' attribute on the @ejb.bean tag if
you have
a composite key for the bean. You must specify @ejb.pk-field tags on all of the
getter/setter
methods that define your composite key.
Then, if you specify the subtask in the task in your
build fil
Ttry this...
http://www.tusc.com.au/tutorial//index.html
This is bit out of date now.
I a'm currently trying to write a new one for Jboss4.0 and Eclipse with whole
J2EE life cycle covered staring from setting up the CVS to finally deplyoing
the Project .ear file.
Vishal
View the original post :
Here's my build.xml file for 'xdoclet' task to generate JBoss descriptor file:
|
|
In an (entity) bean:
| * @ejb.bean
| * name="Customer"
| * type="CMP"
| * view-type="local"
| * primkey-field="customerKey"
| * @ejb.persistence
| * table-name
There are quite a few posts out there that answer this question. Have a look at my
earlier post:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=55988
Or try out this wiki page:
http://www.jboss.org/wiki/Wiki.jsp?page=Setmultipleinstances
Also the admin guide has a section on this (chap
Hi, I am trying to deploy an EJB and want to use Mysql. How should i complete the
following fields:
File xdoclet.xml:
|
File StoreAccessBean.java
@ejb.resource-ref res-ref-name="REPLACE_HERE"
| res-type="javax.sql.Datasource"
| res-auth="Container"
|
| @jboss.resou
I'm using SQL Server 2000, JBoss 3.2.1, and the microsoft jdbc driver.
On my development machine (Win XP pro) the app works fine.
On the server (Win server 2003 small bus edition) I get exceptions deploying the EJBs
(see stack trace below).
The database port (1433) is open and I've confirmed sql
First I have a different proposal. Use a ValueObject design pattern instead of calling
all the getters. This is only one getter and you get a class representing your entity
class. Change the class and send it back.
You can find the commit Options in
jboss-3.2.5\server\default\conf\standardjboss
You can call any abstract setters and set the values in your ejbCreate method.
Regards Sebastian
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853673#3853673
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853673
---
Hallo,
did you change the mapping the datasource-mapping in your jbosscmp-jdbc.xml.
You find the different mappings in the file
jboss-3.2.5\server\default\conf\standardjbosscmp-jdbc.xml
Kind Regards
Sebastian
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=38
2004-11-02 16:23:33,984 DEBUG
[org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.ApprobationProcess]
[http-0.0.0.0-8080-Processor7] load relation SQL: SELECT id FROM ProcessAction WHERE
(cycleId=?)
2004-11-02 16:23:33,984 TRACE
[org.jboss.resource.connectionmanager.JBossManagedConnectionPo
Is there any way I can automatically configure message forwarding between two JMS
servers? I'd like to have two instances of JBoss with JBossMQ running under each, and
when a network connection is available between two topics have any messages posted on
one queue automatically forwarded to a de
J2EE1.4 supports invoking an MDB providing it with a message taken from a socket as
opposed to a queue.
Could anyone please tell me, whether jboss3.2.x supports the above? If it supports
where to configure the deployment details?
Thanks in advance
-RK
View the original post :
http://www.jboss
I am trying to setup 2 instances of JBoss on the same machine.
I have read multiple posts, but none have had an extensive explanation.
I have begun trying to use the Services Binding Manager, but I am not really sure how
it works, would someone please explain this to me, or point me in the direc
Take a look at
server/src/main/org/jboss/ejb/plugins/jms/JMSContainerInvoker.java
in the JBoss sources.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853665#3853665
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853
The posts regarding changing the cluster name are right to caution you. To do that,
you will have to correctly change the cluster name attribute in several configuration
files, and you must only change the attribute "PartitionName" not the MBean name
itself (which is also "DefaultPartition").
Can you reproduce on the latest in the 3.2 branch?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853663#3853663
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853663
-
Well, now it's doing it under "default" as well. It looks like something in reflection
is not handling inheritance correctly. See this page:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg82382.html
Derek
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=38536
in the "cluster-service.xml" file under deploy directory of your configuration
(all for example), change the attribute "PartitionName" to the name you want
[Remember just the attribute name]
DefaultPartition
Do **not** find/replace all occurrences of the word "DefaultPartition".
| DefaultPartition
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853660#3853660
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853660
---
This SF.Net email
I've installed jboss 2.2.4 with tomcat. When I goto localhost:8080 I get page cannot
be displayed and this is the error code from jboss.. It can't seem to find the
root app? Is the root index page of tomcat suppose to display or jboss?
[INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost
I am trying to create separate PROD, QA, and DEV JBoss cluster partitions. Obviously
we want these clusters to be disjoint. I tried to do so by making a copy of the 'all'
configuration and then replacing DefaultPartition with ProductionPartition. (See shell
script below) When I fired up JBoss th
We are using JBoss 3.2.2. We have an instance where we suspect a bad message object
is NOT being consumed on the receiver end. When the receiver tries to 'consume' the
bad message object, the message object is NEVER removed from the queue. This causes
the queue size to increase but never go d
Is there a way to configure JBoss so that it only accepts requests coming from the
localhost? I only want it to accept requests from my proxy server on the same machine.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853650#3853650
Reply to the post :
http:/
Hi all,
I've recently started working with CMPs on JBoss.
I created an entity bean with some finder methods (using EJB QL : LOCATE method...,)
In the jbosscmp-jdbc.xml, I configured the data source for this entity bean as 'mySQL'
& was working with MySQL server - in my system. This was running wi
Hi,
I use the normal URLClassLoader in java 1.4.2. In my opinion the URL must be
correct as I can load it when I use version 1 with the indirection.
The class not found is the modified one.
Other classes in the same directory, for example the interface of the
modified class, which was also mod
Hello world,
Sorry if this question has already been posted here, but i'm quite new
in JBoss, so feel free to forward me to the relevant thread if necessary.
I'm buiding a webapp where users can be distinguished by they role.
I needed to respect JAAS, so 've defined this roles in myWebApp-roles.p
Hi,
I've written a web app using Struts and the Commons Validator that I'm deploying
on JBoss 3.2.6. If I deploy it in the "default" configuration everything is happy and
it works great. If I try to deploy it in the "all" configuration, the validation fails
with a NoSuchMethod exception and
hi All,
I have found why my EJB that work on Jboss 3.2.2, and NOT work on JBoss 3.2.6.
In the JBoss 3.2.6, the persistence-manager property (set in the standardjboss.xml)
has been changed to JDBCStoreManager as shown in the following extracted codes:
| Standard CMP EntityBean
|
??? What is optimized?
Please don't trust your decompiler if a class file
is generated by a bytecode translator such as
Javassist..
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853644#3853644
Reply to the post :
http://www.jboss.org/index.html?module=bb&op
I've just implemented it.
Please take a look at CVS HEAD.
Chiba
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853642#3853642
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853642
I've looked through the forum and have yet to find a great example of how to implement
a subscriber reconnect after a ping timeout has occurred. I've implemented the
ExceptionListener to know when the timeout has occurred, but now I want to know what
the correct way is to reconnect to the provi
I have found that adding
true
to my datasource definition has fixed this problem in both JBoss 3.2.6 and JBoss 3.2.5.
It's a bit frustrating as I have no idea why and only stumbled on the solution due to
similar problems I had using JBoss 4.0.
View the original post :
http://www.jboss.org/in
Hi,
I tried the MyService example code on 3.2.6 and it's not worked for me neither.
I found out some interesting things which is the client-side's MarshalledInvocation
has Method object setup properly. But, the server-side's MarshalledInvocation doesn't
has that piece of information. I can see
Hi,
I tried the MyService example code on 3.2.6 and it's not worked for me neither.
I found out some interesting things which is the client-side's MarshalledInvocation
has Method object setup properly. But, the server-side's MarshalledInvocation doesn't
has that piece of information. I can see
I just added true to my data source
definition and the problem disappears. What could that possibly indicate?
- joel
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853633#3853633
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode
I am pleased to report that adding
true
has done the trick for me as well.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853636#3853636
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853636
--
I think JBoss has API to substitute a user-defined
class loader for the original one. WebLogic should
have such a API... :-p
Chiba
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853625#3853625
Reply to the post :
http://www.jboss.org/index.html?module=bb&op
hello,
my jboss.xml file is as following :
|
| MdbModuleInitializationBean
| topic/InitializationTopic
|
| jdbc/AdminDB
| jdbc_AdminDB
|
|
|
|
|
|
| MdbMonitorin
The following method needs to be created ... this is just a code snippet of the body
..
[Method]
public boolean parseForHeader(String s);[/Method]
|
| {
| java.lang.String msg = $1;
| com.emirates.ngcs.poc.messages.FFMMessage msgobj = new
|
The warning only indicates that a WS4EE specific interceptor could not be loaded,
which confirmes that you successfully removed JBossWS.
If you've already gone through the efford of building from source, you can use the
'deploy' target in jboss.net/build.xml like this
| cd jboss.net
| ant
Hello,
I am currently migrate a J2EE application (with MDB CMP ) in order to
use JBoss server.
I have created jboss.xml and jbosscmp-jdbc.xml file. I didn't change my ejbjar.xml
(that is working perfectly with my previous apps server) so in this file I have got
all EJB QL query that is wor
/* if I replace the above mentioned line with the second version, I get
|a ClassNotFoundException:*/
| nMethod.setBody(cc.getDeclaredMethod(oldMethods[ i ].getName()), null);
| cc.setModifiers(cc.getModifiers() & ~Modifier.ABSTRACT);
So you received a ClassNotFoundException when you l
I am having the same problem. I am using Apache Derby. If this is a problem with their
EmbeddedXADataSource I would like to file a bug report so that it gets addressed. It
would be useful if I had more information to pass to them to help pin point the actual
problem. Any suggestions would be gre
Hi ,
Anyone know about starting the JBOSS remotely. either through console or through
run command.
If anyone have the answer for this.Please give the solution. It will be a great
help.
Regards,
Raheem
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=
Hello,
I am using Jboss-4.0.0 and try to change the standard jnp-port(1099) to port 4.
Therefore I made the following modifications within the jboss-service.xml file:
4
Anyway, I got the following error message:
Failed to connect to localhost:1099
javax.naming.CommunicationException:
Hi james,
obviously, both servers try to use the same ports. e.g. namingService of server1
listens on port 1098 and server2 tries the same und you get those "JVM_BIND" errors.
So check your configurations or post your configurations.
View the original post :
http://www.jboss.org/index.html?mod
"[EMAIL PROTECTED]" wrote : Create a bug report on sourceforge with the testcase your
talking about. Authorization is distinct from authentication so a secured mdb needs to
be run under an unauthenticatedIdentity since there is no standard way for the jms
invocation to establish the security con
I am using basic authentication based on UsersRolesLoginModule
which works fine for 3.2.x
but doesnt work unter 4.0.0
none of my roles are accepted by a call to request.isUserInRole()
logfile output seems ok !
org.jboss.security.auth.spi.UsersRolesLoginModule authentication returns loginOk=true
Hi Achim,
thanx for the help. Now it works for me too.
Kind regards Helmut
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853608#3853608
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853608
--
Dear all,
I would like to know how can I show the content/result of JSP page in html page using
Javascript.
I found some web site use ASP to do th above case. It use javascript with ASP. Here
is html content using ASP with javascript.
**
hi!
Can I override findByPrimaryKey method in cmp entity bean
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853605#3853605
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853605
---
Presumably you are using CMP.
My guess is that the client.getOrders().iterator() statement is getting a set of
Primary Keys for the order.
As you progress through the iterator, each order in turn is loaded in a separate SQL
statement.
So, for n orders, the application is making n+1 SQL operati
Does no reply mean that I am doing something that is obviously stupid?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853603#3853603
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853603
--
Damit the forum scred up the xml code is there still no edit-button ?
well i tried changing the port from 443 to 8443 producing no tls package but still no
connection
|
|
|
| gtc.keystore
| rmi+ssl
|
|
| 443
|
| org.jboss.security.ssl.RMISSLClientSocketFactor
Hi guys... im a bit frustrated...
Im calling a session bean from an applet - works fine...
Now i have to pass that rmi communication over ssl.
I changed the jboss-service xml like this:
gtc.keystore
rmi+ssl
443
org.jboss.secu
Thanks.
Conclusion:
So for ServiceMBean the number are different than the SMO.
Here the attribure is "State". (Capital "S")
For SMO( or j2ee.state.* events) ,the attribute is "state". (note small "s")
I think for this the order number is like the below from 0-4.
j2ee.state.starting
j2ee.s
Hi.
How allow (or forbid) logging concrete package with log4j.xml?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
That it is necessary to add in file log4j.xml to allow logging, only whole
package org.apache in file apache.log. Conversely,
I'm going over this article on CMR
http://technology.amis.nl/blog/index.php?p=90&page=3. The following code demonstrates
how XDoclet is used to establish relationship between two entity beans:
| ... other stuff ...
| /**
| *
| *
| * @ejb.interface-method
|
Under the JBoss licence (LGPL) can I take JBoss 4.0, strip out a whole load of the
distribution I don't want (including source, jars I don't require, and J2EE services I
don't require) and ship the resulting stripped-down version inside a commercial
product?
I understand that I would also need
Just look inside the source:
| public interface ServiceMBean
|extends Service
| {
|// Constants -
|
|/** The JMX notification event type for a service create state */
|public static final String CREATE_EVENT = "
o
I am a new user.I have written a jsp.
can u please tell me where to place the jsp page so that I can compile and run that?
my email is :: [EMAIL PROTECTED]
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853593#3853593
Reply to the post :
http://www.jboss.or
Where i would get the explanation and the corresponding number ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853591#3853591
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853591
--
Normally, when I create a RMI client and a RMI server outside an application server I
have to start a rmiregistry (in background) by
entering
rmiregistry &
from the command line. Keep in mind that I am not talking of EJBs
but of simple, pure rmi classses which communicate.
Assume I deploy suc
StateString is just a string-fied representation of the State attribute, just to
display something meaningful.
I don't think the jboss state is the same as jsr77 defined state.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853589#3853589
Reply to the post :
Hi
Am confused with this two attributes(State and StateString).
What is the relation between this attributes.
In some MBeans it showing State=3 and StateString=Started.
But According to JSR77 the SMO(StateManageable Object) state=3 means
stopped...
Thanks
View the original post :
http://
Hi,
I've got the same role/principal problem with the dukes bank example on jBoss 4.0.0,
using mySQL. Even after adding the "unauthenticatedIdentity" option. On HyperSQL after
adding it, it runs just fine.
Deploying the same application to mySQL causes in some cases the exception underneath.
I
Hello,
in my code I do the following:
CtMethod[] oldMethods = cc.getDeclaredMethods();
CtMethod oldMethod = null;
CtMethod[] newMethods = new CtMethod[oldMethods.length];
//first I insert the new method signatures
for (int i = 0; i < oldMethods.length; i++) {
oldMethod = oldMet
Hi Chiba,
Thanks for your reply. Currently we're using weblogic server to deploy our EJB. If we
are to do the 2nd approach, means we're to modify the class loader of the EJB inside
weblogic or maybe somehow create a new one to replace it (which I have no idea how to).
Anyway, I guess I don't hav
I get this warning when deploying my EJB jar:
WARN [EjbModule] The Container Invoker session-webservice-invoker (in jboss.xml
or standardjboss.xml) could not be created because of
java.lang.ClassNotFoundException: No C
lassLoaders found for: org.jboss.net.ws4ee.server.EJBProxyFactoryImpl We wi
I have the same problem.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853582#3853582
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853582
---
This SF.Net email is
How can we set 3 context for one web module in Jboss 3.2.5? In standalone tomcat I was
able to do it by adding a 'Context ' element in server.xml of Tomcat.
If we do the same changes in server.xml of integrated Jboss-Tomcat, it is not picking
up contexts.
Any idea, how can we do the same in Jb
81 matches
Mail list logo