Olá pessoal,
Eu estava tentando fazer funcionar o helloworld com thinwire mas está dando este erro:
java.lang.IllegalArgumentException: InputStream cannot be null
javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
thinwire.util.XOD.processFile(XOD.java:372)
thinwire.util.XOD.execute(XOD.java:355)
thinwire.render.web.WebApplication.<init>(WebApplication.java:396)
thinwire.render.web.WebServlet.handleStart(WebServlet.java:189)
thinwire.render.web.WebServlet.service(WebServlet.java:95)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Alguém saberia me dizer o que preciso fazer?
Detalhes do que tenho no classpath:
jdk 1.5
commons-fileupload-1.0.jar
thinwire.jar
o web.xml:
<servlet>
<servlet-name>hello</servlet-name>
<servlet-class>thinwire.render.web.WebServlet</servlet-class>
<init-param>
<param-name>mainClass</param-name>
<param-value>pacote.hello.Main</param-value>
</init-param>
<init-param>
<param-name>styleSheet</param-name>
<param-value>DefaultStyle</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>hello</servlet-name>
<url-pattern>/hello</url-pattern>
</servlet-mapping>
</web-app>
a classe:
package pacote.hello;
import thinwire.ui.Application;
import thinwire.ui.Dialog;
import thinwire.ui.Label;
public class Main {
public static void main(String[] args) {
Application.current().getFrame().setTitle("Olá Mundo!");
Dialog dialog = new Dialog();
dialog.setTitle("Janela");
dialog.setBounds(100, 100, 400, 200);
Label label = new Label();
label.setText("Olá Mundo!");
label.setSize( 150, 50 );
dialog.getChildren().add(label);
dialog.setVisible(true);
}
}