Running JSC projects without the /myapp URL appended

I have been searching a long time and I'm stuck.
If I set the Context Path in the Project Properties, Sun App Server uses it no problem. So I thought that clearing it and exporting a WAR file would do the same behavior in Tomcat (so I can use Virtual hosts for every project) but it looks like not.
I just want to avoid having people type http://<site URL>/myapp if I create a project called myapp. I want to be able to use only http://<site URL>.
I kinda sort it out by exporting my .war file to tomcat's webapps directory and create a Virtual host that points to webapps/myapp. That works except when I use JDBC where the path of its Context cannot be empty or set to path="/"
I'm still learning JSC, Tomcat setup and Java for that matter but I hope someone has a hint on how to avoid appending the project name to the URL.
Thanks,
Benoit

You should have a look at the Sun Application Server Admin Guide. Setting up a virtual host for it is something like to:
1. Deploy your web module.
2. Create a virtual server, with your web module as the default module.
3. Create a HTTP listener on an arbitrary port (ex. 8081) with a default virtual server as defined in 2.
Then you will be able to access http://yourvirtualserver:8081 without an specific context path.
Hope this helps.
Antonio.

Similar Messages

  • Creating "Back" Navigation in a Branching Project Without the Playbar or a TOC?

    Hello,
    I've been struggling with accomplishing a very simple goal: in my Captivate project, I want there to be a "Back" button on every single slide that sends the user back one slide based on their navigation history throughout the slide.  The playbar must be disabled, and I don't want the user to have to deal with a Table of Contents.
    Because this is a somewhat complex branching project, using the "go to previous slide" selection for a button will not work -- this simply sends the user one slide back in the filmstrip, and that might not be where I want them to go.
    Using the "go to last slide viewed" selection for a button also will not work.  This creates an infinite loop in which once the user clicks the "Back" button on one slide, they will go to the previously viewed slide, but when they click it again, they will return to the original slide.  For example, repeatedly clicking this Back button will send the user from slide 2 to slide 1, then slide 1 to slide 2, then slide 2 to slide 1....etc.
    Basically, all I want is an internet browser-style back button within my project.  I figure this is a fairly common thing that project creators want to do, so I checked for any available widgets that might offer the desired functionality, but I've come up with nothing.
    It would seem as if my only hope lies in two potential places: either the execute Javascript selection for buttons, or Advanced Actions.
    Before I dig too deeply there, I was wondering if anyone had a simple solution for this very basic problem.  I've looked around the forums, and this particular thread looks very relevant: http://forums.adobe.com/message/4575291#4575291 .  In that thread, it looks like the original poster just decided to create a separate swf for each of the linear branches of their project.  For my project, this would be a most inelegant and clutttered solution.
    Anyone have any ideas?  If I must use Advanced Actions / variable creation, could you point me in the right direction?  I'm on Captivate 5, by the way.  Thanks.

    Indeed this issue has come up several times over the years, because some authors would like Captivate content to work in much the same way that other web-based content playing in a browser does.  When users see content in a browser, they expect there will be a Back button that takes them to the last-visited slide. If they just keep clicking that Back button, they expect it will retrace their path through the content.
    What happens under the hood in the browser is that it stores all the URLs that the user visited in an array of sequential values, which allows the browser to retrace the user's path.
    Captivate currently has no built-in array facility available to authors for this purpose.  Captivate variables can only store one value.  Advanced Actions are not powerful or flexible enough to build the kind of programmatic loops that would allow you to traverse a series of variables to try and duplicate typical Back button functionality.
    It might be possible to do all of this using some fancy JavaScript coding, but you (or someone that owes you a favour) would need decent coding skills to pull it off.
    I think it would be great to log an enhancement request with Adobe for a couple of Advanced Actions to be added for this need.  Perhaps we could call them Go Back History -1 and Go Forward History +1.  These would just reference an internal array somewhere in the bowels of Cp where the History is kept.  Then all authors would need to do is choose this as a button action or an action in a conditional advanced action of some kind.

  • HT3131 how can i run in clamshell without the power adapter plugged in?

    just what the question states..I dont want to have to always connect the power adapter. thanks

    thanks this works well with the power adapter pluged into the mac, but I am looking for this exact setup without the need for the power to be supplied to the mac.
    in otherwords, run it off the battery only.
    I want to think that there is either a preferences setting, or function to be able to do this.
    currently it appears that the mac will only run in the configuration with external perpherials with the power supply.

  • How do I run my application without the java prefix?

    Hi, I am new to Java but have been created some cool applications that run in the terminal.
    The problem is that every time I run my program I have to type "java +<program name>+", even after I compile the program with javac.
    My question is how do I make it so I can just type "<program name>" without the prefix of "java"?

    Write a shell script that includes the command you want to run.
    Edited by: pbrockway2 on Apr 5, 2008 3:27 PM
    I guess you're using Windows (or you wouldn't be asking ;). If so, shell scripts are called "batch files". Have a read of this:
    [www.computerhope.com/batch.htm|http://www.computerhope.com/batch.htm]
    (Executable jar files are another approach, but they are quite a bit more work. If your intention is to run a particular command like
    java MyAppthen a batch file is easiest.)

  • Can you run an executable without the entire run-time engine?

    We have a 8.2.1 LabVIEW compiler that we have made our program with, but we need to use an NT computer to run it on.  Is there a way to get the 8.2.1 runtime manager to work with it or can we use an older version?  Or are we simply out of luck?

    I have no idea if this still works, but you could try the method described by Waldemar in this old post:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=46409#M46409
    It seems you might even be able to run things directly from the CD. Sorry, never even tried any of this. Good luck!
    LabVIEW Champion . Do more with less code and in less time .

  • Opening Projects without the "Fail" Menu!

    I am going to settle the arguent that one cannot open a file from the "File" Menu. Mostly, you can not do this for too many projects except the most recent. However, you can open your projects from within Logic Express * by doing as follows:
    1. In he upper right corner of the Window, click on the "Media" icon.
    2. Next, select the "Browser" tab below where the Media icon is located.
    3. At that point, you have a list of your projects and may choose whatever you want.
    Try it! I can't wait for the "Atta Girl" comments!

    Dunno about 'atta girl' but I'll say thanks! I'm new to logic and still have a lot to learn. Thanks for the heads-up.

  • On the mac mini 2011 how can I run windows 7 without the optical drive, On the mac mini 2011 how can I run windows 7 without the optical drive

    On the mac mini 2011 how can I run windows 7pm bootcamp without an optical drive.  I watch lots of football on sop cast and other such windows based programmes but can't work out how to do it.

    Actually Windows can be installed and booted from an external drive if the drive is connected eSATA (external SATA), since the drive is treated as if it's an internal HDD. I used the same method previously to dual-boot from 2 different HDD instead of partitioning.
    Most PC motherboards come with them as standard so it's pretty much plug and play but I don't recall seeing a recent Mac with eSATA connectivity though, so that might not be an option for you.

  • Can I run a presentation without the presenter display?

    Here's the setup: Mac Mini in the office attached to a 32" Sony Bravia on the wall outside the office and a 19" LCD locally. I'd like to run a slideshow out on the Bravia, but maintain my desktop inside. I can disable the 'Use alternate display to view presenter information' from within Preferences, but that blanks out my local screen while running the slideshow on the HDTV. I want to be able to run the presentation within Keynote, but keep the ability to work on other things on the desktop. Anybody done this?
    PS, i know I can export the slideshow as a QT video and drag it to the second display and loop it, but I'd like to be able to change slides on the fly without rendering a whole new movie to play on the second screen. Thanks for any input!

    Under Keynote preferences, there is an option for "Present on Primary Display", or "Display on Secondary Display". Does this not work when you choose secondary display and nave it leave your primary display as your Finder window? Just curious, since I don't have two displays to try it.

  • How can you perform a factory restore on an iMac running mountain lion, without the use of an apple id

    Hello!
    I am a computer tech working for a computer company.  We have an iMac here in the store which a customer needs restored to factory defaults. 
    I have tried the following:
         - Using 'command + r' to format and reinstall mountain lion (it is requesting an apple id that has purchased the mountain lion OS)
         - Using 'option' on boot up, same seneraio
    Is their any other way to perform some kind of equavilent procedure that would ready a iMac for re-selling?
    It's almost as though I need to purchase a copy of the operating system that has already come preinstalled on this system.
    Im not a mac savy user, maybe it's something simple i am missing.  Any help with this would be greatly appreiated!  Thanks in advance!

    bonniefrom nl wrote:
    Hello!
    I am a computer tech working for a computer company.  We have an iMac here in the store which a customer needs restored to factory defaults. 
    I have tried the following:
         - Using 'command + r' to format and reinstall mountain lion (it is requesting an apple id that has purchased the mountain lion OS)
         - Using 'option' on boot up, same seneraio
    You must have the account credentials for the account that was used to purchase Mountain Lion (this iMac was upgraded) presumably the customer.
    Is their any other way to perform some kind of equavilent procedure that would ready a iMac for re-selling?
    It's almost as though I need to purchase a copy of the operating system that has already come preinstalled on this system.
    Boot the iMac, go to Apple>About This Mac>System Report, post the model identifier here (under hardware, 2nd line down)

  • Deploying JSC projects in Tomcat

    If we deploy JSC projects in Tomcat we have to access the server.xml and tomcat-install-directory/shared/lib. Many web hosting providers do not allow access to these. This makes JSC project deployment in Tomcat very challenging.
    Are there sny alternative ways to deploy JSC projects without accessing Tomcat locations (server.xml and shared/lib folder) except the webapps folder. For example, can I put the jstl.jar and standard.jar someware inside my JSC project? Can I do some changes in my web.xml instead of modifying server.xml?
    Any advice is very much appreciated.
    Thank you very much.

    You can get around the server.xml changes. You will have to create a context.xml
    look at
    <br>
    http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
    http://tomcat.apache.org/tomcat-5.0-doc/deployer-howto.html#Context%20descriptors
    <br>
    for instance. I believe that context.xml has to go into <webapp>/META-INF directory. But I did not find a reference right now.
    The only question I have, would be if Tomcat would share DataSources from different webapps when they are configured in the context.xml, instead of the global context.
    I hope that helps a bit.
    Thanks,
    -- Marco

  • Is it possible to power the macbook pro on just the wall charger, without the battery?

    I'd like to be able to not even use the battery on my computer. Is it possible to run it just off of the wall plugin?

    I have a late 08 Macbook Uni,  I wanted to run it without the battery when I first got it since I got used to running my Dell Laptop without batteries to save my battery from dying because of windows bad power management.
    I found out that my macbook runs much slower without the battery.  Can't really tell you why it just does.
    Do remember that Macbooks have a much better power management system than windows.  My Dell Laptop battery didn't even last 3 years before it fully died.
    My late 08 Macbook is way over it's 1000 charge cycle ( i'm at 1067 ) and i'm still getting over 3 hours from my original battery.
    I suggest you leave your battery in.
    Just follow apple's battery care procedure to make your battery last longer - if that's what you're worried about.
    good luck

  • Running a project by clicking a icon without running oracle form builder

    Hi,
    How can I Run a project by clicking a icon without running oracle form builder?????
    Regards
    Ashraf

    Hi!
    For forms 6i client/server just create a shortcut for your application like:
    %forms_home%\bin\ifrun60.exe your_formand set the working path to your forms folder.
    For web forms create a shortcut with the url to your server/pc like this:
    http://pcname:port/forms/frmservlet?config=your_configand create a config entry in your %forms_home%/forms/server/formsweb.cfg
    for setting the modulename (fmx) and the working path for your application.
    Regards

  • Invoking a web service with the WSDL URL given at run time

    I have created a very Simple Web Service using Netbeans 6.0 as an EJB Module. I have successfully created clients to access the web service, both through a Composite Application and through a simple Java Desktop Application, using the create "New Web Service Client" option, either by pointing to the EJB project either by providing the WSDL URL.
    What I want now, is for the Java Desktop application to be able to consume the service after it has discovered the WSDL URL at runtime (e.g. through UDDI).
    From what I have been able to find on the web, I should use the javax.xml.ws.Service class. But when I attempt to use the getPort method I get the exception:
    "com.sun.xml.ws.model.RuntimeModelerException: runtime modeler error: Wrapper class mypackagename.jaxws.MyWebServiceName is not found. Have you run APT to generate them?"
    Since I know that this class is not needed for the Web Service to be accessed, when the two procedures I describe above are used, I wonder what I can do to get this to work.
    I have tried using apt from the command line but it can't find Java EE classes, so it doesn't work.
    Nikos

    Hi Yarecki,
    I'm afraid I'm also a newbie, and I'm feeling my way around things.
    I have written some code. However, you should be warned that... it doesn't work!
            String wsdlLocation;//=...some URL...
            String input;//=...XML...either SOAP message either SOAP payload
         try{
             java.net.URL wsdlURL = new java.net.URL(wsdlLocation);
                //these should be extracted from the service WSDL document
                java.lang.String serviceName = "CalculationServiceService";
                java.lang.String portName = "CalculationServicePort";
                String namespace = "http://localhost:8080/CalculationServiceService";
                javax.xml.transform.Source inputSource = new javax.xml.transform.stream.StreamSource(new java.io.StringReader(input));
                javax.xml.namespace.QName serviceQName = new javax.xml.namespace.QName(namespace, serviceName);
                javax.xml.namespace.QName portQName = new javax.xml.namespace.QName(namespace, portName);
                javax.xml.ws.Service service = javax.xml.ws.Service.create(wsdlURL, serviceQName);           
                javax.xml.ws.Dispatch<javax.xml.transform.Source> dispatch =
                      service.createDispatch(portQName, javax.xml.transform.Source.class, javax.xml.ws.Service.Mode.MESSAGE);
           //javax.xml.ws.Dispatch<javax.xml.transform.Source> dispatch =
               //service.createDispatch(portQName, javax.xml.transform.Source.class, javax.xml.ws.Service.Mode.PAYLOAD);
    //alternative method, with different input
                javax.xml.transform.Source replySource = dispatch.invoke(inputSource);
                javax.xml.bind.JAXBContext jc = javax.xml.bind.JAXBContext.newInstance(nikos.test.CalculationResult.class);
                javax.xml.bind.Unmarshaller unm = jc.createUnmarshaller();
                nikos.test.CalculationResult result = (nikos.test.CalculationResult)unm.unmarshal(replySource);
                System.out.println(result.getResult());
            } catch (JAXBException ex) {
                JOptionPane.showMessageDialog(this, ex);
                ex.printStackTrace();
            } catch (MalformedURLException ex) {
                ex.printStackTrace();//this should not happen.
            }In fact I'm getting a weird error
    javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException
            at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:187)
            at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:108)
            at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:187)
            at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:206)
         //lines from my source code are here
    Caused by: javax.xml.ws.WebServiceException: java.lang.NullPointerException
            at com.sun.enterprise.security.jmac.config.PipeHelper.makeFaultResponse(PipeHelper.java:328)
            at com.sun.enterprise.security.jmac.config.PipeHelper.getFaultResponse(PipeHelper.java:366)
            at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:223)
            at com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129)
            at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
            at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
            at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
            at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
            at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
            at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
            at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
            at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
            at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:113)
            at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:87)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:200)
            at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:129)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
            at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:114)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:87)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
            at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
            at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
            at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
    Caused by: java.lang.NullPointerException
            at com.sun.xml.ws.tx.service.TxServerPipe.process(TxServerPipe.java:163)
            at com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218)
            ... 39 moreAs I've said before I've called this web service successfully using three different methods.
    It appears it has something to do with security issues, but I've no security at all...

  • How do i disable orientations for a specific view in my tab bar project without disabling for the other views?

    How do i disable orientations for a specific view in my tab bar project without disabling for the other views?
    Any suggestions?

    Note that you can also hide the tab bar completely with code in the userChrome.css file.
    Add code to the <b>userChrome.css</b> file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #TabsToolbar { display: none !important; }
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration

  • Can we send a request without knowing the actual url..

    Tomcat is running at the back.
    I know the port no on which the server is running now.
    Can we send a request to the server even if we dont know the exact url
    for example I developed a form which authenticates the user, after authenticating the url will be some thing like this
    http://localhost:8090/temp/AdminRegister?uname=user?pass=user123now can the user login even without knowing the exact username and password by manipulating the url..

    it is your own risk to your applets to communicate with DBs because nobody suggests that. I agree with the Javascript story and the frames. It can be done but i thought he wanted to do that in one single page. And finally, i dont trust frames that much. I have seen many times the 404 error found on pages and because i use dynamic pages i have to make connection for each frame. and with throusands users being online it is bad for my server (traffic).

Maybe you are looking for