[JBoss Seam] - Browsing application context path always redirect "home.seam
by fernando_jmt
Hi everybody.
I have a very strange behaviour that I don't know if it is a bug or I'm misunderstanding something.
The scenario is:
1.- In the web.xml I've configured this:
| ...
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
| ....
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.jsf</url-pattern>
| </servlet-mapping>
| ....
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| </welcome-file-list>
|
|
2.- My index.html file contents:
| <html>
| <head>
| <meta http-equiv="Refresh" content="0; URL=login.jsf">
| </head>
| </html>
|
3.- Because I'm using facelets I have the login.xhtml with the respective login form.
Well, after I deploy the application (context path is "app") I tried this in the browser:
http://localhost:8080/app/
When I did this I get an HTTP 404 error saying me that the app/home.seam is not available.
But, what I suppose I should get is the login.jsf page instead the above error.
Then when I type this in the browser:
http://localhost:8080/app/index.html all works fine, the login.jsf is loaded successful.
-Someone knows why the home.seam is always called in this scenario ?
- is it hard coded?
- is there any way in order to configure it?
Any help will be appreciated.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010413#4010413
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010413
19Â years, 2Â months
[JBoss jBPM] - Error on deploying business process
by t.schenk
Hello all together,
i changed the sample process from the starter kit in that way, that i added an node with an actionhandler and removed the task-node. My process is described as the above xml-statement:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.1"
| name="simple">
| <start-state name="start">
| <transition name="Step1" to="node1">
| </transition>
| </start-state>
| <end-state name="end"></end-state>
| <node name="node1">
| <transition name="Step2" to="end"></transition>
|
| <action class="com.sample.action.MessageActionHandler">
| <message>Test</message>
| </action>
| </node>
| </process-definition>
The deployment of the above process ends with the following error:
java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/jbpm/upload
| at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
| at org.jbpm.ui.util.ProcessDeployer.deployProcessWithServlet(Unknown Source)
| at org.jbpm.ui.util.ProcessDeployer.access$3(Unknown Source)
| at org.jbpm.ui.util.ProcessDeployer$1.run(Unknown Source)
| at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
| at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
| at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
| at org.jbpm.ui.util.ProcessDeployer.showProgressMonitorDialog(Unknown Source)
| at org.jbpm.ui.util.ProcessDeployer.deploy(Unknown Source)
| at org.jbpm.ui.editor.form.deployment.DeploymentForm$1.widgetSelected(Unknown Source)
| at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
| at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
| at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
| at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
| at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
| at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
| at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
| at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
| at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
| at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
| at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
| at org.eclipse.core.launcher.Main.run(Main.java:973)
| at org.eclipse.core.launcher.Main.main(Main.java:948)
|
When i changed the process in a way, that the transition performs my action and not the node i can deploy the process without any problem. The process that can be deployed is the following:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.1"
| name="simple">
| <start-state name="start">
| <transition name="Step1" to="node1">
| <action name="action1" class="com.sample.action.MessageActionHandler">
| <message>Test</message>
| </action>
| </transition>
| </start-state>
| <end-state name="end"></end-state>
| <node name="node1">
| <transition name="Step2" to="end"></transition>
|
| </node>
| </process-definition>
Can someone find out why i cann't deploy the process with the node actionhandler ???
Greetings from germany,
Till Schenk
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010411#4010411
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010411
19Â years, 2Â months