War files and server classpath on 6.1

We used to have all of the jsp's and html exploded in a WebApp and the
          WebApp just used the same classes and property files the server was using,
          now we put all these files in a war file.
          My question is do I have to take the server classes and property files and
          put them in the war file also. Or is there another way in which I can still
          use the same server classes and property files. This is causing alot of
          headache trying to keep theses classes and property files in sync especially
          if we have to move them from one server to another, which each server having
          its on property files.
          Any help would be appreciated.
          Thx Kye
          

What server classes are you using? They will still be available from any
          weblogic server instance.
          What property files are you using? Are these your own properties or weblogic
          properties? Are you confusing these with web.xml and weblogic.xml that live
          under WEB-INF? Managed servers don't need a config.xml file since they
          obtain all their configuration info from the admin server at startup.
          Alex
          "Kye" <[email protected]> wrote in message
          news:3c1048fb$[email protected]..
          > We used to have all of the jsp's and html exploded in a WebApp and the
          > WebApp just used the same classes and property files the server was using,
          > now we put all these files in a war file.
          >
          > My question is do I have to take the server classes and property files
          and
          > put them in the war file also. Or is there another way in which I can
          still
          > use the same server classes and property files. This is causing alot of
          > headache trying to keep theses classes and property files in sync
          especially
          > if we have to move them from one server to another, which each server
          having
          > its on property files.
          >
          > Any help would be appreciated.
          >
          > Thx Kye
          >
          >
          

