I am using Jboss 4.0.3SP1.
I have a Employee table.(id, name, addrId).
Employee {
...
@OneToOne
@JoinColumn(name="addrId")
Address getAddress() {...}
String getName() {...}
}
I did not use @index on any properties.
After deploy,
mysql > show index from employee;
++---
I am using JBoss.
What causes java.lang.OutOfMemoryError: PermGen space? How much should it be?
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931996#3931996
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=393199
Hi,
I am using Jboss, default port is 8080.
I like to use default port 80.
I could not find server.xml. How to change the port to 80.
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3931998#3931998
Reply to the post :
http://www.jboss.com/index.html?mo
First time login is ok.
After logout, then try to login again, I got the following erorr.
It is consistently reproduced. I am using Form login. IE browser. Thanks for
help!
HTTP Status 400 - Invalid direct reference to form login page
After changing the port to 80 from 8080 in server.xml, and restart, I got the
Address in use
exception.
I am using Windows XP. Port 80 is reserved for web server, right? On my
computer, I did not install software that might be using port 80.
Thanks for advice.
11:11:54,776 ERROR [Http11Proto
Works! I found one software that was using 80 on my computer! Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932481#3932481
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932481
---
Solved. pointing to unprotected page.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3932482#3932482
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3932482
---
This SF
Hi,
For running a web application deployed on JBoss/J2EE using Hibernate, JSF and
MySQL, which platform should I choose for better performance?
Linux or Windows XP?
MySQL will be running on the same machine as JBoss. What is minimum memory
requirement for reasonal performance for 10,000 reques
I downloaded JBoss 4.0.4RC1, and installed with the first EJB3 config with
clustering.
I got the following errors during start:
WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using
TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager
no
The error above is for using the 4.0.4RC1 installer directly.
This time I downloaded the JBoss 4.0.4RC1 zip file. Unzip the zip file.
Downloaded the EJB3.
Installed EJB3 into the JBoss according to the instruction.
I can start JBoss without any error.
But I got error when I deployed my web appl
I downloaded the JBoss 4.0.4RC1 zip file. Unzip the zip file.
Downloaded the EJB3.
Installed EJB3 into the JBoss according to the instruction.
I can start JBoss without any error.
But I got error when I deployed my web application.
ObjectName:
jboss.j2ee:service=EJB3,ear=emp.ear,jar=emp.ej
Is Linux better for running Jboss with MySQL than Windows?
Linux has two versions:
FreeBSD, Fedora
which one is better?
Thanks for advice
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3934900#3934900
Reply to the post :
http://www.jboss.com/index.html?mod
Thanks for reply.
Do you use MySQL with JBoss for testing?
some people say MySQL is more native to Linux and perform better on Linux. Is
this true?
My application is: JSF + JBoss + Hibernate + MySQL.
Thanks for advice.
View the original post :
http://www.jboss.com/index.html?module=bb&op=view
Thanks again.
There is one pre-imaged Linux machine with
Fedora Core 3
mysql-3.23.58-16.FC3.1
are they too old for running lastest version of JBoss + Hibernate + JSF?
Is it easy to upgrade MySQL?
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=39356
Windows 2003, or Windows XP
which one is better to run web application(JBoss+MySQL) ?
Is Windows XP designed to replace 2003?
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3935679#3935679
Reply to the post :
http://www.jboss.com/index.html?module=bb&
I am trying to install Jboss on a remote Linux machine from local windows XP. I
do not have X11 on my windows.
Can I install Jboss 4.0.4 without poping up GUI installer?
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936188#3936188
Reply to the pos
One Linux machine has a domain xyz.com
that has two subdomain
a.xyz.com
b.xyz.com
I like them to point to two different applications A and B. A and B are
deployed on the same JBoss server.
http://a.xyz.com > Application A
http://b.xyz.com > Application B
Is this possible? How
Linux: can I start Jboss using port 80 as a normal user?
If using root, it is not safe. Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937628#3937628
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3937628
--
I still got the same error after adding @IndexColumn(name="id") under
@OneToMany(...).
Do I need to do the same for @ManyToOne and @ManyToMany?
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951831#3951831
Reply to the post :
http://www.jboss.com/i
I login as admin.
I can create a new file, and it works fine.
But when I tried to upload a file(tried different files), I got the exception.
does the type (Lxxx;) stand for an array type?
One thing I noticed: when I tried to edit a newly created file, I was asked to
upload a file.
Thanks.
OS:
I found two commons-fileupload.jar, one under ejb3.deployer, and the other
under jboss-portal.sar\lib. Does this cause the problem? which one should i
keep?
Thanks for help.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885212#3885212
Reply to the post :
When I deployed myLayout.war to change layout and theme of portal, I got the
error message on server side: /WEB/INF/web.xml not found. The war file does not
have web.xml, but jboss-web.xml. Is this a packaging issue?
Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&o
How to customize UserPortlet to allow users to create different types of
accounts with different properties (name value pairs)? Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885322#3885322
Reply to the post :
http://www.jboss.org/index.html?module=b
I downloaded the myLayout.war from
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossPortalSamples
/WEB-INF/web.xml is missing from the war file. Where can I get it?
Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885320#3885320
Reply to the post :
ht
After user's login, different portal pages show up based on users' roles or
login name. For example, normal user and admin user see different views.
Instead of displaying "You do not have enough permission" inside a portlet, the
portlet should be hidden, or just showing different portal page for
Can I develop my own UserPortlet using JBoss AS Login model? where is the
difficulty? different types of accounts need to have different info. Thanks
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885573#3885573
Reply to the post :
http://www.jboss.org/index
Anyone using JBoss Portal seriously such as commercial web site? UserPortlet is
a big limitation, and user/roles based default page too, ie. after a user's
login, which page to go? For example, Job hunting web site, job seekers and
companies have different account info. Any help appreciated.
Vi
Hi Julien,
Thanks for reply.
In the portlet spec 1.0, PLT.17 User Information and PLT.D User Information
attribute names. Are they intended for User information to be customizable. The
attribute names include
user.business-info. ...
These attribute names may be for business users.
Does the U
Hi Julien,
Can I plugin something(a module) to make the UserPortlet support both personal
and business account? The current UserPortlet is for personal account. Thanks.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885653#3885653
Reply to the post :
http:/
web modules: WAR1 and WAR2. If a user
access two JSPs, one in WAR1 and the other WAR2, do the two requests belong to
one HttpSession? two ServletContext(s)?
Thanks for explanation.
javatwo
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3886024#388602
Hello,
I searched google and Yahoo, but could not find defintion for SAR file. what
kind of code need to be packaged as a SAR?
For JBoss AS, everything is dropped in server/default/deploy. How does JBoss
know which WAR/SAR belong to which application?
Suppose I have a EAR file that has two w
Hello,
I need to populate database after deployment before users can access any pages.
What is the best way to do this?
1. can populating database be part of deployment? like call back?
2. accessing a JSP that does the job immediately after deployment
3. how to keep database tables when undeployin
Could someone tell me how to manage the collection of one-to-many mapping?
I have a very simple one-to-many relationship: an Item has many Picture(s).
ENTITY -- Item
@...
public class item {
private Collection pictures;
private Integer id;
// getter/setter for id and @Id(...)
@OneToMany
After user registration(username, password, ...), how to let the user
automatially login into the system? Right now user have to go through a form to
login after registration. In other words, how to populate session with
authenticate info? Can someone help me or point me to some documentation?
The current form based login model is to access a protected page, then a login
form cut in to authenticate user, and then redirect to that page. I found this
is not flexible enough. There is anyway to instruct Security model which page
to go after login in. What does it takes to implement Servle
I am using JBoss 4.0.3RC1. I often encounter OutOfMemory exception so that I
have to restart JBOSS. I set the JVM max memory to more than 800M. I am sure it
did not reach the limit. The exception usually happened after several
exceptions from my application. Is this a bug? Thanks.
View the orig
When I tried to upload a file using the Admin CMS Portlet, I got the following
error message:
( I am using JBoss AS 4.0.3 RC1, JBoss Portal 2.0, MySql 4.1)
javax.servlet.ServletException: An error occured during the action request :
Servlet execution threw an exception
org.jboss.portal.
I use database to keep username/password/roles via DatabaseServerLoginModel.
When I add a role to a user using SQL, commit, but the role is not visible to
JBOSS. In other words, httpServletRequest.isUserInRole(theNewRole) return
false, even the user login out and then login again. But after I s
Works great! Thank you very much.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904204#3904204
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904204
---
This SF.Net
java.lang.OutOfMemoryError: PermGen space
but the system has a lots of physical memory available, the JVM have not reach
its max memory limit.
The exception occurs after several application exceptions.
Is this a bug? I am using 4.0.3SP1.
View the original post :
http://www.jboss.com/index.htm
when a user login using Form (Web), is there any call back I can register? I
need to tell user the last login time, and how many times the user has logged
in.
Thanks. Dave
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3906628#3906628
Reply to the post :
ht
When deploy, I got NoClassDefFoundError,
but the class "session.ShapeManagerBean" is in the session jar.
what might be wrong? thanks!
package session;
public interface ShapeManager {
...
}
package session;
@Stateless
public class ShapeManagerBean implements ShapeManager {
@PersistenceContex
I am using JBOSS 4.0.3 SP1
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3909910#3909910
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3909910
---
This SF.net email
why the error messsge did not tell me which class was not found? Otherwise it
would be very helpful.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910137#3910137
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910137
After JBOSS had Out-of-memory exception, Control+C was not able to kill it. So
I closed the JBOSS window (XP). When I tried to restart JBOSS, I got the
following: user SA not found exception. No luck after restarting XP.
It might be unfinished transaction going on. How to fix it?
Thanks.
WARN
works! thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916274#3916274
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916274
---
This SF.net email is sponsored
how to cache objects in EBJ session bean layer? application scope. when the
application is undeployed, the cached objects should be destroyed
automatically. Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920564#3920564
Reply to the post :
http://www
Thanks.
I like to cache an object outside session beans, like application context. Is
there anything like that? Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920586#3920586
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mod
Thanks.
I like to cache an object outside session beans, like application context. Is
there anything like that? Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3920587#3920587
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mod
Web in UTF-8 (http request/response)
MySQL in UTF-8.
How to config JBoss/Hibernate to talk with MySQL using UTF-8?
Please help!
Dave
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3921784#3921784
Reply to the post :
http://www.jboss.com/index.html?module=bb&o
MySQL 4.1 uses TINYINT for Boolean type, but MySQL 5.0 use Bit(1). After
upgrading to MySQL 5.0 and all mapping tables have been re-created.
I got
Data too long for column "read" that is a boolean type.
when inserting a row.
How to solve this problem?
Where is the Hibernate configuration
Thanks for response.
In Java, String are stored as UTF16, not UTF8. But how MySQL knows which
charset/collation EJB(client to DB) is using if I config MySQL only? For MySQL
I can config DB and Server charset/collation, but not client connection/results
charset. Thanks for helping me understand.
Hi, I have a question about transaction within web application.
For a web application using JSF, EJB(JBOSS) and hibernate, what do I need to do
to make all DB access for one HTTP request/response within one transaction?
I have some session beans that are injected with EnttityManager. For every H
Web application using JBoss and servlets.
I am using FORM authentication. Can username be UTF-8?
I create an account, its username is in UTF-8 encoding, chinese characters.
But login was not successful. Can JBoss built-in authentication handle UTF-8
encoding for username?
Ascii username works.
I am trying to use JTA UserTransaction. I have JBoss 4.0.3 SP1. Where is the
JTA jar file? I could not find it. Do you I need to download from sun?
which jar is The class javax.transaction.UserTransaction in?
Thanks for help
View the original post :
http://www.jboss.com/index.html?module=bb&op=
Hello,
I am using JBoss 4.0.3SP1. Which jar file has the
javax.transaction.UserTransaction class? I could not find it from JBoss
installation. Do I need to download it from sun.com? Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923107#3923107
Reply t
A web application using UserTransaction with Hibernate and JBoss EJB.
When a user try to delete an entity using em.remove(detachedEntity), then
commit transaction, but a Hibernate exception raised: reference constraints
violated. In this case, the detached entity is still being hold by JSF back
Thanks for reply, j2ee_junkie.
Right now I am using a filter to set request encoding to UTF-8 for all requests
in order to support chinese characters. It works great except Form login. The
username is created in UTF-8 and stored in database.
The related part in login-config.xml
Is there a way for an entity to inherit properties from supclass that is not an
entity?
Right now they are not inherited in terms of persistence.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924822#3924822
Reply to the post :
http://www.jboss.com/index.htm
Two entities, Picture and Person, ManyToOne
Class Picture {
@ManyToOne
public Person getOwner() {... }
}
Picture picture =
// the picture has a owner that is an instance of Person(not CGLIB enhanced).
//change picture name, then merge
Picture p = em.merge(picture);
The owner(P
"j2ee_junkie" wrote : javatwo,
|
| As I mentioned below, the filter is useless during FORM login. All that
login stuff happens in the container level. Filters are at the web-app/servlet
level.
|
| I am not speaking from experience, but what about the web-app.xml's
I looked at the document, the locale-encoding-mapping is for response, not for
request. So the web container still does not know the request encoding coming
from the client machine. One thing I do not understand: the default is
iso8859, but I think the default should be UTF-8.
Thanks!
View t
@Entity
class Department {
}
@Entity
class Employee{
@ManyToOne
@NotFound(action=NotFoundAction.IGNORE)
public Department getDepartment()
}
Employee table refers to department table (foreign key).
When I tried to delete a department, I got an exception
"foreign key constraint
I have a web application deployed on JBoss AS, its context root is, say,
/example.
www.xyz.com/example
how to config so that the application access URL is www.xyz.com,
without /example?
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3929746#3929746
R
64 matches
Mail list logo