Do you have an index.html on the root directory of your WAR? Because your
web.xml says that this page is your welcome file... If it's another one, change
the line
| index.html
|
|
to whatever welcome page you have in your web.xml
View the original post :
http://www.jboss.com/index.htm
If the creation operations have no transaction Requires New attribute, then the
transaction in which you do the three creates and the final select are in the
same transaction, so there has been no commit after the three created beans and
so the select returns null.
View the original post :
htt
In your first post it syas on the error log that you're trying to connect to
192.168.10.1, but that's the private IP, so you cannot access it from the
public side of the net. You have to change it for the public IP of the "head"
node.
View the original post :
http://www.jboss.com/index.html?mo
I don't know if that's the problem you have, but by default JBoss is configured
with a Pool of 100 beans per type. So when you have 500 clients accessing all
the time, it has to create the 400 left.
You can configure this in jboss.home/server/default/conf/standardjboss.xml.
|
| S
You have to declare the RemoteException in your bean:
public void deposit(double) throws AccountException, RemoteException
That's because the bean implements the Remote Interface and in that interface
you declared that the method deposit (and others) throw this exception (well,
is XDoclet who p
ROOT.war is the name of w directory that has the structure of a WAR file, but
it's just this, a directory.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3930422#3930422
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=393
If you have the JDBC 3 driver for Oracle, then you can use J2SE 1.4
java.sql.Blob Following is the code I use in an app to insert a new blob into
an existing record (before this insertion the blob i think was null in that
record).
| Statement st = null;
| ResultSet rs = null;
| try {
Is there any user connected to the webpage your server is hostnig when you
shutdown? If any user has an Internet Explorer opened with your page, that may
be the cause I've seen many times happening to me...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=393040
In your JAVA_HOME there's this symbol "$". Remove it.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858295#3858295
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858295
---
As it says a few times at the top of the stack trace, it lacks the propietary
classes of WebSphere... I think it may be due to using WSAD configured to
deploy the app on WebSphere, so it uses propietary classes...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p
Take a look here
http://docs.jboss.org/jbossas/admindevel326/html/ch11.chapter.html#ch11.pkgen.sect
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858122#3858122
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858122
You've made a big error in your bean code... If using CMP beans, then you
cannot use public variables to store the values of the properties... You must
change your code to:
| package com.ness.training.ejb;
|
| import javax.ejb.CreateException;
| import javax.ejb.EntityBean;
| impor
Where are you trying to access the EJBs? In the web tier? If so, you must
define the reference in web.xml and jboss-web.xml files.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857957#3857957
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=
The resource you define in web.xml is only defined inside your application
(it's a logical name), so you must map it to a phisical name using
jboss-web.xml. This is to explain why you have to use the jboss-web.xml file.
If you get this error I think it's due to you haven't defined a datasource w
I think your problem is related to Linux file/dir permissions.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857955#3857955
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857955
--
If it wasn't your problem, if you don't copy your web-app.xml, jboss-web.xml,
jboss.xml, ejb-jar.xml and the lookup code, I think not much people can help
you...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857940#3857940
Reply to the post :
http://www.jb
Did you remove the hsqldb-ds.xml file from the deploy dir and copied the MySQL
JDBC drivers into the server/{yourconfig}/lib dir?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857820#3857820
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=p
Provide the lookup code and web-app.xml and jboss-web.xml files related to the
problem... But I think your problem is due to you have written somewhere
java:/comp/env/ and you have to write java:comp/env (without the first /...).
View the original post :
http://www.jboss.org/index.html?module=b
For running two JBoss instances, take a look at:
http://docs.jboss.org/jbossas/admindevel326/html/ch10.html#d0e21029
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857813#3857813
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=r
Move under a subdir of WEB-INF directory. This dir is only accessible inside
the web-app, so nothing from the "outside" can see what it has...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857811#3857811
Reply to the post :
http://www.jboss.org/index.html?m
You have to use the jboss-web.xml and jboss.xml files you provided, and change
the HASHMAP_CONTROLLER variable to "java:comp/env/ejb/HashMapControllerEJB"
(see that you missed the "env" at the begining? In the JNDI view you provided
is there...)
View the original post :
http://www.jboss.org/in
To your first question: if your session beans launch not Runtime exceptions and
you catch them, the transaction is not rolled back. You can create your own
exceptions to get this behaviour, for example...
To question a): deciding on one of the two approaches is subjective... For a
good design, y
Not really sure, but try setting the "override" attribute of DefaultContext
element on server.xml file of Tomcat to false. I think that is set to true by
default, which overrides your application configuration setting the cookies on.
View the original post :
http://www.jboss.org/index.html?mod
Have you tried what I said about jboss.xml file DTD?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3857470#3857470
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3857470
---
Your problem is due to you have servlet definitions and mappings not in the
correct order. You have to define first the servlet definitions and then the
servlet mappings (not as you have servlet-def, servlet-map, servlet-def,
servlet-map).
View the original post :
http://www.jboss.org/index.h
You have uncommented too many lines, 'cause there has to be only one
"connection" tag uncommented. So when using the datasource for CMP the
datasource cannot be found because is missconfigured. If you want to use TCP
connections, leave that "connection" tag uncommented and comment the other ones
You have an error in your code. You say you have:
|
|
| ejb/Fibo
| Session
| tutorial.interfaces.FiboLocalHome
| tutorial.interfaces.FiboLocal
|
|
So from your servlet you must write:
| home = (FiboLocalHome) context.lookup("java:/comp/env/ejb/F
Take a look here:
http://www.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMQDB
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856986#3856986
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856986
---
Not sure about it, but I think the problem you have is due to you wrote and
incorrect jboss.dtd in the xml file:
| http://www.jboss.org/j2ee/dtd/jboss.dtd";>
|
This DTD is for JBoss 2.2, which was not aware of local interfaces... You have
to change it to jboss_3_2.dtd or jboss_4_0.dtd (dep
What JBoss version do you use? What changes have you made? Did you use before
having that problem another database?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856983#3856983
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=r
If you want to access a resource from a web-app, you have to declare it using
the resource-ref tag in web-app.xml (and if using JBoss, also within
jboss-web.xml). If you haven't declared the connection factory to JMS, then
it's normal that says "not bound".
View the original post :
http://www
After reading your last post I realized I made a mistake :P: the Sale bean has
to have 1:N relationships instead of M:N with User and Book beans.
About generating PK fields, you can take a look at this page:
http://docs.jboss.org/jbossas/admindevel326/html/ch11.chapter.html#ch11.pkgen.sect
View
When you use database persistence for timers, timers that have expired while
the server was down (from a shutdown or a crash till a start/restart) are
immediately called after the server has completely started up.
I don't fully understand your question about if timers are restored after a
crash,
If you're using JBoss 4 (don't know if the same is in JBoss 3.2), you can
configure the Timer Service editing the file ejb-deployer.xml file in the
deploy dir. By default, as you guessed, is configured to persist the timers in
the database, but in that file you can change this.
View the origin
If you want to use CMP for your app, then you must normalize your design. That
means that if you have to use a relationship with attributes (as in your case)
or relationships between more than two entities at the same time, you must
define a third entity (or class) between the two related entiti
Which JBoss version are you using? How you declare the "ConnectionFactory" on
the web-app.xml file and in jboss-web.xml file on your WAR?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856630#3856630
Reply to the post :
http://www.jboss.org/index.html?modul
Can you provide the code? Is it a standalone client or is in the same
application?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856629#3856629
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3856629
I think your lookup is correct, but the problem is related to not having the
interfaces on the JUnitEE servlet WAR (or EAR or whatsoever) archive.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3856565#3856565
Reply to the post :
http://www.jboss.org/index.h
Before the website redesign I wrote some posts trying to help people with their
problems, but after the redesign, when I follow the "View your posts" link, I
see none (well, now I see one that I created on the Test Forum), and if I make
a search by author (and write my nick) I also cannot see an
About your first question, if you "touch" your web.xml file in the WAR exploded
dir, then JBoss redeploys that WAR. If using linux, it's easy to do it with the
"touch" command; in windows I know there are some free utilities that do this,
but don't know where you can get them (a home-made soluti
I haven't tried it yet, but I think the problem is with your PK source. You
have to define the variable as public because the CMP engine is outside your
packages, so it cannot access the field so it generates an exception. Try it
and say something.
View the original post :
http://www.jboss.org
You can rename the webdev dir to webdev.ear, make a META-INF dir on the webdev.ear dir
(deploy/webdev.ear/META-INF) and put there an application.xml file. In that file you
can specify which context has every war file within the webdev.ear dir. You should
avoid using the server.xml file for doing
Is your "finished" field a date? If so, as per EJB 2.0 spec you cannot use the "<="
comparator (you'll have to break it into "(o.finished=?2 OR o.finishedhttp://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854167#3854167
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=post
On the FAQs there is an entry to this:
http://www.jboss.org/wiki/Wiki.jsp?page=ChangeTheDatabase
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854164#3854164
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854164
---
Can you copy the sources here or put it somewhere else? Because to get them on the
link you provided a login is required and, as you could understand, I don't understand
the vietnamese language of the page in order to get an account...
View the original post :
http://www.jboss.org/index.html?m
What's the complete Java class name of XmlDocument you use (package name+java class
name)? I ask this because I haven't seen this class before and maybe that's the
problem... If it's from an external lib, is it correctly deployed within your app or
in the server/lib dir?
View the original post
I think you're not right when saying that EJB 2.0 spec permits what you were trying to
do. As the spec says, datetime_value comparisons only allow these operators: =,<>,>,<.
The kind of comparation you wanted to use is restricted to arithmetic types.
| comparison_expression ::=
| string_valu
Your problem is Struts related, but I'll try to help you anyway...
What's the location of the css file in your WAR file? I mean, is it under the
/WEB-INF/ dir? I ask you this because you said it's in the same dir as your JSP, and
if using Struts it's recommended that your JSP files that have to b
I'll try to do my best with the explanation, but I don't know if it will be clear
enough...
Every component on a J2EE has its own "environment" with which the component can
reference another component (an EJB, datasource...) by a "logical" name. This logical
component name is used by programmers
Can you provide your PK and remote interface source?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853826#3853826
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853826
---
If you take a closer look on your log output you'll see that this only happens with
your Struts apps (it says "tiles-definition" in all the lines you provided), so the
problem is in the configuration of the log output level of Struts, not JBoss.
Depending on the version of Struts you're using, y
Two days ago I read in the JBoss CMP docs about that, and now remembered about your
problem. In that Docs it says that the FK column must be nullable in order for JBoss
to work correctly. That's because, as said by redBear15, JBoss first deletes the
parent entity and then makes the cascaded dele
You're welcome. I didn't wanted to say anything about the PK fields before seeing the
source because I didn't wanted to to say another "stupid" resolution before like the
one I said before :P, but I thought that maybe your PK fields weren't public or were
not declared as being persistent in the
Are the SpringFramework jars in your WAR file or in your server/default/lib dir?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853559#3853559
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853559
I think your problem is due to putting the key-field element on the wrong side of the
relation mapping... Try this:
|
| Region-RegionZone
|
|
| Region-Has-Many-Zones
|
|
|
| Zone-in-One-Region
|
|
| regionCode
| REGIONCODE
|
|
|
|
|
Oooops! Sorry about my last post, but I was wrong about what I said. Your mapping in
jbosscmp-jdbc.xml are correct. :-P
But maybe I know (not sure again ;-)) what could it be... What's the definition of the
RegionZone primary key? You said it's a compound PK. Can you post the source code of
it?
A possible solution is provide an utility class using the ejb.util tag on the EJB's
you need to access. Read the XDoclet docs if you want to know more about this tag.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853407#3853407
Reply to the post :
http://w
I think I know the problem you have and the solution to it: you have to define the
servlet-mapping element on your web.xml file after the servlet element declaration. It
can be something like:
|
| SearchServlet
| /Search
|
|
There are two reasons you have to add this:
- The firs
Did you properly set the datasource that jaws uses in conf/standardjaws.xml or in your
application specific jaws.xml file, copied and configured properly the mysql-ds.xml
file on the deploy dir, copyed the JDBC driver on lib dir, and after that restarted
JBoss? Have you checked that the tables d
Do you have a jboss-web.xml in your WAR file or application.xml in EAR file? If so,
can you provide them, as well as your web.xml file? That could help.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853347#3853347
Reply to the post :
http://www.jboss.org/i
Hi robinbajaj.
I'm a little confused with the code snippet you provided... Is that servlet writing
HTML an the icon in the same response? If so, I think that's not allowed, so you
should provide a servlet for the HTML and another one for the images.
If your servlet just provides an image, then yo
That behaviour is the normal one in any OS: when you log out, all the programs you're
running are shutted down. In order to make JBoss not to depend on any session you must
install it as a service, so when the system is started up JBoss is executed and when
the system shuts down, so does JBoss.
As redBeard15 says, I think the problem you have is that you setted the
"on-delete-cascade" reference on the DB instead of on the CMR definition in
ejb-jar.xml file. If that's your case, you should drop the "on-cascade-delete" rule on
your DB and put the element on the CMR definition.
If that's
What's the type for location? Is it a BLOB or something like this? Can you tell us the
Java type of this CMP field? If, as you said (or I understood), "location" is a BLOB
or similar, then you're right when supposing that this kind of CMP fields "have a
problem" with EJBQL, 'cause as you caould
Is "location" a CMP field of ControlLogix? Can you provide the ejb-jar.xml file?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853027#3853027
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853027
You should have restarted JBoss after placing Oracle-ds.xml on the deploy dir. But
before that, have you already copied the jdbc Oracle drivers to the jboss/server/<
instance >/lib directory?
Try this and tell us your results.
View the original post :
http://www.jboss.org/index.html?module=bb&
You have to put the correct JNDI name of the Datasource on jboss-web.xml. In your
case, your jboss-web.xml file should be:
|
|
|
| jdbc/SampleDS
| javax.sql.DataSource
| java:/jdbc/SampleDS
|
|
|
View the original post :
http://www.jboss.org/index.html?module=bb&
I've never used what you're trying to do, but in a book I have says that you get
access to JTA looking up "java:comp/UserTransaction", not "UserTransaction" as you
have in your code. Try it, but don't know if this is the problem you have...
View the original post :
http://www.jboss.org/index.h
Can you provide your web.xml, jboss-web.xml and/or application.xml? If you deployed it
as a WAR and have no jboss-web.xml, provide de WAR file name, please.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853019#3853019
Reply to the post :
http://www.jboss.o
Can you provide the stack trace of this exception, as well as the source code of
ejbRemove of the implied beans and the ejb-jar.xml file, please? That could help...
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853017#3853017
Reply to the post :
http://www
I think I've found where your problem really is, but I'm not sure at all...
In your bean, you have this tag:
| * @jboss.persistence
| * datasource="java:/jdbc/dev01"
| * datasource-mapping="mySQL"
| * create-table="False"
| * remove-table="False"
| * table-name="GROUPS"
|
Note
Hi.
I haven't used JBuilder X, but I'll try to figure out with the answers to these
questions:
- Do you use an EAR file to package your web-app or just a WAR one? If it's the second
option, can you tell us the name of that file (like .war)?
- Is this file properly deployed? You should look fo
You must set cmpversion="2.0" property on ejbjar task in order to make Ant look for
jbosscmp-jdbc.xml file instead of jaws.xml, the one used with CMP version 1 in JBoss.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852860#3852860
Reply to the post :
http:
Hi again.
Copy here your web.xml and jboss-web.xml files at least. You can also copy console
output stack tracing if you think it can be useful.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852500#3852500
Reply to the post :
http://www.jboss.org/index.htm
If you use EJB 1.1 on JBoss, you should include jaws.xml instead of jbosscmp-jdbc.xml
one, which is used for EJB 2.0/2.1.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852450#3852450
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&
The problem is that finder methods can only return instances or collections of
instances of the entity bean where the finder is, and max(a.id) returns an ID, not an
instance.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852447#3852447
Reply to the post :
Don't know if you have already tried it, but on a webapp I did last year using Oracle
9i, CMP and BLOBs, I had to use the OCI jdbc driver for my app to work (I'm sorry but
I don't know if when you say "thick driver" you are referring to the OCI one).
Hope this helps. If that's not the case, try p
Please provide ejb-jar.xml and other usefull config files/source classes to help you.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852437#3852437
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3852437
---
I've posted you a possible solution on the other topic you posted on Begginers Corner
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=55620
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3852436#3852436
Reply to the post :
http://www.jboss.org/index.h
You must provide some feedback if you want somebody to help you, 'cause with the
information you provided I'm sure not much people could. Post, at least, the web.xml
file and tell us how you deploy your servlet (packaged war or ear). If you have other
information you think it could be usefull, p
At first sight, I think your problem is on your naming convention used for that
method. Instead of:
| public Collection getselectedusers()
| throws RemoteException;
|
you should write:
| public Collection getSelectedUsers()
| throws RemoteException;
|
in your home interface.
An
I've seen an error in your code: you try to retrieve a local home interface in the
same way you retrieve a remote home interface.
Your code is:
| context = new InitialContext();
| Object ref = context.lookup(groupJNDI);
| home = (GroupLocalHome)PortableRemoteObject.narrow(ref, groupLocalHo
Try opening the ear file with WinZip or similiar program. If winzip complains that the
file cannot be opened, then the file is probably corrupted and you should deploy
another working copy of that file.
If the file is not corrupted, sometimes happened to me that the temp files of previous
deploy
Just a comment of something that happened to me that nearly got me crazy till I
discovered it: if you want to use blobs larger than 8kb, you must use OCI jdbc driver
instead of thin one.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848532#3848532
Reply to
84 matches
Mail list logo