Similar Messages

  • Problem deploying a War file to server

    Hi,
    I'm trying to deploy my war file a simple servlet program given by Google Webtookit to my Resin server v2.1.13.
    I created a war file and dropped it into the webapps folder. When I try to launch the application, I get the following error. My class is in the right directory, I am able to launch it on my local resin server on my machine. When I try to deploy it onto a 3rd party server, is when I get the error. I have checked my web.xml file and made sure they are pointing correctly to the class I want it to point to. Where am I going wrong?
    Thanks,
    Harry
    500 Servlet Exception
    javax.servlet.ServletException: Class `com.bc.server.GreetingServiceImpl'
    was not found in classpath.
    Classes normally belong in /ExGWT/WEB-INF/classes.
    at com.caucho.server.http.Application.instantiateServlet(Application.java:3198)
    at com.caucho.server.http.Application.createServlet(Application.java:3104)
    at com.caucho.server.http.Application.loadServlet(Application.java:3065)
    at com.caucho.server.http.QServletConfig.loadServlet(QServletConfig.java:435)
    at com.caucho.server.http.Application.getFilterChainServlet(Application.java:2809)
    at com.caucho.server.http.Application.buildFilterChain(Application.java:2765)
    at com.caucho.server.http.Invocation.service(Invocation.java:313)
    at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
    at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)
    at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
    at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
    at java.lang.Thread.run(Thread.java:595)
    Resin 2.1.13 (built Thu Apr 1 10:57:42 PST 2004)

    I am trying to deploy my application on Lunarpages. (not the best support in the world). They have Resin v 2.1.13 running on their end. I have tried everything I know, but the classpath is still an issue. I have even printed out the list of classpath through my code and everything seems to be right. I can deploy the same war file on any server Tomcat, Jetty, Resin 3.x (my local), but just not on lunarpages. I am stumped. Please help.
    Thanks
    Harry

  • War Files And Their Deployment and Redeployment

    Howdy
    I have a WAR file that a developer gave me which I deployed on a Linux box no problem.
    Now I would like to add a jsp file and custom tag to this application.
    This is what I tried:
    I turned the war file into a zip file extracted the contents and then added my jsp page the class file for the custom tag modified the web.xml file for the tag and added a tld file for the tag as well.
    Then I rezipped the files and renamed to a .war file and deployed it on the linux box. The previous existing files work but my new jsp page comes up with a HTTP 404 Not Found error.
    Now the new jsp and custom tag work on my development machine just not on the live server when reployed into the other existing app.
    What am I missing? Or am I totally off with trying to redeploy the app in this way?
    Any help appreciated.
    Adam

    For deployment you need to use ant

  • War file and deployment

    Hi,
    im new to j2ee and there are some qns i hope you can help me with.
    1. why is there a need to put my jsp and servlets in a .war file?
    2. where do i do my placements of ejb and jsp into the respective jar and war files? in my web server?
    thanks a lot!

    1. why is there a need to put my jsp and servlets in a .war file?Answer- As technology evolved over ther period of time, it became more and more evident that the smaller and easier the things the better it is. WAR format is a ZIP format created to deploy your web application data. Hence called WAR(Web Application Archive). It usually contains your Images, JSP pages, and servlets and other related helper files needed by your web application. Java being a cross platform technology, it becomes easy and standardized to distribute your application(web) to other vendors/teams/people if one makes use of a WAR file. Once dropped in the root directory of the App server(i mean the proper webapp directory) the application server is smart enuf to load your WAR file and create respective directory structure.
    2. where do i do my placements of ejb and jsp into the respective jar and war files? in my web server?Answer:- When you add the EJB files and distribute it along with your WAR file, its called EAR(Enterprise Archive) which is WAR+ EJB jar files. As for the JSP's they form a part of the WAR and should be bundled up while creating the WAR file.
    Hope this answers the question.

  • XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.

    Hi,
    I'm trying to make the Tomcat 1.3.2 to work with xsql servlet, and have followed the instructions on how to do it, but i get the : XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH. - error.
    What am I doing wrong?
    null

    Forget it...
    I had pasted in:
    set CLASSPATH=%CLASSPATH%;directory_where_XSQLConfig.xml_resides
    istead of:
    set CLASSPATH=%CLASSPATH%;C:\xsql\lib
    works now....
    null

  • Difference between .war file and .ear file

    Hi,
    what is the difference between .war file and .ear file ?
    Please let me know with appropriate explanation.

    War file means web application archive. It is archived file having a collection of JSP, servlets and static pages that together costitute a web application. It contains one WEB-INF directory which will have a file named web.xml which defines the structure of the web application.
    On the other side EAR file is Enterprise application archive. It is file having packaged content of one or more modules into a single archive so that the deployment of all the modules can be done simultaneously on the application server. It also contains XML files called deployment descriptors which gives the details of the deployment method. This deployment descriptor will be present in the folder META-INF folder.
    So the main difference betwwen the two is that Ear file is having collection of various modules to be deployed on the application server while the WAR file is used to deploy the web applications.

  • Porting *.war files and *.ear files to Weblogic 10.3

    If we can figure this issue out, I'll see if I can't publish/post a
    maven-based solution in the Maven and Oracle forums so that others
    will not have to go through our pain.
    We are having all the usual problems regarding where Weblogic expects
    to find things and what exclusions need to be made in weblogic.xml for
    war files and weblogic-application.xml for ear files. Any insights
    would be deeply appreciated.
    Here is what our exploded war structure currently looks like.
    |____index.jsp
    |____WEB-INF
    | |____lib
    | | |____...a long list of jar files
    | |____tags
    | | |____...a short list of tag files
    | |____applicationContext.xml
    | |____web.xml
    | |____content
    | | |____...a bunch of jsps
    | |____tlds
    | | |____...some tlds
    | |____classes
    | | |____mailProperties.properties
    | | |____struts.xml
    | | |____logback.xml
    | | |____com ... the root of our class heiarchy
    |____images
    | |____...a list of images
    |____META-INF
    | |____maven
    | | |____com
    | | | |____project-name
    | | | | |____pom.xml
    | | | | |____pom.properties
    | |____MANIFEST.MF
    |____script
    | |____...some java script files
    |____style
    | |____...some css files
    Exceptions when trying to deploy are as follows:
    INFO: ... initialized Struts-Spring integration successfully
    java.lang.Exception: Could not load
    servers/AdminServer/tmp//appmergegen_1254502686535_OurApp/war/WEB-INF/classes/com...
    at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.java:745)
    at com.opensymphony.xwork2.util.finder.ClassFinder.<init>(ClassFinder.java:148)
    The exception above repeats for every .class file found below
    WEB-INF/classes/com, i.e. the the ones in this module rather than the
    ones in included modules.
    Checking the file system shows that there is no such directory as
    "appmergegen_1254502686535_conap". I'm uncertain if there is actually
    supposed to be anything there, but it would seem like it.
    I've a theory that if we can solve the above issue, we can solve the
    rest ourselves.
    It would also be handy to know what packages may cause conflicts.

    Alright, my research points to the idea that this might have something to do with staging. Since this is a dev setup we don't have any managed servers or anything. All we have is AdminServer and that is it. We have only one domain and it is "base_domain". Does anyone know if this is wrong?

  • Since I updated my Creative Cloud desktop App to its last version, my files are no longer synchronized. I received the "fail to synch files" and "server error" messages.

    Since I updated my Creative Cloud desktop App to its last version, my files are no longer synchronized. I received the "fail to synch files" and "server error" messages.

    Hi, Jeff.
    I'm not on a network and I didn't change anything on my secutiy setups, so I got in touch to the customer support. They checked my computer and found nothing wrong, so they uploded some log files to analyse the case. I'm waiting for a answer.
    Thanks for the tips.

  • Behaviour differences between  war file and exploded directory

    Hi,
    I'm baffled by differences in how my web app behaves when deploy in a war file and when deployed in exploded directory.
    Firstly when I deploy in exploded directory format (using wldeploy in ant) - the jsps do not precompile. However, when I deploy the war file - again using ant and wldeploy - precompile works just fine - and general performance seems better.
    Secondly - the webapp has a pdf file - which is used as a template to dynamically produce a document. When deployed
    in exploded format - the webapp works fine and is able to read the pdf. However, when I deploy in war file, the pdf cannot be read.
    Surely the behaviour should be the same whether we deploy as a war or exploded.
    Someone please help
    Tariq

    Some behaviors will be different between a WAR file deployment and an exploded WAR deployment.
    With respect to JSP precompile, you just say "they do not precompile", so I can't tell anything about that.
    When you read files from an exploded WAR, you can reference them in two ways: as a resource, or as an absolute file path. When you read files from a WAR file, you can only read files as a resource, and not as an absolute file path. You're not giving any information about how you're reading the file, so I can't tell about that either.
    You'd have to provide more detail to get better answers.

  • WAR file and Properties file

    Hey guys,
    I have a WAR file( for my web application) . Its basically a Struts application running on weblogic7.0 server There is a MyXXX.Propeties file in web-inf/classes folder and when i run the application the property file is not recognized( unable to read it) i get something like this
    ???en_US.label.xxx???
    Do i need to set some classpath for the server ?
    Regards,
    KM

    Any answer ??

  • War file and access control with WebLogic

    I am trying to put some access control on different files in my war-file, but just can't get it to work... It seems like all roles defined in weblogic.properties gives the user access to all files in the war. I just don't understand the connections between the security realm, the weblogicURL.policy file and the web.xml file... If I do not specify a weblogic.security.URLAclFile, no access control is done at all.
    This is how my weblogic.properties file looks like:
    weblogic.security.URLAclFile=e:\\weblogic\\weblogicURL.policy
    weblogic.password.koko=kokokoko
    weblogic.password.arnebelinda=arne1234
    weblogic.security.group.ppuseradmins=arnebelinda
    and my weblogicURL.policy:
    deny Principal weblogic.security.acl.GroupImpl "everyone" {
    Permission weblogic.security.acl.URLAcl "weblogic.url", "/admin/-";
    and finally, my web.xml-file:
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
         <session-config>
              <session-timeout>30</session-timeout>
         </session-config>
         <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
         </welcome-file-list>
         <security-constraint>
              <web-resource-collection>
                   <web-resource-name>admin</web-resource-name>
                   <url-pattern>index.jsp</url-pattern>          </web-resource-collection>
              <auth-constraint>
                   <role-name>ppuseradmins</role-name>
              </auth-constraint>
         </security-constraint>
         <login-config>
              <auth-method>BASIC</auth-method>
              <realm-name>WebLogic Server</realm-name>
         </login-config>
         <security-role>
              <role-name>ppuseradmins</role-name>
         </security-role>
    </web-app>
    it does not matter which user is part of the ppuseradmins group. The user koko is not a member, but is given access to my whole .war anyway (after submitting correct username/password). Omitting the <realm-name> does not seem to work either; the default realm is not used, instead null is used.
    Does anybody have a clue? I would really appreciate it!
    I am using WebLogic 5.1 sp 9
    best regards,
    PJ

    In you pocily file entry, you have specified "/admin/-"
    However, in the <security-constraint> element in web.xml, your <url-pattern> is not set to /admin
    Could that be the problem ?

  • War file and access control

              I am trying to put some access control on different files in my war-file, but just
              can't get it to work... It seems like all roles defined in weblogic.properties
              gives the user access to all files in the war. I just don't understand the connections
              between the security realm, the weblogicURL.policy file and the web.xml file...
              If I do not specify a weblogic.security.URLAclFile, no access control is done
              at all.
              This is how my weblogic.properties file looks like:
              weblogic.security.URLAclFile=e:\\weblogic\\weblogicURL.policy
              weblogic.password.koko=kokokoko
              weblogic.password.arnebelinda=arne1234
              weblogic.security.group.ppuseradmins=arnebelinda
              and my weblogicURL.policy:
              deny Principal weblogic.security.acl.GroupImpl "everyone" {
              Permission weblogic.security.acl.URLAcl "weblogic.url", "/admin/-";
              and finally, my web.xml-file:
              <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
              "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
              <web-app>
              <session-config>
              <session-timeout>30</session-timeout>
              </session-config>
              <welcome-file-list>
              <welcome-file>index.jsp</welcome-file>
              </welcome-file-list>
              <security-constraint>
              <web-resource-collection>
              <web-resource-name>admin</web-resource-name>
              <url-pattern>index.jsp</url-pattern> </web-resource-collection>
              <auth-constraint>
              <role-name>ppuseradmins</role-name>
              </auth-constraint>
              </security-constraint>
              <login-config>
              <auth-method>BASIC</auth-method>
              <realm-name>WebLogic Server</realm-name>
              </login-config>
              <security-role>
              <role-name>ppuseradmins</role-name>
              </security-role>
              </web-app>
              it does not matter which user is part of the ppuseradmins group. The user koko
              is not a member, but is given access to my whole .war anyway (after submitting
              correct username/password). Omitting the <realm-name> does not seem to work either;
              the default realm is not used, instead null is used.
              Does anybody have a clue? I would really appreciate it!
              I am using WebLogic 5.1 sp 9
              best regards,
              PJ
              

    In you pocily file entry, you have specified "/admin/-"
    However, in the <security-constraint> element in web.xml, your <url-pattern> is not set to /admin
    Could that be the problem ?

  • WAR file and necessary Tomcat settings

    Hello all,
    These are some basic questions i came across while deploying web application.
    I think, servlet being very basic for j2ee, it should be thouroghly dealt with.
    1. What is developer's role with respect to WAR file? Is it created autometically by Tomcat or developer has to create it and how?
    2. If i have to deploy a web application in Tomcat container, which are different essential settings i need to make in different config files such as server.xml, web.xml? Eg. time-out in wb.xml.
    3. What are server.xml & web.xml? is it a part of servlet specifications?
    I know you might find these very abcd.
    Thanks in advance.

    I'm using iPlanet Webserver but I've been working with these files so some of the stuff I know may help you.
    1. What is developer's role with respect to WAR file?
    Is it created autometically by Tomcat or developer
    has to create it and how?I think it's mostly a developer thing (not knowing much about Tomcat). Creating WAR files is quite simple - have a look here:
    http://access1.sun.com/techarticles/simple.WAR.html
    3. What are server.xml & web.xml? is it a part ofservlet specifications?Web.xml contains information about the servlets in the webapp. Server.xml contains a line which tells the server where the webapp has been deployed to.
    The following document is useful from an iPlanet point of view and may give you some more answers:
    http://docs.sun.com/db/doc/817-1833-10
    Hope this helps a little :)

  • War files and configuration files

    Hi,
    I'm trying to deploy servlets using a WAR file. Everything works fine except I can't read the configuration files from the servlet code.
    The code reading the configuration file is as follows:
    input = ClassLoader.getSystemResourceAsStream("test.properties");
    properties.load(input);
    Of course this code assumes that the file "test.properties" is in the class path.
    Where should I put the property file in the WAR file so that it is in the class path?
    If this can�t be done, how should I structure my code around this problem?
    I�m using Tomcat 3.2�
    Thank you very much

    I haven't had any trouble accessing properties files in the WEB-INF\classes using the following...
    public class MyAnchor
         private static Properties properties = new Properties();
         static
              URL url = MyAnchor.class.getResource("mywebapp.properties");
              try
              properties.load(url.openStream());
              catch(Exception e)
              e.printStackTrace();
    public static final String PROP_CONSTANT_1 = properties.getProperty("prop_constant_1");
    But I have now run into problems when trying to create a WAR file with the J2EE Deploy Tool, which will only allow *.class files to sit in the WEB-INF\classes directory.
    I'll be really annoyed if I have to change the properties file name to mywebapp.class just to get around this problem.
    Has anyone else found this?? I know I can add the *.props manually, but again would prefer not to.
    I'm hoping its only a J2EE problem and deploying to other servers will not have this requirement.

  • Wl6.1, war files and 2 letter jar files....

    Hi,I have finally found why my WAR file isn't loading with weblogic 6.1. It seems that it doesn't like two letter class libraries (eg ab.jar) and will through a vague error message at deployment (Prefix string too short). I don't know what has changed between 6.0.2 and 6.1 in this area, but its worth making it apparent to developers in general.Regards,Mark BarryHewlett-Packard Consulting

    Are you saying that this error doesn't occur in 6.0?
    I think i knew what's the problem is, but it would be helpful if you could post the stack trace?
    Mark Barry wrote:
    Hi,I have finally found why my WAR file isn't loading with weblogic 6.1. It seems that it doesn't like two letter class libraries (eg ab.jar) and will through a vague error message at deployment (Prefix string too short). I don't know what has changed between 6.0.2 and 6.1 in this area, but its worth making it apparent to developers in general.Regards,Mark BarryHewlett-Packard Consulting

Maybe you are looking for

  • Please help me install Pattern Maker?

    Hi, At this url: http://www.adobe.com/support/downloads/thankyou.jsp?ftpID=4687&fileID=4377 I am trying to download the plugin: CS5_Optional_PlugIns_Installer.dmg The files included are: CS5 Optional Extension Plug-Ins.mxp and CS5 Optional Plugins.mx

  • Integration Framework content doesn't show in Windows Server 2008 R2

    I have a new install of B1 8.81 PL06 on Windows Server 2008 R2. All seemed to install fine but when I log into B1 I get the error: Error HTTP 500 - Internal Error I logged into the Integration Framework to check the SLD and all I see is the menu. I c

  • Adobe PDF not printing yosemite

    Just added new Officejet 5740 to home network, everything works except won't print Adobe PDF documents. Ok with Preview, .docx etc.  Running 10.10.1 on iMac.  Prints blank pages.  I have run into this in the past with my office HP Laser printer, but

  • Cost center in F.05!!!!!! Very urgent!!!

    Hi, how can I specify the cost center for exchange rate differences(expenses or revenues) in F.05(Foreign currency valuation)????? Please, it is urgent....

  • I have been waiting almost 24 hours for my SIM to be activated.

    Hello, I have been waiting almost 24 hours for my SIM to be activated. When I went in store, they said that as I am an existing customer it should only take a few hours to swap my number over to my new sim card. I have been on the website to try and