WAR access to external resources/ WAR deployment models

Hi all.
          I have a web app that contains about 500K of "application" code and
          resources (ie stuff that changes between versions) and about 10MB of static
          content (gif, wbmp, wav etc) that changes infrequently
          Currently i deploy this all as a 10.5meg war file.
          I would like to break this up into a "static content" file (JAR, RAR?) and
          an "application" WAR file.
          This way when I want to test/debug a new version i only need to redeploy the
          smaller WAR file
          Is this possible? If so - how? If not - what do you suggest?
          Thanks
          Matt
          

Thanks Dimitri - great idea
          That will also allow me to make static data updates without having to
          recompile, test and deploy my code and dynamic content
          I guess I could also specify the context of the static data as an init
          parameter in my servlet
          "Dimitri Rakitine" <[email protected]> wrote in message
          news:[email protected]..
          > Good question - I have an app which is ~10 times larger (and mostly it
          contains
          > static things). How about deploying 'static' stuff in a separate war and
          > referencing it from the 'dynamic' app using absolute path
          (/staticapp/image/...) ?
          >
          > Matt Krevs <[email protected]> wrote:
          > > Hi all.
          >
          > > I have a web app that contains about 500K of "application" code and
          > > resources (ie stuff that changes between versions) and about 10MB of
          static
          > > content (gif, wbmp, wav etc) that changes infrequently
          >
          > > Currently i deploy this all as a 10.5meg war file.
          >
          > > I would like to break this up into a "static content" file (JAR, RAR?)
          and
          > > an "application" WAR file.
          >
          > > This way when I want to test/debug a new version i only need to redeploy
          the
          > > smaller WAR file
          >
          > > Is this possible? If so - how? If not - what do you suggest?
          >
          > > Thanks
          > > Matt
          >
          > --
          > Dimitri
          

