Hey,
I had this problem also. its a linux/ipv6/Jgroup issue.
try adding this java VM option
java -Djava.net.preferIPv4Stack=true
you can also check this web site
http://weblogs.java.net/blog/dcengija/archive/2006/04/jgroups_demos_o_1.html
View the original post :
By the way, it seems like ideally this is something that would be handled
within the Servlet container itself. You should be able to register some kind
of listener for the creation of a Request object and then another for when it
is finished, which should be able to handle things like
Hi
I went through the APIs. And i find there is no direct API to help getting
(1)task instances which is in waiting status in a specific TaskNode.
(2)process instances which is in waiting status in a specific TaskNode.
Please advice?
yang
View the original post :
If you looked through the api, the next thing you should do is to look trough
the sourcecode (
it is such a good part of documentation) to see how comparable methods have
implemented this. You'll be surprised how simple it is. Just learn HQL.
View the original post :
kukeltje,
i feel a bit strange why cannot post the simple answer here instead of going
through the source code.
never mind, if no direct answer, of course, i will looking the source code.
yang
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964821#3964821
Hi,
I am using JBoss 4.0.4, and Hibernate3. I used hibernate-service.xml and I put
my mapping files and classes in a utility jar.
From a JSP page my JNDI lookup for hibernate SessionFactory is working
perfectly.
But from a application client, my JNDI lookup returns null, so if i am trying
Hi Raj!
Thank u very much...
we did the same and its working.
Thanks Regards,
Sha
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964823#3964823
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964823
SmokingAPipe wrote :
| Solution 1: Use a Filter that keeps an EntityManager hanging around for the
duration of the request. Seems like an ugly way to do it, but I guess that
would be PHP-style, where it automatically frees DB connections when the
request is finished.
|
This is how the
I already achieve what i want to do.
Actually, there is no problem for the jboss software itself. THe problem is
more on the confusion of how to use the jboss components when classloader
involves.
TO make the classes in .par file be able to access the class in ejbs, make sure
the two parts
Welcome to frustration while searching code. Ive tried this before and am still
not very comfortable at locating branches and source codes to attach to Idea.
Anyway , here are some answers that might help.
gcomnz wrote :
| 1. The EJB 3.0 releases don't contain source, making it difficult to
got it.
hibernate.queries.hbm.xml file
Although it is not difficult, if i want to use only EJBs 2 and not the
hibernate code in my application code (i prefer to keep the hibernate stuff
under the cover of the jbpm api)., it is no direct way.
View the original post :
From the EJB Spec,
anonymous wrote :
| A persistence unit must have a name. Only one persistence unit of any given
name may be defined within a single EJB-JAR file, within a single WAR file,
within a single application client jar, or within an EAR (in the EAR root or
lib directory).
|
And
Is the following code the correct way to retrieve the taskinstances for the
specific tasknode name and task name?
| private java.util.List getTaskInstance(String tasknodename, String
taskname) throws Exception {
| log.debug(getTaskInstance() is called);
|
That said, the above dint work for a trivial example for me. Can you verify
this as well? (Or am i reading the spec wrong ?)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964830#3964830
Reply to the post :
yxyang wrote : kukeltje,
|
| i feel a bit strange why cannot post the simple answer here instead of
going through the source code.
since it is good documentation, you learn from it, I do not know everything
(e.g. forgot that the queries were moved to the hibernate file instead of
code),
Hi,I have config a datasource like the following:
local-tx-datasource
jndi-namePostgresDS/jndi-name
connection-urljdbc:postgresql://localhost:5432/eai/connection-url
driver-classorg.postgresql.Driver/driver-class
user-namepostgres/user-name
postgres
Thanks, Raja. Very much appreciate the info! And hurray for subversion. I
should have realized they switched.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964833#3964833
Reply to the post :
would you mind sharing what you did, so others can learn from it?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964834#3964834
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964834
here ist the stack trace:
| 13:07:29,826 ERROR [MainDeployer] Could not create deployment:
file:/C:/jboss-4.0.4.CR2/server/all/deploy/myear.ear/mywar.war/
| java.lang.NullPointerException
| at
org.jboss.ws.metadata.wsdl.WSDL11Reader.processPortType(WSDL11Reader.java:427)
| at
Hi ashishjain,
OS - Ubuntu-6.06-amd64 (Linux)
Tks for your advice.
Download jboss-4.0.4.GA.zip and confirmed md5sum
$ sudo unzip /path/to/jboss-4.0.4.GA.zip
$ sudo /jboss-4.0.4.GA/bin/run.bat
password
| sudo: jboss-4.0.4.GA/bin/run.bat: command not found
$ sudo jboss-4.0.4.GA/bin/run.sh
I installed the 1.6 version of the JBoss IDE using the 'JBoss Eclipse IDE
Installation Guide' over the 3.1.2 of Eclipse without problems.
I tried the JBoss Eclipse IDE Tutorial and I created the project without
problems.
But when I execute the 'Run XDoclet' function I received and error:
Hi,I have config a datasource like the following:
local-tx-datasource
jndi-namePostgresDS/jndi-name
connection-urljdbc:postgresql://localhost:5432/eai/connection-url
driver-classorg.postgresql.Driver/driver-class
user-namepostgres/user-name
postgres
min-pool-size5/min-pool-size
hi all,
i'm trying working with ejb3 using xml eployment Descriptor.
here is my small example:
Table in Oracle DB
| CREATE TABLE TEST.PERSON
|(ID NUMBER NOT NULL ENABLE,
| NAME VARCHAR2(255),
| SURNAME VARCHAR2(255),
| AGE NUMBER,
| CONSTRAINT PK_ID
i think u didn't configure your jboss for Message Drive Bean.
look at this :
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMDB
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964840#3964840
Reply to the post :
Hi ashishjain,
Now I have jrockit-R26.4.0-jdk1.5.0_06 installed.
$ ls jrockit-R26.4.0-jdk1.5.0_06/
| bin console demo include jra jre lib LICENSE memleak
mercuryprofiler README.TXT sample src.zip
$ ls jrockit-R26.4.0-jdk1.5.0_06/bin/
| appletviewer extcheck jarsigner javadoc
cpob wrote : Depends on how you're having the token move. Are you doing a
token.signal, or a taskInstance.end?
any difference? i am using token.signal
yang
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964842#3964842
Reply to the post :
On jsr181 ws you can implement javax.xml.rpc.server.ServiceLifecycle and use
this code in init(Object object) method:
context = (ServletEndpointContext) object;
httpSession = context.getHttpSession();
httpServletRequest = (HttpServletRequest)
Hello
I am looking for a JSF without Seam and EJB 3.0 for JBoss appliaction template.
Has anyone a such file containing all build files?
Thanks
Urs
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964844#3964844
Reply to the post :
right now i'm cunfrunted with this issue.
did you get an elegant implementation?
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964845#3964845
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964845
Using JBOSS 4.0.4 from the jems installer, Seam nightly build.
Working on a project for the US Air Force using Seam. Seam will invoke the el
method binding from a HTTP-POST but explodes on resolving the @destroy method
after doing the business interface method invocation with this stack trace:
Sorry scratch my previous comment, it does work well if you put the
persistence.xml in a jar file and make it a part of your archive. Note that you
would have to enter the jar file containing the managed classes in the
persistence.xml file.
View the original post :
Accessing a database such as DB2 with PHP is simpler than accessing with
J2EE/JDBC as explained in following tutorial.
http://www.regdeveloper.co.uk/2006/08/09/db2_udb_part2/
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964848#3964848
Reply to the post :
hi all, i had already problem like this and my mistake was that i hadn't
unitname in the persistance.xml file
i think if u must add this in u your persistance.xml
| persistence-unit name=Blah1 transaction-type=JTA
| jta-data-sourcejava:/XAOracleDS/jta-data-source
|
Thanks Raja. This problem seems quite absurd, because there's not much use to
EJBs if there isn't an easy and reliable way to render them in JSP. There
really should be some part of the Request object that makes it possible to
manage request-scoped resources.
I think I'll take the plunge and
Sometimes the hardest part is just setting up the build environment and the
framework. I have downloaded the Seam dist and gotten the hotel reservation
app to work in JBoss. Easy. Now I want to make my own Seam application.
This is turning out to be HARD. The hotel reservation app's
1 2) You should get the data source via JNDI, as follows:
InitialContext ctx = new InitialContext();
| DataSource ds = (DataSource)ctx.lookup(PostgresDS);
| Connection conn = ds.getConnection();
| -- do stuff with the connection --
| conn.close();
3) Yes. The close() method, above,
I am using JBOSS 4.0 SERVER with JBossIDE 2.0.
I have just started configuring and working on session bean (EJB). Right now I
am facing problems in packging EJB's.
When select Debug... option, I am not getting any JBOSS4.x option in that as
mentioned in the Help Contents of JBOSS IDE. However
What operating system are you using? If you are running on Linux, are you
running as root? Do you have a firewall, and if so, is port 81 open? When
JBoss comes up, what port does it say it opened? You should see a line that
looks like this:
anonymous wrote : 13:42:56,437 INFO
You are still running the JVM that comes with Ubuntu. Look at the output that
says:
anonymous wrote : 19:56:19,034 INFO [ServerInfo] Java version: 1.4.2,Free
Software Foundation, Inc.
| 19:56:19,034 INFO [ServerInfo] Java VM: GNU libgcj 4.1.0 (Ubuntu
4.1.0-1ubuntu8),Free Software
I had JBOSSIDE-2.0.0.Alpha and JBOSS Server 4.0.
From JBOSSIDE I defined the JBOSS server 4.0 going to FileNewOtherServer
and started it from Servers view.
While Building session bean I am facing problem in packaging.
Problem:
When select Debug... option, I am not getting any JBOSS4.x option
Hi
Thank you for reading my post
I played a bit with registration sample and now i get an error when i press
register button in REGISTER.jsp page
I dont know where i changed in the code , can some one please take a look at
exception trace and tell me what is wrong , where i should lok for my
I am using SUSE 9.3 and there is no errors.
When I change the default port to 80 it works.
I have no firewall between server and internet.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964859#3964859
Reply to the post :
Hi
I'm trying to run JEMS installer for JBoss AS 4.0.4 but i will have this
meassage.
No X11 DISPLAY variable was set, but this program performed an operation which
requires it.
Can I run it under ssh or do i need to run in graphic mode?
View the original post :
Try http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossSEAMGen (seam-gen)
Follow the instructions on the page.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964862#3964862
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964862
Ah, thank you. I'll try that.
One other approach that I have is to build the app and take apart the EAR file.
Often it's easier to go from that direction than it is to try to understand a
complicated build.xml.
View the original post :
Hi PeterJ,
JRockit was installed automatically on;
$ ls /home/satimis/jrockit-R26.4.0-jdk1.5.0_06/
| bin demo jra lib memleak README.TXT src.zip
| console include jre LICENSE mercuryprofiler sample
$ ls /home/satimis/jrockit-R26.4.0-jdk1.5.0_06/bin
|
I am Shimada.
It is likely to fail in the start of the http server by the environment of OS
AIX5.2 / JBoss4.0.1sp1, and generating unusual Error registering contexts.
Isn't there knowing someone ..the solution..?
The following are output by the trace when starting.
I'm having trouble obtaining a reference to an EJB entity bean in a portlet.
The entity bean has successfully deployed and I've confirmed the JNDI name in
the jmx-console (PersonBean).
I had first tried to obtain the reference through the EJB annotation, injecting
it into the portlet as such:
anonymous wrote : An EJB module must contain one or more enterprise beans.
still remains..
That's a normal validation failure, since there actually aren't any beans yet.
You can silence it by editing the EJB's META-INF/ejb-jar.xml file and taking
the schema attribute off the opening ejb-jar
Your Interface(Query) should contain getJon, setJon and the destroy methods.
You are calling methods on the interface from your view pages and they havent
been defined there.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964873#3964873
Reply to the post :
Actually it looks like it's not that simple. If I take that shortcut, the
sample fails to deploy:
| :18:55,245 ERROR [MainDeployer] Could not create deployment:
file:/pkg/jboss-4.0.4.GA/server/default/tmp/deploy/tmp3975sample.ear-contents/sampleEJB.jar
|
Do you have a firewall, such as iptables, running on the server? If you have
not opened port 81 in iptables, it will not work.
Are you running SELinux? Can't recall if that is on SUSE (lately I am using
Fedora) but SELinux can cause various issues if not properly configured.
View the
Hello,
For running the JEMS installer, You need a GUI.
Follow the steps given below.
1. You have to set the DISPLAY environment variable.
#export DISPLAY=Your Desktop system's ip-addr:0
2. Start the XWindow Manager.
3. Then, Run the JEMS installer.
I hope, this will solve your problem.
I think thats a seam bug. Seam tries to interpolate any expressions in the
message bundle values and since it found a # in there, it seems to be looking
for characters next to it, which wont be there in your case. Here is the
snippet from Interpolator.interpolate thats causing the bug
|
I'm really frustrated at how cumbersome getting started with Seam is. I've
spent close to a week trying to find a skeleton app that is friendly to eclipse
WTP. I have given up -- seamgen didn't work for me and fiddling with the
sample apps doesn't give me a self-contained build.xml, let alone
thanks for ur reply,
its working now.
i hope u will help me in future also.
Thanks,
Ravi
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964883#3964883
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964883
Hi PeterJ,
Tks for your advice.
on firefox
| JBoss Online Resources
|
| * JBoss Documentation
| * JBoss Wiki
| * JBoss JIRA
| * JBoss Forums
|
| JBoss Management
|
| * Tomcat status (full) (XML)
| * JMX Console
| * JBoss Web Console
|
|
satimis wrote : Hi PeterJ,
|
| Tks for your advice.
|
| on firefox
| | JBoss Online Resources
| |
| | * JBoss Documentation
| | * JBoss Wiki
| | * JBoss JIRA
| | * JBoss Forums
| |
| | JBoss Management
| |
| | * Tomcat status
did anybody have problem like this ? :(
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3964887#3964887
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3964887
___
jboss-user mailing
59 matches
Mail list logo