Re. J2EE Tutorial - Setting

Hi,
I am familiar to J2EE, but new to the new technlogies & working wth IDEs. I know this is not the right forum for my question, but i didn't find the best forum for my question. I have put the same question in J2EE SDK, so please ignore in that forum.
I am learning with J2EE Tutorial with NetBeans. I create the examples on myself as mentioned in the tutorial. Currently, i m working on savingsAccount EJB. My problem is, on creating DB.
I write
asant -buildfile create-db.xmlas mentioned in tutorial.
My root folder is D:\Trupti\Tutorials\J2EE-NB TUTORIAL\Projects
I copied the common.properties & database.properties in my root folder. I needed to change my appserv folder, i did. Now still what is missing, y does it give this error msg. Where am i going wrong. If anybody can help would be really appreciative.
On Dos prompt it gives as -
D:\Trupti\Tutorials\J2EE-NB TUTORIAL\Projects\savingsAccount>asant -buildfile cr
eate-db.xml
Buildfile: create-db.xml
startDB:
     [java] Server started, listening on port 9092, display level: 0 ...
run:
     [java] *****************************************************************
     [java] -driver     com.pointbase.jdbc.jdbcUniversalDriver
     [java] -url        jdbc:pointbase:embedded:sample
     [java] -script     <none>
     [java] -user       PBPUBLIC
     [java] -password   PBPUBLIC
     [java] -autocommit true
     [java] -prompt2    true
     [java] -spoolfile  <none>
     [java] -silent     false
     [java] *****************************************************************
     [java] Database SAMPLE does not exist or cannot be found in database home \
pointbase\databases specified either specify database.home=<folder> in pointbase
.ini or use the <URL>;database.home=<folder> to indicate the database folder. po
intbase.ini should be available in the current folder or you can specify the loc
ation for pointbase.ini with java -D:property=value where "property" is pointbas
e.ini and "value" is <path>pointbase.ini.
     [java] Java Result: -1
BUILD SUCCESSFUL
Total time: 3 seconds
D:\Trupti\Tutorials\J2EE-NB TUTORIAL\Projects\savingsAccount>I hope i get some solution to it asap. If anybody has idea, which is the right forum for this question, please inform me.
Thanks
Trupti

Well Lan, Yes I am using J2EE 1.4 Tutorial with Netbeans Version - the tutorial is specially designed to work with NetBeans & Sun AppSer.
The tutorial says to run this command on command line. Here is the
text from the tutorial that explains steps to create database:-
Running the SavingsAccount Example
Before you run this example, you have to create the database and deploy the
SavingsAccount.jar file.
Creating the Sample Database
The instructions that follow explain how to use the SavingsAccountBean example
with PointBase, the database software that is included in the Application
Server bundle.
1. In the IDE, choose Tools��PointBase Database��Start Local PointBase Database.
2. Create the database tables by running the create.sql script.
a. Make sure that the appsrv.root property in your
<INSTALL>/j2eetutorial14/examples/ file points to the location of
your local Application Server installation. ********* HERE MY FOLDER POINTS TO THE SERVER ************
b. In a terminal window, go to this directory:
<INSTALL>/j2eetutorial14/examples/ejb/savingsaccount/
c. Type the following command, which runs the create.sql script:
asant -buildfile create-db.xml
3. In the Runtime window, expand the Databases node, right-click the
jdbc:pointbase:server://localhost:9092/sun-appserv-samples
node, and choose Connect. Type pbpublic as the password and click OK.
Once the connection is established, expand the connection node�fs Tables node. There should be a node for the SAVINGSACCOUNT table.
iS THEIR ANY OTHER WAY to run the create.sql script directly.
Thanks
Trupti

