[Installation, Configuration & Deployment] - Re: This is simple right? - so how come it is so hard?
by PeterJ
The problem with developers writing documentation is that they are so used to knowing how it is supposed to work that they read things between the lines that just aren't there. After having this fact pounded into my head various documentors specifically assigned to convert my technical ramblings into English suitable for consumption by people who don't have my insight into the application, I came to greatly respect documentors (or product information specialists, as they are know at my company) and the service they provide to turn code into a product.
But enough for my ramblings. On to your problem.
First, you are almost there. You have a capable JVM from Sun, I hope. (You didn't include the entire output from running 'java -version', and I would have been happier to see a '-b05' suffix on the version you posted. I'm not sitting at my Linux box, it's at work by I am at home, so I can't verify it at this time.) I assume you have set JAVA_HOME to the location where the JMV is installed.
You also downloaded the jboss zip file and extracted the jboss-4.0.4.GA directory. Once again, you did not say where you placed this directory. I could assume your home directory. That is fine. I usually place it at /opt/jboss-4.0.4.GA. The place doesn't matter, really. Anywhere you like that makes sense to you is fine. Hence, a "suitable location."
Only one thing left to do. Run it. There is a bin directory under jboss-4.0.4.GA. Go to that directory and enter:
chmod 755 *.sh
| ./run.sh
Now open your browser and enter the URL http://localhost:8080. You should see the JBoss Home page.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975365#3975365
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975365
19 years
[Installation, Configuration & Deployment] - Newbie - INIT_WAITING_DEPLOYER error when test.jar deployed
by mnsweeps
I am a newbie to JBOSS. Just yesterday I installed JBOSS on my laptop and was testing the TEST.JAR file in my DEFAULT deploy directory. The test.jar is mentioned in this tutorial at the bottom . http://today.java.net/pub/a/today/2005/03/01/InstallingJBoss.html
THE ERROR MESSAGE I AM GETTING IS AT BOTTOM OF THIS POST. Please help me solve this..
C:\JBoss\jboss-4.0.4.GA\bin>run
JAVA_HOME is not set. Unexpected results may occur.
Set JAVA_HOME to the directory of your local JDK to avoid this message.
===============================================================================
.
JBoss Bootstrap Environment
.
JBOSS_HOME: C:\JBoss\jboss-4.0.4.GA\bin\\..
.
JAVA: java
.
JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcIn
terval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
.
CLASSPATH: \lib\tools.jar;C:\JBoss\jboss-4.0.4.GA\bin\\run.jar
.
===============================================================================
.
10:55:05,638 INFO [Server] Starting JBoss (MX MicroKernel)...
10:55:05,638 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBo
ss_4_0_4_GA date=200605151000)
10:55:05,648 INFO [Server] Home Dir: C:\JBoss\jboss-4.0.4.GA
10:55:05,648 INFO [Server] Home URL: file:/C:/JBoss/jboss-4.0.4.GA/
10:55:05,648 INFO [Server] Patch URL: null
10:55:05,658 INFO [Server] Server Name: default
10:55:05,658 INFO [Server] Server Home Dir: C:\JBoss\jboss-4.0.4.GA\server\defa
ult
10:55:05,658 INFO [Server] Server Home URL: file:/C:/JBoss/jboss-4.0.4.GA/serve
r/default/
10:55:05,658 INFO [Server] Server Log Dir: C:\JBoss\jboss-4.0.4.GA\server\defau
lt\log
10:55:05,668 INFO [Server] Server Temp Dir: C:\JBoss\jboss-4.0.4.GA\server\defa
ult\tmp
10:55:05,668 INFO [Server] Root Deployment Filename: jboss-service.xml
10:55:05,949 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
10:55:05,949 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05
,Sun Microsystems Inc.
10:55:05,959 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
10:55:06,540 INFO [Server] Core system initialized
10:55:08,152 INFO [WebService] Using RMI server codebase: http://KRISHALAP:8084
/
10:55:08,172 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:log4j.xml
10:55:08,382 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1100, RMI=/0.0.0.
0:1101, backlog=50, no client SocketFactory, Server SocketFactory=class org.jbos
s.net.sockets.DefaultSocketFactory
10:55:10,876 INFO [Embedded] Catalina naming disabled
10:55:10,936 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
10:55:10,936 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in
the classpath. Will load the default rule set.
10:55:11,216 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0
.0.0-8080
10:55:11,216 INFO [Catalina] Initialization processed in 270 ms
10:55:11,216 INFO [StandardService] Starting service jboss.web
10:55:11,226 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.1
7
10:55:11,267 INFO [StandardHost] XML validation disabled
10:55:11,287 INFO [Catalina] Server startup in 71 ms
10:55:11,387 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/
http-invoker.sar/invoker.war/
10:55:11,667 INFO [WebappLoader] Dual registration of jndi stream handler: fact
ory already defined
10:55:12,228 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbosswe
b-tomcat55.sar/ROOT.war/
10:55:12,789 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/dep
loy/tmp31722jbossws-exp.war/
10:55:12,939 INFO [SubscriptionManager] Bound event dispatcher to java:/EventDi
spatcher
10:55:13,099 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../
deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
10:55:14,561 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../dep
loy/management/console-mgr.sar/web-console.war/
10:55:15,503 INFO [MailService] Mail Service bound to java:/Mail
10:55:15,703 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-local-jdbc.rar
10:55:15,753 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-ha-xa-jdbc.rar
10:55:15,783 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-local-jdbc.rar
10:55:15,813 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jboss-xa-jdbc.rar
10:55:15,853 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/jms/jms-ra.rar
10:55:15,893 INFO [RARDeployment] Required license terms exist, view META-INF/r
a.xml in .../deploy/mail-ra.rar
10:55:16,534 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
10:55:16,784 INFO [A] Bound to JNDI name: queue/A
10:55:16,784 INFO [B] Bound to JNDI name: queue/B
10:55:16,784 INFO [C] Bound to JNDI name: queue/C
10:55:16,784 INFO [D] Bound to JNDI name: queue/D
10:55:16,794 INFO [ex] Bound to JNDI name: queue/ex
10:55:16,815 INFO [testTopic] Bound to JNDI name: topic/testTopic
10:55:16,815 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
10:55:16,815 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
10:55:16,825 INFO [testQueue] Bound to JNDI name: queue/testQueue
10:55:16,865 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.
0.0:8093
10:55:16,905 INFO [DLQ] Bound to JNDI name: queue/DLQ
10:55:17,035 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
10:55:17,075 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../dep
loy/jmx-console.war/
10:55:17,245 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@d2113d7a { url=file:/C:/JBoss/jboss-4.0.4.GA
/server/default/deploy/test.zip }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/JBoss/jboss-4.0.4.GA/server/default/deploy/test.zip
altDD: null
lastDeployed: 1159725317245
lastModified: 1159725317235
mbeans:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@d2113d7a { url=file:/C:/JBoss/jboss-4.0.4.GA
/server/default/deploy/test.zip }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/JBoss/jboss-4.0.4.GA/server/default/deploy/test.zip
altDD: null
lastDeployed: 1159725317245
lastModified: 1159725317235
mbeans:
10:55:17,365 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0
-8080
10:55:17,796 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
10:55:17,806 INFO [JkMain] Jk running ID=0 time=0/401 config=null
10:55:17,846 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBos
s_4_0_4_GA date=200605151000)] Started in 12s:178ms
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975361#3975361
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975361
19 years
[EJB 3.0] - Transactions Rollback
by marook
Hello Experts,
I've got a problem with the rollback of failed transactions. My situation is as follows:
| @Stateless
| @Local
| public class BeanA implements IBeanA{
|
| @PersistenceContext(name="MyContext")
| private EntityManager entityManager;
|
| public void persistSomething() {
| entityManager.persist(new MyEntityBean());
| }
| }
|
| @Stateless
| @Remote
| public class BeanB implements IBeanB{
|
| @EJB
| private IBeanA beanA;
|
| public void doSomething() {
| beanA.persistSomething();
|
| throw new RuntimeException();
| }
| }
|
The persistSomething and the doSomething methods are part of my business interfaces.
My problem is, that the persisted entity bean isen't rolled back from the database after the RuntimeException.
I've even tried to set the beanA's business method to TransactionAttributeType.MANDATORY so I can make sure that I'm always in the same transaction.
Do I understand the EJB 3.0 transaction model wrong? I thought as long as my transaction spreads over one thread, then all the changes are rolled back.
Do I need application transactions in this case?
Thanks in advances
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975360#3975360
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975360
19 years
[Installation, Configuration & Deployment] - This is simple right? - so how come it is so hard?
by mnatz
I am a little frustrated. I have some basic questions but I have some comments too. I'll make my comments, but first explain that if they sound sarcastic (as email often sounds) they are not, it's just my frustration. I offer the comments in the hope that someone there at Jboss will tap the guy or gal responsible for your startup guide on the shoulder and have them do a little more work.
Second, I would assume that since the startup guide exists someone at some point thought that such a document was needed and important enough to dedicate resources to it's creation.
So could you make the installation section a little more verbose and accurate? I would really help first time users like me. The rest of the document might be great. I don't know yet because I cannot get past section 1.1
I am trying to load Jboss Application Server on an Athlon/FC4 because it supports 64 bit. I have used Java but I am not an expert. The last time I approached a Java project was a over a year ago and I'm over 40 -- so I've already forgotten most of what I use to know. Besides this was not suppose to be a Java project I just wanted to try a web application that required a 64 bit application server.
Reading the download and installation section. I am told to check my Java installation yup -- jre is 1.5.0_06-fcs
Next I am told that the best way for a beginner like me -- is to run the Web Start Installer.
So I click on Run Installer and my browser (Firefox) presents me with a window saying that the file (a new type of file -- a *.jnlp file) is coming my way. jems-installer-1.2.0-beta2.jnlp and I select "open it" in the Firefox browser, Firefox instead saves the file to my default download location. My other browser option is to "save to disk" which does the same thing. So now I have a .jnlp file on my disk. What do I do with that?
I assume that if I can open it with some application code my problem would be over?
Yes, maybe my browser is lacking a definition for a MIME type but, if I wanted to fix it what do I attach it to? That's a pretty generic thing, not really browser specific and given what this .jnlp file is apparently about to do, seems like it might even be good security. I'll probably remove that MIME type after using it. If I knew what to attach it to. Yes, I could go a googling, but I have this nice startup guide...
So I move on to the binary version as I am told in the next paragraph. Download the .zip version and unzip it. I am told that I should do this in a "suitable location" followed by discussion of where I would put this on a Windows system. The discussion about Windows "Program FIles" directory implies that this unzipping should take place in the location where I intent to run the server.
Please excuse me, but that's just lazy.
If I run the installer in my home directory is that where it is going the run from? Or will it install the server in another "suitable location"? If the installation/server runs from my home directory is that going to break some other installations by setting the classpath to somewhere else etc..? And where is that suitable location in my Linux file system? /opts /usr/share, /usr/local/share, don't care? Do I need to be root to install this properly? Could you give me a clue? Yes I can go a googling, which I might have to anyway but, I have this nice startup guide....dedicated to answering questions like this?
So I am told that all these unzipped files should end up in jboss-4.0.4. but mine is in jboss-4.0.4.GA - just a typo I think.
Moving on to the next paragraph I am told that the installer versions are also available as a .jar file and that they also can be launched from the web site. Well that did not work last time and how do I execute that .jar file?
I think it's java foo.jar but I'm not sure. I did it once a couple of years ago and did I mention I'm over 40 now, so I've forgotten. Yes I know, I could go a googling but I have this nice startup guide...
So I go to the website again to get the .jar installer. But wait -- the .jar file is a patch installer. Don't I have to install Jboss before I patch it? Or is this really a minor release. Yes I can go a googling but I have this nice startup guide ...
Could someone help me?
Answer some of my questions above?
Point me to a more full installation set?
While writing this it has dawned on me that Jboss may in fact be installed in my home directory by virtue unzipping it there. I should just call run.sh to start the server. But this is not really what I want.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975359#3975359
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3975359
19 years