Visual Web Pack looking for AppServer but set for Tomcat

I am having trouble starting a Creator 2 project I imported into the Visual Web Pack. It seems to be trying to use the AppServer which I do not have installed. It is set up to use Tomcat55. I set it up following the import instructions. It is clearly marked Tomcat55 in project.properties. It wont launch though. It just prints null and the following error is in the ide log...it happens every time i try and run the project. Other projects I create in VWP run fine with tomcat embedded. The error is:
INFORMATIONAL *********** Exception occurred ************ at 8:25 PM on Jan 16, 2007
javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: deployer:Sun:AppServer::localhost:4849 The Application Server installation directory is not correctly set up. (Use the Tools->J2EE Platform Manager menu to correct.)
at org.netbeans.modules.j2ee.sun.ide.dm.SunDeploymentFactory.getDisconnectedDeploymentManager(SunDeploymentFactory.java:130)
at org.netbeans.modules.j2ee.deployment.impl.Server.getDisconnectedDeploymentManager(Server.java:144)
at org.netbeans.modules.j2ee.deployment.impl.Server.getDisconnectedDeploymentManager(Server.java:138)
[catch] at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.getDeploymentConfiguration(ConfigSupportImpl.java:432)
at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.getWebContextRoot(ConfigSupportImpl.java:227)
at com.sun.rave.project.jsfproject.ProjectWebModule.getContextPath(ProjectWebModule.java:107)
at com.sun.rave.project.jsfproject.ui.customizer.WebProjectProperties.init(WebProjectProperties.java:328)
at com.sun.rave.project.jsfproject.ui.customizer.WebProjectProperties.<init>(WebProjectProperties.java:262)
at com.sun.rave.project.jsfproject.WebProject.getWebProjectProperties(WebProject.java:466)
at com.sun.rave.project.jsfproject.RaveWebActionProvider.invokeAction(RaveWebActionProvider.java:124)
at org.netbeans.modules.project.ui.actions.ProjectAction.actionPerformed(ProjectAction.java:96)
at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:139)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)
at java.awt.Component.processMouseEvent(Component.java:6038)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
at java.awt.Component.processEvent(Component.java:5803)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4410)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2429)
at java.awt.Component.dispatchEvent(Component.java:4240)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Message was edited by:
CandideEC

Hi!
It seems to me that your application is deployed to Sun Application Server. Try to change Deployment Server in project's properties. For that:
1) Rightclick on top of project in 'Projects' window.
2) Select Properties.
3) Change Server in 'Run' section.
Thanks,
Roman.