Similar Messages

  • How to use ant1.3 in Wndows ME to build the examples in J2EE Tutorial?

    When I tried to build the examples bundled with j2ee tutorial in the ..\j2eetutorial\examples directory using the ant 1.3 on Wndows ME I get the following exception.Anybody please help me.Is there any other build tool available for download?
    StringIndexOutOfboundsException
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples> ant -verbose all
    Ant version 1.3 compiled on March 2 2001
    Buildfile: build.xml
    Detected Java Version: 1.3
    Detected OS: Windows Me
    parsing buildfile D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml with URI
    = file:D:/JAVATUTORIAL/J2EE/j2eetutorial/examples/build.xml
    Project base dir set to: D:\JAVATUTORIAL\J2EE\j2eetutorial\examples
    Build sequence for target `all' is [init, savingsaccount, bank, cart, checker, c
    onfirmer, converter, enroller, order, salesrep, storagebin, teller, htmlreader,
    warehouse, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-
    ejb, bookstore2, bookstore3, web, all]
    Complete build sequence is [init, savingsaccount, bank, cart, checker, confirmer
    , converter, enroller, order, salesrep, storagebin, teller, htmlreader, warehous
    e, simplemessage, cmproster, ejb, date, hello1, hello2, bookstore1, web-ejb, boo
    kstore2, bookstore3, web, all, create-storagebin-table, get-cci-jar, procs, cci,
    connector, create-salesrep-table, create-procs-alias, create-coffee-table, abou
    t, create-enroller-table, create-savingsaccount-table, create-web-db, create-war
    ehouse-table, create-bank-table, clean, create-order-table, create-teller-table,
    prepare, create-ejb-db]
    init:
    [property] Loading Environment myenv.
    BUILD FAILED
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: D:\JAVATUTORIAL\J2EE\j2
    eetutorial\examples\build.xml:19: java.lang.StringIndexOutOfBoundsException: Str
    ing index out of range: -1
    --- Nested Exception ---
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples\build.xml:19: java.lang.StringIndexOu
    tOfBoundsException: String index out of range: -1
    --- Nested Exception ---
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1476)
    at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:
    248)
    at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    Total time: 2 seconds
    D:\JAVATUTORIAL\J2EE\j2eetutorial\examples>
    *********************************************************************

    Please Help Me

  • J2EE Tutorial: Exception when building with ant

    I am trying to build the converter example on page 48 of the J2EE tutorial using ant. Ant seems to choke on the following line from the build.xml:
    <property environment="myenv" />
    The output of the "ant converter" command is:
    Buildfile: build.xml
    init:
    BUILD FAILED
    /usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: /usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    --- Nested Exception ---
    /usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    --- Nested Exception ---
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1525)
    at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:248)
    at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
    at org.apache.tools.ant.Target.execute(Target.java:153)
    at org.apache.tools.ant.Project.runTarget(Project.java:898)
    at org.apache.tools.ant.Project.executeTarget(Project.java:536)
    at org.apache.tools.ant.Project.executeTargets(Project.java:510)
    at org.apache.tools.ant.Main.runBuild(Main.java:421)
    at org.apache.tools.ant.Main.main(Main.java:149)
    Total time: 1 second
    My best guess is that the "myenv" line in the build.xml requires some additional attribute. I'm using ant version 1.3. My OS is Solaris (noted for possible environment-related issues).
    Thanks in advance!
    Eric Smith

    On Windows XP Pro, the line
    <property environment="myenv" />
    in the init target of build.xml for the j2ee tutorial examples triggers a windows error message:
    16 bit MS-DOS Subsystem
    =======================
    C:\WINDOWS\system32\ntvdm.exe
    Error while setting up environment for the application. Choose 'Close' to terminate the application.
    <<Close>> <<Ignore>>
    So it looks as if ant is trying and failing to access the winnt system environment here.
    According to Ant Developers Handbook (Sams, October 2002, chapter 4, p. 151), the ant environment property "specifies a prefix, giving access to OS-specific environment variables. This is not supported on all platforms." Until this problem is fixed, it appears that on XP systems anyway, any ant settings in build.xml files that rely on direct access to the system environment will fail. Here is some debug output from the j2ee tutorial examples init target which demonstrates this:
    C:\apps\j2sdkee1.3.1\j2eetutorial\examples>ant init
    Buildfile: build.xml
    init:
    [echo] starting init target
    [echo] reached marker 1
    [echo] reached marker 2
    [echo] value of J2EE_HOME is ${myenv.J2EE_HOME}
    [echo] finished init target
    BUILD SUCCESSFUL
    where the task:
    <property environment="myenv" />
    (which generates the OS error popup noted above) occurs between marker 1 and marker 2. Clearly the value of J2EE_HOME is NOT being successfully read from the system environment here.

  • Forte for Java J2EE Tutorial -- RMI RemoteException

    In testing the J2EE tutorial (Restaurant_TestApp) I keep encountering the following error when invoking the findAll method. I get the same error when invoking Data.Restaurant create.
    The error is:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.RemoteException java.rmi.RemoteException
    Any help or pointers from someone who has successfully built and tested the tutorial would be hugely appreciated!
    Many thanks,
    Luke
    The full error from the J2EE log is:
    javax.ejb.EJBException
         at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:1560)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1472)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1289)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:403)
         at Data.RestaurantEJB_PM_RemoteHomeImpl.findAll(RestaurantEJB_PM_RemoteHomeImpl.java:99)
         at Data._RestaurantHome_Stub.findAll(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:232)
         at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:97)
         at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:190)
         at org.apache.jsp.dispatch$jsp._jspService(dispatch$jsp.java:127)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
         at java.lang.Thread.run(Thread.java:484)
    java.rmi.RemoteException
         at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:389)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:431)
         at Data.RestaurantEJB_PM_RemoteHomeImpl.findAll(RestaurantEJB_PM_RemoteHomeImpl.java:99)
         at Data._RestaurantHome_Stub.findAll(Unknown Source)
         at java.lang.reflect.Method.invoke(Native Method)
         at com.sun.forte4j.j2ee.ejbtest.webtest.InvocableMethod$MethodIM.invoke(InvocableMethod.java:232)
         at com.sun.forte4j.j2ee.ejbtest.webtest.EjbInvoker.getInvocationResults(EjbInvoker.java:97)
         at com.sun.forte4j.j2ee.ejbtest.webtest.DispatchHelper.getForward(DispatchHelper.java:190)
         at org.apache.jsp.dispatch$jsp._jspService(dispatch$jsp.java:127)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:202)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
         at java.lang.Thread.run(Thread.java:484)

    RMI is not that hard.. its just hard to explain :)
    I have not done the tutorial.. so bare with me..
    the errors your seeing can mean many things.. but above all else it means that you've got a problem either connecting or communicating to the rmi_server you created or the rmiRegistry
    My suggestion is this...
    First try a simpler application.
    How about a simple server that returns a string
    and sets a string.
    then a client app that can read the server string and envoke a change to it...
    This will show the basics involved.
    let me know your toughts..
    j.

  • Error when compiling the J2ee tutorial source files on win2k professional

    Hi,
    Could you help me?
    I'm trying to complete the j2ee tutorial.
    I have downloaded the example code, J2EE Sdk, J2SE and Ant from the web site (these files� name are: j2ee-1_3-doc-tutorial-draft3.zip, j2sdkee-1_3_01-win.exe, j2sdk-1_3_1_01-win.exe, jakarta-ant-1.3-bin.zip) and installed the �j2sdkee-1_3_01-win.exe, j2sdk-1_3_1_01-win.exe� and unzipped �j2ee-1_3-doc-tutorial-draft3.zip, jakarta-ant-1.3-bin.zip� to their default subdirectory.( jdk1.3.1_01,
    j2sdkee1.3,jakarta-ant-1.3)
    According to instructions, I have set the Environment Variables as the below:
    ANT_HOME=c:\jakarta-ant-1.3
    CLASSPATH=c:\sybtools\ASEP\Monclass.zip;c:\sybtools\ASEP\3pclass.zip;c:\program files\microsoft sql server 2000 jdbc\lib\mssqlserver.jar;c:\program files\microsoft sql server 2000 jdbc\lib\msbase.jar;c:\program files\microsoft sql server 2000 jdbc\lib\msutil.jar;c:\orcle\ora81\jdbc\lib\classes12.zip; c:\orcle\ora81\jdbc\lib\nls_charset12.zip;c:\program files\oracle\jdevelop 3.2.3\jdbc\lib\oracle8.1.7\classes12.zip;c:\j2sdkee1.3\lib\j2ee.jar;c:\jdk1.3.1_01\lib\tools.jar;c:\jdk1.3.1_01\lib\classes.zip;c:\jakarta-ant-1.3\lib\ant.jar
    HOMEPATH=\
    J2EE_HOME=c:\j2sdkee1.3
    JAVA_HOME=c:\jdk1.3.1_01
    OS=Windows_NT
    Os2LibPath=C:\WINNT\system32\os2\dll;
    Path=C:\oracle\ora81\bin;C:\oracle\ora81\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.7\bin;C:\PROGRA~1\REFLEC~1;C:\Program Files\Reflection;C:\WINNT\SYSTEM32;C:\WINNT;C:\WINNT\SYSTEM32\WBEM;C:\DMI\WIN32\BIN;C:\Program Files\Symantec\pcAnywhere\;C:\MSSQL7\BINN;C:\Sybase\DLL;C:\Sybase\BIN;C:\sybtools\WIN32;C:\sybtools\ASEP;c:\oracle\ora81\jdbc\lib;c:\j2sdkee1.3\bin;c:\jdk1.3.1_01\bin;c:\jakarta-ant-1.3\bin
    SystemRoot=C:\WINNT
    windir=C:\WINNT

    After finishing the above actions, I have started the j2ee server and deploytools successfully. But when I executed the following command( ANT CONVERTER ) under the appointed subdirectory, the error occurred.
    The information is
    �Exception in thread �main� java.lang.NoClassDefFoundError: files\Microsoft �.
    Looking forward to the answer!
    Arthur Ward
    2001-12-21

    by the way, after checking the ant_home\bin\ant.bat(see bellow)
    -------end quote----
    @echo off
    if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat"
    if not "%OS%"=="Windows_NT" goto win9xStart
    :winNTStart
    @setlocal
    rem %~dp0 is name of current script under NT
    set DEFAULT_ANT_HOME=%~dp0
    rem : operator works similar to make : operator
    set DEFAULT_ANT_HOME=%DEFAULT_ANT_HOME:\bin\=%
    if %ANT_HOME%a==a set ANT_HOME=%DEFAULT_ANT_HOME%
    set DEFAULT_ANT_HOME=
    rem On NT/2K grab all arguments at once
    set ANT_CMD_LINE_ARGS=%*
    goto doneStart
    :win9xStart
    rem Slurp the command line arguments. This loop allows for an unlimited number of
    rem agruments (up to the command line limit, anyway).
    set ANT_CMD_LINE_ARGS=
    :setupArgs
    if %1a==a goto doneStart
    set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
    shift
    goto setupArgs
    :doneStart
    rem This label provides a place for the argument list loop to break out
    rem and for NT handling to skip to.
    rem find ANT_HOME
    if not "%ANT_HOME%"=="" goto checkJava
    rem check for ant in Program Files on system drive
    if not exist "%SystemDrive%\Program Files\ant" goto checkSystemDrive
    set ANT_HOME=%SystemDrive%\Program Files\ant
    goto checkJava
    :checkSystemDrive
    rem check for ant in root directory of system drive
    if not exist "%SystemDrive%\ant" goto noAntHome
    set ANT_HOME=%SystemDrive%\ant
    goto checkJava
    :noAntHome
    echo ANT_HOME is not set and ant could not be located. Please set ANT_HOME.
    goto end
    :checkJava
    set _JAVACMD=%JAVACMD%
    set LOCALCLASSPATH=%CLASSPATH%
    for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" "%%i"
    if "%JAVA_HOME%" == "" goto noJavaHome
    if "%_JAVACMD%" == "" set JAVACMD=%JAVAHOME%\bin\java
    if exist "%JAVA_HOME%\lib\tools.jar" call "%ANT_HOME%\bin\lcp.bat" "%JAVA_HOME%\lib\tools.jar"
    if exist "%JAVA_HOME%\lib\classes.zip" call "%ANT_HOME%\bin\lcp.bat"
    "%JAVA_HOME%\lib\classes.zip"
    goto checkJikes
    :noJavaHome
    if "%_JAVACMD%" == "" set _JAVACMD=java
    echo.
    echo Warning: JAVA_HOME environment variable is not set.
    echo If build fails because sun.* classes could not be found
    echo you will need to set the JAVA_HOME environment variable
    echo to the installation directory of java.
    echo.
    :checkJikes
    if not "%JIKESPATH%" == "" goto runAntWithJikes
    :runAnt
    %_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS%
    org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
    goto end
    :runAntWithJikes
    %_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" -Djikes.class.path=%JIKESPATH%
    %ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
    :end
    set LOCALCLASSPATH=
    set _JAVACMD=
    set ANT_CMD_LINE_ARGS=
    if not "%OS%"=="Windows_NT" goto mainEnd
    :winNTend
    @endlocal
    -------end quote----
    i found something is wrong with the sentence in ":runAnt".
    --------quote-----
    %_JAVACMD% -classpath %LOCALCLASSPATH% -Dant.home="%ANT_HOME%" %ANT_OPTS%
    org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%
    --------end quote-----
    No value was set for %ANT_OPTS% and %ANT_CMD_LINE_ARGS%

  • Error when compiling the J2ee tutorial source files

    HI,
    I have installed ant, j2ee tomcat-3.2.2 and jdk1.3 and when i tried to compile the source file downloaded from java.sun by
    ant converter, it prompted
    "Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/main"
    I am running it on win98 with the autoexec.bat containing the followings:
    set J2EE_HOME=c:\j2sdkee1.3
    set JAVA_HOME=c:\jdk1.3.1
    set ANT_HOME=c:\jakarta-ant-1.3
    set TOMCAT_HOME=c:\tomcat\jakarta-tomcat-3.2.2
    set classpath=;.;c:\jdk1.3.1\jre\lib\rt.jar;c:\j2sdkee1.3\lib\j2ee.jar;c:\jaxp\xalan.jar;c:\jaxp\crimson.jar;c:\jaxp\jaxp.jar;c:\C:\jakarta-ant-1.3\lib\ant.jar;C:\jakarta-ant-1.3\lib\jaxp.jar;C:\jakarta-ant-1.3\lib\parser.jar
    PATH=%PATH%;"C:\Program Files\Mts";C:\PROGRA~1\ULTRAE~1;c:\jdk1.3.1\bin;c:\j2sdkee1.3\bin;c:\jakarta-ant-1.3\bin;C:\PROGRA~1\MICROS~4\80\TOOLS\BINN
    Really thx for help !!!!

    Hi.
    I am compiling the sample converter.ear downloaded from
    the j2ee tutorial bundle form java.sun. I am using jakarta-ant-1.4alpha-bin.zip downloaded from jakarta
    oh..yes it should be org.apache.tools.ant.Main ....sorryfor typo.....
    look forward to any helpful reply

  • J2ee Tutorial #4 problem - FailedLoginException

    I am new to enterprise beans, and I am going through the j2ee tutorial. When working on lesson 4 - a simple message bean, I receive the following message after submitting the initail form:
    javax.servlet.ServletException: Could not initialize due to javax.security.auth.login.FailedLoginException: Password Incorrect
         at bonus.controllers.BonusCalculationServlet.init(BonusCalculationServlet.java:71)
         at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:368)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
         at java.lang.Thread.run(Thread.java:536)
    This appears to be a simple permissions problem, but I can not figure out where to configure these permissions. Can anyone help me?
    TIA,
    Chad

    Easy solution that I overlooked:
    When setting the ResourceRefs for the BonusCalculationServlet, a user name and password must be specified. The generic username and password can be found in the auth.properties file in <install location>\config\auth.properties. In my specific case, they were the generic values from the j2ee install, guest/guest123.
    -Chad

  • J2ee tutorial bookstore2 example - again

    Folks,
    I've been trying to run the bookstore2 example of the j2ee tutorial.
    When I click on the start shopping link nothing happens.
    I found this in the server.log file
    [#|2005-05-11T11:26:22.353+0100|WARNING|sun-appserver-pe8.1|javax.enterprise.system.stream.err|_ThreadID=18;|
    org.apache.jasper.JasperException: /bookcatalog.jsp(39,2) The end tag "</c:forEach" is unbalanced
         at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:43)
    I have tried to fix this and redeploy the application but I continue to get the same error. Obviously I am not deploying this correctly. Can someone tell me the steps involved? Thanks?
    Here is the offending code.
    <c:if test="${!empty param.Add}">
    <c:set var="bid" value="${param.Add}"/>
    <jsp:setProperty name="bookDB" property="bookId" value="${bid}" />
    <c:set var="addedBook" value="${bookDB.bookDetails}" />
    <p><h3><font color="red" size="+2">
    <fmt:message key="CartAdded1"/> <em>${addedBook.title}</em> <fmt:message key="CartAdded2"/></font></h3>
    </c:forEach>
    </c:if>

    Somehow you accidentally added an incorrect tag. That section should be:
    <c:if test="${!empty param.Add}">
    <c:set var="bid" value="${param.Add}"/>
    <jsp:setProperty name="bookDB" property="bookId" value="${bid}" />
    <c:set var="addedBook" value="${bookDB.bookDetails}" />
    <p><h3><font color="red" size="+2">
    <fmt:message key="CartAdded1"/> <em>${addedBook.title}</em> <fmt:message key
    ="CartAdded2"/></font></h3>
    </c:if>
    That is, remove the </c:forEach>.
    -Ian Evans

  • J2EE tutorial setup help

    I know this has come up before in the forum, but the ansers didnt solve my problem.
    I have been trying to deploy and run the bookstore examples for the J2EE tutorial online. I would be extremely grateful if someone out there who has setup and run these tutorials on the Windows platform could let me know exactly what environment variables etc. I should be configuring.
    I have added JAVA_HOME and J2EE_HOME to the environemt variables, pointing to the java sdk and J2EE application server installation ocation respectively.
    I also tried setting the j2ee.home and j2ee.tutorial.home attributes in the build.propoperties file, but I cant get it all to work.
    Please tell me the environment variables, system variables (if different), CLASSPATH, and any other setup I need to do.
    C.

    Sorry, I was at work earlier and couldnt get all the info.
    I have set the following environment variables:
    JAVA_HOME = C:\j2sdk1.4.2_04
    J2EE_HOME = C:\Sun\AppServer
    CLASSPATH = .;D:\Packages;%J2EE_HOME%\lib\j2ee.jarI keep my own packages in the D:\Packages folder.
    I came across some tutorial info that says to also add the j2ee.home and j2ee.tutorial.home properties in the file <INSTALL>j2seetutorial14/examles/common/build.properties. This looks like the following:
    j2ee.home=C:\\Sun\\AppServer
    j2ee.tutorial.home=D:\\J2EE\\j2eetutorial14
    sunone.home=${j2ee.home}
    admin.password.file=${j2ee.tutorial.home}/examples/common/admin-password.txt
    admin.host=localhost
    admin.user=admin
    admin.port=4848
    https.port=8181
    domain.resources="domain.resources"
    domain.resources.port=8080
    db.root=${j2ee.home}/pointbase
    db.driver=com.pointbase.jdbc.jdbcUniversalDriver
    db.host=localhost
    db.port=9092
    db.sid=sun-appserv-samples
    db.url=jdbc:pointbase:server://${db.host}:${db.port}/${db.sid}
    db.user=pbpublic
    db.pwd=pbpublic
    url.prop=DatabaseName
    ds.class=com.pointbase.jdbc.jdbcDataSource
    db.jvmargs=-ms16m -mx32m Note that the line breaks don't show in this browser, or in notepad when I edited it - got the 'square' character when I opened that, but I think the content is right.
    I also tried setting the username above and the username in the file admin-passport., but that didnt work either.

  • Run client execution problem  when running Sun J2EE tutorial example

    Hi,
    I'm trying to run the Sun J2EE tutorial example, CartApp.
    When come to run the client application I got the following error:
    The command:
    E:\Dev\src\J2EE_J2EE_tutorial\examples\ears>runclient -client CarApp.ear -name CartClient -textauth
    The error:
    Application threw an exception:java.io.IOException: CarApp.ear does not exist
    The deployment complete without error.
    I tried to the the APPCPATH to :
    set APPCPATH=E:\Dev\src\J2EE_J2EE_tutorial\examples\ears\CartAppClient.jar
    set APPCPATH=CartAppClient.jar
    On both set, it gave the same error above.
    Did someone known the problem I have ?
    Thnaks

    hi ,
    I think u have given other disply name to your J2EE client ,
    Anyway check disply name of J2EE client through deploytool.
    u have to use that display name to access the j2ee client .
    suppose ur j2ee client displyname is testclient, u can use:
    runclient -client ConverterApp.ear -name testclient
    hope this will help u,
    babu.

  • Mappingtool generates bad DDL for sybase (J2ee tutorial)

    Running the mappingtool on the J2EE tutorial app (3.0.0RC1) generates bad
    DDL for sybase. It's trying to create a table with a column of type
    "IndexName":
    C:\devtools\kodo\samples\j2ee>mappingtool -a refresh package.jdo
    0 INFO [main] kodo.Tool - Mapping tool running on type "class
    samples.j2ee.Car" with action "refresh".
    0 INFO [main] kodo.Tool - The tool is now reading existing schema
    information; this process may take some time. En
    able the kodo.jdbc.Schema logging category to see messages about schema
    data. Also see the -readSchema tool flag.
    3716 INFO [main] kodo.Tool - Recording mapping and schema changes.
    Exception in thread "main" kodo.util.FatalException:
    com.solarmetric.jdbc.ReportingSQLException: Can't specify a length
    or scale on type 'IndexName'.
    {stmnt 7576378: CREATE TABLE CAR (COLOR IndexName(255) NULL, JDOCLASS
    IndexName(255) NULL, JDOID NUMERIC(38) NOT NULL,
    JDOVERSION INT NULL, MAKE IndexName(255) NULL, MODEL IndexName(255) NULL,
    YEAR0 IndexName(255) NULL, UNQ_INDEX NUMERIC I
    DENTITY UNIQUE, CONSTRAINT P_CAR PRIMARY KEY (JDOID))} [code=2716,
    state=ZZZZZ]
    NestedThrowables:
    com.solarmetric.jdbc.ReportingSQLException: Can't specify a length or
    scale on type 'IndexName'.
    {stmnt 7576378: CREATE TABLE CAR (COLOR IndexName(255) NULL, JDOCLASS
    IndexName(255) NULL, JDOID NUMERIC(38) NOT NULL,
    JDOVERSION INT NULL, MAKE IndexName(255) NULL, MODEL IndexName(255) NULL,
    YEAR0 IndexName(255) NULL, UNQ_INDEX NUMERIC I
    DENTITY UNIQUE, CONSTRAINT P_CAR PRIMARY KEY (JDOID))} [code=2716,
    state=ZZZZZ]
    at kodo.jdbc.meta.MappingTool.record(MappingTool.java:431)
    at kodo.jdbc.meta.MappingTool.run(MappingTool.java:790)
    at kodo.jdbc.meta.MappingTool.main(MappingTool.java:729)
    NestedThrowablesStackTrace:
    com.solarmetric.jdbc.ReportingSQLException: Can't specify a length or
    scale on type 'IndexName'.
    {stmnt 7576378: CREATE TABLE CAR (COLOR IndexName(255) NULL, JDOCLASS
    IndexName(255) NULL, JDOID NUMERIC(38) NOT NULL,
    JDOVERSION INT NULL, MAKE IndexName(255) NULL, MODEL IndexName(255) NULL,
    YEAR0 IndexName(255) NULL, UNQ_INDEX NUMERIC I
    DENTITY UNIQUE, CONSTRAINT P_CAR PRIMARY KEY (JDOID))} [code=2716,
    state=ZZZZZ]
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:67)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator.access$400(LoggingConnectionDecorator.java:19)
    at
    com.solarmetric.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingStatement.executeUpdate(LoggingConne
    ctionDecorator.java:506)
    at
    com.solarmetric.jdbc.DelegatingStatement.executeUpdate(DelegatingStatement.java:125)
    at kodo.jdbc.schema.SchemaTool.executeSQL(SchemaTool.java:1042)
    at kodo.jdbc.schema.SchemaTool.createTable(SchemaTool.java:803)
    at kodo.jdbc.schema.SchemaTool.add(SchemaTool.java:334)
    at kodo.jdbc.schema.SchemaTool.add(SchemaTool.java:186)
    at kodo.jdbc.meta.MappingTool.record(MappingTool.java:364)
    at kodo.jdbc.meta.MappingTool.run(MappingTool.java:790)
    at kodo.jdbc.meta.MappingTool.main(MappingTool.java:729)
    Anyone else seen this? It works ok with Hypersonic (though i can't get the
    tutorial app to run with hypersonic - see my earlier post).
    Alex.

    Some bugs in RCs sometimes don't make it into Bugzilla as it is a
    release candidate and not production quality.
    I would reocmmend upgrading as it fixes a number of major bug fixes and
    you should be able to use the same eval key.
    Alex Robbins wrote:
    Abe White wrote:
    I should also have asked: what JDBC driver are you using?Hi Abe,
    I haven't tried with RC2 - has this been fixed in RC2? I didn't find this
    bug on bugzilla.
    I'm using Sybase JConnect JDBC driver (com.sybase.jdbc2.jdbc.SybDriver in
    jconn2.jar) - looks like this is the version:
    jConnect (TM) for JDBC(TM)/5.5(Build 25008)/P/JDK12/Tue May 29 14:37:46
    2001
    Should I upgrade from RC1 to RC2, and if so, can I continue to use the
    same eval license key or can i download a new one?
    thanks,
    alex
    Stephen Kim
    [email protected]
    SolarMetric, Inc.
    http://www.solarmetric.com

  • J2EE Tutorial - Application Client

    Hi,
    I've been trying to work through the J2EE Tutorial and I've come to a complete standstill at the EJB section. I have a few problems.
    First of all my deployment tool does not have a JNDI Names Tag as shown in the Mapping The Enterprize Beans Section (Chapter 19). How do I do this?
    I am getting the following error when I try to run my J2EE Application Client.
    Caught an unexpected exception!
    java.lang.ClassCastException
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableR
    emoteObject.java:229)
    at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)
    at ConverterClient.main(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.sun.enterprise.util.Utility.invokeApplicationMain(Utility.java:23
    7)
    at com.sun.enterprise.appclient.Main.<init>(Main.java:425)
    at com.sun.enterprise.appclient.Main.main(Main.java:97)
    Caused by: java.lang.ClassCastException
    at com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject.narrow(PortableR
    emoteObject.java:212)
    Finally, can anybody recommend a good tutorial or book as I think the J2EE tutorial is unusually bad.

    http://docs.sun.com/source/819-0079/dgacc.html
    Finally, can anybody recommend a good tutorial or
    book as I think the J2EE tutorial is unusually bad.Search for Mastering EJB by Ed Roman. It should give a better understanding.

  • J2EE Tutorial sample codes question

    Hi there,
    I just started to catchup some tutorials' sample codes using J2EE tutorial, what happened when i tried to compile the first example called "Converter" EJB, using the command:
    ant converteri get all the files compiled except the ConverterClient.java which leads to some errors:
    ConverterClient.java:15: '.' expected
    import Converter;
    ^
    ConverterClient.java:16: '.' expected
    import ConverterHome;
    ^
    ConverterClient.java:26: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    ConverterHome home =
    ^
    ConverterClient.java:27: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    (ConverterHome)PortableRemoteObject.narrow(objref,
    ^
    ConverterClient.java:28: cannot resolve symbol
    symbol : class ConverterHome
    location: class ConverterClient
    ConverterHome.class);
    ^
    ConverterClient.java:30: cannot resolve symbol
    symbol : class Converter
    location: class ConverterClient
    Converter currencyConverter = home.create();
    ^
    6 errors
    whats wrong actually? I also tried to put the ConverterClient.java into another directory, after compiled the rest, then i copied the file into the build folder and compile it manually, yet still getting this error. Please help!
    Thanks
    Neo

    I think you didn't read my question properly, i had said that i manually copied the ConverterClient to the other class together as it needs;
    This is the code for ConverterClient:
    * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
    * This software is the proprietary information of Sun Microsystems, Inc. 
    * Use is subject to license terms.
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    import Converter;
    import ConverterHome;
    public class ConverterClient {
       public static void main(String[] args) {
           try {
               Context initial = new InitialContext();
               Context myEnv = (Context)initial.lookup("java:comp/env");
               Object objref = myEnv.lookup("ejb/SimpleConverter");
               ConverterHome home =
                   (ConverterHome)PortableRemoteObject.narrow(objref,
                                                ConverterHome.class);
               Converter currencyConverter = home.create();
               BigDecimal param = new BigDecimal ("100.00");
               BigDecimal amount = currencyConverter.dollarToYen(param);
               System.out.println(amount);
               amount = currencyConverter.yenToEuro(param);
               System.out.println(amount);
               System.exit(0);
           } catch (Exception ex) {
               System.err.println("Caught an unexpected exception!");
               ex.printStackTrace();
    } also please try the tutorial before answering...TQ :D

  • J2EE  tutorial and derby

    Hello,
    I am trying to use J2EE tutorial to learn about the technology. I am having trouble starting the Derby database. When I start Derby , I get the following message logged into db.log file
    Server is ready to accept connections on port 1527.
    Could not listen on port 1527 on host 0.0.0.0.
    Because of this problem , I can not create or populate database.
    The application Server seam to be started properly.
    Can anybody help me with this problem?
    Thanks.

    Have you tried to start Derby from the commandline using the instructions contained in the Derby documentation? It has worked for me.

  • J2EE Tutorial

    I need do make work the examples of J2EE Tutorial. But, when i execute c:\j2eetutotial\examples\ant all happen following error : Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/Main.
    What I do will make to try ??
    Tanks a lot.
    Obs.: Sorry, but my English is very bad !!!
    S�rgio
    Bauru - SP - Brasil
    [email protected]

    check your classpath configuration
    and if it is not included .(current directory) then
    add . to classpath
    bye

Maybe you are looking for

  • I need a select query

    I have a dataset like below in two columns ( col1,col2 in table Mytable) A | ab A | cd A | ef B | xl B | ik E | 23 E | op C | tk I need a select query which will return first set of every group which I ask for . For example, if I ask for data for A ,

  • Ipod corrupted - cannot be restored

    My iPod got stuck on "do not disconnect." It would not eject properly (I heard this can be a problem with Windows Vista but I update it frequently, so I should have already had the update that fixes this). It does not register on Itunes and is stuck.

  • Restrict Delta Load of Service orders in CRM

    Hi, <u>For the Techie guys in CRM:</u> Can anybody please let me know how to Restrict the Delta load of Service Orders coming in CRM version 4.0 . The Bdoc type coming is CRM_SO_DMBDOC. Thanks, Shobhit

  • Where did my project go??

    Hi everyone, I have been importing my videos from digital camcorder into iMovie '08 without any problems. With each tape it asks me 4 a project name and if I would like to continue from an old project or a new one. I always say new. Anyway, I had an

  • Infuriating IMAP problem in Mail - Help!

    I have just starting hooking up Mail with our company's IMAP server. I need to do this since I use a desktop and a laptop, both of which need to have exactly the same e-mail on them, including flagged items, sent etc. It seems to work OK except for o