Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Error when trying to run Visual Builder or Admin Console

    Hello there,

    I am trying to run the Admin console and the visual console like mentioned in the FAQ.but i run into this error. what am i doing wrong.

    public class MySGWT implements EntryPoint {

    private HLayout hLayout;

    public void onModuleLoad() {

    if (!GWT.isScript()) {
    KeyIdentifier debugKey = new KeyIdentifier();
    debugKey.setCtrlKey(true);
    debugKey.setKeyName("D");
    Page.registerKey(debugKey, new KeyCallback() {
    public void execute(String keyName) {
    SC.showConsole();
    }
    });
    }

    GWT.log("init OnLoadModule()...", null);

    hLayout = new HLayout();

    IButton adminButton = new IButton("Admin Console");
    adminButton.addClickHandler(new ClickHandler() {
    public void onClick(ClickEvent event) {
    com.smartgwtpower.tools.client.SCPOWER.openDataSourceConsole();

    }
    });

    IButton visualButton = new IButton("Visual Console");
    visualButton.addClickHandler(new ClickHandler() {
    public void onClick(ClickEvent event) {
    com.smartgwtpower.tools.client.SCPOWER.openVisualBuilder();
    }
    });

    hLayout.addMember(adminButton);
    hLayout.addMember(visualButton);

    hLayout.draw();
    }
    }






    HTTP ERROR: 500
    File "/WEB-INF/iscTaglib.xml" not found
    RequestURI=/mysgwt/tools/visualBuilder/index.jsp

    Caused by:
    org.apache.jasper.JasperException: File "/WEB-INF/iscTaglib.xml" not found
    at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)
    at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:411)
    at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:118)
    at org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:159)
    at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
    at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
    at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1539)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:126)
    at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:220)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
    at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

    Powered by Jetty://

    #2
    ok,i added this file iscTaglib.xml from the sample in the WEB-INF. But now I get some other error. somebody please help

    HTTP ERROR: 500
    java.lang.NullPointerException
    at com.isomorphic.taglib.LoadSystemSchemaTag.getFrameworkDataSources(LoadSystemSchemaTag.java:74)
    at com.isomorphic.taglib.LoadSystemSchemaTag.loadFrameworkDataSources(LoadSystemSchemaTag.java:100)
    at com.isomorphic.taglib.LoadSystemSchemaTag.doStartTag(LoadSystemSchemaTag.java:54)
    at org.apache.jsp.mysgwt.tools.visualBuilder.index_jsp._jspx_meth_isomorphic_loadSystemSchema_0(index_jsp.java:204)
    at org.apache.jsp.mysgwt.tools.visualBuilder.index_jsp._jspService(index_jsp.java:110)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

    RequestURI=/mysgwt/tools/visualBuilder/index.jsp

    Caused by:
    javax.servlet.jsp.JspException: java.lang.NullPointerException
    at com.isomorphic.taglib.LoadSystemSchemaTag.getFrameworkDataSources(LoadSystemSchemaTag.java:74)
    at com.isomorphic.taglib.LoadSystemSchemaTag.loadFrameworkDataSources(LoadSystemSchemaTag.java:100)
    at com.isomorphic.taglib.LoadSystemSchemaTag.doStartTag(LoadSystemSchemaTag.java:54)
    at org.apache.jsp.mysgwt.tools.visualBuilder.index_jsp._jspx_meth_isomorphic_loadSystemSchema_0(index_jsp.java:204)
    at org.apache.jsp.mysgwt.tools.visualBuilder.index_jsp._jspService(index_jsp.java:110)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

    at com.isomorphic.taglib.LoadSystemSchemaTag.doStartTag(LoadSystemSchemaTag.java:57)
    at org.apache.jsp.mysgwt.tools.visualBuilder.index_jsp._jspx_meth_isomorphic_loadSystemSchema_0(index_jsp.java:204)
    at org.apache.jsp.mysgwt.tools.visualBuilder.index_jsp._jspService(index_jsp.java:110)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)

    Powered by Jetty://

    Comment


      #3
      To get a working Admin Console, follow all of the installation steps; don't skip any.

      Comment


        #4
        Originally posted by Isomorphic View Post
        To get a working Admin Console, follow all of the installation steps; don't skip any.
        just to mention that I am able to run the admin console from the sample examples. but when i create my own project from scratch i have this issue.i have followed it. can you please post the link to the instructions which you mentioned. I dont know what i am missing but to my best knowledge i have followed the steps as mentioned in the Quickstart's chapter 3.

        cheers
        Zolf
        Last edited by zaj; 16 Sep 2012, 20:15.

        Comment


          #5
          Code:
          public class MySGWT implements EntryPoint {
          
          	private HLayout	hLayout;
          
          	public void onModuleLoad() {
          
          		 KeyIdentifier debugKey = new KeyIdentifier();
          	        debugKey.setCtrlKey(true);
          	        debugKey.setKeyName("D");
          
          	        Page.registerKey(debugKey, new KeyCallback() {
          	            public void execute(String keyName) {
          	                SC.showConsole();
          	            }
          	        });
          
          		//GWT.log("init OnLoadModule()...", null);
          
          		hLayout = new HLayout();
          
          		IButton adminButton = new IButton("Admin Console");
          		adminButton.addClickHandler(new ClickHandler() {
          			public void onClick(ClickEvent event) {
          				com.smartgwtpower.tools.client.SCPOWER.openDataSourceConsole();
          
          			}
          		});
          
          		IButton visualButton = new IButton("Visual Console");
          		visualButton.addClickHandler(new ClickHandler() {
          			public void onClick(ClickEvent event) {
          				com.smartgwtpower.tools.client.SCPOWER.openVisualBuilder();
          			}
          		});
          
          		hLayout.setMembersMargin(20);
          		hLayout.addMember(adminButton);
          		hLayout.addMember(visualButton);
          		
          		hLayout.draw();
          	}
          }


          Code:
          <?xml version="1.0" encoding="UTF-8"?>
          <module rename-to='mysgwt'>
          	<!-- Inherit the core Web Toolkit stuff. -->
          	<inherits name='com.google.gwt.user.User' />
          	<inherits name="com.smartgwt.tools.SmartGwtTools" />
          	<inherits name="com.smartgwtpower.SmartGwtPower" />
          	<inherits name="com.smartgwtpower.tools.Tools" />
          
          	<!-- Specify the app entry point class. -->
          	<entry-point class='org.kai.client.MySGWT' />
          
          
          </module>

          Code:
          webRoot: __AUTODETECT__
          
          isomorphicPathRootRelative: mySGWT/sc
          
          # -------------- SETTINGS FOR HSQLDB --------------------
          
          sql.SQLServer.database.type: sqlserver  
          sql.SQLServer.interface.type: driverManager  
          sql.SQLServer.driver: net.sourceforge.jtds.jdbc.Driver
          sql.SQLServer.driver.url: jdbc:jtds:sqlserver://localhost:1433;DatabaseName=Ptest;User=test;Password=sett7
          Code:
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          
          <html>
            <head>
              <meta http-equiv="content-type" content="text/html; charset=UTF-8">
          
          
              <title>MySGWT Project</title>
              
              <script> var isomorphicDir = "mysgwt/sc/"; </script>
             
              <script type="text/javascript" language="javascript" src="mysgwt/mysgwt.nocache.js"></script>
            </head>
          
            <body>
          
              <!--load the datasources-->
              <!-- <script src="builtinds/sc/DataSourceLoader?dataSource=supplyItem,animals,employees"></script> -->
          
              <!-- OPTIONAL: include this if you want history support -->
              <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
          
            </body>
          </html>

          Comment

          Working...
          X