Similar Messages

  • IPSEC VPN clients can't reach internal nor external resources

    Hi!
    At the moment running ASA 8.3, with fairly much experience of ASA 8.0-8.2, I can't get the NAT right for the VPN clients.
    Im pretty sure it's not ACL's, although I might be wrong.
    The problem is both VPN users can reach internal resources, and vpn users cant reach external resources.
    # Issue 1.
    IPSEC VPN client cannot reach any local (inside) resources. All interfaces are pretty much allow any any, I suspect it has to do with NAT.
    When trying to access an external resource, the "translate_hits" below are changed:
    Auto NAT Policies (Section 2)
    1 (outside) to (outside) source dynamic vpn_nat interface
       translate_hits = 37, untranslate_hits = 11
    When trying to reach a local resource (10.0.0.0/24), the translate hits below are changed:
    5 (inside) to (outside) source static any any destination static NETWORK_OBJ_172.16.32.0_24 NETWORK_OBJ_172.16.32.0_24
        translate_hits = 31, untranslate_hits = 32
    Most NAT, some sensitive data cut:
    Manual NAT Policies (Section 1)
    <snip>
    3 (inside) to (server) source static NETWORK_OBJ_1.2.3.0_29 NETWORK_OBJ_1.2.3.0_29
        translate_hits = 0, untranslate_hits = 0
    4 (inside) to (server) source static any any destination static NETWORK_OBJ_10.0.0.240_28 NETWORK_OBJ_10.0.0.240_28
        translate_hits = 0, untranslate_hits = 0
    5 (inside) to (outside) source static any any destination static NETWORK_OBJ_172.16.32.0_24 NETWORK_OBJ_172.16.32.0_24
        translate_hits = 22, untranslate_hits = 23
    Auto NAT Policies (Section 2)
    1 (outside) to (outside) source dynamic vpn_nat interface
        translate_hits = 37, untranslate_hits = 6
    Manual NAT Policies (Section 3)
    1 (something_free) to (something_outside) source dynamic any interface
        translate_hits = 0, untranslate_hits = 0
    2 (something_something) to (something_outside) source dynamic any interface
        translate_hits = 0, untranslate_hits = 0
    3 (inside) to (outside) source dynamic any interface
        translate_hits = 5402387, untranslate_hits = 1519419
    ##  Issue 2, vpn user cannot access anything on internet
    asa# packet-tracer input outside tcp 172.16.32.1 12345 1.2.3.4 443
    Phase: 1
    Type: ACCESS-LIST
    Subtype:
    Result: ALLOW
    Config:
    Implicit Rule
    Additional Information:
    MAC Access list
    Phase: 2
    Type: ACCESS-LIST
    Subtype:
    Result: DROP
    Config:
    Implicit Rule
    Additional Information:
    Result:
    input-interface: outside
    input-status: up
    input-line-status: up
    Action: drop
    Drop-reason: (acl-drop) Flow is denied by configured rule
    Relevant configuration snippet:
    interface Vlan2
    nameif outside
    security-level 0
    ip address 1.2.3.2 255.255.255.248
    interface Vlan3
    nameif inside
    security-level 100
    ip address 10.0.0.5 255.255.255.0
    same-security-traffic permit inter-interface
    same-security-traffic permit intra-interface
    object network anywhere
    subnet 0.0.0.0 0.0.0.0
    object network something_free
    subnet 10.0.100.0 255.255.255.0
    object network something_member
    subnet 10.0.101.0 255.255.255.0
    object network obj-ipsecvpn
    subnet 172.16.31.0 255.255.255.0
    object network allvpnnet
    subnet 172.16.32.0 255.255.255.0
    object network OFFICE-NET
    subnet 10.0.0.0 255.255.255.0
    object network vpn_nat
    subnet 172.16.32.0 255.255.255.0
    object-group network the_office
    network-object 10.0.0.0 255.255.255.0
    access-list VPN-TO-OFFICE-NET standard permit 10.0.0.0 255.255.255.0
    ip local pool ipsecvpnpool 172.16.32.0-172.16.32.255 mask 255.255.255.0
    ip local pool vpnpool 172.16.31.1-172.16.31.255 mask 255.255.255.0
    nat (inside,server) source static NETWORK_OBJ_1.2.3.0_29 NETWORK_OBJ_1.2.3.0_29
    nat (inside,server) source static any any destination static NETWORK_OBJ_10.0.0.240_28 NETWORK_OBJ_10.0.0.240_28
    nat (inside,outside) source static any any destination static NETWORK_OBJ_172.16.32.0_24 NETWORK_OBJ_172.16.32.0_24
    object network vpn_nat
    nat (outside,outside) dynamic interface
    nat (some_free,some_outside) after-auto source dynamic any interface
    nat (some_member,some_outside) after-auto source dynamic any interface
    nat (inside,outside) after-auto source dynamic any interface
    group-policy companyusers attributes
    dns-server value 8.8.8.8 8.8.4.4
    vpn-tunnel-protocol IPSec
    default-domain value company.net
    tunnel-group companyusers type remote-access
    tunnel-group companyusers general-attributes
    address-pool ipsecvpnpool
    default-group-policy companyusers
    tunnel-group companyusers ipsec-attributes
    pre-shared-key *****

    Hi,
    I don't seem to get a reply from 8.8.8.8 no, kind of hard to tell as it's an iphone. To me, all these logs simply says it works like a charm, but still I can get no reply on the phone.
    asa# ICMP echo request from outside:172.16.32.1 to outside:4.2.2.2 ID=6912 seq=0 len=28
    ICMP echo request translating outside:172.16.32.1/6912 to outside:x.x.37.149/46012
    ICMP echo reply from outside:4.2.2.2 to outside:x.x.37.149 ID=46012 seq=0 len=28
    ICMP echo reply untranslating outside:x.x.37.149/46012 to outside:172.16.32.1/6912
    ICMP echo request from outside:172.16.32.1 to outside:4.2.2.2 ID=6912 seq=256 len=28
    ICMP echo request translating outside:172.16.32.1/6912 to outside:x.x.37.149/46012
    ICMP echo reply from outside:4.2.2.2 to outside:x.x.37.149 ID=46012 seq=256 len=28
    ICMP echo reply untranslating outside:x.x.37.149/46012 to outside:172.16.32.1/6912
    ICMP echo request from outside:172.16.32.1 to outside:4.2.2.2 ID=6912 seq=512 len=28
    ICMP echo request translating outside:172.16.32.1/6912 to outside:x.x.37.149/46012
    ICMP echo reply from outside:4.2.2.2 to outside:x.x.37.149 ID=46012 seq=512 len=28
    ICMP echo reply untranslating outside:x.x.37.149/46012 to outside:172.16.32.1/6912
    asa# show capture capo
    12 packets captured
       1: 08:11:59.097590 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
       2: 08:11:59.127129 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
       3: 08:12:00.103876 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
       4: 08:12:00.133293 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
       5: 08:12:01.099253 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
       6: 08:12:01.127572 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
       7: 08:12:52.954464 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
       8: 08:12:52.983866 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
       9: 08:12:56.072811 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
      10: 08:12:56.101007 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
      11: 08:12:59.132897 802.1Q vlan#2 P0 x.x.37.149 > 4.2.2.2: icmp: echo request
      12: 08:12:59.160941 802.1Q vlan#2 P0 4.2.2.2 > x.x.37.149: icmp: echo reply
    asa# ICMP echo request from outside:172.16.32.1 to inside:10.0.0.72 ID=6912 seq=0 len=28
    ICMP echo reply from inside:10.0.0.72 to outside:172.16.32.1 ID=6912 seq=0 len=28
    ICMP echo request from outside:172.16.32.1 to inside:10.0.0.72 ID=6912 seq=256 len=28
    ICMP echo reply from inside:10.0.0.72 to outside:172.16.32.1 ID=6912 seq=256 len=28
    ICMP echo request from outside:172.16.32.1 to inside:10.0.0.72 ID=6912 seq=512 len=28
    ICMP echo reply from inside:10.0.0.72 to outside:172.16.32.1 ID=6912 seq=512 len=28
    ICMP echo request from outside:172.16.32.1 to inside:10.0.0.72 ID=6912 seq=768 len=28
    ICMP echo reply from inside:10.0.0.72 to outside:172.16.32.1 ID=6912 seq=768 len=28
    asa# show capture capi
    8 packets captured
       1: 08:15:44.868653 802.1Q vlan#3 P0 172.16.32.1 > 10.0.0.72: icmp: echo request
       2: 08:15:44.966456 802.1Q vlan#3 P0 10.0.0.72 > 172.16.32.1: icmp: echo reply
       3: 08:15:47.930066 802.1Q vlan#3 P0 172.16.32.1 > 10.0.0.72: icmp: echo request
       4: 08:15:48.040082 802.1Q vlan#3 P0 10.0.0.72 > 172.16.32.1: icmp: echo reply
       5: 08:15:51.028654 802.1Q vlan#3 P0 172.16.32.1 > 10.0.0.72: icmp: echo request
       6: 08:15:51.110086 802.1Q vlan#3 P0 10.0.0.72 > 172.16.32.1: icmp: echo reply
       7: 08:15:54.076534 802.1Q vlan#3 P0 172.16.32.1 > 10.0.0.72: icmp: echo request
       8: 08:15:54.231250 802.1Q vlan#3 P0 10.0.0.72 > 172.16.32.1: icmp: echo reply
    Packet-capture.
    Phase: 1
    Type: CAPTURE
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    MAC Access list
    Phase: 2
    Type: ACCESS-LIST
    Subtype:
    Result: ALLOW
    Config:
    Implicit Rule
    Additional Information:
    MAC Access list
    Phase: 3
    Type: ROUTE-LOOKUP
    Subtype: input
    Result: ALLOW
    Config:
    Additional Information:
    in   172.16.32.1     255.255.255.255 outside
    Phase: 4
    Type: ACCESS-LIST
    Subtype: log
    Result: ALLOW
    Config:
    access-group inside_access_in in interface inside
    access-list inside_access_in extended permit ip any any log
    Additional Information:
    Phase: 5
    Type: IP-OPTIONS
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 6
    Type: INSPECT
    Subtype: np-inspect
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 7     
    Type: DEBUG-ICMP
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 8
    Type: NAT
    Subtype:
    Result: ALLOW
    Config:
    nat (inside,outside) source static any any destination static NETWORK_OBJ_172.16.32.0_24 NETWORK_OBJ_172.16.32.0_24
    Additional Information:
    Static translate 10.0.0.72/0 to 10.0.0.72/0
    Phase: 9
    Type: HOST-LIMIT
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 10
    Type: VPN    
    Subtype: encrypt
    Result: ALLOW
    Config:
    Additional Information:
    Phase: 11
    Type: ACCESS-LIST
    Subtype: log
    Result: ALLOW
    Config:
    access-group outside_access_out out interface outside
    access-list outside_access_out extended permit ip any any log
    Additional Information:
    Phase: 12
    Type: FLOW-CREATION
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    New flow created with id 5725528, packet dispatched to next module
    Result:
    input-interface: inside
    input-status: up
    input-line-status: up
    output-interface: outside
    output-status: up
    output-line-status: up
    Action: allow

  • WAR deployment problem

              ok this is really confusing and annoying!!! I have a .war file (servlet + jsps
              + descriptor) packaged up in the correct way, I have checked the docs like 100
              times.. the problem is, I'm running win NT and when I create the war file I'm
              executing 'jar' on a directory structure..
              WEB-INF/classes
              WEB-INF/web.xml
              *.jsp
              But when I view the resulting .war file in winzip, I see this..
              WEB-INF/classes/all classes.....
              web-inf/web.xml
              where on earth is this lowercase web-inf coming from ??
              as a result when i deploy this war file, it deploys fine and the init() method
              of the servlet is called, however when i try to access the servlet via it's alias
              (specified in web.xml) it can't be found.
              The exact same files work when used as an exploded directory (DefaultWebApp),
              and can be accessed via the alias.
              The MS-DOS name of the directory is WEB-INF so I simply can't understand where
              the "extra" lower case
              directory web-inf is coming from........
              Am I correct in assuming the lowercase web-inf is the problem ?? I'm not 100%
              sure cos the weblogic
              console can read & edit this xml file.
              Has anyone else experienced WAR deployment on windows problems like this? I'd
              love to get my hands on a unix box but my company suffer from unix-phobia :/
              any thoughts/suggestions/solutions greatly appreciated,
              thanks,
              sd
              

    Explorer in Windows has an option to allow all upper case, for example.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              Clustering Weblogic? You're either using Coherence, or you should be!
              Download a Tangosol Coherence eval today at http://www.tangosol.com/
              "SD" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I'm sorry but I don't understand what you mean by..
              >
              > >Case will mess you up. Set your explorer options so NT isn't constantly
              > >"fixing" your case.
              >
              >
              > under 'options' in windows Explorer I don't see anything
              > to with case ??
              >
              > Also - are there any war files around that I can just
              > get and install and access via their servlet-mapping just
              > as a sanity check for my weblogic installation ??
              > I can't get ANY servlet (in a war file) to be accessed via
              > it's servlet mapping. :( But these servlet mappings can
              > be seen and edited via the weblogic console.
              >
              > thanks,
              > sd
              >
              > >"SD" <[email protected]> wrote in message
              > >news:[email protected]...
              > >>
              > >> ok this is really confusing and annoying!!! I have a .war file
              (servlet
              > >+ jsps
              > >> + descriptor) packaged up in the correct way, I have checked the docs
              > >like
              > >100
              > >> times.. the problem is, I'm running win NT and when I create the war
              > >file
              > >I'm
              > >> executing 'jar' on a directory structure..
              > >>
              > >> WEB-INF/classes
              > >> WEB-INF/web.xml
              > >> *.jsp
              > >>
              > >> But when I view the resulting .war file in winzip, I see this..
              > >>
              > >> WEB-INF/classes/all classes.....
              > >> web-inf/web.xml
              > >>
              > >> where on earth is this lowercase web-inf coming from ??
              > >> as a result when i deploy this war file, it deploys fine and the init()
              > >method
              > >> of the servlet is called, however when i try to access the servlet
              > >via
              > >it's alias
              > >> (specified in web.xml) it can't be found.
              > >>
              > >> The exact same files work when used as an exploded directory
              > >(DefaultWebApp),
              > >> and can be accessed via the alias.
              > >>
              > >> The MS-DOS name of the directory is WEB-INF so I simply can't
              understand
              > >where
              > >> the "extra" lower case
              > >> directory web-inf is coming from........
              > >>
              > >> Am I correct in assuming the lowercase web-inf is the problem ?? I'm
              > >not
              > >100%
              > >> sure cos the weblogic
              > >> console can read & edit this xml file.
              > >>
              > >> Has anyone else experienced WAR deployment on windows problems like
              > >this?
              > >I'd
              > >> love to get my hands on a unix box but my company suffer from
              unix-phobia
              > >:/
              > >>
              > >> any thoughts/suggestions/solutions greatly appreciated,
              > >> thanks,
              > >> sd
              > >>
              > >
              > >
              >
              

  • File Not Found Error: new WAR deployment

    I'm trying to find the path to my new WAR deployed JSP files. The following error occurs:
    Exception:
    java.io.FileNotFoundException: d:\oracle\ora9ias_test\apache\apache\htdocs\RAP_Editor_viaWAR\RapView1_Browse.jsp
    In my address bar I type: http://(oracle_home):7778/RAP_Editor_viaWAR/RapView1_Browse.jsp
    I don't know why it is looking under the \apache\apache\htdocs directory. What configuration step have I missed? I'm having a similar problem finding the demo apps as well.
    Thanks!
    -Tony.

    Well, I've found out that my HTTP path issues we're related to the Portal SDK install. The OC4J instance "JDev" seems to mess up JSPs and results in a FileNotFound exception. Its looking for JSPs in the wrong place - http://<oracle-home>/apache/apache/htdocs/j2ee/...
    The fix: comment out the include directive in httpd.conf that references JDev.
    Another BC4J JSP issue: Be sure your datatags.jar file is current or else you'll get an HTTP 500 error due to an unsupported attribute. The application.log file will show "Error: itermode is not a property of oracle.jbo.html.jsp.datatags.DataSourceTag".
    -Tony.

  • Problem with war deployment

              hello everybody,
              i deployed the one .war file which contains 1 servlet and another 10 simple classes.i
              deployed using the console and everything shows fine.the servlet mapping everything
              seems to be perfect.but when i run the application nothing happens.i restared
              the server.
              thanks for helping.
              sada
              

              You will have to be more clear on what is happening.
              With you description, I assume that it is working fine in exploded format. There
              are couple of things that can go wrong on war deployment.
              1) Check your war file contents. Path of the contents should not include the war
              file name.
              For eg: /wstt/WEB-INF/classes/com/util/Sample.class
              if above is the fully qualified path of a class and if your war file name is wstt
              then war file should conatin the path as
              /WEB-INF/classes/com/util/Sample.class
              2) Check your Target cluster/server in your console for the war file.
              I hope this helps.
              - Albert
              "sada" <[email protected]> wrote:
              >
              >hello everybody,
              >i deployed the one .war file which contains 1 servlet and another 10
              >simple classes.i
              >deployed using the console and everything shows fine.the servlet mapping
              >everything
              >seems to be perfect.but when i run the application nothing happens.i
              >restared
              >the server.
              >
              >thanks for helping.
              >sada
              >
              

  • Enterprise Manager menu is missing in the WAR deployment

    I installing CFMX8 and a pair of test servers. I did a
    multiserver CFMX8 install because I was having a heck of a time
    getting the WAR deployment version install (on Windows 2003 with
    JRun4).
    When I got CFMX8 finally installed via a WAR deployment, I
    noticed in the CF Admin left hand menu bar that the sub menu
    "Enterprise Manager" was missing.
    Can someone tell me what the differences are between the two
    deployments, why this menu is missing.
    Using the Multiserver installation is not a option because
    because of the way we are setting up our environment.

    The multi-server installation creates a single instance of
    coldfusion server that is the enterprise manager. It is not meant
    to be used as a server you deploy applications on. Rather it is
    meant to allow you to create and manage other server instances and
    clusters. Therefore, you see the enterprise manager menu in its
    cfadministrator. That is its expected main purpose.
    The war file deployment contains a single instance of a
    coldfusion server. There is no need for it to have an enterprise
    manager. The standard administrator allows you to manage all the
    options in a single CF8 instance.
    For jrun deployments you should create an ear file deployment
    from the cf8 installer. Then follow the instructions in the j2ee
    readme text file that is created in the same directory as the ear
    file.

  • WAR Deployment Issue

    Hi All,
    The Application which is built on web services, EJB3.0, Toplinks Essential . When i deploying this application on WebLogic Application Server 10.3 everything works fine. But while Running the same application after deploying in WAR format gives some exception which i am listing below -
    "java.lang.IllegalArgumentException: Unknown entity bean class: class <name>, please verify that this class has been marked with the @Entity annotation."
    Warning-
    WARNING: Found unrecognized persistence provider "oracle.toplink.essentials.PersistenceProvider" in place of OpenJPA provider. This provider's properties will not be used.
    But i am not able to make out why i am getting this issue in case of WAR deployment.
    Looking forward to some positive response........
    Thanks.

    Well, your problem maybe that you need to separate EJBs from Web modules.
    WAR files are for Servlets, JSPs, JSFs, etc.
    EJB-JARs are for EJBs
    All should be packaged into an EAR...
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                       

  • Weblogic 6.0 sp2: War deployment not working !!

    Hi,
    I'm using weblogic 6.0 sp2, and it seems as though the war deployment is not
    working. My war consists of jsps, images, and under the WEB-INF/classes
    directory, Struts classes (i.e. Form and Action classes). When I try to run
    a jsp, i get the following error :
    <Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
    <[WebAppServletContext(4655498,ati
    nera)] Root cause of ServletException
    javax.servlet.jsp.JspException: Exception creating bean of class
    com.atinera.log
    in.web.LoginForm: java.lang.ClassNotFoundException:
    com.atinera.login.web.LoginF
    orm
    But if you look in the war, that class is in there.
    What gives ?
    Thanks,
    Jamie

    That's right - ActionServlet does Class.forName(actionClass) to load action
    class, and this uses ClassLoader which loaded the current class (ActionServlet)
    ClassLoaders always delegate to their parent before attempting to load
    the class themselves, so it wasn't working until you moved struts.jar to your
    WEB-INF/lib.
    BTW, Struts doc mentions this problem:
    lib/struts.jar - This JAR file contains all of the Java classes included
    in Struts. It should be copied into the WEB-INF/lib directory of your web
    application. WARNING - If you are going to be hosting multiple Struts based
    applications on the same servlet container, you will be tempted to place the
    struts.jar file into the shared repository supported by your container. Be
    advised that this will like cause you to encounter ClassNotFoundException
    problems unless all of your application classes are stored in the shared
    repository.
    Jamie Tsao <[email protected]> wrote:
    So I found the solution to this problem, but it doesn't really make sense to
    me.
    I originally had struts.jar outside of the WAR file, but in my CLASSPATH.
    Weblogic was able to load Strut's ActionServlet (controller), but when the
    ActionServlet was looking for the LoginForm (which was inside the WAR), it
    couldn't find it.
    I solved the problem by putting struts.jar inside the WAR (under
    WEB-INF/lib) instead that other directory. Now it works cause apparently
    ActionServlet is now in the same classloader as LoginForm, the classloader
    which loaded the WAR.
    I'm confused because original way should have worked since the classloader
    that loaded struts.jar from outside the war is the parent classloader for
    the classloader that loaded the WAR. did that make any sense ?
    anyone know why ?
    thanks,
    jamie
    "Jamie Tsao" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    I'm using weblogic 6.0 sp2, and it seems as though the war deployment isnot
    working. My war consists of jsps, images, and under the WEB-INF/classes
    directory, Struts classes (i.e. Form and Action classes). When I try torun
    a jsp, i get the following error :
    <Jul 30, 2001 11:48:10 AM PDT> <Error> <HTTP>
    <[WebAppServletContext(4655498,ati
    nera)] Root cause of ServletException
    javax.servlet.jsp.JspException: Exception creating bean of class
    com.atinera.log
    in.web.LoginForm: java.lang.ClassNotFoundException:
    com.atinera.login.web.LoginF
    orm
    But if you look in the war, that class is in there.
    What gives ?
    Thanks,
    Jamie
    Dimitri

  • JDBC  + WAR deployment

    I've recently moved to JDeveloper and was quite impressed with the ability to deploy directly to a WAR file. However, I seem to have run into some trouble. When I use classes12.jar JDBC drivers in my project library and build the WAR it includes many of the JDBC classes in the WAR file. So I bring this war over to Tomcat in the usual way and my database connections don't work. I get:
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:537)
    Somewhat strangely if I go directly into the deployed WAR file and remove the Oracle and Javax directories from my classes folder, and then add classes12.jar to my Tomcat/lib directory then everything works fine.
    It seems as though the process of deploying to a WAR file is corrupting or omitting certain important classes.
    1) Would anyone have any idea what could cause this sort of behaviour? Is there a problem with JDevelopers WAR deployment?
    2) Also failing all else, is there a way of including the classes for compiling but not having them included in the WAR file? I tried putting oracle12.jar into the lib and lib/ext directory but it didn't seem to pick them up.
    Thanks in advance,
    Dave Molloy

    I found that if I went into my deployment settings (JDeveloper project, right click on your <>.deploy file and select "Settings..."),
    under the "WAR File" - "WEB-INF/lib" section, I could choose which libs were included in the war file.
    I didn't include classes12.
    (of course mine worked if I included it or not, so it isn't quite the same what you are experiencing.) I think it just pulled the one from <ORACLE_HOME>\jdbc\lib\. Unfortunately, it doesn't include a manifest file with a version...so you probably have to check the create date/time or the included classes to figure it out.
    Maybe your two classes12 files are for different versions, and so they are conflicting. This might explain why it works if you put the classes12 directly in your app server, but fails when it is also in the war.
    If you do include classes12 in the war file, using a manifest file may help the classloader with determining the precedence that you want.

  • War Deployment in OSE

    Has anybody successfully used the war deployment tool for deploying wars into the OSE. I have installed the tool along with 1.1.2.0 of OracleJSP but when I use the deploywar command in the sess_sh environment I get the following output:
    java.lang.ArrayIndexOutOfBoundsException
    Thats it, nothing else. I have checked in the database, all the classes are compiled and valid. I have tried innumerable variations to the command line with no change in the result. I re-installed everything from the ground up using OracleJSP 1.1.2.1 with the same result.
    I have successfully deployed servlets and jsp's manually so I know that part works.
    Any hints or help is greatly appreciated.
    Scott Petersen
    Senior Programmer/Analyst
    HeavyLifters.com
    null

    Thanks, John. It turns out that I didn't have a correct auxiliary descriptor. (My xml header was bad.) Once I checked that I was able to get farther. Unfortunately, now I am running into problems with the jsp converter not being able to find the tag library tld. It doesn't seem to be using the <taglib> directives in the web.xml. It also is complaining that it can't find a file that is in an embedded .jar file in the war... grumble.
    Scott Petersen
    Senior Analyst/Programmer
    HeavyLifters.com

  • Deployment of enterprise app with external resources (binary file)

    Hi. Where do I configure/add external resources (such as a text or binary file) in an enterprise app so that they will also be deployed to a WebSphere Express server? Should they be added to the enterprise app at all, or should they simply be moved up to a server directory? (I am trying to avoid a hardcoded file path in my servlet.)
    I could use a properties file, but I was wondering if there is something in one of the deployment descriptor settings that would help me out?
    I need one of my servlets to stream in this external binary file after the enterprise app has been deployed to a WebSphere Express server.
    Thank you.

    Normally, the context of the bin directory or the WASHOME will be the startup directory for the server. If you use File IO without a path it will pick it up from this directory. so u can place the file in this directory so that ur Servlet can stream the file.

  • External Resource JAR configuration in BPM Enterprise

    I have External resource(a JAR file) in my BPM Studio. This External JAR calls some web service and gets data. Everything is working fine when I run from BPM Studio with its in bulit Derby engine and all.
    The same BPM project I exported by using the 3rd option(Include Versionable libraries only - Recommended for publishing with Enterprise).
    I have configured BPM enterprise by using weblogic server and Oracle express as engine also. Deployed newly exported project. Everything works fine except getting following error while calling JAR which in turn call web services.
    I am getting following error in Engine.
    ===================================================================================
    The task could not be successfully executed. Reason: 'java.lang.NoClassDefFoundError: org/alfresco/sample/webservice/ContentReadAndWrite'. Caused by: org/alfresco/sample/webservice/ContentReadAndWrite fuego.lang.ComponentExecutionException: The task could not be successfully executed. Reason: 'java.lang.NoClassDefFoundError: org/alfresco/sample/webservice/ContentReadAndWrite'. at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1094) at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280) at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.runCil(ComponentExecutionMicroActivity.java:126) at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.execute(ComponentExecutionMicroActivity.java:84) at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57) at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:62) at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42) at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:251) at fuego.ejbengine.ItemExecutionBean$1.execute(ItemExecutionBean.java:212) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66) at fuego.ejbengine.ItemExecutionBean.processMessage(ItemExecutionBean.java:198) at fuego.ejbengine.ItemExecutionBean.onMessage(ItemExecutionBean.java:110) at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466) at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371) at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327) at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547) at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233) at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709) at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114) at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: java.lang.NoClassDefFoundError: org/alfresco/sample/webservice/ContentReadAndWrite at oracle.ExpenseReport.Default_1_0.Instance.CIL_checkCompanyPolicy1(Instance.xcdl) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1085) ... 33 more
    ==================================================================================
    Did I missed configuring something in Enterprise? Any other ideas?

    Hi,
    You could either try marking the External Resource(s) with the Jar files as versionable or copy the Jar files to these directories:
    <Enterprise Home Directory>/enterprise/webapps/webconsole/WEB-INF/lib
    <Enterprise Home Directory>/enterprise/ext
    Dan

  • External web services deployment

    Hi,
    I am facing a situation of web services deployment. I am using Jdeveloper 10g and oracle bpel process manager 10.1.3.1.0. I am not able to deploy web services. The following are the steps that I followed to consume that web service called web service called WeatherByCity from xmethods.net.
    Create new Application---> create new empty project( I named it 'projectgt') ----> new 'java web service from wsdl' from wsdl document url (http://ws.strikeiron.com/InnerGears/WeatherByCity2?WSDL ------------->
    --> In the default mapping options for Package Name I put 'projectgt' and root package for generated types I put 'projectgt.types'. All the other options are default. When I right click Webservices.deploy under resources and deploy to the application server, it says failed to deploy with the following message.
    ---- Deployment started. ---- Apr 21, 2006 5:00:07 AM
    Target platform is Standalone OC4J 10g 10.1.3 (AppServerConnection1).
    Wrote WAR file to D:\Application24\Projectgt\deploy\WebServices.war
    Wrote EAR file to D:\Application24\Projectgt\deploy\Application24-Projectgt-WS.ear
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Uploading file Application24-Projectgt-WS.ear ...
    Application Deployer for Application24-Projectgt-WS STARTS.
    Copy the archive to D:\product\10.1.3.1\OraBPEL_1\bpel\system\appserver\oc4j\j2ee\home\applications\Application24-Projectgt-WS.ear
    Initialize D:\product\10.1.3.1\OraBPEL_1\bpel\system\appserver\oc4j\j2ee\home\applications\Application24-Projectgt-WS.ear begins...
    Unpacking Application24-Projectgt-WS.ear
    Done unpacking Application24-Projectgt-WS.ear
    Unpacking WebServices.war
    Done unpacking WebServices.war
    Initialize D:\product\10.1.3.1\OraBPEL_1\bpel\system\appserver\oc4j\j2ee\home\applications\Application24-Projectgt-WS.ear ends...
    Starting application : Application24-Projectgt-WS
    Initializing ClassLoader(s)
    Initializing EJB container
    Loading connector(s)
    Starting up resource adapters
    Initializing EJB sessions
    Committing ClassLoader(s)
    Initialize WebServices begins...
    Initialize WebServices ends...
    Started application : Application24-Projectgt-WS
    Binding web application(s) to site default-web-site begins...
    Binding WebServices web-module for application Application24-Projectgt-WS to site default-web-site under context root Application24-Projectgt-context-root
    Operation failed with error:
    Error compiling :D:\product\10.1.3.1\OraBPEL_1\bpel\system\appserver\oc4j\j2ee\home\applications\Application24-Projectgt-WS\WebServices: Error instantiating compiler: Web service artifact generation failed:java.lang.NoClassDefFoundError: projectgt/types/com/strikeiron/ws/SubscriptionInfo
    Deployment failed
    Elapsed time for deployment: 26 seconds
    #### Deployment incomplete. #### Apr 21, 2006 5:00:32 AM
    I will be grateful for any response on this issue.
    Thankyou,
    Sagar

    As a matter of fact, I receiving a similar error for all other web services. Please let me know the error in my method of deployment

  • Development and access to external WSDL URL

    Hi All,
    I am developing a SOA application with BPEL composite which also makes calls to an external third party webservice. Due to security reasons, the external third party webservice URL is only accessible from our Development server machine (and not my local machine running JDeveloper). Issue with this is the SOA application development is done using Jdeveloper 11.1.1.4 on my local machine.
    Overview of my application is
    WebService (Synchronous Request/Response Client interface ) ---> BPEL ---> Third Party webService (Partnerlink)
    1) Using the Client interface the user enters startTime and EndTime values
    2) The startTime and endTime is input message to the BPEL process.
    3) The BPEL process then sends the request to the third party web service (partnerlink) and gets a response message back and returns to the client.
    I tried workaround for the same by asking the third party for WSDL and associated XSDs and included these locally in my SOA application project. However trying to deploy the completed SOA application and keep getting this error.
    ERROR MESSAGE_
    [03:40:25 PM] Error message from server:
    There was an error deploying the composite on WLS_SOA: Error occurred during deployment of component: DataRetrievalService to service engine: implementation.bpel, for composite: DataRetrievalService: ORABPEL-09705
    Could not initialize variable.
    An error occurs while initializing BPEL variable RetrieveEventSummary_GetEventSummary_InputVariable; the schema processor cannot find the element {http://schemas.internet.com/asiapac/cad/integration/1.0.0}GetEventSummaryRequest in the following schemas: oracle.fabric.common.wsdl.SchemaManager@1cf57b6b.
    The XSD element on which the variable was based was not properly defined in XSD or the WSDL.
    Ensure that the element named in the error message is valid in the XSD or the WSDL.
    Questions_
    1) Please suggest, is it possible to develop a SOA application which makes service call to external URL, while the local development machine cannot access the external WSDL URL.
    2) Also, in such cases in future deployments to test and production do I still need access to external WSDL URL from my machine. I deploy the completed SOA application from my local machine to the Development Server. The Development Server machine is configured to accessed the third-party WSDL URL.
    Thanks
    Edited by: user5108636 on 11/07/2011 23:53

    It seems WSDL is not complete or invalid. Check whether it references element {http://schemas.internet.com/asiapac/cad/integration/1.0.0}GetEventSummaryRequest and this element has been defined in the XSD imported/defined in WSDL.
    1) Please suggest, is it possible to develop a SOA application which makes service call to external URL, while the local development machine cannot access the external WSDL URL.Yes, it is possible but complete and valid WSDL must be available locally.
    2) Also, in such cases in future deployments to test and production do I still need access to external WSDL URL from my machine. I deploy the completed SOA application from my local machine to the Development Server. The Development Server machine is configured to accessed the third-party WSDL URL.If server can access the third party WS URL then that is sufficient. No need to have access from local machine. Just deploy it on server and then test there.
    Regards,
    Anuj

  • How to access to a resource in the ADF application?

    Hi
    I have a jasper report file named report.jrxml in the following path in my ADF application named “app”:
    app\ViewController\src\org\nmp\app\view\report
    I wanna access to this file inside a java file located in the ViewController project as follows:
    InputStreaminSt = new FileInputStream(new File(“app\ViewController\src\org\nmp\app\view\report\report.jrxml”));
    But I get the following exception:
    java.io.FileNotFoundException: app\ViewController\src\org\nmp\app\view\report\report.jrxml (The system cannot find the path specified)
    How could I access to this resource in my application? I am using JDev 11.1.2.3
    Cheers,
    Ferez

    Timo,
    I made a test case named fileaccess and uploaded it here:
    http://rapidshare.com/files/2200118787/fileaccess.zip
    Just open the project in JDev 11.1.2.3, the Model project is empty and in the viewController project there is a single page named home.jsf in which contains a commandButton. Clicking the button executes the #{fileAccess.readFile} method. The fileAccess bean is located in org.company.fileaccess.view.beans and introduced in faces-config.xml. Body of readFile method is as the following:
    FileInputStream fis = new FileInputStream(new File("/org/company/fileaccess/view/resources/file.txt")); file.txt is located in org.company.fileaccess.view.resources and viewController project is set to copy .txt files into output directory. Clicking the button causes FileNotFoundException.
    Thank you in advance,
    Ferez

Maybe you are looking for

  • HT3382 Connect from a MacBook Pro's mini display port to a Display Port monitor?

    Hello everyone, Is it possible to connect from a MacBook Pro's mini display port to a Display Port monitor with resolutions higher than 1920 x 1200? It seems Apple does not supply a mini-DP to DP adapter. However, just as they do not make a mini-DP t

  • HT1296 import contacts from iPhone 3gs to macbook pro?

    How do i import my contacts from my iphone 3gs to my macbook? i thought it sync but when i look at the address book in my macbook it only has a few of my contacts .... thanks!!!

  • Using old G5 as large screen monitor for new MacBook

    Would I be able to use an old G5 as a large screen monitor for a MacBook or Mac Mini, using a VNC protocol such as ScreenRecycler (or another). If so, to what degree would the G5 OS have to be functional, i.e., if the video card and speakers are OK,

  • Can't find photo's?

    Hi, I have my i-photo library on a lacie hard drive and set up a pathway in the i-photo preferences ( advanced ) to always look for them on here. I recently uploaded 2 photos onto i-photo without the hard drive plugged in as i wanted to play about wi

  • No optical out on Creative sound blaste

    I am looking for?a new sound card but cant find an optical out on any model. Why?