-
1. Re: Duke's Bank Application Problem
wudc Sep 29, 2007 3:08 PM (in response to odin69)I couldn't get it to build. The compilation step from the jBoss-build.xml was looking for the client directory under the Java tutorial directory. How did you get past that?
-
2. Re: Duke's Bank Application Problem
odin69 Nov 14, 2007 7:28 AM (in response to odin69)I am not sure if I really understand what your problem is, but did you edit the jboss-build.properties to point to your jboss-as folder? If not then you should do this first...
-
3. Re: Duke's Bank Application Problem
odin69 Nov 14, 2007 8:29 AM (in response to odin69)So here I am again with a new Problem. After the logon I get an Exception from the CustomerBEan:
Your request cannot be completed. The server got the following error:
javax.servlet.jsp.JspTagException: javax.servlet.jsp.el.ELException: An error occurred while getting property "accounts" from an instance of class com.sun.ebank.web.CustomerBean
--> Do I guess right that I have a problem with my Database Cofigurations? Has anyone encountered a similar problem or has an idea what might went wrong?
THX in advance -
4. Re: Duke's Bank Application Problem
bentabol Nov 14, 2007 10:08 AM (in response to odin69)Hello,
When I try to compile Duke's Bank Application, I obtain the next errors:
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\DefinitionTag.java:31: package javax.servlet.jsp does not exist
[javac] import javax.servlet.jsp.JspTagException;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\DefinitionTag.java:32: package javax.servlet.jsp does not exist
[javac] import javax.servlet.jsp.PageContext;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\DefinitionTag.java:33: package javax.servlet.jsp.tagext does not
exist
[javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\DefinitionTag.java:37: cannot find symbol
[javac] symbol: class SimpleTagSupport
[javac] public class DefinitionTag extends SimpleTagSupport {
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\InsertTag.java:32: package javax.servlet.jsp does not exist
[javac] import javax.servlet.jsp.JspTagException;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\InsertTag.java:33: package javax.servlet.jsp does not exist
[javac] import javax.servlet.jsp.PageContext;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\InsertTag.java:34: package javax.servlet.jsp.tagext does not exi
st
[javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\InsertTag.java:38: cannot find symbol
[javac] symbol: class SimpleTagSupport
[javac] public class InsertTag extends SimpleTagSupport {
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\InsertTag.java:54: cannot find symbol
[javac] symbol : class JspTagException
[javac] location: class com.sun.ebank.web.template.InsertTag
[javac] public void doTag() throws JspTagException {
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\ParameterTag.java:31: package javax.servlet.jsp.tagext does not
exist
[javac] import javax.servlet.jsp.tagext.*;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\ParameterTag.java:32: package javax.servlet.jsp does not exist
[javac] import javax.servlet.jsp.PageContext;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\ParameterTag.java:36: cannot find symbol
[javac] symbol: class SimpleTagSupport
[javac] public class ParameterTag extends SimpleTagSupport {
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\ScreenTag.java:31: package javax.servlet.jsp.tagext does not exi
st
[javac] import javax.servlet.jsp.tagext.SimpleTagSupport;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\ScreenTag.java:32: package javax.servlet.jsp does not exist
[javac] import javax.servlet.jsp.PageContext;
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\ScreenTag.java:36: cannot find symbol
[javac] symbol: class SimpleTagSupport
[javac] public class ScreenTag extends SimpleTagSupport {
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\DefinitionTag.java:62: cannot find symbol
[javac] symbol : method getJspBody()
[javac] location: class com.sun.ebank.web.template.DefinitionTag
[javac] getJspBody()
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\DefinitionTag.java:66: cannot find symbol
[javac] symbol : class PageContext
[javac] location: class com.sun.ebank.web.template.DefinitionTag
[javac] PageContext context = (PageContext) getJspContext();
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\DefinitionTag.java:66: cannot find symbol
[javac] symbol : class PageContext
[javac] location: class com.sun.ebank.web.template.DefinitionTag
[javac] PageContext context = (PageContext) getJspContext();
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\DefinitionTag.java:66: cannot find symbol
[javac] symbol : method getJspContext()
[javac] location: class com.sun.ebank.web.template.DefinitionTag
[javac] PageContext context = (PageContext) getJspContext();
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\InsertTag.java:58: cannot find symbol
[javac] symbol : class PageContext
[javac] location: class com.sun.ebank.web.template.InsertTag
[javac] PageContext context = (PageContext) getJspContext();
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\InsertTag.java:58: cannot find symbol
[javac] symbol : class PageContext
[javac] location: class com.sun.ebank.web.template.InsertTag
[javac] PageContext context = (PageContext) getJspContext();
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\InsertTag.java:58: cannot find symbol
[javac] symbol : method getJspContext()
[javac] location: class com.sun.ebank.web.template.InsertTag
[javac] PageContext context = (PageContext) getJspContext();
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\InsertTag.java:92: cannot find symbol
[javac] symbol : class JspTagException
[javac] location: class com.sun.ebank.web.template.InsertTag
[javac] throw new JspTagException(ex.getMessage(), rootCause);
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\ParameterTag.java:70: cannot find symbol
[javac] symbol : method getParent()
[javac] location: class com.sun.ebank.web.template.ParameterTag
[javac] ((ScreenTag) getParent()).getParameters();
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\ScreenTag.java:55: cannot find symbol
[javac] symbol : method getParent()
[javac] location: class com.sun.ebank.web.template.ScreenTag
[javac] HashMap screens = (HashMap) ((DefinitionTag) getParent()).ge
tScreens();
[javac] ^
[javac] C:\PaulaBentabol\Portal\j2eetutorial14\examples\bank\src\com\sun\eba
nk\web\template\ScreenTag.java:63: cannot find symbol
[javac] symbol : method getJspBody()
[javac] location: class com.sun.ebank.web.template.ScreenTag
[javac] getJspBody()
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 26 errors
Does anyone know why is this happening?. Could please anyone help me?.
Thanks in advance. -
5. Re: Duke's Bank Application Problem
odin69 Nov 15, 2007 4:20 AM (in response to odin69)Hi bentabol,
I had the same problem at first there are some jar files missing in the lib folder of the server like javax.sevlet.jsp.jar and javax.servlet.jar. You will find them in the getting started exampel which u can downlaod here
http://www.redhat.com/docs/manuals/jboss/
just copy the jar into the lib folder and try it again
hope that helps -
6. Re: Duke's Bank Application Problem
bentabol Nov 15, 2007 5:16 AM (in response to odin69)Hi odin69,
Thank you for your help. I will try that and let you know if it solves the problem. -
7. Re: Duke's Bank Application Problem
odin69 Nov 15, 2007 5:31 AM (in response to odin69)So now after I finally got started with the duke's bank application I want to build the wasdl file as described in the gettingstarted documentation. But by executing the ant -f jboss-build.xml wsdl I get the message that this target doesn't exist, Has anyone an idea how I can build the wsdl? I am using JBOSS 4.0.5, so I know that I could build a WSDL file manually or with java2wsdl, is there any schema I would have to follow?
THX in advance -
8. Re: Duke's Bank Application Problem
odin69 Nov 15, 2007 7:23 AM (in response to odin69)Ok problem solved, the command is no longer ant -f jboss-build.xml wsdl now it is wstool.
My wsdl is build correctly and I am also able to deploy the wole thing, but I can't invoke the wsdl with the browser with the following address
http://localhost:8080/bankws-ejb/TellerService?wsdl
Any idea someone? THX -
9. Re: Duke's Bank Application Problem
odin69 Nov 15, 2007 8:15 AM (in response to odin69)So once again the problem is solved, the service endpoint wasn't at http://localhost:8080/bankws-ejb/TellerService?wsdl....
If anyone should encounter the same problem look at http://localhost:8080/jbossws/services where you will get a list of all of your SE, copy the address to your client java file and recompile/deploy it. that should do the trick. -
10. Re: Duke's Bank Application Problem
bentabol Nov 19, 2007 6:39 AM (in response to odin69)Hi odin69,
I tried what you told me but I still obtain the same errors when compiling. I don't know what the problem can be... -
11. Re: Duke's Bank Application Problem
bentabol Nov 19, 2007 11:26 AM (in response to odin69)Hi,
It is solved!. I copied also the files: jboss-j2ee.jar and servlet-api.jar and it was built sucessfully!. -
12. Re: Duke's Bank Application Problem
odin69 Nov 20, 2007 4:53 AM (in response to odin69)Hi bentabol,
I am glad to hear about your success, have fun playing... -
13. Re: Duke's Bank Application Problem
bentabol Nov 20, 2007 5:38 AM (in response to odin69)Hi odin69,
Thanks!. -
14. Re: Duke's Bank Application Problem
bentabol Nov 20, 2007 7:15 AM (in response to odin69)Hello again,
When I try to create the tables with the db-create-table target, by doing: ant -f jboss-build.xml db-create-table, it builds successfully, but I obtain the next error:
[java] SQL Error at line 54: java.sql.SQLException: Table is referenced by
a constraint in table SYS_REF_FK6713A03980734EA4_58 table: BOOKING in statement
[
[java] DROP TABLE customer if exists]
Can anyone help me to solve it?.
Thanks in advance.