[JBoss jBPM] - why am i getting a null ProcessDefinition from graphSession.
by james1969
I'm very new at jBPM. I'm trying to get a DecisionHandler working in a new workflow I've defined:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.1"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="urn:jbpm.org:jpdl-3.1 http://jbpm.org/jpdl-3.1.xsd"
| name="jpgWorkflow">
|
| <start-state>
| <transition to="check gif"/>
| </start-state>
|
| <decision name="check gif">
| <handler class="com.amg.condenet.mediaflow.task.GifTypeDecisionHandler">
| <targetBean>sizeGifImageAction</targetBean>
| <factoryKey>jbpmConfiguration</factoryKey>
| </handler>
| <transition name="gif identified as anmiated" to="keyframe" />
| <transition name="gif identified as image" to="size gif" />
| </decision>
|
| <node name="size gif">
| <transition name="image sized" to="crop gif" />
| </node>
|
| <node name="crop gif">
| <transition name="image cropped" to="end" />
| </node>
|
| <node name="keyframe">
| <transition name="keyframe extracted" to="gif2swf conversion" />
| </node>
|
| <node name="gif2swf conversion">
| <transition name="gif2swf converted" to="end" />
| </node>
|
| <end-state name="end"/>
|
| </process-definition>
This workflow gets deployed with no errors, but when I go to execute it, graphSession.findLatestProcessDefinition("gifWorkflow") returns null? Is there a problem with the workflow definition? My DecisionHandler looks like this:
public class GifTypeDecisionHandler implements DecisionHandler {
|
|
| private static Log log = LogFactory.getLog(GifTypeDecisionHandler.class);
|
| public String decide(ExecutionContext executionContext) throws Exception {
| log.info("********************************");
| log.info("* GifTypeDecisionHandler *");
| log.info("********************************");
|
| return "size gif";
| }
| }
|
Right now, it's stubbed out, I simply trying to see if I'm defining a DecisionHandler properly for a 'decision' node.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970634#3970634
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970634
19 years, 7 months
[Beginners Corner] - problem of tutorial from tusc.com.au
by aaronyeo22
I have test the chapter3 , after deploy and test client.
Failed!!!
anyone can help. thanks a lot.
the below are the message from server:
Request from client :
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.NullPointerException
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:87)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
at $Proxy1.loginUser(Unknown Source)
at au.com.tusc.client.SessionClient.testBean(SessionClient.java:51)
at au.com.tusc.client.SessionClient.main(SessionClient.java:64)
Caused by: java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.NullPointerException
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:360)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322)
at org.jboss.ejb.Container.invoke(Container.java:674)
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.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:359)
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 sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at au.com.tusc.dao.StoreAccessDAOImpl.loginUser(StoreAccessDAOImpl.java:52)
at au.com.tusc.session.StoreAccessSession.loginUser(StoreAccessSession.java:60)
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.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
... 21 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970633#3970633
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970633
19 years, 7 months
[JBoss Portal] - Re: Portal Login
by ShareMe
Hello,
Originally I was using MySQL5 mis confugred ie was not in strict mode however my data soruce was not correct and thus got could not create tables first time..
So I than corrrect the datasource and restarted with could not log in as user or admin..
SO I than stopped server and deleted default/tmp, default,data, default/log, and default work with the same results of not being able to log in with user/user or admin/admin..
I did a Mysqladmin check and yes the user table is at zero..
My solution is to create a new db and pint my JBossPortal bundled install to that db and thus problem solved..
Thus I guess the answer to org thread should be if originally deployed wrong using MYSQL5 ie the my.ini or the datasource was incorrect than you need to create a new db or re-create org db and than restart server to fix admin/admin user/user login problems.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970631#3970631
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970631
19 years, 7 months
[JBossWS] - problem with web service through SSL
by peiguo
I have SSL connector (port 8443) defined for my jboss application server. In server\default\deploy\jbossweb-tomcat55.sar\server.xml, I added:
<Connector port="8443" address="${jboss.bind.address}"
| maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
| emptySessionPath="true"
| scheme="https" secure="true" clientAuth="false"
| keystoreFile="conf/server.keystore"
| keystorePass="12345678" sslProtocol = "TLS" />
But when I deploy a web service, it does not seem to work with https (when I try to view its wsdl through https://blah:8443/blah?wsdl, it fails). I checked the WSDL file that was generated (through http://blah:8080/blah?wsdl), it has this portion at the end:
<service name="SampleService">
| <port binding="tns:TrivialServiceBinding" name="TrivialServicePort">
| <soap:address location="http://it-peip:8080/jbossws-samples-rpcstyle" />
| </port>
| </service>
Should it also have one more section (almost a duplicate) for 8443? Tomcat does have. I didn't make any change to the code, but did add the security-constriant to the web-inf\web.xml file:
<login-config>
| <auth-method>BASIC</auth-method>
| <realm-name>default</realm-name>
| </login-config>
| <security-constraint>
| <web-resource-collection>
| <web-resource-name>SSLSecurityProvider</web-resource-name>
| <description>Security constraint for Security Provider</description>
| <url-pattern>/jbossws-samples-rpcstyle?wsdl</url-pattern>
| <http-method>POST</http-method>
| <http-method>GET</http-method>
| </web-resource-collection>
| <auth-constraint>
| <role-name>*</role-name>
| </auth-constraint>
| <user-data-constraint>
| <description>SSL required</description>
| <transport-guarantee>CONFIDENTIAL</transport-guarantee>
| </user-data-constraint>
| </security-constraint>
What is wrong?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970630#3970630
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970630
19 years, 7 months
[JBoss Seam] - TROUBLE RUNNING BOOKING EXAMPLE ON TOMCAT
by igorarbizu
Hi, I've deployd on tomcat the booking example as explained in 1.0.1 distribution, and it starts ok but when I try to make any action I get errors I, m not able to solve. This is the lod starting tomcat:
INFO 10-09 21:21:54,203 (Log4JLogger.java:info:94) -Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
INFO 10-09 21:21:55,015 (Log4JLogger.java:info:94) -Reading config jar:file:/C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jboss-seam-debug.jar!/META-INF/faces-config.xml
INFO 10-09 21:21:55,031 (Log4JLogger.java:info:94) -Reading config jar:file:/C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/faces-config.xml
INFO 10-09 21:21:55,093 (Log4JLogger.java:info:94) -Reading config jar:file:/C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jboss-seam.jar!/META-INF/faces-config.xml
INFO 10-09 21:21:55,125 (Log4JLogger.java:info:94) -Reading config jar:file:/C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jsf-facelets.jar!/META-INF/faces-config.xml
INFO 10-09 21:21:55,156 (Log4JLogger.java:info:94) -Reading config /WEB-INF/faces-config.xml
WARN 10-09 21:21:55,328 (Log4JLogger.java:warn:104) -Locale name in faces-config.xml null or empty, setting locale to default locale : es_ES
INFO 10-09 21:21:55,750 (Log4JLogger.java:info:94) -ServletContext 'C:\Tomcat5.5\webapps\jboss-seam-booking\' initialized.
INFO 10-09 21:21:55,750 (Log4JLogger.java:info:94) -Welcome to Seam 1.0.1.GA
INFO 10-09 21:21:55,765 (Log4JLogger.java:info:94) -reading components.xml
INFO 10-09 21:21:55,968 (Log4JLogger.java:info:94) -reading properties from: /seam.properties
INFO 10-09 21:21:55,968 (Log4JLogger.java:info:94) -reading properties from: /jndi.properties
INFO 10-09 21:21:55,984 (Log4JLogger.java:info:94) -initializing Seam
INFO 10-09 21:21:56,171 (Log4JLogger.java:info:94) -Component: org.jboss.seam.core.init, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Init
INFO 10-09 21:21:56,609 (Log4JLogger.java:info:94) -Component: org.jboss.seam.core.pages, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Pages
INFO 10-09 21:21:56,640 (Log4JLogger.java:info:94) -Component: events, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.Events
INFO 10-09 21:21:56,656 (Log4JLogger.java:info:94) -Component: org.jboss.seam.core.manager, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.core.Manager
INFO 10-09 21:21:56,734 (Log4JLogger.java:info:94) -Component: switcher, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.Switcher
INFO 10-09 21:21:56,750 (Log4JLogger.java:info:94) -Component: redirect, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Redirect
INFO 10-09 21:21:56,765 (Log4JLogger.java:info:94) -Component: httpError, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.HttpError
INFO 10-09 21:21:56,796 (Log4JLogger.java:info:94) -Component: userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.UserPrincipal
INFO 10-09 21:21:56,828 (Log4JLogger.java:info:94) -Component: isUserInRole, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.IsUserInRole
INFO 10-09 21:21:56,843 (Log4JLogger.java:info:94) -Component: conversation, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.Conversation
INFO 10-09 21:21:56,875 (Log4JLogger.java:info:94) -Component: conversationList, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationList
INFO 10-09 21:21:56,906 (Log4JLogger.java:info:94) -Component: conversationStack, scope: PAGE, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationStack
INFO 10-09 21:21:56,921 (Log4JLogger.java:info:94) -Component: facesContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesContext
INFO 10-09 21:21:56,937 (Log4JLogger.java:info:94) -Component: pageContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PageContext
INFO 10-09 21:21:57,015 (Log4JLogger.java:info:94) -Component: eventContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.EventContext
INFO 10-09 21:21:57,031 (Log4JLogger.java:info:94) -Component: sessionContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.SessionContext
INFO 10-09 21:21:57,046 (Log4JLogger.java:info:94) -Component: statelessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.StatelessContext
INFO 10-09 21:21:57,062 (Log4JLogger.java:info:94) -Component: applicationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ApplicationContext
INFO 10-09 21:21:57,078 (Log4JLogger.java:info:94) -Component: conversationContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.ConversationContext
INFO 10-09 21:21:57,109 (Log4JLogger.java:info:94) -Component: businessProcessContext, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.BusinessProcessContext
INFO 10-09 21:21:57,109 (Log4JLogger.java:info:94) -Component: locale, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Locale
INFO 10-09 21:21:57,125 (Log4JLogger.java:info:94) -Component: messages, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.Messages
INFO 10-09 21:21:57,140 (Log4JLogger.java:info:94) -Component: interpolator, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.Interpolator
INFO 10-09 21:21:57,171 (Log4JLogger.java:info:94) -Component: facesMessages, scope: CONVERSATION, type: JAVA_BEAN, class: org.jboss.seam.core.FacesMessages
INFO 10-09 21:21:57,203 (Log4JLogger.java:info:94) -Component: resourceBundle, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.ResourceBundle
INFO 10-09 21:21:57,218 (Log4JLogger.java:info:94) -Component: localeSelector, scope: SESSION, type: JAVA_BEAN, class: org.jboss.seam.core.LocaleSelector
INFO 10-09 21:21:57,250 (Log4JLogger.java:info:94) -Component: uiComponent, scope: STATELESS, type: JAVA_BEAN, class: org.jboss.seam.core.UiComponent
INFO 10-09 21:21:57,265 (Log4JLogger.java:info:94) -Component: org.jboss.seam.remoting.messaging.subscriptionRegistry, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.remoting.messaging.SubscriptionRegistry
INFO 10-09 21:21:57,296 (Log4JLogger.java:info:94) -Component: pojoCache, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.core.PojoCache
INFO 10-09 21:21:57,656 (Log4JLogger.java:info:94) -Component: org.jboss.seam.debug.introspector, scope: EVENT, type: JAVA_BEAN, class: org.jboss.seam.debug.Introspector
INFO 10-09 21:21:57,750 (Log4JLogger.java:info:94) -Component: org.jboss.seam.debug.contexts, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.debug.Contexts
INFO 10-09 21:21:57,781 (Log4JLogger.java:info:94) -scanning: /C:/Tomcat5.5/webapps/jboss-seam-booking/WEB-INF/lib/jboss-seam-booking.jar
INFO 10-09 21:21:58,109 (Log4JLogger.java:info:94) -Component: changePassword, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.ChangePasswordAction, JNDI: jboss-seam-booking/ChangePasswordAction/local
INFO 10-09 21:21:58,156 (Log4JLogger.java:info:94) -Component: booking, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Booking
INFO 10-09 21:21:58,265 (Log4JLogger.java:info:94) -Component: register, scope: EVENT, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.RegisterAction, JNDI: jboss-seam-booking/RegisterAction/local
INFO 10-09 21:21:58,281 (Log4JLogger.java:info:94) -Component: login, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LoginAction, JNDI: jboss-seam-booking/LoginAction/local
INFO 10-09 21:21:58,296 (Log4JLogger.java:info:94) -Component: hotelBooking, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelBookingAction, JNDI: jboss-seam-booking/HotelBookingAction/local
INFO 10-09 21:21:58,328 (Log4JLogger.java:info:94) -Component: hotelSearch, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.HotelSearchingAction, JNDI: jboss-seam-booking/HotelSearchingAction/local
INFO 10-09 21:21:58,390 (Log4JLogger.java:info:94) -Component: bookingList, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: org.jboss.seam.example.booking.BookingListAction, JNDI: jboss-seam-booking/BookingListAction/local
INFO 10-09 21:21:58,406 (Log4JLogger.java:info:94) -Component: hotel, scope: CONVERSATION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.Hotel
INFO 10-09 21:21:58,421 (Log4JLogger.java:info:94) -Component: logout, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: org.jboss.seam.example.booking.LogoutAction, JNDI: jboss-seam-booking/LogoutAction/local
INFO 10-09 21:21:58,421 (Log4JLogger.java:info:94) -Component: user, scope: SESSION, type: ENTITY_BEAN, class: org.jboss.seam.example.booking.User
INFO 10-09 21:21:58,437 (Log4JLogger.java:info:94) -done initializing Seam
INFO 10-09 21:31:30,296 (Log4JLogger.java:info:94) -reading pages.xml
INFO 10-09 21:31:32,171 (Log4JLogger.java:info:94) -No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
INFO 10-09 21:31:32,171 (Log4JLogger.java:info:94) -No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
INFO 10-09 21:31:32,171 (Log4JLogger.java:info:94) -Tomahawk jar not available. Autoscrolling, DetectJavascript, AddResourceClass and CheckExtensionsFilter are disabled now.
And if I try to login I get this error:
ERROR 10-09 21:31:44,828 (Log4JLogger.java:error:119) -Servlet.service() para servlet Faces Servlet lanzó excepción
javax.faces.FacesException: Error calling action method of component with id _id2:_id14
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jboss.seam.InstantiationException: Could not instantiate Seam component: login
at org.jboss.seam.Component.newInstance(Component.java:735)
at org.jboss.seam.Component.newInstance(Component.java:1308)
at org.jboss.seam.Component.getInstance(Component.java:1263)
at org.jboss.seam.Component.getInstance(Component.java:1246)
at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
at com.sun.el.parser.AstValue.getTarget(AstValue.java:62)
at com.sun.el.parser.AstValue.invoke(AstValue.java:147)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
... 23 more
Caused by: javax.naming.NamingException: Local server is not initialized
at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at org.jboss.seam.util.Naming.getInitialContext(Naming.java:26)
at org.jboss.seam.util.Naming.getInitialContext(Naming.java:37)
at org.jboss.seam.Component.instantiate(Component.java:774)
at org.jboss.seam.Component.newInstance(Component.java:731)
... 36 more
or If I try to register:
INFO 10-09 21:36:12,781 (Log4JLogger.java:info:94) -Hibernate Annotations 3.2.0.CR1
ERROR 10-09 21:36:12,984 (Log4JLogger.java:error:119) -Servlet.service() para servlet Faces Servlet lanzó excepción
org.jboss.seam.InstantiationException: Could not instantiate Seam component: register
at org.jboss.seam.Component.newInstance(Component.java:735)
at org.jboss.seam.Component.newInstance(Component.java:1308)
at org.jboss.seam.Component.getInstance(Component.java:1263)
at org.jboss.seam.Component.getInstance(Component.java:1246)
at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
at com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:65)
at com.sun.el.parser.AstValue.getTarget(AstValue.java:62)
at com.sun.el.parser.AstValue.getType(AstValue.java:55)
at com.sun.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:180)
at com.sun.facelets.el.TagValueExpression.getType(TagValueExpression.java:60)
at com.sun.facelets.el.LegacyValueBinding.getType(LegacyValueBinding.java:94)
at org.apache.myfaces.shared_impl.renderkit._SharedRendererUtils.findUIOutputConverter(_SharedRendererUtils.java:55)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.findUIOutputConverter(RendererUtils.java:316)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:636)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlSecretRendererBase.getConvertedValue(HtmlSecretRendererBase.java:106)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:395)
at javax.faces.component.UIInput.validate(UIInput.java:349)
at javax.faces.component.UIInput.processValidators(UIInput.java:183)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
at javax.faces.component.UIForm.processValidators(UIForm.java:70)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146)
at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.naming.NamingException: Local server is not initialized
at org.jnp.interfaces.LocalOnlyContextFactory.getInitialContext(LocalOnlyContextFactory.java:45)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.(Unknown Source)
at org.jboss.seam.util.Naming.getInitialContext(Naming.java:26)
at org.jboss.seam.util.Naming.getInitialContext(Naming.java:37)
at org.jboss.seam.Component.instantiate(Component.java:774)
at org.jboss.seam.Component.newInstance(Component.java:731)
... 43 more
Any help would be much appreciated
Thanks in advance
Igor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970629#3970629
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970629
19 years, 7 months
[EJB 3.0] - Could not dereference object on Remote Server
by mlandwehr
Hi!
I'm a newby in ejb3.0 and startet with the tutorials.
The first step was testing the Stateful-ShoppingCart-Example.
I used the JBoss4.0.4 (ejb3-installer) on a local machine - the same machine from where i started the client-app. >> everything works!
The next step was using an 4.0.4-JBoss on an remote Server (Ubuntu 5.10). This Server i used already with jboss4.0.3 and ejbs2.1 and j2ee works with him.
When I deployed the ShoppingCart.jar and tryed to run the Client from an remote win2000-pc i have this error:
| Exception in thread "main" javax.naming.NamingException: Could not dereference object [Root exception is org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection.]
| at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1150)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| at javax.naming.InitialContext.lookup(Unknown Source)
| at org.jboss.tutorial.stateful.client.Client.main(Client.java:53)
| Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection.
| at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:267)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
| at org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:34)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
| at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:46)
| at $Proxy0.createProxy(Unknown Source)
| at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:52)
| at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
| at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
| at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
| ... 4 more
| Caused by: java.net.ConnectException: Connection refused: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(Unknown Source)
| at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
| at java.net.PlainSocketImpl.connect(Unknown Source)
| at java.net.SocksSocketImpl.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at java.net.Socket.connect(Unknown Source)
| at java.net.Socket.<init>(Unknown Source)
| at java.net.Socket.<init>(Unknown Source)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:535)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.getConnection(SocketClientInvoker.java:471)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:263)
| ... 17 more
|
In the Demo-Code I just made this changes:
jndi.properties
|
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
| java.naming.provider.url=jnp://192.168.1.2:1099
|
The run.sh was modified, too:
| while [ $STATUS -eq 10 ]
| do
| # Execute the JVM
| "$JAVA" $JAVA_OPTS \
| -Djava.endorsed.dirs="$JBOSS_ENDORSED_DIRS" \
| -Djava.rmi.server.hostname=192.168.1.2 \
| -Djava.rmi.server.useLocalHostname=false \
| -classpath "$JBOSS_CLASSPATH" \
| org.jboss.Main "$@"
| STATUS=$?
| # if it doesn't work, you may want to take a look at this:
| # http://developer.java.sun.com/developer/bugParade/bugs/4465334.html
| done
|
My Linux-Server is already working with jboss4.0.3 and i can access the 2.1-beans via the clientapps on my win2000pc - the network-connection and the firewall-configuration must be ok.
Where is the(my) problem?
Greetings
Martin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970628#3970628
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970628
19 years, 7 months
[JBoss Eclipse IDE (users)] - Re: JBOSS-IDE ignoring run.conf when starting JBoss?
by dbs
"rob.stryker(a)jboss.com" wrote : You're 100% correct. Starting JBoss from inside eclipse does not execute the .bat or .sh files. It directly executes the main class of run.jar. For the time being, double-clicking on the server instance and editing it's launch configuration should allow you to add the proper parameters to the vm or program args.
While I thank you from the bottom of my geeky heart for the answer, might I suggest tihs is a very poor UI decision? Nowhere else does the UI use a double click for setting server properties (it's simple execution or opening configuration, and I had right clicked, clicked, properties selected, etc everywhere. But I hadn't tried double-clicking.
Can something like "Properties..." be added to the right-click menu for the server view? That would have saved me 4-5 days of frustration.
Thanks again for the help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970626#3970626
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970626
19 years, 7 months