Web applications and packages

Hi,
In a web application I have created 2 different packages, regardin two differnt topics.
WEB-INF/classes/Topic1/*..class
WEB-INF/classes/Topic2/*.class
Actually I want a Topic1 class uses a Topic2 class.
Than the java source file in Topic1 contains
import Topic2.myClass;
but whe I try to compile I got the error:
class file contains wrong class:Topic2.myClass
Please remove or make sure it appears in the correct subdirectory of the classpath
I've even tried to add the complete path to classpath, but It doesn't work.
What can I do?
Thank's

your classpath during compilation should have this, assuming your Java source files are in the classes directory also...
<path-to>/WEB-INF/classes

Similar Messages

  • Web Application and Serialization

    Hi, i have a problem with a web application that is running on an Application server (BEA WebLogic 7.0). I have only the war file of the web application and i must know if in this war there is a class that is not serializable.
    How can i find it ? Is there a tool that can help me to find not serializable classes ?
    Thanks.
    claudiozx2006

    One way to do that is to decompile Java classes with Java decompiler and see which one doesn't implement Serializable interface. Here is a link to a good decompiler: http://www.kpdus.com/jad.html

  • Web application and desktop application?

    Hi everyone,
    I am new to this platform.I have a basic doubts that whats the difference between developing application in flex as a web application and desktop application from programming point of view?Can we use same code in both cases?
    Please guide me....
    Thanks

    Hi and welcome,
    The main difference between a web application and a desktop application is that web applications do not have access and can't manipulate your local system ( you can't open a window that displays all your local files, you can't delete, rename, edit local files and so on ). Obviously, this is just one difference, there are many more ( the best would be if you google for "web aplication vs desktop application" because the same rules apply for 99% if not all the platforms you can find out there ).
    Desktop applications can have full control of your local system ( obviously, we have to take in consideration the platform we are using because since AIR is quite new in the desktop application field it is also more limited than other languages that have been used successfully to create desktop applications for years and year; like ce C# or C++ and so on ).
    Another important difference is that desktop applications usually need to be installed in order to function where on the other hand, web applications can run in the browser without you having to install the aplication you are about to view on your computer ( in some cases, like of the Flash and Flex platforms, you only require a "special player" that can display the content you are trying to access... for Flash and Flex applications you need the Flash Player installed for your browser ).
    So, before jumping into a project/platform you need to know your target. If you goal is to offer a fast, easy to access and no install required application to your users then you'll usually go with a web application. If your application needs to work with local files, maybe local databases, or it needs more control over the user's PC and so on, then you'll most likely go with a desktop application.
    With kind regards,
    Barna Biro

  • Web application and site collection not accessibe

    I have created a web application and a site collection. But when I tried to access the site by browser on the server the page cannot be displayed or the server cannot be found. What should I configure? Please say by detailed steps.

    I created a host header extranet.xxx.xx and alternate access mapping is ok. But still I'm not able to access the site by http://server name:port no. It gives The web page cannot be found or this web page can't be displayed.
    Now when I try with Firefox with http://server name:port no, it gives
    "Bad request - Invalid hostname
    HTTP Error 400. The hostname is invalid."
    More: if I go to Alternate Access Mappings > Add Internal URL:s > Save is grayed out.
    You have two options,
    Option 1 : Accessing the web application without any host header name and  with the port no you have created.  (ex: (http://server1:5500 )
    Option 2. Accessing it with the host header name (ex:http://mywebapp.contoso.com)  you have created for which you need to create a DNS and set an AAM accordingly in the corresponding zone.
    For the option no 1. you need to have a host header in IIS which would be created by default while you create a web application and it should be like this unless you did nit change it. http (Type)---blank host name--All Unassigned in the IP section---and
    the port no in which you have created.
    PS : If you have one more IP address in the server, its good to set the same IP address which is set for server for the name resolution to happen properly.
    If you have n't specified the hostheader while creating the web application, then you need to add it manually with the existing one which is there for option no 1. It should be added as below. http---Mywebapp.contoso.com--IP address in which you have created
    the DNS and Port 80.
    If AAM save is grayed out, check it from some other browser. Also Hostname invalid clearly implies that there is some problem with the name resolution. Check whether you could ping the webapplication from the server where you are trying to access it.
    Veeramani.S

  • Web application and Scanner

    Web application (ADF-application) and Scanner (device that optically scans images, printed text)
    how to implement a scan from a web application and the ability to preview the scanned document (in the ADF-application) before uploading to the server.

    Oracle has a product, which I worked on, for imaging. It may or may not be what you need.
    http://www.oracle.com/technetwork/middleware/webcenter/content/index-090652.html

  • Best report to check application and package deployment compliancy?

    I am looking for the best report to check application and package deployment compliancy.
    Preferably targeting a collection.
    tconners

    I'm recommending this one:
    Software Distribution - Application Monitoring folder -
    All application deployments (advanced)
    It allows you to select Collections and applications
    Kent Agerlund | My blogs: blog.coretech.dk/kea and
    SCUG.dk/ | Twitter:
    @Agerlund | Linkedin: Kent Agerlund |
    Mastering ConfigMgr 2012 The Fundamentals

  • There is an inconsistency between the authentication mode of target web application and the source web application after migrating to claims

    I've had my farm upgraded from SP2010 to SP2013 for over 6 months now and all is well, however, I was refreshing my staging environment from production and I noticed that one of the databases still shows these errors when I run test-spcontentdatabase:
    Category             : Configuration
    Error             : False
    UpgradeBlocking : False
    Message           : The [SharePoint Web App] web application is configured with claims authentication mode however the content database you are trying to attach is intended to be used against
    a windows classic authentication mode.
    Remedy              : There is an inconsistency between the authentication mode of target web application and the source web application. Ensure that the authentication mode setting in upgraded web application is the
    same as what you had in previous SharePoint 2010 web application. Refer to the link "http://go.microsoft.com/fwlink/?LinkId=236865" for more information.
    This doesn't make sense considering I converted the production web application to claims during the upgrade and then verified all sites were working with claims logins. I also verified that existing AD user identities were converted to claims by checking out
    the database tables. Yet test-spcontentdatabase still thinks there is a mismatch here.
    My farm is SP1 and no further CUs. The point of this particular refresh is so I can update to the November CUs in my test farm. Anyone else see this? Seems like it's a bug/safe to ignore because my stuff is working.
    Thanks,
    Aaron

    See:
    http://thesharepointfarm.com/2014/11/test-spcontentdatabase-classic-to-claims-conversion/
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Registering Web Applications and accessing common files

    If I create 3 web applications and have a seperate folder for common jsps
              that the jsps in these 3 web apps include, how can I access the jsps and js
              in this common folder? The JSP compiler was able to compile. The folders I
              created are all under the applications directory, including the common
              folder. I use the inclide file directive with ../common/scripts.js and the
              compiler could not recognize the location.
              Thanks!
              Kenny
              

              If you application folder like:
              application/
              webApp1/
              webApp2/
              webApp3/
              common/
              You may try /common/scripts.js
              "Kenny Kon" <[email protected]> wrote:
              >If I create 3 web applications and have a seperate folder for common
              >jsps
              >that the jsps in these 3 web apps include, how can I access the jsps
              >and js
              >in this common folder? The JSP compiler was able to compile. The folders
              >I
              >created are all under the applications directory, including the common
              >folder. I use the inclide file directive with ../common/scripts.js and
              >the
              >compiler could not recognize the location.
              >
              >Thanks!
              >
              >Kenny
              >
              >
              

  • App-V 5.0 Reporting Application and Package Information Not Available

    I have SQL Reporting Services set up and Excel and am able to interrogate AppVReporting DB using both. The problem is the Application and Packaging DBs do not appear to be populating.
    The Client information definitely is and I can see it is updating correctly as it is showing the PCs that have been upgraded to HF4. The other two are empty. The reports run fine just with no content in them.
    There is nothing obvious in the Client-Reporting debug log on the client. If I manually do the Send- PS command I get a confirmation it has uploaded successfully. What I can't get is why one part of it appears to be updating correctly but not another but
    there is no separation anywhere that would explain it.
    I am guessing that it may be something to with a permission issue but hopefully someone can point me in the right direction. The only other thing I think a little bit strange when looking through the client settings is Reporting is enabled when I check
    in Powershell but if I go through regedit and look at the App-V 5.0 client reporting settings Reporting Enabled =0. May be a red herring but just thought I would include if it rings any bells for anyone.

    Hello,
    There is a stored procedure that processes the sent information. According to Microsoft it is scheduled to run at 00:00 everyday
    http://technet.microsoft.com/en-us/library/jj692560.aspx
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • Clients getting Applications and Packages, but NOT Software Updates

    I am trying to set up a new SCCM2012 installation and have come across a strange problem that I need help on.
    We have a single primary site at one location with distribution points at several other locations. Clients at some of the locations (but not all) are able to get deployed applications and packages from their DP, but for some reason are not able to get Software
    Updates from the same DP.
    When I look in the LocationServices log, I can see it contact the DP when an application is available. The following appear in the log:
    Current AD site of machine is XYZ
    Calling back with the following distribution points
    Distribution Point='https://<My DP>...,Locality='LOCAL',DPType='Server',Version='7958', etc.
    Calling back with locations for location request {<CID>}
    But otherwise, the LocationServices log is filled with:
    Current AD site of machine is XYZ
    Calling back with empty distribution points list
    Current AD site of machine is XYZ
    I don't understand how the machine is able to locate and work with the DP for Applications/Packages, but not for Software Updates. I'm thinking it must be something with the boundaries/boundary groups, but I have checked and everything seems to be fine,
    and they are working for Apps/Packs. 

    The WindowsUpdate.log seems to indicate that it is talking with the MP:
    **START** Agent: Finding updates [CallerId=CcmExec]
    *Include potentialy superseded updates
    *online=Yes;Ignor download priority=Yes
    *Criteria="(DeploymentAction=* AND Type='Software') OR (DeploymentAction=* AND Type='Driver')"
    *Search Scope={Machine}
    +++++ PT: Synchronizing server updates +++++
    + ServiceId= {<CID>}, Server URL = <My MP with appropriate port>
    Agent * Added update {<CID>}.202 to search result
    * Found 289 updates and 77 categories in search; evaluated appl. rules of 2711 out of 4339 deployed entities
    ** END ** Agent:Finding updates [CallerID=CcmExec]
    But there is no mention of my DP.

  • Web Application - Installation Package - Which Tools?

    Good afternoon everybody.
    I'm on the main Java forum, so I hope somebody will help me with my problem.
    I have to make installation package for my web application. This app is written using JSP and Servlets technologies. It uses Apache Tomcat + PostgreSQL database. I need to create such package which will be able to install Apache Tomcat if it's necessary, then deploy there my web-app, then install PostgreSQL if necessary (if it's not installed).
    Some people advised me these tools: InstallAnywhere, NSIS. In plus I've found here the topic about installation package: http://forum.java.sun.com/thread.jspa?threadID=758179 . There are advised: Advansed Install and Inno Setup.
    I tried InstallAnywhere, Advanced Install, Inno Setup - and found out that all these is not for WEB applications. All of it is for services or desktop apps and needs main classes to be chosen.
    But how to be in my case? Will NSIS help me in it? Or maybe somebody knows another tool? I'm sure that some people here did such things already, because here are professionals. Can anybody help me please?
    Huge thanks in advance!

    Hello, man!
    I am using Inno Setup - it is really powerfull tool. It is not for web-apps but I don't hear anything about special installers for this stuff.
    However, I think you're able to do what you want with this. You just need some other tools like Ant or Maven. Why don't you generate ant-script for your application? You will need install Apache, Ant, Other files, and then just execute ant on build.xml.
    So the idea is to do something with other tools if you can't do it with the help of installer.
    Bye!

  • Web application and web.xml

    i have a web application consisting of 1 servlet and 5 jsps.
    the start point would be index.jsp
    i use firmwide login page. after login, i want the browser to display index.jsp page.
    In web.xml, i have defined -
    <welcome-file-list>          <welcome-file>/jsp/index.jsp</welcome-file>     </welcome-file-list>       <servlet>        <servlet-name>UtilitiesServlet</servlet-name>        <servlet-class>com.gs.fw.sox404.utilities.UtilitiesServlet</servlet-class>             <init-param>             <param-name>util-log4j-init-file</param-name>             <param-value>/WEB-INF/classes/util_log4j.properties</param-value>          </init-param>        <load-on-startup>1</load-on-startup>    </servlet>     <servlet-mapping>        <servlet-name>UtilitiesServlet</servlet-name>        <url-pattern>/UtilitiesServlet</url-pattern>    </servlet-mapping>if i define it as just index.jsp in the welcome file list, after successful login, it displays the dir structure of the web app.
    if i define it as jsp/index.jsp, then in some of the pages, it tries to find the servlet inside jsp folder.
    What would be the best way to get around this?

    Well, yes, it's not able to find it because you've not understood the mechanism of how it works clearly. You have to put your welcome file under every directory you want it to be used from. Like I said, it's not a path, it's a filename. So if the container sees that your request URL is for a directory, it'll look for the welcome files from the welcome file list, one by one, in the order of declaration. Whichever one it finds first, it'll serve that. If it doesn't find any, then it'll either give a 404 or a directory listing depending on the server and it's settings.
    So your problem is that you've put your index.jsp in your JSP folder but expect it to be served for all URLs. That won't happen, you'll have to put one file named index.jsp into every directory. The reasoning is pretty simple, what if you want different behaviour for each folder?
    This should fix your problem :)
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    ----------------------------------------------------------------

  • Web Application and Custom JavaMail Providers

    We have a web application that uses custom JavaMail Providers on Weblogic 7.0.
    The structure of the WAR file is as follows:
    |-WEB-INF
    |-lib
    |-activation.jar
    |-mail.jar (as provided by Sun for JavaMail 1.2)
    |-custommail.jar (custom JavaMail providers)
    |-... (other jars for web application).
    Now the JavaMail Session object cannot find the custom providers as it appears the Web Container is loading the JavaMail classes (Session) from the WebLogic.jar instead of mail.jar from the web application's lib directory.
    How can I configure the web application to load classes from the mail.jar in the applications lib directory?.
    This configuration works on Tomcat 4.0.4.
    Vikash

    This is standard behavior in WebLogic - the child classloader (the
    classloader for the web applicaiton) will always
    delegate to the parent classloader (the system classloader), and so it will
    alwyas find the ones included in weblogic.jar
    first.
    You can get around this in two ways:
    a) Put the classes in weblogic's classpath (Before weblogic.jar)
    b) You can set the "Prefer Web-Inf Classes" attribute of a web application
    (see Admin console).
    In this case the web application classloader will not delegate, but
    always look locally first.
    Just be careful in this scenario not to pass an object created by the
    web applicatino classloader to say
    an EJB. ie. don't pass a mail session object, as then you'll get a
    classcastexception.
    Regards,
    Jon

  • Web Application and Java Application

    Hello,
    I have a standalone Java application and a web application (JSP/Servlets) that I would like integrate. The standalone app. should send some information to my web app (which is not a problem), but then the user can be at this web app. for a while and then once he sees something he likes here, he can select it which should take him BACK to the standalone application. My question is whether something like this is possible?
    If so, then how do i do it.
    Also the web app and the standalone app run to 2 separate machines and 2 different JVM's.
    Any kind of help will be great.
    Thanks

    Well let me describe the scenario in detail
    We have a standalone java application that is good to search for data across an enterprise database. We also have another application which is web based and uses jsp's and servlets and is good for displaying data in different ways, let's say different kind of graps. Now the user will typically search for something using the standalone application and once he finds what he is looking for, then he might say that he wants to graph the selected data using this web application. Now this part is not too difficult as the standalone app can simply POST the selected information to the web app and the web app can then plot the graph. However, the tricky part is that this web application has the capability to allow the user to select let's say a bar and then get additional info. on that bar. Now to get this additional info. the web app. must contact the standalone app and tell it what bar was selected to get the additional info.
    so my concern is how does the web app contact the standalone app. or even KNOW about this web app. Also, RMI is pretty flaky and i would much rather use web services to accomplish it. If that is the only way to go that is.
    Hope that helps.

  • SPWebConfigModifications Duplicate entries, applying to all Web Applications and not removing entries

    Hi,
    Hopefully someone can offer some advice, I may be missing something obvious here.
    I'm currently trying to write a feature event receiver to apply web.config modifications that are required by a recent project. 
    The feature is web application scoped & it doesn't activate by default on deployment, currently testing with a very small addition isn't working at all, I've followed numerous posts about duplicate entries & items being removed, none of which have
    helped.
    Here is my code;
    public override void FeatureActivated(SPFeatureReceiverProperties properties)
                SPWebApplication webApp = properties.Feature.Parent as SPWebApplication;
                    SPWebConfigModification Modification = new SPWebConfigModification();
                    Modification.Owner = "ConfigUpdater";
                    Modification.Path = "configuration/appSettings";
                    Modification.Name = "add[@key='Test']";
                    Modification.Sequence = 0;
                    Modification.Value = "<add key='Test' value='Server=TestServer;Database=TestDB;Trusted_Connection=True;' />";
                    Modification.Type = SPWebConfigModification.SPWebConfigModificationType.EnsureChildNode;
                    if (!webApp.WebConfigModifications.Contains(Modification))
                        webApp.WebConfigModifications.Add(Modification);
                        webApp.Update();
                        webApp.WebService.ApplyWebConfigModifications();
            // Uncomment the method below to handle the event raised before a feature is deactivated.
            public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
                SPWebApplication webApp = properties.Feature.Parent as SPWebApplication;
                Collection<SPWebConfigModification> modsCollection = webApp.WebConfigModifications;
                int count = modsCollection.Count;
                for (int i = count - 1; i >= 0; i--)
                    SPWebConfigModification mod = modsCollection[i];
                    if (mod.Owner == "ConfigUpdater")
                        modsCollection.Remove(mod);                   
                webApp.Update();
                webApp.WebService.ApplyWebConfigModifications();          
    Upon activation on 1 web app, the entry gets added twice to the web.config of every web application in the farm & upon deactivation the entries remain in the web.config files.
    On activation, after this line, webApp.WebConfigModifications.Add(Modification); the webApp is updated to include the entry & only once, however 2 entries for it appear in the web.config files & as mentioned for every web application.
    On deactivation, after updating the web app, the modification is removed, however it remains in the web.config files.
    I'm wondering if the code actually works, as I can't see anything wrong & if there is some caching occurring somewhere which is applying the extra line/s upon calling ApplyWebConfigModifications.
    Any help on this would be much appreciated.
    Thanks,
    James

    Hi James,
    Per my understanding, there is an entry gets added twice to the web.config file of every web application in the FeatureActivated event.
    As a common practice, I suggest you debug your code to see how it works during the process, it will provide more information for a better troubleshooting.
    Also, you can test the code in a Console Application to see if it will work as expected.
    Thanks         
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for