Build JSP-structure problem in JspC

Hi,
I am trying to deploy my project and I need to compile JSPs and create WEB-INF directory and web.xml file.
My build environment:
Win 2000
Java 1.4.1
Tomcat 4.0.3
My problem is as follows:
I use an ANT script :
<java classname="org.apache.jasper.JspC" classpath="${jsp.classpath}" fork="yes" failonerror="yes">
<jvmarg value="-Dcatalina.home=${catalina.home}"/>
<arg line="-d ${jsp.path.precompile.src} -uriroot ${jsp.path.webapp} -webxml ${jsp.path.precompile}\web.xml -webapp ${jsp.path.webapp}"/>
</java>
I have an an compile this JSP structure:
-main_folder
- folder_1
- folder_2
- folder_2_1
- folder_3
- folder_3_1
- folder_3_1_1
but every time I start the script, the JSPs are compiled to JAVA in one default package. But I have in some subfolders the same JSPa like in the other folders ("index.jsp, error_page.jsp") and after compiling to JAVA this JSP are lost, because are overwritten from the other ...
In the old Tomcat 3.2 was OK!
I don't know how to tell to the JspC to use the folder structure as a package definition for the JAVA files.
Please help me !!!

Tis a defect in the way jasper/ant handles subdirectories in the packages that needs to be resolved. If you have your jsp files in a flat directory, you're fine. If you don't, you'll need this bug resolved: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4750
Please feel free to vote for it. :)
A workaround is to create a separate ant <jspc> task for each directory and subdirectory.

