• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem

 
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I follow the steps of Building the application in jbossj2ee.pdf.
In the step
ant -f jboss-build.xml compile
I got the following errors:
Buildfile: jboss-build.xml
prepare:
compile:
[javac] Compiling 1 source file to C:\j2eetutorial\bank\build
[javac] C:\j2eetutorial\bank\src\WSClient.java:4: package com.sun.ebank.uti
does not exist
[javac] import com.sun.ebank.util.AccountDetails;
[javac] ^
[javac] C:\j2eetutorial\bank\src\WSClient.java:26: cannot resolve symbol
[javac] symbol : class AccountDetails
[javac] location: class WSClient
[javac] call.setReturnClass(AccountDetails.class);
[javac] ^
[javac] C:\j2eetutorial\bank\src\WSClient.java:29: cannot resolve symbol
[javac] symbol : class AccountDetails
[javac] location: class WSClient
[javac] call.registerTypeMapping(AccountDetails.class, qn,
[javac] ^
[javac] C:\j2eetutorial\bank\src\WSClient.java:30: cannot resolve symbol
[javac] symbol : class AccountDetails
[javac] location: class WSClient
[javac] new org.apache.axis.encoding.ser.BeanSerializerFacto
y(AccountDetails.class, qn),
[javac]
^
[javac] C:\j2eetutorial\bank\src\WSClient.java:31: cannot resolve symbol
[javac] symbol : class AccountDetails
[javac] location: class WSClient
[javac] new org.apache.axis.encoding.ser.BeanDeserializerFac
ory(AccountDetails.class, qn));
[javac]
^
[javac] C:\j2eetutorial\bank\src\WSClient.java:33: cannot resolve symbol
[javac] symbol : class AccountDetails
[javac] location: class WSClient
[javac] AccountDetails ret = (AccountDetails) call.invoke( new Object
] { "5005" } );
[javac] ^
[javac] C:\j2eetutorial\bank\src\WSClient.java:33: cannot resolve symbol
[javac] symbol : class AccountDetails
[javac] location: class WSClient
[javac] AccountDetails ret = (AccountDetails) call.invoke( new Object- Duke's bank
] { "5005" } );
[javac] ^
[javac] 7 errors

I took a look of bank dir, i only found one Java file WSClient.java.
Please help!!!
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are two recent links regarding this:
https://coderanch.com/t/88733/JBoss/Trying-deploy-application-Jboss
https://coderanch.com/t/88727/JBoss/EE-Tutorial-CMP-deployment
 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I took a look of those post. But no much help.
Which JAR files were missing?
Anybody try the Duke's Bank application?
 
Ming Hu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Apparently you were in a hurry when you looked at those posts and the "Getting Started..." guide. You HAVE to install J2EE1.3 tutorial first.
 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did.
I download from
EA Release, 1.3 Tutorial for the Sun ONE Platform
Download Tutorial for the Sun ONE Platform
Probably I should download
FCS Release, 1.3 Tutorial for the J2EE SDK
Download Tutorial for the J2EE SDK
I'll try.
 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I unzip the other zip file.
But cannot find build.properties in \j2eetutorial
I want to try RosterApp.
But cannot find jboss-build.xml in
\j2eetutorial\examples
Where is the correct zip file I should download? What's the name of the zip file? The two that I download are j2ee-1_3_01-draft-doc-tutorial-s1.zip, j2ee-1_3-doc-tutorial-draft5.zip .
Please help!
 
Ming Hu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just put them together and you're all set.
Say, you have j2ee1.3 examples installed in your_home/j2eetutorial, then you need to unpack the zip file that comes with the "Getting Started..." guide to the SAME directory. In the process, some of the files will be overwritten to be jboss friendly.
 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It works!
Thanks a lot, Ming!
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I get the same problem "package com.sun.ebank.util does not exist" with the 7 errors. I've read this post a bunch of times, downloaded the 1.3 tutorial (I had 1.4 previously), tried putting the files in the same directory, and I am still having no luck. I wasn't able to find j2ee-1_3_01-draft-doc-tutorial-s1.zip, does anyone know where that is?

Thanks,

Tim
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Within the following download located at http://docs.jboss.org/jbossas/getting_started/v5/ is the jboss-build.xml file
Hope that helps

JungleZoopy
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Lala Da", please see your private messages regarding an important administrative matter.

Also, please do not reply to 6 year old threads. Especially since the answer you provided is not pertinent to the question that was asked (the question was for a much older version of JBoss AS).
 
reply
    Bookmark Topic Watch Topic
  • New Topic