We tried, but got exception:
08:17:58,204 ERROR [STDERR] javax.persistence.PersistenceException:
[PersistenceUnit: defaultDataSource] Unable to build EntityManagerFactory
08:17:58,205 ERROR [STDERR] at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
Why is there such limitation? From programming API, it just overrides the
property declared in persistence.xml. For BEAN management type, do we need to
implement any transation related methods? We use JBoss 5.1.0 GA.
Thanks for help.
View the original post :
http://www.jboss.org/index.html?
the previous message is for deploy phase. I was wrong. From further debug,
the exception is thrown in SessionFactoryImp.java
throw new HibernateException("The chosen transaction strategy requires access
to the JTA TransactionManager");
if ( settings.getTransactionManagerLookup()!=null ) {
>From debugging, the issue seems to be in method:
PersistenceUnitDeployment.start();
which is in the jar "jboss-jpa-deployer.jar".
Where can I find the source code for the jar? I could not find it under
http://anonsvn.jboss.org/repos/
Thanks!
View the original post :
http://www.jboss.org/ind
Thanks for help.
If one peristence unit is mapped to many data sources(with same tables), is
there any problems with Hibernate caching?
We tried the following in a stateless session bean:
Map configOverrides = new HashMap();
EntityManagerFacotry emf = Persistence.createEntityManagerFactory("un
Thanks for help.
Is the persistence unit name required to be defined in a persistence.xml?
what is the property name for data source in the map?
Thanks!
Dave
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266681#4266681
Reply to the post :
http://www.jboss
Hi, Currently we use the persistence.xml to map a persistenceUnit to data
source. Our application got a requirement:
create a new persistence unit programmatically and map it to a new datasource
without redeploy or server restart. How to achieve this functionality?
What is the maximum number
Hello,
We are running JBoss 5.1.0(JDK6) on Fedora Core 10, the computer often shutdown
without any error message.
$ uname -a
Linux localhost.localdomain 2.6.27.5-117.fc10.i686 #1 SMP Tue Nov 18 12:19:59
EST 2008 i686 athlon i386 GNU/Linux
2G memory.
Any one encountered the same problem?
Tha
I downloaded JBOSS 5.1.0.GA, and deployed the two ears, got the following
exception:
java.lang.RuntimeException: Could not bind Reference Class Name: Proxy for:
mypackage.StudentManager
Type: ProxyFactoryKey
Content: ProxyFactory/app1/StudentManagerBean/StudentManager
Type: EJB Container Name
Co
JBoss 5.0.1.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247212#4247212
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247212
___
jboss-user mailing list
jboss-user@lists.j
Two ear files have the same session bean class name, for example,
@Stateless
@LocalBinding(jndiBinding="StudentManager")
@Local(StudentManager.class)
public class StudentManagerBean implements StudentManager {
...
}
When deploying the two ears, get the jndi name conflicts.
java.lang.RuntimeExce
can anyone recommend a forum open source that can use existing user database
for authentication, and support i18n? We hava a JSF application deployed on
JBoss 5.0.1, and need to add forum for user discussion. The Jboss Forum project
requires portal. We prefer a standalone installation like a wa
The two web modules share some css and java scripts files. Can we put them in a
common place? Right now they are in each web module war file.
How about jsp files? for shared jsp files, can they be put in common place too?
Thanks,
Dave
View the original post :
http://www.jboss.org/index.html?mo
yes. we use JBoss 5.0.1.GA.
Thanks for help.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238926#4238926
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238926
___
jboss-user
For an ear file that contains two web modules that use one common lib jar,
where to put the common lib jar? Thanks!
Dave
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238904#4238904
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&m
we have 3 data sources(persistence units) in our app. The following exception
raised in the senario:
data source 1: create entity 1,
entity2.setEntity1(entity1);
data source 2: create entity 2, entity 1 is a property of entity2
class Entity2 {
Entity1 getEntity1()
void setEntity1(Entity1
moved to JBoss5.0.1GA, warning firstResult/maxResults:
firstResult/maxResults specified with collection fetch; applying in memory!
What is the warning? how to avoid it? Thanks for help,
Dave
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4229906#4229906
Repl
After upgrading jboss 4.0.5 to 5.0.1GA, we got the following warnings:
applicable interceptors is non-existent for public Student
MyManagerBean.getStudent(java.lang.Long)
how to get ride of this warning?
Thanks
Dave
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewto
We have application working well in JBOSS 4.0.5GA. After moving to jboss
5.0.1GA, we have to use XA datasources. We setup three mysql XA datasources in
our application using hiberhate.
Each datasource has the following:
true
set autocommit=1
true
My question is: set automcommit=1,
two merges are ok. but when creating one entity A, merge entity B, A references
B (foreign key), Lock wait timeout error !
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227188#4227188
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting
I got exception when trying updates tables via two persistence units in one
transaction:
ERROR [JDBCExceptionReporter] Lock wait timeout exceeded; try restarting
transaction.
Is it allowed? Thanks!
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227186#4227
start a userTransaction,
update in one persistence unit/data source A
update in another persisence unit/data source B
commit the userTransation;
My question is : do the two updates belong to the same transaction? Thanks.
dave
View the original post :
http://www.jboss.org/index.html?module=b
jboss version: JBOSS 4.0.5GA.
After our application set up three persistence units, we got the following
warning at run time:
WARN [TxConnectionManager] Prepare called on a local tx. Use of local
transactions on a jta transaction with more than one branch may result in
inconsistent data in so
it does not support template:
List
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180241#4180241
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180241
___
jboss-user mailing l
In my development environment using JDK 1.5, the jsp compilation is fine. But
after deploy to JBoss 4.0.5, the JSP compiler complains templates such as
List
I started JBoss using jdk 1.5, configured in run.sh (JAVA_HOME). It seems that
the JSP compiler is not using the java version 1.5.
How
I could not find svn source branch for 5.5.20. the svn directory(branch) name
is 5.5.x. I need 5.5.20 exactly. Could you please show me where to find the
branch? Thanks.
Dave
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177287#4177287
Reply to the post
The reason I changed Tomcat source is to implement domain-level session cookie,
such as mydomain.com.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176298#4176298
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176298
I downloaded fromhttp://tomcat.apache.org/download-55.cgi
it is 5.5.27.
I like to use 4.2.x, but I had problem using JSF myfaces on that version.
I should try the 5.5.20. Is there a standard way to replace Tomcat in Jboss?
The directory structure is different.
Thanks!
Dave
View the ori
I am using JBoss 4.0.5 coming with Tomcat 5.5.
I changed some source code of Tomcat and rebuilt it. How to install the new
Tomcat into the JBoss?
Only one file change of catalina.jar, but if I replace this jar only, an error
will occur. Maybe the source is not compatible.
Thanks for help.
Da
Hi,
I am using JBoss 4.0.5GA and mysql 5.0 database.
in web tier:
UserTransaction userTransaction =
| (UserTransaction)new InitialContext().lookup("java:comp/UserTransaction");
|
| userTransaction.begin();
|
|
| // in session bean, em is EntityManager
| em.persist(entity
Another question:
how to package a lib jar into enitty par module and session ejb3 module?
Thanks
Dave
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132028#4132028
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=413202
Hi Peter,
thanks for your help.
If I move the class package.Foo to foo.par entity module, the common.jar under
server/default/lib can instantiate the class.
But the package.Foo class needs to access classes defined in the web module,
and throws
java.lang.NoClassDefFoundError.
Is there a way
I have an ear application with entity,business and web modules.
foo.par
bar.ejb3
baz.war
/
The .par, .ejb3 and war files use classes in common.jar. I put the common.jar
under /server/default/lib.
In the co
On Linux FC 6. The machine physical memory is 4G.
After machine reboot, start JBoss and deploy application, the total memory
usage is about 700M. After running JBoss for several hours, the memory used is
increased to 3.5G.
$ ps -eo rss
Adding all used memory up, the total is about 580M. where
I use JBoss 4.0.5 GA. JSF web application
create a thread local userTransaction
userTransaction.begin() // in JSF before invoke application phase
em.persist(entity1) //create entity in session bean using entity manager
...
do something that throw exception
cought the exception and indica
I need to shutdown Jboss for maintainence. I can not interrupt user's requests
since they can be trade transactions. What is the way to shutdown Jboss
gracefully? That is, no new requests allowed, but wait for all on-going
requests to complete.
Thanks for ideas.
Dave
View the original post :
My machine:
physical memory: 8G
swap: 12G
The machine is running mysql and jboss 4.0.5GA.
the JBoss run.conf includes:
JAVA_OPTS="-Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=360
-Dsun.rmi.dgc.server.gcInterval=360"
How to set Java memory for the best performance? Thanks!
Dave
I did not define my own classloader.
Actually I followed the same instruction you specified.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120933#4120933
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120933
I am using , and set com.sun.faces.serializeServerState to true in
web.xml.
javax.faces.STATE_SAVING_METHOD
server
com.sun.faces.serializeServerState
true
I got the following exception.
java.lang.ClassNotFoundException: boolean
Hi,
When I tried to start JBoss 4.2.2 on Window XP (laptop) with a JSF application
deployed, it crashed (machine restart, memory error). If I start with -c
default, no application deployed, it is ok.
I tried Jdk 1.5 and Jdk 1.6, crashed in both cases.
Thanks for help.
Dave
View the original p
Ops, I read the doc, and need to set -b 0.0.0.0 when starting JBoss. Where to
add the -b option? Is it a Java option? I am running Linux.
Thanks
Dave
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119600#4119600
Reply to the post :
http://www.jboss.com/ind
Everything is runing well in JBoss 4.0.5GA with myfaces.
For JBoss 4.2.2GA, I uses myfaces jars bundled in web-inf/lib and add the
following in web.xml, and remove all libs under jsf-libs.
org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL
true
I got the following exception: Thanks for help.
I read the JBoss 4.2.2 doc, it includes JBOSS web that including Apache
Runtime. Does it provide load balancing? Currently I am using Apache JK for
load balancing for multiple JBOSS instances.
Thanks,
Dave
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119
Thanks Peter.
Now I understand.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119516#4119516
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119516
___
jboss-user mailing lis
JBoss 4.2.2 myfaces,
I got the same problem with explicit page index.jsf with correct servlet
mapping.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119409#4119409
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119409
Sorry, I tried to add XML port configure, no luck.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119403#4119403
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119403
___
jbos
removed xml <, />
Connector port="80" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="443" acceptCount="100"
connectionTimeout="2" disableUploadTimeout
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119402#4119402
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119402
___
jboss-user mailing list
jboss-u
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119401#4119401
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119401
___
jboss-user mailing list
jboss-user
JBoss 4.2.2, cluster config, ie JBoss/server/all, tomcat server.xml
configures ports as following:
the https port 443 is working, but the port 8080 is not working.
Firewall is disabled.
I used filter to log all requests, but no requests for 8080 port. I
chan
I have the same problem on Linux for JBoss 4.2.2
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119399#4119399
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119399
___
jboss-
Hi, I installed JBoss 4.2.2 GA on Fedora Core 6.0, using server/default.
I can access it using http://localhost, but I can not access it using ip
address.
$wget localhost
--17:05:13-- http://localhost/
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP
When I merge entity Foo, got the following exception: trying to cast the entity
to Long type, how could this be possible?
Can someone give me some help on what might be the cause? Thanks!
Caused by: java.lang.ClassCastException: xyz.Foo cannot be cast to
java.lang.Long
20:28:20,493 ERROR [STD
I am trying to use LDAP for user identity. Which LDAP server is supported? Does
JBOSS AS come with LDAP server? Thanks for advice.
Dave
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050946#4050946
Reply to the post :
http://www.jboss.com/index.html?modul
I plan to use LDAP server to store user identity such as user/password.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050866#4050866
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050866
___
I am using JBoss 4.0.5GA. Does it come with LDAP server? If not, could anyone
recommend a LDAP server that works with JBOSS? Thanks!
Dave
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050865#4050865
Reply to the post :
http://www.jboss.com/index.html?modul
Hi Thomas, the blog is a great read.
For the User service/portlet, we already have User, Role and User_Role tables
in our own datatase that are similar to jbp_users, jbp_roles, and
jbp_membership. But the user table has different columns such as
totalNumberOfLogin, and lastLoginTime, etc. We
I read Portal spec and JBoss portal doc. It does not say the scalability issue
in terms of number of portal(s) in a portal container.
An admin user can create more than one Portal(s). Is there a limit for the
number of portal(s) that an admin user can create? a couple, a dozen,
hundreds, or
I have asked many questions in a short time. I am completely new to JBoss
portal. Please help me.
I create a portal called "MyPortal" and some pages(A, B, C, D) on the portal.
Then I create a user called "scott".
After login as scott, I copied page A and B on MyPortal to the dashboard. In
addit
Hello, I am experiencing JBoss Portal. Seeing some issues:
1. When I use UTF8(for example, chinese characters) as window name for adding
portlets, it did not show up correctly, like 产ååç±»,
no one can recognize. but page name is OK with UTF8.
2. Sub pages show as drop down menu, but very d
I am using JSF/JBOSS/Hibernate.
I have asked some questions and looked through this forum. But I am still not
clear. Can JBoss Portal allow me to do the following:
1. each user can create account, and be able to create pages, create his own
layout and themes, all of these need to be persisted, i
"[EMAIL PROTECTED]" wrote :
| This is the default use case.
| Modify the portal called template to create the 4 pages.
|
| Every user logging in his dashboard will see the 4 pages, he will be able
to modify those pages. keep the position, add content and this will only be
visible by him
I downloaded jboss-portal-ha-2.6-CR2 and deployed it into JBoss AS 4.0.5GA as
instructed, but got the following exception:
08:03:33,026 ERROR [FacesConfigurator] failed to configure class
com.sun.facelets.component.RepeatRenderer
java.lang.ClassCastException: com.sun.facelets.component.RepeatRen
Thanks for quick reply, very helpful.
In my JSF application, I have a User table that keeps username and password. Do
I have to use the User Portlet coming with portal? some different properties
are needed in my case.
I did not use FORM based authentication or any standard ones. My authenticati
I am using JSF on JBoss, and thinking about using Portal. I am new to JBoss
portal, and have several questions, please help.
1. can a normal user(not admin) create a page, add portlets, design layout and
apply theme, then persist them? on per user basis?
2. can page layout/theme be visually
em.merge(course);// course is a detached entity
I got the following exception:
org.hibernate.exception.ConstraintViolationException: could not insert:
package.Course.
The exception means it tried to insert a new row for merge.
The detached entity was initially retrieved from database using
After rebooting FC 6, then start JBOSS. The total memory usage is about 600M.
After accessing the web application deployed on the JBOSS for about 3 hours,
the message usage is about 3.5G. Then shutdown the JBOSS. But the memory used
is still shown as 3.5G using TOP command.
Is this a memory
For starting JBoss automatically on system reboot, which user is used? If user
"root" is used, there should not be any difference, right? I can start Jboss
manually using the following command as a root user:
/etc/init.d/jboss start
View the original post :
http://www.jboss.com/index.html?mod
Hi Peter,
I did not create user "jboss". root is used to start Jboss because only root
can use port 80. what is the difference between starting Jboss on reboot and
starting Jboss manually using root?
JBOSS_USER=${JBOSS_USER:-"RUNASIS"}
...
if [ "$JBOSS_USER" = "RUNASIS" ]; then
SUBIT=""
el
Hello,
I installed JBoss 4.0.5GA on Linux FC6. I copied the start up script to
/etc/init.d/jboss and made some changes, and then use chkconfig to config it.
# chkconfig --list mysqld
mysqld 0:off 1:off 2:off 3:on4:off 5:off 6:off
# chkconfig --list jboss
jboss 0:
I am using JBoss 4.0.5GA, and mysql 5.0.24 on Windows XP.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027471#4027471
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027471
___
After starting JBoss and deploying an application, it works fine. But if I
re-deploy the application without making any changes, I got the following
exception while running the application:
18:08:59,519 ERROR [STDERR] Caused by: org.hibernate.PropertyAccessException:
IllegalArgumentException o
possibly due to some ClassLoader issues. But I could not figure out the
solution.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027070#4027070
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027070
21:30:44,095 ERROR [STDERR] Caused by: org.hibernate.PropertyAccessException:
IllegalArgumentException occurred calling
getter of com.dc.entity.security.User.id
21:30:44,095 ERROR [STDERR] at
org.hibernate.property.BasicPropertyAccessor$BasicGetter.get(BasicPropertyAccessor.java:171)
21:30:44
I am using Jboss 4.0.5GA.
It was working well until I got the following exception
Caused by: org.hibernate.PropertyAccessException: IllegalArgumentException
occurred calling getter of package.User.id
It happens when I redeploy and run the same application(the same application I
have redeployed
I installed the Gnome on the linux machine (FC 6), get an NoDefError
"com.sun.X11GraphicEnvironment" when starting the JBoss installer.
Will the following two ways work?
1. Can I download source, and do "ant install" without GUI?
2. Can I install it on the windows first, then copy the entire di
Jboss installer is needed to install Jboss 4.0.5 with Ejb support. But my
linux machine which is a dedicated server does not have X-window installed. One
solution is to install X-window on my client windows michine. It would be nice
to have a text-based installer, or RPM for linux.
View the o
I have a JSF web application using JBoss. I need to add video streaming
capability so that users can watch videos immediately when they click them.
I am new to video streaming. Do I need to install another server for video
streaming? which video format should I use? quick time, window media, et
Thanks. Solved.
There is a jar file that needs to be downloaded separately.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960638#3960638
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960638
_
http://rollerweblogger.org/wiki/Wiki.jsp?page=InstallationGuideJBoss
I followed the instruction to deploy Roller into JBoss using exploded
war file. But
http://localhost:8080/roller
The requested resource (/roller/) is not available.
Other applications were available (the J
80 matches
Mail list logo