Similar Messages

  • Re: [iPlanet-JATO] sp3 jsp compiler problem

    Weiguo,
    First, Matt is correct, the regular expression tool is perfect for general text
    substitution situations, and as a completely independent tool its use is not
    restricted to migration situations (or file types for that matter).
    Second, I sympathize with the unfortunate trouble you are experiencing due to
    Jasper's (perhaps more strict) compilation, but in what way did the iMT
    automated translation contribute to these inconsistencies that you cited?
    1. Changed the case of the tag attribute to be the same as what's
    defined in tld.
    example: changed OnClick to onClick
    The iMT does not generate any OnClick or onClick clauses per se. In a
    translation situation, the only way "OnClick" would have been introduced was if
    it had been part of the pre-existing project's "extraHTML" (which was written
    by the original customer and just passed through unchanged by the iMT) or if it
    was added manually by the post-migration developer.
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be
    similar to the OnClick situation described above?
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    Again, the content tag would never have been generated by the iMT. There was no
    equivalent in the NetDynamics world, so any content tags in your code must have
    been introduced by your developers manually. Its a shame that jasper is so
    particular, but the iMT could not help you out here even if we wanted to. The
    constants that are used by the iMT are defined in
    com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can see, the
    only situation of a closing tag with any space in it is
    public static final String CLOSE_EMPTY_ELEMENT = " />";
    But that should not cause the type of problem you are referring to.
    Mike
    ----- Original Message -----
    From: Matthew Stevens
    Sent: Thursday, September 06, 2001 10:16 AM
    Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
    Weiguo,
    Others will chime in for sure...I would highly recommend the Regex Tool from
    the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
    posted to the group (even recently) on directions and advantages of creating
    your own RULES (rules file) in XML for arbitary batch processing of source.
    matt
    -----Original Message-----
    From: weiguo.wang@b...
    [mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174144234026000079108238073194105057099246073154180137239239223019162">weiguo.wang@b...</a>]
    Sent: Thursday, September 06, 2001 12:25 PM
    Subject: [iPlanet-JATO] sp3 jsp compiler problem
    Matt/Mike/Todd,
    We are trying to migrate to sp3 right now, but have had a lot of
    issues with the new jasper compiler.
    The following workaround has been employed to solve the issues:
    1. Changed the case of the tag attribute to be the same as what's
    defined in tld.
    example: changed OnClick to onClick
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    As I see it, we have two options to go about solving this problem:
    1. Write a script which will iterate through all the jsp files and
    call jspc on them. Fix the errors manually when jspc fails. Jspc will
    flag the line number where an error occurs.
    2. Write a utility which scans the jsp files and fix the errors when
    they are encountered. We should define what's an error and how to
    correct it. It's best if we combine this with solution 1 since we
    might miss an error condition.
    Actually, there might be another option, which is seeking help from
    you guys since you have better understanding of JATO and iAS. Can you
    do anything to help us?
    We would be happy to hear your thoughts.
    At last, I would like to suggest modifying the moko tool so that
    these rules are enforced and the generated JSPs work with the new
    compiler. This is for the benefit of any new migration projects.
    Thanks a lot.
    Weiguo
    [email protected]
    Choose from 1000s of job listings!
    [email protected]
    [Non-text portions of this message have been removed]

    Thanks a lot Matt and Mike for your prompt replies.
    I agree completely that iMT doesn't introduce the inconsistencies.
    About the three cases I mentioned, the third one happens only in
    manually created JSPs. So it has nothing to do with iMT. The first
    two are mainly due to the existing HTML code, as you rightly pointed
    out.
    The reason I made the suggestion is since we know that case 1 and 2
    won't pass the japser compiler in sp3, we have to do something about
    it. The best place to do this, in my mind, is iMT. Of course, there
    might be some twists that make it impossible or difficult to do this
    kind of case manipulation or attribute discard.
    Weiguo
    --- In iPlanet-JATO@y..., "Mike Frisino" <Michael.Frisino@S...> wrote:
    Weiguo,
    First, Matt is correct, the regular expression tool is perfect for general text substitution situations, and as a completely independent
    tool its use is not restricted to migration situations (or file types
    for that matter).
    >
    Second, I sympathize with the unfortunate trouble you are experiencing due to Jasper's (perhaps more strict) compilation, but
    in what way did the iMT automated translation contribute to these
    inconsistencies that you cited?
    >
    1. Changed the case of the tag attribute to be the same as what's
    defined in tld.
    example: changed OnClick to onClick
    The iMT does not generate any OnClick or onClick clauses per se. In a translation situation, the only way "OnClick" would have been
    introduced was if it had been part of the pre-existing
    project's "extraHTML" (which was written by the original customer and
    just passed through unchanged by the iMT) or if it was added manually
    by the post-migration developer.
    >
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.Can you give soem examples? Is there a definite pattern? Again, this might be similar to the OnClick situation described above?
    >
    >
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    Again, the content tag would never have been generated by the iMT. There was no equivalent in the NetDynamics world, so any content tags
    in your code must have been introduced by your developers manually.
    Its a shame that jasper is so particular, but the iMT could not help
    you out here even if we wanted to. The constants that are used by the
    iMT are defined in
    com.iplanet.moko.jsp.convert.JspConversionConstants. From what I can
    see, the only situation of a closing tag with any space in it is
    public static final String CLOSE_EMPTY_ELEMENT = " />";
    But that should not cause the type of problem you are referring to.
    Mike
    ----- Original Message -----
    From: Matthew Stevens
    Sent: Thursday, September 06, 2001 10:16 AM
    Subject: RE: [iPlanet-JATO] sp3 jsp compiler problem
    Weiguo,
    Others will chime in for sure...I would highly recommend the Regex Tool from
    the iMT 1.1.1 for tackling this type of problem. Mike, Todd and myself have
    posted to the group (even recently) on directions and advantages of creating
    your own RULES (rules file) in XML for arbitary batch processing of source.
    >
    matt
    -----Original Message-----
    From: weiguo.wang@b...
    [mailto:<a href="/group/SunONE-JATO/post?protectID=125056020108194190033029175101192165174048139046">weiguo.wang@b...</a>]
    Sent: Thursday, September 06, 2001 12:25 PM
    Subject: [iPlanet-JATO] sp3 jsp compiler problem
    Matt/Mike/Todd,
    We are trying to migrate to sp3 right now, but have had a lot of
    issues with the new jasper compiler.
    The following workaround has been employed to solve the issues:
    1. Changed the case of the tag attribute to be the same as
    what's
    defined in tld.
    example: changed OnClick to onClick
    2. Removed attributes which are not defined in tld.
    example: escape attribute only defined in three tags
    but in some pages, it's used although it's not defined as an
    attribute
    of certain tags. The jasper compiler doesn't like it.
    3. In an end tag, there can't be any space.
    example: </content > doesn't work. </content> works.
    As I see it, we have two options to go about solving this problem:
    >>
    1. Write a script which will iterate through all the jsp files and
    call jspc on them. Fix the errors manually when jspc fails. Jspc will
    flag the line number where an error occurs.
    2. Write a utility which scans the jsp files and fix the errors when
    they are encountered. We should define what's an error and how to
    correct it. It's best if we combine this with solution 1 since we
    might miss an error condition.
    Actually, there might be another option, which is seeking help from
    you guys since you have better understanding of JATO and iAS. Can you
    do anything to help us?
    We would be happy to hear your thoughts.
    At last, I would like to suggest modifying the moko tool so that
    these rules are enforced and the generated JSPs work with the new
    compiler. This is for the benefit of any new migration projects.
    Thanks a lot.
    Weiguo
    [email protected]
    Choose from 1000s of job listings!
    [email protected]
    Service.
    >
    >
    >
    [Non-text portions of this message have been removed]

  • Flash Builder 4 trace problem.....

    Flash Builder 4 trace problem.....
    Hi,
    I got the trace-classical problem:
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD flash.display::Sprite$cinit ()
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD flash.display::MovieClip$cinit ()
    267 AVMINF: MTHD PreloaderDisplay$cinit ()
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD mx.managers::SystemManager$cinit ()
    267 AVMINF: MTHD global$init ()
    267 AVMINF: MTHD flash.utils::Dictionary$cinit ()
    267 AVMINF: MTHD flash.utils::Dictionary ()
    267 AVMINF: MTHD flash.utils::Dictionary/init ()
    79 AVMINF: MTHD flash.display::Loader/get contentLoaderInfo ()
    379 AVMINF: MTHD flash.events::EventDispatcher/addEventListener ()
    379 AVMINF: MTHD flash.display::Loader/loadBytes ()
    380 AVMINF: MTHD flash.display::Loader/_buildLoaderContext ()
    380 AVMINF: MTHD flash.display::Loader/_getJPEGLoaderContextdeblockingfilter ()
    380 AVMINF: MTHD flash.display::Loader/_loadBytes ()
    More information:
    *I did read many answer already about the mm.cfg file, but I don't have that file, i don't even got firefox...
    *That is happens only when i am using flash player 10.2 + (IT DOES NOT HAPPENS WITH FLASH PLAYER 10.1 - )
    Please help,
    Thanks for advance.
    Esteban

    No.
    Working only with Flash Builder 4 to compile, but you can switch the flash player versions anyway.
    And when my flash version is up to 10.1 the trace console commes crazy, and brokes the debbug session.
    But never mind, i did kill the OS already in order to keep working.

  • IMac (March 2009) - Invalid Node Structure problem

    Hi All
    I was using my iMac as normal yesterday, when suddenly the system ground to a halt (something I never seen since using OS X). As I had work to do, after about an hour, I restarted, expecting it to be an app misbehaving or something straight forward, but on restart the same thing happened almost straight away.
    So, I restarted again, only for the iMac to get stuck on the blue screen which follows the grey 'cog' screen. After looking through these discussions, and some other Mac forums, I booted from the installer disk, tried to run Disk Utility, which found issues and couldn't repair the disk.
    I then tried Safe-User mode and fsck, which reported the aforementioned Invalid Node Structure problem. After checking a few more forums, I thought I would try to Erase the disk and reinstall Mac OS. I restored from my Time Machine backup, and finally got it to start, but the system moved at a snail's pace, and wouldn't open any apps or files.
    I've tried again with fsck, and also fsck_hfs -r /dev/disk0s2 but all I get is the same error message:
    disk0s2: I/O error.
    Invalid Node Structure
    (4, 38403)
    ** Volume check failed.
    /dev/rdisk0s2 (hfs) EXITED WITH SIGNAL 8
    So, does anyone know if there is anything I can do to save the iMac? Or does it need a new HD? It is my primary work computer, so I really need to get it back, and after buying it in the UK, am now in France for 6 weeks, so it's difficult for me to take it to an Apple specialist.
    Any help would be greatly appreciated, thanks in advance,
    Daniel

    As the last user stated, Disk Warrior maybe able to correct it, however if you search the net, you will see there are more than one user with this problem. I had the same problem, however, my machine is out of warranty, It started like you are saying, I RAN disk warrior which corrected the problem long enough to boot the system. In a matter of 10 minutes or so, the system started pausing (apps hung, but in a matter of seconds recovered). I was checking the disk with fsck_hfs and fsck while booted from a USB drive with a maintenance install of 10.5.6. After running fsck the 5th time with different options suggested from the internet, I rebooted with my disk warrior DVD only to find the drive NOT mounted, Drive utility see's it (even can attempt to run disk repair, but it locks up the system when trying this). Disk Warrior doesn't even see the disk to run a directory repair, although in the "check s.m.a.r.t status it sees it as a sata device, and SAYS ITS NORMAL).
    Since my iMac was out of warranty, I followed the online instructions to replace the hard drive (not too difficult) and everything is fine now.
    The old drive still wont mount, but another utility I bought (data rescue II) has been able to quick scan it and access all the data, even though it wont clear a fsck fsck_hfs or disk warrior, anyways, get it back while you can, IT IS THE hard drive itself, and lots of other iMac users online with the same issue (can you say WHY is my iMac SOOO HOT on the apple in the back (right where the drive is and not sufficient cooling in my opinion, but hey, some people might want to lay their computers face down and fry eggs on the it or something... ))
    -SD

  • Flex/cold fusion wizard & Visual Query builder has a problem

    has anybody tried the cold fusion / flex application wizard in flex 3?
    to get there follow these menu choices:
    file     new     other     cold fusion wizards     coldfusion / flex application wizard
    I previously installed cf8 and the rds query viewer works fine.
    i simply choose from the following menus:
    window     other views...     Cold Fusion     RDS dataview
    i was initially prompted for the rds password which i entered.
    in the RDS Dataview, I can see the tables, columns, and data for all my existing datasources.
    Unfortunately, when I use the COld Fusion/Flex application wizard,
    I get to the page layout and design screen, add a page with the name artists, choose page type master,  and click the Edit master page button.
    Nothing happens when I click the Edit Master Page button.  I followed the cf/flex tutorial exactly but there is no query builder.
    I dont know if this is related but in the RDS query viewer, the Visual Query BUilder doesn't work.
    I think this may be the problem (the visual query builder has a problem)
    Unfortunately, how do I fix this problem

    already found the answer
    flex has to be run as administrator if using WIndows Vista
    simply shut down flex, right click the startup icon, choose run as administrator, and the visual query builder runs fine.
    Dont know why this occurs because you are always prompted for the rds password.
    anyway, problem solved.
    http://forums.adobe.com/message/228385#228385

  • Building tree structure

    Hi all,
    Sorry if this is a wrong place to post.
    I want to build a tree structure(or tree grid) using a table emp
    by emp table structure is id, pid, emp_name,emp_num, emp_role
    now I want to build a hierarchial tree structure where id is primary key
    and my table extends upto 4 levels like
    id--pid
    1 -- 0
    2 -- 1
    3 -- 2
    4 -- 3
    5 -- 0
    6 -- 1
    I want to build a structure some thing like
    root
    + john 2349 manager
    -mike 1234 analyst
    -andrew 1222 clerk
    +Jenn         5678   manager
    can somebody help me please....

    using standard EMP table
    SQL> select lpad(' ',3*level,' ')||ename name, empno, job
      2  from emp
      3  connect by prior empno = mgr
      4  start with mgr is null;
    NAME                                EMPNO JOB
       KING                              7839 PRESIDENT
          JONES                          7566 MANAGER
             SCOTT                       7788 ANALYST
                ADAMS                    7876 CLERK
             FORD                        7902 ANALYST
                SMITH                    7369 CLERK
          BLAKE                          7698 MANAGER
             ALLEN                       7499 SALESMAN
             WARD                        7521 SALESMAN
             MARTIN                      7654 SALESMAN
             TURNER                      7844 SALESMAN
             JAMES                       7900 CLERK
          CLARK                          7782 MANAGER
             MILLER                      7934 CLERK
    14 rows selected.Max
    http://oracleitalia.wordpress.com

  • Requirements for building jsp pages

    wht are the basic requirements for building jsp pages
    or even 4 wrkin on j2ee..
    new to j2ee and hv exp on j2se

    It's depends what OS you have:
    Windows -- IIS + Tomcat
    Linux(FreeBSD) -- Apache + Tomcat (or Resin, but I prefer Tomcat);
    Of couse you should have a text editor to edit *.jsp file :-)

  • HELP.....!!!!! Chinese jsp compilation problem.....

    Hi,
    Could someone please help on the above mentioned?
    I'm using JDeveloper 3.2.3 for my program development under Chinese windows platform. I have created a simple JSP page, which contains few static Chinese words and I have included the line
    <%@ page contentType="text/html;charset=UTF-8"%>
    at the top of the page. When I tried to compile it using encoding "UTF8" (under compiler option), the compiler gave me this error:
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
    Error: (0) sun.io.MalformedInputException.
    Btw, when I have removed the line <%@ page contentType="text/html;charset=UTF-8"%> from the page and compile, I've got this error:
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.jsp
    Warning: (0) ISO-8859-1 character set may not match project compiler setting.
    C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java
    Error: (0) malformed input character in C:\Program Files\Oracle\JDeveloper 3.2.3\myhtml\Chinese_html\ChineseList.java.
    I do appreciate your help on this. Thank you.

    Here's some info one of the JSP Developers sent me:
    1. HELP.....!!!!! Chinese jsp compilation problem.....
    The customer is trying to parse a document generated by
    Windows's notepad. When saved in UTF-8, the byte
    order mark is saved too. We have a know bug that
    JSP parser doesn't recognize Byte Order Mark. The
    bug is : 1915285.
    2. CHINESE CHARACTER ON JSP
    . SQLPLUS depends on NLS_LANG setting. If you
    check the windows registry, the default of NLS_LANG
    depends on the OS. The user environment is Traditional
    Chinese, so does NLS_LANG. If we set NLS_LANG
    to .UTF8, SQLPLUS dumps the data in UTF8, however,
    the command prompt will have problem displaying them.
    . For JSP, as mentioned in a previous mail:
    <%@ page contentType="text/html;charset=UTF-8" %> for all languages
    <%@ page contentType="text/html;charset=GB2312" %> for simplified Chinese
    <%@ page contentType="text/html;charset=Big5" %> for traditional Chinese
    . When you enter Chinese characters on a browser,
    the data is automatically converted to page encoding
    (UTF-8 in your case) before sent back to the server.
    But your receiving servlet/JSP needs to have request
    encoding set correctly.
        I'm not sure about the JDeveloper environment,
    but here is a simple JSP you may try to verify your
    OC4J environment:
    a.    To set up the schema:
    connect scott/tiger
    create table tab01(col varchar2(100));
    b. Edit the connect string in nls.jsp
    c. Run the nls.jsp in oc4j instance.
    <!-- nls.jsp -->
    <%@ page contentType="text/html; charset=UTF-8" %>
    <%@ page import="oracle.jdbc.*,java.sql.*,java.io.*"%>
    <HTML>
    <HEAD>
    <TITLE>Hello</TITLE></HEAD>
    <BODY>
    <%
    request.setCharacterEncoding("UTF-8");
    String sampledata="\u7D20";
    String paramValue = request.getParameter("myparam");
    String connStr = "jdbc:oracle:thin:@dlsun478:5521:j2ee01";
    String user = "scott";
    String passwd = "tiger";
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection(connStr, user, passwd);
    if (paramValue == null || paramValue.length() == 0) { %>
       <FORM METHOD="GET">
       Please input your name: <INPUT TYPE="TEXT" NAME="myparam"
    value="<%=sampledata%>" size=20>
    <BR>
       <INPUT TYPE="SUBMIT" value="Insert Data">
       </FORM>
    <%
      selectData(conn, out);
    else
    %>
       <H1> Insert Data: <%= paramValue %> </H1>
       <br/>
    <%
      insertData(conn, paramValue);
    %>
    <a href="nls.jsp">back</a>
    <%
    %>
    </BODY>
    </HTML>
    <%!
      public void insertData(Connection aConn, String myval)
        try {
          PreparedStatement stmt = aConn.prepareStatement("insert into tab01
    values(?)");
          stmt.setString(1, myval);
          stmt.executeUpdate();
          aConn.close();
        catch (SQLException e) {
          e.printStackTrace();
      public void selectData (Connection aConn, JspWriter out)
        try {
          Statement stmt = aConn.createStatement( );
          ResultSet r = stmt.executeQuery("SELECT col FROM tab01");
          out.println("<H1>List of Data:</H1>");
          while (r.next()) {
            out.println(r.getString(1)+"<br/>");
          aConn.close();
        catch (SQLException e) {
          e.printStackTrace();
        catch (IOException e) {
          e.printStackTrace();
    %>

  • Can I still build JSP for BC4J in 10g

    Hi,
    I recently downloaded 10g preview version and I was trying to build the JSP pages for BC4J as I did in previous 9i versions. But 10g doesn't give me that option in the File - New - Web Tier menu. There is only 1 option for plain JSP available in the menu. Is this because of 10g preview version OR did I miss sth?
    Thanks a lot for any input on this topic!
    Ling

    Yes you can build JSPs for BC4J backend in JDeveloper 10g.
    Check out the tutorials page (linked from the JDeveloper main page http://otn.oracle.com/products/jdev ) to see how it is done (a little different than the 9i way).

  • Build jsp pages in Meta-data level?

    Hello! I want to know if in JDeveloper is possibility to build jsp pages from meta-data? That is if I define a new attribute somewhere, then the attribute will be defined in DB an all jsp pages in which I want?
    Best regards!

    Duplicate of JSP templates in Jdeveloper

  • Problem while building jsp/servlet  in j2me

    Hi friends,
    I'm building Servlet in j2me.When i run this Servlet on web browser the Servlet running fine.But while in application when i used
    conn = (HttpConnection)Connector.open( url );
    where url = "http://localhost:8080/servlets-examples/hits"
    It hangs ,the debugger stuck at this method .It didn't throw any Exception also.
    Whats the problem?how could i resolve this issue?
    Note:
    I've used the follwing tutorial
    http://developers.sun.com/techtopics/mobility/midp/articles/tutorial2/
    to build servlet in MIDlet.
    Regards,
    Sachin Warang.

    hi friends,
    I debug the code while doing so i realised that it throwing SecurityException .So edit the preferences>
    where in security i've change it to untrusted and restore the settings.
    After clicking on OK .
    The application works fine.
    Regards,
    Sachin Warang.

  • Directory Structure Problem

    Hi i am niew to EJB
    my directory structure is like this
    App
    -----JSP,s
    -----WEB-INF
    --------classes
    -------package name
    -----------servlet class file
    -----PAckage Name
    -----------Sesion Bean Class File
    my servlet is calling the session bean but when i open this app in weblogic builder it only shows jsp/servlet related setting
    what is the correct directory structure
    jsp is calling a servlet which in turn calles a session bean
    kindly tell me
    Puneet

    I don't know why but weblogic builder sometimes behaves weird. Anyway, my suggestion is to try out to edit your application.xml manually.
    good luck,
    Fehmi

  • WSDL JSP creation problem

    Hi,
    I'm triyng to build a Web Service for WLS6.1SP2, using Ant 1.4.1.
    Because our WS project should compile with other Projects, I cannot use WebLogic's
    ant and thus 'wsgen' task.
    I tried
    <taskdef name="wsgen"
    classpath="${ANT_HOME}/lib/ant.jar;${WL_HOME}/lib/weblogic.jar;${WL_HOME}/lib/xmlx.jar"
    classname="weblogic.ant.taskdefs.ejb.WSGen"/>
    .. it doen't work for me.
    So, I tried to assemble WS EAR 'manually' (using Ant 1.4.1). It would work OK, if
    not one problem: utility-generated WSDL JSP contains a wrong URI to the service.
    This URI in the very last line of the JSP contains an unnecessary slash in the end.
    For example:
    <java classname="weblogic.soap.wsdl.Remote2WSDL" fork="yes"
    output="${dir.build.war}/${MYBEAN_JNDI}/wsdl.jsp">
    <arg line="mypackage.MyBean webservice/mybeanuri -protocol http"/>
    ..will generate a JSP with SOAP-address like
    <soap:address location="http://<%= request.getServerName() %>:<%= request.getServerPort()
    %>/webservice/mybeanuri/"/>
    Client obtains a remote interface, but cannot perform any call, because of
    java.lang.reflect.UndeclaredThrowableException: java.io.FileNotFoundException: http://myserver.agfa.be:80/webservice/mybeanuri/
    Although, if I edit the JSP and remove the last '/' from the path, it works OK.
    Is there any workaround to automate the WS EAR generation without using WebLogic's
    ant?
    thanks,
    Vitaly

    Hi,
    I've just discovered 'replace' task of ANT, which solves my (and possibly someone
    else's) problem.
    Vitaly
    >
    Hi,
    I'm triyng to build a Web Service for WLS6.1SP2, using Ant 1.4.1.
    Because our WS project should compile with other Projects, I cannot use
    WebLogic's
    ant and thus 'wsgen' task.
    I tried
    <taskdef name="wsgen"
    classpath="${ANT_HOME}/lib/ant.jar;${WL_HOME}/lib/weblogic.jar;${WL_HOME}/lib/xmlx.jar"
    classname="weblogic.ant.taskdefs.ejb.WSGen"/>
    ... it doen't work for me.
    So, I tried to assemble WS EAR 'manually' (using Ant 1.4.1). It would work
    OK, if
    not one problem: utility-generated WSDL JSP contains a wrong URI to the
    service.
    This URI in the very last line of the JSP contains an unnecessary slash
    in the end.
    For example:
    <java classname="weblogic.soap.wsdl.Remote2WSDL" fork="yes"
    output="${dir.build.war}/${MYBEAN_JNDI}/wsdl.jsp">
    <arg line="mypackage.MyBean webservice/mybeanuri -protocol http"/>
    ...will generate a JSP with SOAP-address like
    <soap:address location="http://<%= request.getServerName() %>:<%= request.getServerPort()
    %>/webservice/mybeanuri/"/>
    Client obtains a remote interface, but cannot perform any call, because
    of
    java.lang.reflect.UndeclaredThrowableException: java.io.FileNotFoundException:
    http://myserver.agfa.be:80/webservice/mybeanuri/
    Although, if I edit the JSP and remove the last '/' from the path, it works
    OK.
    Is there any workaround to automate the WS EAR generation without using
    WebLogic's
    ant?
    thanks,
    Vitaly

  • Web.xml + jsp deployment problem

    Hi people,
    I have an eclipse project that has 1 servlet and 1 jsp page. I'm having problem in deployment. The servlet works fine but jsp is not accessible. The structure of my web.xml file is as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
         <display-name>IBNSubscriberServlet</display-name>
         <servlet>
              <description></description>
              <display-name>SubscriberServlet</display-name>
              <servlet-name>SubscriberServlet</servlet-name>
              <servlet-class>com.ibn.servlets.SubscriberServlet</servlet-class>          
         </servlet>
         <servlet-mapping>
              <servlet-name>SubscriberServlet</servlet-name>
              <url-pattern>/SubscriberServlet</url-pattern>
         </servlet-mapping>
         <servlet>
             <servlet-name>MonitoringG7</servlet-name>
             <jsp-file>/com.ibn.view.MonitoringG7.jsp</jsp-file>
         </servlet>     
         <servlet-mapping>
              <servlet-name>MonitoringG7</servlet-name>
              <url-pattern>/*</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              <welcome-file>index.htm</welcome-file>
              <welcome-file>index.jsp</welcome-file>
              <welcome-file>default.html</welcome-file>
              <welcome-file>default.htm</welcome-file>
              <welcome-file>default.jsp</welcome-file>
         </welcome-file-list>
    </web-app>On requesting this JSP url, http://localhost:8080/IBNSubscriberServlet/MonitoringG7.jsp the http 404 status message comes which says the resource is not found. Cn someone please check the above jsp mappings in the web.xml file?
    Inside my "src", folder I have "com.ibn.view" which contains jsp file.
    thanks.

    this is how my web.xml looks like now.
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
         <display-name>IBNSubscriberServlet</display-name>
         <servlet>
              <description></description>
              <display-name>SubscriberServlet</display-name>
              <servlet-name>SubscriberServlet</servlet-name>
              <servlet-class>com.ibn.servlets.SubscriberServlet</servlet-class>          
         </servlet>
         <servlet-mapping>
              <servlet-name>SubscriberServlet</servlet-name>
              <url-pattern>/SubscriberServlet</url-pattern>
         </servlet-mapping>
         <welcome-file-list>
              <welcome-file>index.html</welcome-file>
              <welcome-file>index.htm</welcome-file>
              <welcome-file>index.jsp</welcome-file>
              <welcome-file>default.html</welcome-file>
              <welcome-file>default.htm</welcome-file>
              <welcome-file>default.jsp</welcome-file>
         </welcome-file-list>
    </web-app>If there is a mapping problem then the JSP should not work in tomcat as well, but it is. And i have just one servlet in the project and that is mapped my eclipse as above.

  • Need a tool to view jsp structure

              Hi *.*
              I have got a package of jsp files with JavaBeans. The relationship between each
              jsps is not documented.
              Therefore, I need a tool that is able to creat the structure of the JSPs. Most
              important for me is to know,
              which beans are used in a certain jsp, which JSPs are referenced from a certain
              jsp (the linking of JSPs).
              Please mailto: [email protected]
              TIA
              Sky
              

    If you are using iStumbler to identify sources of potential wireless interference, keep in mind that the utility will not display any "closed" or "hidden" networks around you.
    So, if iStumber displays 6 networks, for example, there are probably going to be a few more lurking around you that iStumber cannot "see".
    And, the devices that cause the most problems for wireless networks....cordless phones...of course are not displayed in the iStumbler window.

Maybe you are looking for

  • Apple Mail Still Will Not Work with Verizon

    Greetings to All: Sunday, March 24, 2013 I've been trying to get Apple Mail to work with Verizon email for some years without success. I read the boards and find that this is not an uncommon problem. I received the new server settings for Verizon ema

  • External Screen MAD DOTS (MBP13 minidisplayport DVIcable Samsung2333HD)

    Hello all who can help me, I have a macbook pro 13 with a Mini displayport DVI adapter and a dvi cable to a samsung 2333HD. There appears to be flickering MAD DOTS all around the external screen, and the screen flickers once in a while. Also, when i

  • Posting Percentages in planning Web Form

    Hi all, I have a web form where in i have all the percentage accounts. When i type in the value 0.02 it takes in the value as 2%. Is there a way to change the setting in which i can directly type the percentage values as 2%? Thanks in advance!

  • Mail Profile Operators Not Available

    SQL Server v.11.0.3321; OS 2008 R2 SP1.  We setup the Agent Operator, but when trying to add the Operator to the SQL Server Agent's Alert System, there is nothing under the Mail Profile drop-down list. So the Enable Mail Profile checkbox is accessibl

  • Default pwd

    hi! I did a conversion from autonomous AP to lightweight AP (1240) using the cisco upgrade tool. After the conversion, i tried to console into the AP but the default password of Cisco and username Cisco doesn;t work. Any idea what's the default passw