[Beginners Corner] - JBoss documentation is driving me nuts
by esgargs
I have tried this multiple times, so there has to be something wrong here. Basically, I have downloaded and compiled the source for Jboss AS 4.0.4GA. Now, I am trying to install JBoss Portal on top of it. I am still trying out RC1 due to some issues with forums I have been told in the later versions. Well, when I download the source, the entire "thirdparty" directory is missing, unlike in the documentation. Well, when I try "build datasource" I get an error that the target isn't defined. If I do a "build deploy" from the build directory, it downloads the thirdparty and other directories, but the "build datasource" from the core directory still doesn't work.
Why is there such an ambiguous documentation? Is there a nice helpful HOWTO/tutorial book out there?
Thanks for the help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965169#3965169
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965169
19 years, 10 months
[JBoss Seam] - Re: getting referer
by supernovasoftware.com
I use the following as a page action to log access to my application.
In the @Create method I set the request. I am only interested in the "User-Agent" header, but I am sure you can get the referrer as well.
| @Stateful
| @Name("accessManager")
| @Scope(ScopeType.EVENT)
| public class AccessManagerBean implements Serializable, AccessManager {
|
|
| private static final long serialVersionUID = 2947953361734540770L;
|
| @EJB AccessDAO accessDAO;
| @EJB UsrDAO usrDAO;
|
|
| @Logger Log log;
|
| @SuppressWarnings("unused")
| @DataModel(scope = ScopeType.PAGE)
| private List<Access> accessList;
|
| @In(required = false)
| @Out(scope = ScopeType.PAGE, required = false)
| private Access accessNew;
|
| @In
| private FacesContext facesContext;
|
| @Factory("accessList")
| public void getList()
| {
| accessList = accessDAO.getAllAccesss();
| }
|
| @Factory("accessNew")
| public void getNew() {
| log.info("@Factory(roleNew)");
| accessNew = new Access();
| }
|
| private HttpServletRequest request;
|
| @Create
| public void setup() {
| request = (HttpServletRequest) facesContext.getExternalContext().getRequest();
| }
|
| public String select() {
| return null;
| }
|
| public String update() {
| clear();
| return null;
| }
|
| public String add() {
| Access access = new Access();
| access.setUsr(usrDAO.getUsrByJAAS(request.getRemoteUser()));
| access.setStartDate(new Date());
| access.setAddressIP(request.getRemoteAddr());
| access.setPath(request.getRequestURI());
| access.setUserAgent(request.getHeader("User-Agent"));
| access = accessDAO.makePersistent(access);
| return null;
| }
|
| private void clear(){ }
|
| public String delete()
| {
| return null;
| }
|
| @Destroy @Remove
| public void destroy() { }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965168#3965168
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965168
19 years, 10 months
[EJB 3.0] - Compiler wrong?
by Rockym
Hi. I hope this is the right forum but anyway I have a problem trying to run JBOSS, because the JAVA_HOME and JBOSS_HOME are well set, however when I run ant it appears the following : (by the way the OS is MAC OS X)
:
dup-148-221-108-165:~/desktop/workbook rodrigomartinezheredia$ cd ex04_1
dup-148-221-108-165:~/desktop/workbook/ex04_1 rodrigomartinezheredia$ ant
Buildfile: build.xml
prepare:
compile:
[javac] Compiling 4 source files to /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/build/classes
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/domain/Cabin.java:8: illegal character: \64
[javac] @Entity
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/domain/Cabin.java:9: illegal character: \64
[javac] @Table(name="CABIN")
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/domain/Cabin.java:18: illegal character: \64
[javac] @Id
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/domain/Cabin.java:19: illegal character: \64
[javac] @Column(name="ID")
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/domain/Cabin.java:29: illegal character: \64
[javac] @Column(name="NAME")
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/domain/Cabin.java:39: illegal character: \64
[javac] @Column(name="DECK_LEVEL")
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/domain/Cabin.java:49: illegal character: \64
[javac] @Column(name="SHIP_ID")
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/domain/Cabin.java:59: illegal character: \64
[javac] @Column(name="BED_COUNT")
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/domain/Cabin.java:68: expected
[javac] }
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/travelagent/TravelAgentBean.java:9: illegal character: \64
[javac] @Stateless
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/travelagent/TravelAgentBean.java:12: illegal character: \64
[javac] @PersistenceContext(unitName="titan") private EntityManager manager;
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/travelagent/TravelAgentBean.java:12: expected
[javac] @PersistenceContext(unitName="titan") private EntityManager manager;
[javac] ^
[javac] /Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/src/main/com/titan/travelagent/TravelAgentRemote.java:7: illegal character: \64
[javac] @Remote
[javac] ^
[javac] 13 errors
BUILD FAILED
/Users/rodrigomartinezheredia/Desktop/workbook/ex04_1/build.xml:54: Compile failed; see the compiler error output for details.
I guess is the compiler but how can I repair the problem?,I think all is set thanks by the way
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965163#3965163
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965163
19 years, 10 months