[Installation, Configuration & Deployment] - [JBoss 5.0.0] Proxy Config
by Marcel Horner
I am trying to deploy my application but when JBoss SAX Parser try to validate the web.xml it can't access the XSD's and DTD's files. This happens because I am behind a proxy server and I don't known how to configure it in JBoss.
I have changed run.bat file to include the following configuration "-Dhttp.proxyHost=<my_proxy_server_url> -Dhttp.proxyPort=<my_proxy_server_port>". After that JBoss found the files but it now throws http 407 error (that means I am not authenticated).
As far as I known I have the following choices to solve my problem:
a) Find a way to turn off the web.xml validation;
b) Change the run.bat file to include the user and pass to authenticate in the proxy server (-Dhttp.proxyUsername and -Dhttp.proxyPassword don't work).
c) Or config the proxy server that JBoss should use in somewhere else.
I don't known how to do none of the above. Can anyone please help me? I have already found some topics in the forum with the same problem but none of them have any replies.
JBoss 5.0.0 beta1
JDK 1.6.0
Thank you!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007074#4007074
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007074
19 years, 2 months
[EJB 3.0] - Sudden unexplainable problem w/ persistence unit
by tsar_bomba
I really don't know how to explain what's happening here. I have a straight-forward enterprise app that I've been deploying to JBoss 4.0.5 all day...and have not had a problem until now.
The error is complaining about the persistence unit in the .ear - but that file hasn't changed in *months* - I just checked the svn history on it.
I can't deploy now and I don't know why...here's the exception I'm getting:
| 16:51:08,302 WARN [ServiceController] Problem starting service persistence.units:ear=myEAR.ear,jar=myEJB.jar,unitName=myPU
| java.lang.NullPointerException
| at org.hibernate.cfg.OneToOneSecondPass.doSecondPass(OneToOneSecondPass.java:135)
| at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1054)
| at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:297)
| at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1039)
| at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1211)
| at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:847)
| at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:385)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:126)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:264)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
|
| ...........................................later down the list.....
|
| 16:48:32,362 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: persistence.units:ear=myEAR.ear,jar=myEJB.jar,unitName=myPU
| State: FAILED
| Reason: java.lang.NullPointerException
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=myDS
| Depends On Me:
| jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=CustomerBean,service=EJB3
| jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=OrderBean,service=EJB3
| jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=RegionBean,service=EJB3
| jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=VendorBean,service=EJB3
|
| ObjectName: jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=CustomerBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| persistence.units:ear=myEAR.ear,jar=myEJB.jar,unitName=myPU
|
| ObjectName: jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=OrderBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| persistence.units:ear=myEAR.ear,jar=myEJB.jar,unitName=myPU
|
| ObjectName: jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=RegionBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| persistence.units:ear=myEAR.ear,jar=myEJB.jar,unitName=myPU
|
| ObjectName: jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=VendorBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| persistence.units:ear=myEAR.ear,jar=myEJB.jar,unitName=myPU
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: persistence.units:ear=myEAR.ear,jar=myEJB.jar,unitName=myPU
| State: FAILED
| Reason: java.lang.NullPointerException
| I Depend On:
| jboss.jca:service=DataSourceBinding,name=myDS
| Depends On Me:
| jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=CustomerBean,service=EJB3
| jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=OrderBean,service=EJB3
| jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=RegionBean,service=EJB3
| jboss.j2ee:ear=myEAR.ear,jar=myEJB.jar,name=VendorBean,service=EJB3
|
I don't understand, what's NULL?? Clearly there's another problem but there's no indication as to what it might be. I've tried restarting jboss, I've even restarted my PC...I just can't deploy this app anymore.
Could someone please provide some insight on this?
Thanks!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007073#4007073
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007073
19 years, 2 months
[JBossWS] - Re: webservices in jboss 5.0
by deployer_man
There are no exceptions, and there are no java errors.
The problem is that the aplication is deployed as an EJB3.0, but no as a Webservice. http://localhost:8080/jbossws/services is Empty.
Im working with the default configuration.
I've been looking in the ($JBOSS)/default/tmp and ($JBOSS)/default/work and there wasn't any webservice resources.
thanks for your answer.
Here is the las part of the output that appears when a I start Jboss 5.0
anonymous wrote :
| [TomcatDeployment] deploy, ctxPath=/, warUrl=.../deploy/ROOT.war/
| 23:24:31,301 INFO [StandardContext] Ya ha sido arrancado el Contenedor org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/]
| 23:24:33,928 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:jar=j5.jar,name=j5bean,service=EJB3 with dependencies:
| 23:24:34,075 INFO [EJBContainer] STARTED EJB: bean.j5bean ejbName: j5bean
| 23:24:34,180 INFO [Http11Protocol] Arrancando Coyote HTTP/1.1 en puerto http-0.0.0.0-8080
| 23:24:34,200 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009
| 23:24:34,210 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta1 (build: CVSTag=https://svn.jboss.org/repos/jbossas/tags/JBoss_5_0_0_Beta1 date=200611191849)] Started in 21s:557ms
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007063#4007063
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007063
19 years, 2 months
[Clustering/JBoss] - Cluster UDP ports
by jyoonyang
Hi,
I am getting the following exception:
15:05:53,555 ERROR [UDP] exception=java.io.StreamCorruptedException: invalid stream header
| at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:753)
| at java.io.ObjectInputStream.<init>(ObjectInputStream.java:268)
| at org.jgroups.protocols.UDP.handleIncomingUdpPacket(UDP.java:670)
| at org.jgroups.protocols.UDP$IncomingPacketHandler.run(UDP.java:1332)
| at java.lang.Thread.run(Thread.java:595)
I think this caused by another application sending message on the UDP port that my JBoss is listening on.
What I cannot figure out is where this port is specified. I see the following messages, but I can't find the specified port in any of the config files.
| 15:04:05,235 INFO [UDP] unicast sockets will use interface 172.25.8.70
| 15:04:05,239 INFO [UDP] socket information:
| local_addr=pssoapp01:34930, mcast_addr=230.1.2.7:45577, bind_addr=/172.25.8.70, ttl=2
| sock: bound to 172.25.8.70:34930, receive buffer size=2097152, send buffer size=640000
| mcast_recv_sock: bound to 172.25.8.70:45577, send buffer size=640000, receive buffer size=2097152
| mcast_send_sock: bound to 172.25.8.70:34931, send buffer size=640000, receive buffer size=2097152
| 15:04:05,239 INFO [STDOUT]
| -------------------------------------------------------
| GMS: address is pssoapp01:34930
| -------------------------------------------------------
|
| ...
|
| 15:04:08,091 INFO [UDP] unicast sockets will use interface 172.25.8.70
| 15:04:08,091 INFO [UDP] socket information:
| local_addr=pssoapp01:34933 (additional data: 16 bytes), mcast_addr=228.1.2.3:45566, bind_addr=/172.25.8.70, ttl=8
| sock: bound to 172.25.8.70:34933, receive buffer size=150000, send buffer size=800000
| mcast_recv_sock: bound to 172.25.8.70:45566, send buffer size=800000, receive buffer size=150000
| mcast_send_sock: bound to 172.25.8.70:34934, send buffer size=800000, receive buffer size=150000
| 15:04:08,092 INFO [STDOUT]
| -------------------------------------------------------
| GMS: address is pssoapp01:34933 (additional data: 16 bytes)
| -------------------------------------------------------
|
Where are these being defined? How can I override these?
Thanks,
Jennifer
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007062#4007062
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007062
19 years, 2 months
[Security & JAAS/JBoss] - j_security_check and session timeout issue
by khundley1
I've seen a lot of postings in regards to j_security_check problems but they all seem to be related to calling the login page directly. I am having an issue related to j_security_check after a session timeout occurs. Any help would be appreciated!
Environment - jboss 4.0.4 GA, Seam 1.0.1 GA, ebj3, facelets
A user logs into application then logs out and leaves the browser open. If they log back in after a session timeout the error: HTTP Status 400 - Invalid direct reference to form login page is displayed. However, if the user does a refresh on the browser after a session timeout then logs in - the error doesn't occur. The login form is not directly called anywhere in the application. When a user accesses MainPage and is not logged in they are redirected to the Login.jsp. Code snippets listed below. Any ideas why MainPage is not redirecting to Login.jsp after a session timeout occurs?
Thanks!
web.xml snippet
| <session-config>
| <session-timeout>60</session-timeout>
| </session-config>
| <login-config>
| <auth-method>FORM</auth-method>
| <form-login-config>
| <form-login-page>
| /jsp/Login.jsp?failed=false
| </form-login-page>
| <form-error-page>
| /jsp/Login.jsp?failed=true
| </form-error-page>
| </form-login-config>
| </login-config>
| faces-config.xml snippet
| <navigation-rule>
| <navigation-case>
| <from-outcome>login</from-outcome>
| <to-view-id>/jsp/Login.jsp</to-view-id>
| </navigation-case>
| <navigation-case>
| <from-outcome>home</from-outcome>
| <to-view-id>/jsf/document/MainPage.xhtml</to-view-id>
| <redirect />
| </navigation-case>
| </navigation-rule>
| Login.jsp
| <form name="loginForm" action="j_security_check" method="post">
| <tr>
| <th colspan="2"><div class="dragbar">Login</div></th>
| </tr>
| <tr>
| <td class="label">User Name:</td>
| <td><input type="text" id="j_username" name="j_username" tabindex="1"></td>
| </tr>
| <tr>
| <td class="label">Password:</td>
| <td><input type="password" name="j_password" tabindex="3"> <input type="submit" value="Login"></td>
| </tr>
| </form>
| LogoutAction.java
| import javax.annotation.security.PermitAll;
| import javax.ejb.Stateless;
| import org.jboss.seam.Seam;
| import org.jboss.seam.annotations.Name;
|
| @Name("logout")
| @Stateless
| @PermitAll
| public class LogoutAction implements Logout {
| public String logout() {
| try {
| Seam.invalidateSession();
| } catch (Exception e) {}
| return "home";
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007061#4007061
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007061
19 years, 2 months