Originally posted by Mark Spritzler:
Yes, you will not get it to work because of the different JBoss versions. If the book uses JBoss AS 3, then in order to get their sample to work you need JBoss AS 3. In JBoss AS 4 files like
%JBOSS_DIST%\client\jcert.jar; %JBOSS_DIST%\client\jmx-connector-client-factory.jar; %JBOSS_DIST%\client\jmx-ejb-connector-client.jar;
Are not in the client directory. Those jars do not exist in JBoss 4.0.
So you can either use the EJB tutuorials from JBoss that work with JBoss 4.0, or look at your bat file and remove all the jars that are no longer in the client directory of JBoss.
Mark
Originally posted by Sheethal Reddy:
What app server are you running?
Originally posted by Vyas:
This means you have not included all the files necessary for the project to run. It seems you have not included Struts library files. Please collect all necessary files or use Netbeans to work on the example
C:\Documents and Settings\HP_Administrator\Desktop\javaeetutorial5\examples\ejb\
converter>ant deploy
Buildfile: build.xml
check:
BUILD FAILED
C:\Documents and Settings\HP_Administrator\Desktop\javaeetutorial5\examples\bp-p
roject\app-server-ant.xml:417: Property javaee.server.passwordfile not specified.
Please specify the javaee.server.passwordfile property in 'bp-project/build.properties'.
You will also need to ensure that the passwordfile is present and contains AS_ADMIN_PASSWORD.
Total time: 0 seconds
C:\Documents and Settings\HP_Administrator\Desktop\javaeetutorial5\examples\ejb\
converter>
Originally posted by Merrill Higginson:
The error message is telling you that you haven't included the UserDTO class in your compile-time classpath when you're trying to compile the LoginBean class.
I'd suggest you not compile classes into the same directory as the source, but specify a different destination directory. Either way, you must include the destination directory in your classpath. example:
Originally posted by Mirko Bonasorte:
Hi,
You may try to get the background parameter from the request and, if not null, set it into the application scope.Instead, if it's null, you read it from the application scope.
Originally posted by Satou kurinosuke:
This is a new method in Mustang (Java 1.6). Are you using jdk 1.6 ?
Originally posted by Kel Michaels:
You must have a return value. Because all of your returns are wrapped in if blocks you do not have a guaranteed return.
Refactor your code to return a value at the end of the method. So in your if blocks you set the string you want to return to some variable.
Originally posted by Kel Michaels:
I believe that java.io.Console is new as of Java 6.