Similar Messages

  • Problem passing quoted parameter to MySql from Visual Web Pack

    In my session bean VWP did generate:
    private CachedRowSetXImpl myRowSet = new CachedRowSetXImpl();
    The query for myRowSet is:
    SELECT * FROM myTable WHERE name IN ( ? )
    The parameter was passed in different ways ( getSessionBean1().getMyRowSet().setString(1, parameterValue) ) :
    parameterValue = "paul','peter";
    or
    parameterValue = "paul\',\'peter";
    BUT in all cases MySql add backslashes to my quotes in this way:
    SELECT * FROM myTable WHERE name IN ( 'paul\',\'peter' )
    or
    SELECT * FROM myTable WHERE name IN ( 'paul\\\',\\\'peter' )
    And of course this is not working.
    I only want MySql execute : SELECT * FROM myTable WHERE name IN ( 'paul','peter' )
    I tried : getSessionBean1().getMyRowSet().getStatement().setEscapeProcessing(false)
    Two days on this simple thing and only thing I got was a headache.
    Pleas help me, Visual Web Pack is a great Tool, but i can't get work done.

    Thanks for yoyur reply Futeleufu_John
    If I try the way you say
    parameterValue = "'Paul','Peter'";then MySql log shows:
    SELECT * FROM myTable WHERE name IN ( '\'paul\',\'peter\'' )Every sigle quote ( ' ) is replaced by ( \' )
    I abandone visual web pack as my first alternative until my brain or someone else's can resolve this.
    Again, please help me if you get some idea.
    Note : I know this seems aparently very easy to solve, Im not a professional programmer, but I develop web apps in java / tomcat more than 3 years ago and is the first time that an issue gets unresolved for me :�(

  • Netbeans 6.0 Visual Web Pack and facelets

    Is it current possible to use Netbeans 6.0 Visual Web Pack and facelets and/or Seams?
    If so please point me to some useful resource.

    >
    ...Below is from the Launch tab:>What exactly is a 'launch tab'? Are you talking about some NetBeans window?
    The reason I ask is that the 'JNLP file' shown, is complete rubbish. It is a bunch of symbols pretending to be a JNLP file. The fundamental problem is that it is invalid (and hence it is not the 'JNLP format' it claims to be).
    How any particular Java implementation deals with an invalid JNLP file is quite unpredicatable.*
    Please people, do not just 'presume' that you (or your IDE) can write a valid JNLP file. Instead - validate it against a DTD or XSD.
    After all.. Garbage in, Garbage out!
    * And to the poster who mentioned that adding the first Jar line twice solved the problem. That is a dangerous and fragile kludge. If it works in some specific microversion of Java, it might (probably will) break in the next.
    Edit 1 - Highlit the most major error in that file using 'code' tags. Hopefully that will make the basic problem more obvious..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" "/>Edited by: AndrewThompson64 on May 21, 2008 9:20 AM
    Edit 2 - Added possible alternatives..
    <j2se version="1.5+" java-vm-args="-Djava.endorsed.dirs='C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api' "/>
    <j2se version="1.5+" java-vm-args='-Djava.endorsed.dirs="C:\Program Files (x86)\NetBeans 6.0.1\java1\modules\ext\jaxws21\api" '/>The hard coded path, as well as the use of unescaped backslashes (e.g. '\' as opposed to '\\') also looks suspiciously wrong, but since I only deploy off the internet, I am not entirely sure.
    Edited by: AndrewThompson64 on May 21, 2008 9:26 AM

  • Example of use of table on visual web pack (netbeans 5.5.1)

    I want one sample (or article, paper, example ...) that shows how to use the component table (of netbeans 5.5.1 visual web pack) retriving data from ObjectListDataProvider (by use of method .setList(List<MyObject>) ...) populate the table and having one collun with radio button and the way to retrive this especific object (selected by user on radio button).

    The getPersons() code will give an ClassCastException error. Change it to:
       public SelectItem[] getPersons()
       ArrayList<SelectItem> people = new ArrayList<SelectItem>();
       //Start For Loop reading from database into 'item' Object
        people.add(new SelectItem(item.getID() + "",item.getName()));
       // End Loop
    /**This line.*/
       return (SelectItem[]) people.toArray(new SelectItem[]{});
       }But this might not be the problem.

  • Visual web pack on mandriva

    hello I install netbeans on a mandriva 2008. I have one problem with the visual web pack because during the installation the system ask me where is the "path" of netbeans installation. can you help me? where is this directory?
    thanks

    Hi!
    It seems to me that your application is deployed to Sun Application Server. Try to change Deployment Server in project's properties. For that:
    1) Rightclick on top of project in 'Projects' window.
    2) Select Properties.
    3) Change Server in 'Run' section.
    Thanks,
    Roman.

  • Best way to combine Java Persistence API (JPA)  with Visual Web Pack (VWP)?

    I like the JPA/Hibernate development approach to create the database elements from JAVA classes.
    This way one gets rid of the need to keep JAVA code and the database in sync.
    However I have not yet found a good way on how to use JPA from the netbeans VWP.
    Note that I have found the tutorial on how to use the IDE with hibernate and it works without problems.
    However I think this tutorial does not really implement a good Model/View/Controller approach as it is done in the enterprise pack.
    Here you have a controller session bean that deals with all the persistence logic and that exposes properties through a DataModel to the application.
    There is no need to encapsulate logic in inherited classes of the ObjectListDataProvider.
    Maybe an example makes it more clear:
    If we stay with the hibernate tutorial that we have "Animals" and "Pavillion" entities.
    How would one efficiently design a "Table" component that shows a list of all Animals and their Pavillions.
    With the VWP approach it is quite clear: you create a RowSet with the inner/left join between Animals and Pavillions.
    But how would you do it with JPA?

    You said:
    "If we stay with the hibernate tutorial that we have "Animals" and "Pavillion" entities.
    How would one efficiently design a "Table" component that shows a list of all Animals and their Pavillions.
    With the VWP approach it is quite clear: you create a RowSet with the inner/left join between Animals and Pavillions.
    But how would you do it with JPA?"
    I have the exact same question. Have you found the answer on how to "join" entities and display them on visual web table component?

  • New To Web Design Looking  For Tutorials

    Hi, I am looking for some help and I am hoping that one of you can help me. I am a total beginner, as in complete beginner. I am looking to do a certified web design course, but can anyone point me in the direction of some DWCS5 tutorials. Beginner ones though, would like to gain some experience at least before I start my course.
    Thanks.

    The very best advice I can offer a beginner is to put Dreamweaver away.  First focus on learning  HTML and CSS code.  Without a working knowledge of code basics, DW has a steep learning curve.  If you understand code fundamentals, DW is easy to figure out.
    Start here:
    HTML & CSS Tutorials - http://w3schools.com/
    How to Develop with CSS?
    http://phrogz.net/css/HowToDevelopWithCSS.html
    Learn CSS positioning in 10 Steps
    http://www.barelyfitz.com/screencast/html-training/css/positioning/
    Best of luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Automate creation of web.xml file for tomcat 4.1.29

    hi , this is with ref to Tomcat 4.1.29, if i am correct, each Servlet in the application has to be mentioned in the web.xml file for the Tomcat to know about it. Is there any way to automate the creation of web.xml file , depending on the contents of the Servlet folder of the application. Any way to escape from writing each Servlet name in web.xml file.
    rc

    Hello,
    Maybe you should check if you can use Ant tool to do
    that. I am not sure if it can help u.
    Zeph.
    http://ant.apache.org/
    It will, specially if used in conjunction with XDoclets :
    http://xdoclet.sourceforge.net/
    XDoclet has Ant tasks to generate web.xml files.

  • Netbeans visual web pack for 6.0.1?

    Hi guys im really new to programming and i decided to do a tutorial on the netbeans website to make an app using google maps api
    to do this though i need to install the netbeans visual webpack and also the blueprint ajax components library.
    The problem is that apparently its only for netbeans 5.5... but i use 6.0.1. The one i have is newer so shouldnt those libraries still be availabe? How do I get around this??
    here is the site the tutorial is on http://www.netbeans.org/kb/55/vwp-ajaxmapviewer.html

    These forums support the Java language, not NetBeans (or any other IDE). If you can't find a matching addon, change to the 5.5 version - or ask this question at the NB site.

  • Problem: deploy war generated by netbeans 5.5(visual web pack)

    I develop web application with netbeans 5.5,
    deploy to sun app server 9.0 and work correct.
    i deploy jsf1.2 libarary to server, and add weblogic.xml to
    application that consist librery-ref='jsf1.2'.
    i deploy this war file to weblogic 10.
    when i request a page from this application that consist
    netbeans jsf component, throw exception not found setId(valueExpression) in for example: PageTag.class.
    if jsf page only consist standard component, or netbeans component do not include id attribute then page render correct.
    please help me.
    thanks.

    These forums support the Java language, not NetBeans (or any other IDE). If you can't find a matching addon, change to the 5.5 version - or ask this question at the NB site.

  • Netbeans Visual Web Pack

    Is anyone having this problem?
    In a nutshell a dataprovider associated to any database other than the default derby database will return null on dataprovider.canappend();
    I have tried it with MySQL, MS SQL and I know the permissions are right, I even had my root account get this error. However, try the same connector in JSC and the canappend() function returns true.
    Anyways, I was curious to know if any one out there is experiencing this issue.
    Cheers!

    peppertech,
    Hey thanks for the tip and the reply! First of all you are right, there is no canappend(), I was just being lazy and on capitalizing the function correctly or even referencing the correct function name.
    Good news! I figured out what the problem was... Since the connector is declared in my nb55 ide I assumed it was going to associated correctly with my development Java app servers. I knew that for production servers I would have to make the jar available to classpath of the server. In a nutshell that is the problem, a broken reference to the jdbc jar file.
    The solution is to include it in the libraries in your project's properties.... Once you deploy and run the DataProvider.canAppendRow() function you get 'true' value returned!
    Again, thanks for the reply!
    B.

  • How to redirect to library on button click in sandbox visual web part solution for office 365

    Hi,
    I have created a sandbox solution for Office 365 with one text box and a button. 
    On button click i am creating a library with name from text box. 
    So, what i want is redirect to newly created library as soon it get created on button click.
    how could i do that?
    Thanks

    Got the solution
    <asp:Literal ID="litRedirect" runat="server" />
    string redirectURL =
    listurl;
    litRedirect.Text = "<script type='text/javascript'>window.location = '" +
    redirectURL + "/';</script>";

  • How do you create monthly/ weekly calendars in Visual web pack?

    Would anyone have suggestions on how you would create monthly/ weekly/ daily calendars as in the example below, and populate them with data from a database.
    http://coba.usf.edu/departments/isds/faculty/agrawal/projects/java/cal.gif
    This example is from Airset.
    Thanks
    Manish

    You might find the following blog entry useful:
    http://blogs.sun.com/divas/entry/calendar_components_in_visual_web

  • Visual Web - How to 'setObject' for an SQL query with an IN  ? clause

    Hello, I am relatively new to visual web pack. I am stuck at writing the java code for passing parameters to the SQL query. In a normal scenario, where we need to check if some variable is present in a column (= ?), we would pass the parameter as :
    setObject(1, whatevervalue);
    How do we pass parameters if we need to check for more than one variable? The query editor in VWP has the option IN, which allows us to check for more than one match in a column. The IN clause is supposed to allow the format ('ex1', 'ex2' ...). I tried using an array as a parameter, like, setObject(1, somearray). It gives me a null exception. I even tried sending a variable in ('ex1', 'ex2' ...) format; doesn't like it either.
    Any help is greatly appreciated.

    Check the following docs:
    http://www.netbeans.org/kb/60/web/databoundcomponents.html
    http://www.netbeans.org/kb/60/web/inserts-updates-deletes.html
    See also:
    http://developers.sun.com/jscreator/reference/techart/2/query-editor.html

  • Create a Site Definition file with Visual Web part in Visual Studio

    I tried to create a site definition file in Visual Studio 2013 and SharePoint 2013 by following the MSDN tutorial:
    Walkthrough: Create a Basic Site Definition Project. Near the end, I added a virtual web part control to the site definition and registered MyWebPartControls in the site definition's default ASPX page as written in the MSDN tutorial:
    Unfortunately, IntelliSense doesn't show any MyWebPartControls: tags, and VisualWebPart1 is highlighted with a warning “Element 'SMWebPart3' is not a known element. This can
    occur if there is a compilation error in the Web site, or the web.config file is missing.”
    Since it’s a warning, I went ahead to build and deploy the solution. However, when I used the site definition template to create a subsite, it returned a parser error:
    Unknown server tag 'MyWebPartControls:TestSiteDef1.VisualWebPart1'
    I spent half day researching and debugging, and finally solved the problem. The issue is on the registration line:
    <%@ Register Tagprefix="MyWebPartControls" Namespace="TestSiteDef.VisualWebPart1" Assembly="$SharePoint.Project.AssemblyFullName$" %>
    The $SharePoint.Project.AssemblyFullName$ is a replaceable parameter to provide values for SharePoint solution items whose actual values are not known at design time. Unfortunately, it does not find the right assembly name during the deployment. It should
    be replaced by the Assembly’s Strong Name. Here is how I fixed the problem step by step:
    In Solution Explorer, open the package node and double click Package.package
    Click Manifest tab in the Package.package.
    Copy the full assembly name in the package’s manifest. It may be similar like this:
              Assembly="TestSiteDef,
    Version=1.0.0.0, Culture=neutral, PublicKeyToken=a300f1f2da8ae976"
    Back to the site definition’s default.aspx page, replace the
                     Assembly="$SharePoint.Project.AssemblyFullName"
    in the registration line with the copied text:
    Assembly="TestSiteDef,
    Version=1.0.0.0, Culture=neutral, PublicKeyToken=a300f1f2da8ae976"
    Change the Namespace from
    Namespace="TestSiteDef.VisualWebPart1"
    to
    Namespace="TestSiteDef".
    The line to register the web part in a site definition file will look like this:
    <%@
    Register
    Tagprefix="MyWebPartControls"
    Namespace="TestSiteDef "
    Assembly="TestSiteDef, Version=1.0.0.0,
    Culture=neutral, PublicKeyToken=a300f1f2da8ae976"
    %>
    Clean, build and deploy the solution. It works like charm. (Note: the warning message on visual web part may still exist, but you can ignore it).

    Assuming your .ascx.vb file is inheriting from the web part class, you can add the custom properties in the same manor (language syntax aside).
    Be sure to use the attributes to correctly identify and scope the properties. (see:
    http://www.sbrickey.com/Tech/Blog/Post/SharePoint_Attributes_for_Web_Part_properties)
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com

Maybe you are looking for

  • I need to install Adobe Acrobat plug in to enable download of PDF files

    I run an Apple Mac OSX Version 10.7.5 Please advise me which version of Adobe Acrobat plug in I need, to enable me to download PDF files, which an Australian Gov. dept says I need

  • Error in strating bam active data cache server

    operation system:win XP with sp2 After installation of bam,oracleBamCollaboration,Oraclebameventengine,oraclebamplanmonitor,oraclebamreportcache start normally.But error occured when i started the server of OracleBAMActiveDataCache,the error informat

  • How to use Filters in FileDialog class

    Hi! I want to get the open dialog of FileDialog window with filters eg, *.java. Could any one help me out to get the solution.... Regards Shan [email protected]

  • HT4325 not getting airplay button on itunes, please help

    I just updated my itunes to 11.1.5.5 on my lapatop and enabled my airplay enabled speakers, but don't get the airplay button on itunes.  FYI, using my desktop computer with the same version of itunes, the airplay does works.  Any advice would be grea

  • Switched from MacBook to MacBook Pro

    I finally have my laptop of choice. But, I forgot to get files off the old one (iTunes library, iPhoto, etc.) before I sold it. Can I get them using my mobile.me account if I had them stored there previously? Also, I finally have everything I need to