[JBoss Portal] - Facing problems in installing JBoss
by raj.shanmug
Could any one help further in going ahead with this installation. I have followed the following steps.
I have download the jboss AS 4.0.2.zip and extracted the same in my E:/Server and renamed the same folder as E:/Server/jboss
Then I downloaded the jboss portal 2.4.zip and also extracted the same in E:/ seperately.
Then I set the environmental variables as follows;-
PATH: C:\Java\jdk1.5.0_08\lib; E:\Server\jboss\lib;
CLASSPATH: C:\Java\jdk1.5.0_08\bin; E:Server\jboss\bin;
JAVA_HOME: C:\Java\jdk1.5.0_08
JBOSS_HOME: E:\Server\jboss
Then I created a SQL Server Data base instance in another system and granted rights for me. The db details are host:pegsrv; username: peguser ; password: password.
Then I copied the jdbc driver files pertaining to Sql server i.e, msbase.jar, msutil.jar, mssqlserver.jar into the E:\server\jboss\default\lib directory of the AS.
Then I configure the portal-sqlsdrver-ds.xml file as follows
<?xml version="1.0" encoding="UTF-8"?>
<local-tx-datasource>
<jndi-name>PortalDS</jndi-name>
<connection-url>jdbc:microsoft:sqlserver://pegasrv:1433;tds=8.0;lastupdatecount=true</connection-url>
<driver-class>com.microsoft.jdbc.sqlserver.SQLServerDriver</driver-class>
<user-name>peguser</user-name>
password
</local-tx-datasource>
Then I copied this file along with the portal.sar file into the E:\server\jboss\default\deploy directory of the AS.
Then I started the run.bat file in the E:\server\jboss\bin
The server got started, now I pointed the browser to http://localhost:8080 and saw the server console
Now I pointed the same to http://localhost:8080/portal and i got the http -500 error.
Could you please help me in this scenario. I too have downloaded a bundled version jboss 2.4 portal +AS. It too worked fine, but can I configure my dbase for the bundled version, if so how to do that for the sql server. Please mail me the details. Waiting for you reply.
---Raj
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973780#3973780
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973780
19 years, 7 months
[JBoss Seam] - Using the @Factory annotation and stateless session beans
by zzzz8
I'm wondering why my method that's marked with the @Factory annotation in my stateless session bean isn't being invoked. Because I'm still new to EJB and Seam, I'm wondering if I don't understand the concepts well enough yet. Here's what I have (some sample code - the syntax may not be entirely correct - but my actual code compiles):
My stateless session bean implementation:
@Name("TestStatelessBean")
| @Stateless
| public final class TestSLSBBean implements TestSLSBLocal {
| @Out(value="testVar")
| private String testVar = null;
|
| @Factory("testVar")
| public void init() {
| ....
| }
|
| public void testSLSBMethod() {
| ....
| }
| }
The business interface for this bean:
@Local
| public interface TestSLSBLocal {
| void init();
|
| void testSLSBMethod();
| }
The stateless session bean is invoked from a stateful session bean with the default conversation scope:
@Name("TestStatefulBean")
| @Stateful
| public final class TestSFSBBean implements TestSFSBLocal {
| @In(value="TestStatelessBean", create = true);
| TestSLSBLocal test;
|
| void testSFSBMethod() {
| test.testSLSBMethod();
| }
| }
So when test.testSFSBMethod() is invoked, the init method in TestStatelessBean is somehow never invoked before testSLSBMethod is called (at least it doesn't appear so in my debugger). I would hate to have to add the init() method call to everyone one of the methods in the TestSLSBBean class. What am I doing wrong, or do I have to add init() for each method in the TestSLSBBean class? Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973774#3973774
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973774
19 years, 7 months
[JBossCache] - JBoss Cache 2.0 DR1 is available for preview
by ben.wang@jboss.com
Since 2.0 release has lots of changes to APIs, we have made 2.0 DR1 release available to preview and get some initial feedback. For those who are interested, you can download the cvs and build it yourself. A full alpha release is planned to come out very soon.
Couple of notable changes:
1. There is now two new Cache (the generic cache) and PojoCache (for PojoCache obiously) APIs. We have separated the library as: jboss-cache.jar (core Cache) and pojocache.jar (pure PojoCache).
2. PojoCache now uses Cache as the delagate for underlying state replication. So to run PojoCache, you will need both jboss-cache.jar and pojocache.jar libraries.
3. Cache still uses the same config xml. But PojoCache has a new pojocache-aop.xml (kind of corresponding to jboss-aop.xml) in the previous release but it has confgiuration for PojoCache interceptors now.
4. Packaging (if you do "build.sh dist" from cvs) now consists of: jboss-cache-core.zip (for core Cache library), jboss-cache-pojo.zip (core plus PojoCache
5. The new APIs can be seen from unit tests under tests/functional/org/jboss/cache/api (for core Cache) and tests-50/functional/org/jboss/cache/pojo (for PojoCache).
Cheers,
-Ben
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973773#3973773
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973773
19 years, 7 months