Jenkins not deploying on Tomcat; SSH Service not starting

So I've had a couple of problems happening. My first problem is that even though sshd.service and sshd.socket are enabled with systemctl, it does not automatically start. There are no errors reported in journalctl, it just does not start. When issuing systemctl status sshd.service and systemctl status sshd.socket, there is nothing to report. Once I manually start them, there are no errors reported, and everything works as expected.
sshd.socket
[Unit]
Conflicts=sshd.service
Wants=sshdgenkeys.service
[Socket]
ListenStream=22
Accept=yes
[Install]
WantedBy=sockets.target
sshd.service
[Unit]
Description=OpenSSH Daemon
Wants=sshdgenkeys.service
After=sshdgenkeys.service
After=network.target
[Service]
ExecStart=/usr/bin/sshd -D
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target
# This service file runs an SSH daemon that forks for each incoming connection.
# If you prefer to spawn on-demand daemons, use sshd.socket and [email protected].
The second problem is my tomcat service. It won't start the Jenkins. I've linked the jenkins.war file to the webapps folder. When I start tomcat using systemctl start tomcat8, this is the output of journalctl -xn
-- Logs begin at Sat 2014-08-30 06:46:59 PDT, end at Sun 2014-09-14 15:45:38 PDT. --
Sep 14 15:45:15 localhost jsvc.exec[1344]: Sep 14, 2014 3:45:15 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-nio-8080"]
Sep 14 15:45:16 localhost jsvc.exec[1344]: Sep 14, 2014 3:45:16 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-nio-8009"]
Sep 14 15:45:16 localhost jsvc.exec[1344]: Sep 14, 2014 3:45:16 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-nio-8080"]
Sep 14 15:45:16 localhost jsvc.exec[1344]: Sep 14, 2014 3:45:16 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-nio-8009"]
Sep 14 15:45:27 localhost systemd[1]: [/usr/lib/systemd/system/systemd-journal-upload.service:20] Unknown lvalue 'After' in section 'Install'
Sep 14 15:45:38 localhost systemd[1]: Failed to reset devices.list on /system.slice: Invalid argument
Sep 14 15:45:38 localhost jsvc[28476]: Cannot locate Java Home
Sep 14 15:45:38 localhost systemd[1]: tomcat8.service: control process exited, code=exited status=1
Sep 14 15:45:38 localhost systemd[1]: Failed to start Tomcat 8 servlet container.
-- Subject: Unit tomcat8.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Unit tomcat8.service has failed.
-- The result is failed.
Sep 14 15:45:38 localhost systemd[1]: Unit tomcat8.service entered failed state.
Here is the tomcat8.service file before my changes, as suggested here
[Unit]
Description=Tomcat 8 servlet container
After=network.target
[Service]
Type=forking
PIDFile=/var/run/tomcat8.pid
Environment=CATALINA_PID=/var/run/tomcat8.pid
Environment=TOMCAT_JAVA_HOME=/usr/lib/jvm/java-7-openjdk
Environment=CATALINA_HOME=/usr/share/tomcat8
Environment=CATALINA_BASE=/usr/share/tomcat8
Environment=CATALINA_OPTS=
ExecStart=/usr/bin/jsvc \
-Dcatalina.home=${CATALINA_HOME} \
-Dcatalina.base=${CATALINA_BASE} \
-Djava.io.tmpdir=/var/tmp/tomcat8/temp \
-cp /usr/share/java/commons-daemon.jar:/usr/share/java/eclipse-ecj.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar \
-user tomcat8 \
-java-home ${TOMCAT_JAVA_HOME} \
-pidfile /var/run/tomcat8.pid \
-errfile SYSLOG \
-outfile SYSLOG \
$CATALINA_OPTS \
org.apache.catalina.startup.Bootstrap
ExecStop=/usr/bin/jsvc \
-pidfile /var/run/tomcat8.pid \
-stop \
org.apache.catalina.startup.Bootstrap
[Install]
WantedBy=multi-user.target
And after
[Unit]
Description=Tomcat 8 servlet container
After=network.target
[Service]
Type=forking
PIDFile=/var/run/tomcat8.pid
Environment=CATALINA_PID=/var/run/tomcat8.pid
Environment=TOMCAT_JAVA_HOME=/usr/lib/jvm/java-7-openjdk
Environment=CATALINA_HOME=/usr/share/tomcat8
Environment=CATALINA_BASE=/usr/share/tomcat8
Environment=CATALINA_OPTS=-DJENKINS_HOME=/usr/share/java/jenkins
ExecStart=/usr/bin/jsvc \
-Dcatalina.home=${CATALINA_HOME} \
-Dcatalina.base=${CATALINA_BASE} \
-Djava.io.tmpdir=/var/tmp/tomcat8/temp \
-cp /usr/share/java/commons-daemon.jar:/usr/share/java/eclipse-ecj.jar:${CATALINA_HOME}/bin/bootstrap.jar:${CATALINA_HOME}/bin/tomcat-juli.jar \
-user tomcat8 \
-java-home ${TOMCAT_JAVA_HOME} \
-pidfile /var/run/tomcat8.pid \
-errfile SYSLOG \
-outfile SYSLOG \
$CATALINA_OPTS \
org.apache.catalina.startup.Bootstrap
ExecStop=/usr/bin/jsvc \
-pidfile /var/run/tomcat8.pid \
-stop \
org.apache.catalina.startup.Bootstrap
[Install]
WantedBy=multi-user.target
EDIT:
The SSHD problem is fixed. I read more closely at the sshd.socket config, and it clearly states it conflicts with sshd.service. I disabled service and everything works fine. But I am still having trouble getting Jenkins to work with Tomcat.
Last edited by ZMoore (2014-09-15 00:33:18)

Thank you, but the problem is a little different from that. These are
exploded web apps outside the applications dir. I deployed them
through the console initially; on the other servers, when WL restarts,
the apps are deployed back to their targets just fine. It's only this
box that loses sense of the targets on WL restart.
We're on 6.1, so a few people have suggested upgrading to 6.1 sp4 --
they've said they've seen this problem, and the sp corrects it.
That said, this is a production box and upgrading it is a hassle. I'll
get started on scheduling that, but if anyone has any ideas in the
meantime, I'd greatly appreciate it. If not, thanks anyway. :)
Rob
"Deepak Vohra" <[email protected]> wrote in message news:<3eebae8e$[email protected]>...
WLServer should start in development mode for a application
in the applications dir to deploy.
STARTMODE=false
[email protected] (Rob Young) wrote:
On one of our production servers (just one), when I restart weblogic,
my web applications are not deploying; I have to deploy them manually.
This is bad, obviously, because the server won't restore properly
after a restart.
After a while, I get target="box,box,box,box" that represents the
multiple times I've deployed that application to the target "box".
From config.xml:
<Application Deployed="true" Name="revx" Path="F:\revx">
<WebAppComponent Name="revx"
Targets="giocm,giocm,giocm,giocm,giocm,giocm,giocm"
URI="revx"/>
</Application>
The operating system is Windows 2000 5.00.2195 ... everything was
working fine until I re-installed the Windows service this weekend.
I've checked permissions on the folder, on the file, and who the
service is running as. I've manually edited config.xml to remove the
duplicate target entries.
I've seen some other posts from people who have also experienced
applications not deploying on WL restart, but I don't see any
resolutions.
Rob

Similar Messages

  • Itunes will not install..windows INSTALLER service not available.windows 7

    I am trying to find a fix for this...just bought a new computer with windows 7, all updates have been performed. Itunes will not install...it just stops and says "windows installer service not available" Can't find a stand alone downloadable version of installer 5.0 which is what comes with 7 from the research I have done. I have the newest version of itunes saved on desktop, tried running it from desktop, tried running as admin, tried several other ideas that I found on here and Microsoft..but nothing is working. Any advice?
    Message was edited by: ehindahl

    Same error message "This version is for a 32 bit computer, yours is a 64 bit!"
    Doublechecking ... by any chance did you migrate a 32-bit version of the iTunes, Apple Mobile Device Support and Bonjour programs to the 64-bit machine from a 32-bit machine using the PC Mover utility?
    (Your symptoms are consistent with that ... the installer service throws the message when trying to uninstall the 32-bit itunes and related 32-bit componentry prior to installing the new 64-bit versions.)

  • Why does it say can not open  iphone mobile device service not started after the udate fixes?

    can someone please help after i update my soft ware to fix sum bug issues now when i hook up my iphone to my laptop it say can not open iphone mobile device is not started

    Check the links listed in the More Like This box on the right of this window.

  • Service Not Available error with SSAS cube

    Hi,
    We imported Microsoft Analysis Services (SSAS) Cube into RPD using XMLA.  While using the drill down feature in BI answers using presentation hierarchies, OBIEE is generating the following error
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: URL: http://<server>/<app name>/msmdpump.dll. The http return status is 503.< html><head><title>Service Not Available</title></head><body>Service Not Available</body></html>
    However, drill down feature is working fine with attribute columns. Also the report is working fine up to certain level of drill down. In the log it is evident that OBIEE is generating multiple physical queries (with clause) to pull the data from the cube.
    Is there any limit on the size of the mdx or number of mdx queries that msmdpump.dll can process?  Is there any configuration that needs to be modified while working with SSAS cubes?
    OBIEE version: 11.1.1.6.2 BP1
    Much appreciate your time.

    Hi Dhar,
    Thanks for your reply.
    Yes, your observation is correct. Changing the type of the hierarchies has some effect on the issue. I'm able to drill down to few more levels as the MDX generated by OBIEE in this less complex. But ultimately I'm facing the same issue after certain stage. I can only think of, the number of physical queries generated by OBIEE, as one of the possible reason for this. What is your opinion?
    Interestingly, I tested the same RPD in 11.1.1.6.5 and I'm unable to reproduce in the issue so far in my testing . Is it a bug in 11.1.1.6.2?! However, upgrading to 11.1.1.6.5 is not an option for us at this stage.
    Were you able to resolve the issue completely by only changing the hierarchy type? What version you have used in you project?
    Thanks.

  • Tomcat 5 service won't start under w2k

    Has anyone else had trouble getting the Tomcat 5 service to start under Windows 2000 or Windows XP? I have tried installing the service using the installer .exe and also manually by downloading the zip file and using the service.bat file in the bin directory. I can install the service, but when I attempt to start it I receive the following message:
    Could not start the Apache Tomcat service on Local Computer.
    Error 1053: The service did not respond to the start or control request in a timely fashion.
    I have set the JAVA_HOME and CATALINA_HOME environment variables properly. I can start and stop Tomcat just fine by using startup.bat and shutdown.bat. If I can start Tomcat by using startup.bat, what is stopping me from starting it as a service? I must be missing some configuration setting or something...
    I am having the same problem on 3 different computers, 2 w2k machines and 1 XP Pro machine. I have tried both Tomcat 5.0.18 and 5.0.19, same result on both.
    Any help would be appreciated!

    run regedit in command line,add the key:
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment]
    "CurrentVersion"="1.4"
    [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.4]
    "JavaHome"="C:\\Program Files\\Java\\j2re1.4.1_01"
    "MicroVersion"="1"
    "RuntimeLib"="C:\\Program Files\\Java\\j2re1.4.1_01\\bin\\client\\jvm.dll"

  • Production Issue heap space error. Getting ERROR 503 Service not deployed

    Hi,
    I have deployed my web services (VAS services) in tomcat 6.0 in production .I am using axis2 1.4.1 as web service engine and apache 2.2 for httpd service. My problem is that in every 8-10 hrs when no of transactions increase, a problem occurs in my server and I get an “ERROR 503 service not deployed”. I don’t know the exact cause and solution to this problem. Presently every time I face this problem, I restart my httpd services and tomcat. Please help me to rectify this problem as this is hampering our business in a big way. I am sending the log details of catalina.log in tomcat’s log folder
    17-Nov-2008 17:20:56 org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet AxisServlet threw exception
    java.lang.OutOfMemoryError: Java heap space
    17-Nov-2008 17:21:33 org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet AxisServlet threw exception
    java.lang.OutOfMemoryError: Java heap space
    17-Nov-2008 17:21:33 org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet AxisServlet threw exception
    java.lang.OutOfMemoryError: Java heap space
    17-Nov-2008 17:21:36 org.apache.jk.core.MsgContext action
    WARNING: Error sending end packet
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)
    at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121)
    at org.apache.jk.core.MsgContext.action(MsgContext.java:301)
    at org.apache.coyote.Response.action(Response.java:183)
    at org.apache.coyote.Response.finish(Response.java:305)
    at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:276)
    at org.apache.catalina.connector.Response.finishResponse(Response.java:486)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:285)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
    at java.lang.Thread.run(Unknown Source)
    17-Nov-2008 17:21:36 org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet AxisServlet threw exception
    java.lang.OutOfMemoryError: Java heap space
    17-Nov-2008 17:23:31 org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.OutOfMemoryError: Java heap space
    17-Nov-2008 17:23:31 org.apache.jk.common.ChannelSocket processConnection
    WARNING: processCallbacks status 2
    17-Nov-2008 17:23:31 org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.OutOfMemoryError: Java heap space
    17-Nov-2008 17:23:31 org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.OutOfMemoryError: Java heap space
    17-Nov-2008 17:23:31 org.apache.jk.core.MsgContext action
    WARNING: Error sending end packet
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)
    at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121)
    at org.apache.jk.core.MsgContext.action(MsgContext.java:301)
    at org.apache.coyote.Response.action(Response.java:183)
    at org.apache.coyote.Response.finish(Response.java:305)
    at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:276)
    at org.apache.catalina.connector.Response.finishResponse(Response.java:486)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:285)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
    at java.lang.Thread.run(Unknown Source)
    17-Nov-2008 17:23:31 org.apache.jk.core.MsgContext action
    WARNING: Error sending end packet
    java.net.SocketException: Software caused connection abort: socket write error
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(Unknown Source)
    at java.net.SocketOutputStream.write(Unknown Source)
    at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:531)
    at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:121)
    at org.apache.jk.core.MsgContext.action(MsgContext.java:301)
    at org.apache.coyote.Response.action(Response.java:183)
    at org.apache.coyote.Response.finish(Response.java:305)
    at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:276)
    at org.apache.catalina.connector.Response.finishResponse(Response.java:486)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:285)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
    at java.lang.Thread.run(Unknown Source)
    17-Nov-2008 17:23:34 org.apache.jk.common.ChannelSocket processConnection
    WARNING: processCallbacks status 2
    17-Nov-2008 17:23:34 org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: getOutputStream() has already been called for this response
    at org.apache.catalina.connector.Response.getWriter(Response.java:604)
    at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
    at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
    at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
    at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:186)
    at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
    at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
    at org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.java:110)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:447)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
    at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)
    at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)
    at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:287)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
    at java.lang.Thread.run(Unknown Source)
    17-Nov-2008 17:23:34 org.apache.jk.common.ChannelSocket processConnection
    WARNING: processCallbacks status 2
    17-Nov-2008 17:23:34 org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.OutOfMemoryError: Java heap space
    17-Nov-2008 17:23:34 org.apache.catalina.core.ApplicationDispatcher invoke
    Regards,
    Paritosh
    Edited by: anshu_299 on Nov 18, 2008 9:39 AM

    Hi,
    503 error comes when the client finds that the target server is not running or accessible.
    Is the java system up and running? Check if the server nodes are up ?
    check for the logs in work dir and if only server node is not coming up then check for default traces.
    Amit.

  • 'Not running in a hosted service or the Development Fabric' exception on deployed Worker role

    We are getting this exception after a worker role has been operating fine in production for several weeks.  Once this exception starts getting reported, it will keep getting it every time the worker role tries to access anything with the Diagnostics:
    Not running in a hosted service or the Development Fabric
    Note that the role is full trust, and as I mentioned this in in production on the Azure servers, NOT in debug.  The worker role itself does some dynamic compilation, for which it needs to start a new AppDomain.  It appears that the exception is
    coming from the spawned AppDomain when it occurs.  The exception itself is triggered on a simple Trace.TraceInformation call.
    What could cause this?
    What can we do to recover from this?

    We are getting this exception after a worker role has been operating fine in production for several weeks.  Once this exception starts getting reported, it will keep getting it every time the worker role tries to access anything with the Diagnostics:
    Not running in a hosted service or the Development Fabric
    Note that the role is full trust, and as I mentioned this in in production on the Azure servers, NOT in debug.  The worker role itself does some dynamic compilation, for which it needs to start a new AppDomain.  It appears that the exception is
    coming from the spawned AppDomain when it occurs.  The exception itself is triggered on a simple Trace.TraceInformation call.
    What could cause this?
    What can we do to recover from this?
    Hi,
    I have tested this situation in Windows Azure platform and i can not reproduce your exception message, my test code in follwoing MSDN samples and i deploy it in Production status.
    The MSDN article (include Appdomain code snippets)
    http://msdn.microsoft.com/en-us/library/system.appdomain.aspx .
    Base on my understand, the "Not running in a hosted service or the Development Fabric" error message occur when Azure Emulator or Azure development fabirc, because you create a new appdomain in WorkRole, and it may cause permission errors, a similar
    posts by my research:
    https://social.msdn.microsoft.com/Forums/en-US/windowsazuretroubleshooting/thread/50987285-58ac-484e-b604-725fe01a3325
    If you still have some problems, please inform me. Thank you.
    Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact
    [email protected]
    Microsoft One Code Framework

  • Not able to deploy HumanTask and Decision service using ant file

    Hi all,
    I am using ant file to complile and deploy a bpel process. Currently i am able to compile the bpel process and deploy it. But when it come to deploying humantask and decesion services I am getting a message.
    [deployDecisionServices] There are no decision services to deploy
    [deployTaskForm] There are no forms to deploy
    Kindly guide me out of this issue
    below is my ant file
    <?xml version="1.0" encoding="iso-8859-1"?>
    <project name="bpel.deploy" default="AuthorizeCreditRequestApproval" basedir=".">
    <property name="process.dir" value="..\SVNCopy\Code}"/>
    <!-- Set BPEL process names -->
    <xmlproperty file="${process.dir}\AuthorizeCreditAS\bpel\bpel.xml"/>
    <property environment="env"/>
    <!-- Set bpel.home from developer prompt's environment variable BPEL_HOME -->
    <condition property="bpel.home" value="${env.BPEL_HOME}">
    <available file="ant-orabpel.xml"/>
    </condition>
    <!-- If bpel.home is not yet using env.BPEL_HOME, set it for JDev -->
    <property name="bpel.home" value="${oracle.home}/integration/bpel"/>
    <!-- First override from build.properties in process.dir, if available -->
    <property file="build.properties"/>
    <!-- import custom ant tasks for the BPEL PM -->
    <import file="ant-orabpel.xml"/>
    <!-- Use deployment related default properties -->
    <property file="ant-orabpel.properties"/>
    <target name="AuthorizeCreditRequestApproval" depends="CheckCustomerMarketSegment">
    <echo>
    | Deploying workflow form for AuthorizeCredit on ${j2ee.hostname}, port ${http.port}
    </echo>
    <deployTaskForm
    platform="${platform}" dir="../SVNCopy/Code/ManageCustomerCreditEligibility/AuthorizeCreditBS/public_html"
    domain="${domain}" process= "AuthorizeCreditBS" rev="${rev}"
    user="${admin.user}" password="${admin.password}"
    hostname="${j2ee.hostname}" cluster="${cluster}"
    rmiport="${rmi.port}" opmnrequestport="${opmn.requestport}"
    oc4jinstancename="${oc4jinstancename}"
    asinstancename="${asinstancename}" verbose="${verbose}"
    />
    </target>
    <target name="CheckCustomerMarketSegment" depends="compileAuthorizeCredit">
    <echo>
    | Deploying decision services for AuthorizeCredit on ${j2ee.hostname}, port ${http.port}
    </echo>
    <deployDecisionServices
    platform="${platform}" dir="../SVNCopy/Code/AuthorizeCredit/decisionservices"
    domain="${domain}" process="AuthorizeCredit" rev="${rev}"
    user="${admin.user}" password="${admin.password}"
    hostname="${j2ee.hostname}" httpport="${http.port}"
         cluster="${cluster}" rmiport="${rmi.port}"
    opmnrequestport="${opmn.requestport}" oc4jinstancename="${oc4jinstancename}"
    asinstancename="${asinstancename}" verbose="${verbose}"
    />
    </target>
    <target name="compileAuthorizeCredit" depends="checkout">
    <echo> --- | Compiling bpel process AuthorizeCreditBS| ---
    </echo>
    <bpelc input="../SVNCopy/Code/AuthorizeCredit/bpel/bpel.xml"
    out="../SVNCopy/Code/AuthorizeCredit/output" rev="${rev}"
    home="${bpel.home}"/>
    <echo> --- | AuthorizeCredit Compiled Successfully, revision ${rev}| ---
    </echo>
    </target>
    </project>
    Edited by: Arun Vikram on Mar 4, 2010 10:45 PM

    Is there any workflow or decision service in ur bpel???
    if present,...the ant is not getting ../SVNCopy/Code/AuthorizeCredit/decisionservices and ../SVNCopy/Code/ManageCustomerCreditEligibility/AuthorizeCreditBS/public_html folders.
    Edited by: krish.chaitnya on Mar 4, 2010 11:20 PM

  • Beans do not deploy under Service Pack 12

    Hello, we recently upgraded our Weblogic 5.1 from Service Pack 10 to
    Service Pack 12. All the beans compile and jar fine, and most deploy
    ok apart from a few that give the exception given below. Does anyone
    know anything in SP11 or SP12 that might cause this behaviour?
    Thanks!
    Z
    Wed Jul 24 11:26:41 GMT+00:00 2002:<E> <EJB> Could not deploy:
    'D:/FM/SolstraV2/
    lib/reports_content.jar': file is not a valid jar file, or does not
    contain a valid bean
    weblogic.ejb.common.DeploymentException: DeploymentException opening
    JAR file D:
    \FM\SolstraV2\lib\reports_content.jar; nested exception is:
    weblogic.ejb.deployment.JarLoadException - with nested
    exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    D:/FM/Sols
    traV2/lib/reports_content.jar from
    D:\FM\SolstraV2\lib\reports_content.jar; nest
    ed exception is:
            java.lang.StringIndexOutOfBoundsException: String index out of
    range: -2
    weblogic.ejb.common.DeploymentException: Problem creating deployment
    D:/FM/Solst
    raV2/lib/reports_content.jar from
    D:\FM\SolstraV2\lib\reports_content.jar; neste
    d exception is:
    java.lang.StringIndexOutOfBoundsException: String index out of
    range: -2
    java.lang.StringIndexOutOfBoundsException: String index out of range:
    -2
    at java.lang.String.substring(String.java, Compiled Code)
    at java.lang.String.substring(String.java, Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.computeExcludeForInfo(EJBJarLoader
    .java, Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java
    , Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:21
    1)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:18
    2)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:16
    4)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java
    :172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:1
    22)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:1
    12)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:311)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:247)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:140)
    at weblogic.Server.main(Server.java, Compiled Code)
    at com.solstra.SolstraWeblogicServer.main(SolstraWeblogicServer.java:23)

    Hello, we recently upgraded our Weblogic 5.1 from Service Pack 10 to
    Service Pack 12. All the beans compile and jar fine, and most deploy
    ok apart from a few that give the exception given below. Does anyone
    know anything in SP11 or SP12 that might cause this behaviour?
    Thanks!
    Z
    Wed Jul 24 11:26:41 GMT+00:00 2002:<E> <EJB> Could not deploy:
    'D:/FM/SolstraV2/
    lib/reports_content.jar': file is not a valid jar file, or does not
    contain a valid bean
    weblogic.ejb.common.DeploymentException: DeploymentException opening
    JAR file D:
    \FM\SolstraV2\lib\reports_content.jar; nested exception is:
    weblogic.ejb.deployment.JarLoadException - with nested
    exception:
    [weblogic.ejb.common.DeploymentException: Problem creating deployment
    D:/FM/Sols
    traV2/lib/reports_content.jar from
    D:\FM\SolstraV2\lib\reports_content.jar; nest
    ed exception is:
            java.lang.StringIndexOutOfBoundsException: String index out of
    range: -2
    weblogic.ejb.common.DeploymentException: Problem creating deployment
    D:/FM/Solst
    raV2/lib/reports_content.jar from
    D:\FM\SolstraV2\lib\reports_content.jar; neste
    d exception is:
    java.lang.StringIndexOutOfBoundsException: String index out of
    range: -2
    java.lang.StringIndexOutOfBoundsException: String index out of range:
    -2
    at java.lang.String.substring(String.java, Compiled Code)
    at java.lang.String.substring(String.java, Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.computeExcludeForInfo(EJBJarLoader
    .java, Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.computeExclude(EJBJarLoader.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBJarLoader.initialize(EJBJarLoader.java:125)
    at weblogic.ejb.internal.EJBJarLoader.<init>(EJBJarLoader.java:88)
    at weblogic.ejb.internal.EJBJarDeployment.setupJar(EJBJarDeployment.java
    , Compiled Code)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:21
    1)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:18
    2)
    at weblogic.ejb.internal.EJBJarDeployment.setup(EJBJarDeployment.java:16
    4)
    at weblogic.ejb.internal.EJBDeploymentImpl.<init>(EJBDeploymentImpl.java
    :172)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:1
    22)
    at weblogic.ejb.internal.EJBJarDeployment.<init>(EJBJarDeployment.java:1
    12)
    at weblogic.ejb.internal.EJBManagerImpl.deploy(EJBManagerImpl.java:311)
    at weblogic.ejb.internal.EJBManagerImpl.deployBeans(EJBManagerImpl.java,
    Compiled Code)
    at weblogic.ejb.internal.EJBManagerImpl.<init>(EJBManagerImpl.java:247)
    at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
    at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:879)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.Server.startServerDynamically(Server.java:140)
    at weblogic.Server.main(Server.java, Compiled Code)
    at com.solstra.SolstraWeblogicServer.main(SolstraWeblogicServer.java:23)

  • CAF Services not deployed to J2EE engine

    HI @all,
    I desgined an application service in CAF and deployed it to my CE-systtem.
    Developer Studio doesn't display any errors.
    I'm using the user Administrator with the roles CAF_Admin and CAF_Developer
    But when I use the "test service" functionality I get the following message, when the testing windows in IE is loaded:
    German: "Service <<name>> nicht auf J2EE Engine bereitgestellt"
    So the service is not on the J2EE engine.
    Thus I can't map this service to a destination to use it in Visual Composer.
    What's wrong?
    Kiing regards and thanks in advice
    Manfred Pielmeier

    To my understanding the j2ee engine configured to ur NWDS should be the same as from where u r trying to run the "test service". So please do check that.
    As far as what error tells is that such a service is not deployed, it means that u should have deployed in a different server. Its just a check that i wnat u to make.
    Regards
    Ashok

  • Warning: Service tc~sapjra is not deployed or loaded

    Hi all,
    I am deploying MII 12.2 on my CE 7.11 (4 SCAs downloaded from SMP)
    The warning I get at the end of the deploy of MII is
    Service tcsapjra is not deployed or loaded, but resolving of application sap.com/xappsxmii~ear continues because it has weak reference to this service
    I have not configured JRA at all. Since it seems a quite complex subject, can anyone please provide info on the specific configurations that need to be done for MII?
    Thanks, regards
    Vincenzo

    Please route this request to your 12.2 Ramp up coach.  And post the response here so we can understand the issue as well.
    Are you also trying to install SP 1 which should be available now?
    Regards,
    Mike

  • Applet- Servlet works fine in Jdeveloper, not when deployed to Tomcat 4

    Hey all, I have a real simple servlet that works withing Jdeveloper.
    An applet displays a button and when you click on the button it
    contacts the servlet and the servlet returns a string.. I put that
    string in a textarea widget.
    But if I create a deployment profile, deploy it to a jar file, put
    the jar file in the tomcat/webapps directory and start up tomcat it
    doesn't work. Applet works fine but the textarea widget doesn't get
    updated.
    (Note: to get it to work in jdeveloper I have to change the port to
    8992 but tomcat is running on 8080)
    Here's a clip of the code that contacts the servlet:
    String protocol = "http";
    String host = "localhost";
    int port = 8080;
    String urlSuffix = "/Applet1/servlet/";
    try {
    String loginServletURL = "my_package.TestServlet";
    URL dataURL = new URL(protocol, host, port, urlSuffix
    +loginServletURL);
    URLConnection connection = dataURL.openConnection();
    connection.setDoOutput(true);
    connection.setUseCaches(false);
    connection.setDoInput(true);
    connection.setRequestProperty("Content-Type",
    "application/x-java-serialized-object");
    ObjectInputStream in = new
    ObjectInputStream(connection.getInputStream());
    String test = (String) in.readObject();
    in.close();
    textArea.setText(test);
    Here's the servlet main code:
    public void doPost(HttpServletRequest request, HttpServletResponse
    response) throws ServletException, IOException
    String test= "TEST MESSAGE";
    ObjectOutputStream out = new
    ObjectOutputStream(response.getOutputStream());
    out.writeObject(test);
    out.flush();
    out.close();
    Like I said, this works fine in Jdeveloper. Its a pretty simple
    servlet.... I have created html pages that contact servlets without
    any issues. But for some reasons an applet is causing me a headache.
    Any ideas?? Any other information you may need let me know. Need the
    rest of the code and I can send you the entire workspace.
    Thanks

    Has no one encountered this before?

  • JSF Samples (jsf-guessNumber.war)is NOT Working in Tomcat

    Hello
    I have worked in struts a bit, but, I'm new to JSF world. I was trying to run small program in JSF, but, I am getting the error by all the way.
    I have downloaded the JSF from Sun web site, the version says, jsf1.1 Final. I have found, "jsf-guessNumber.war" file in the sample folder in the downloaded zip file. I have already working Tomcat 5.5 in my laptop, I have deployed jsf-guessNumber.war application in my Tomcat and deployed successfully. But, when try to access the application through http://localhost:8080/jsf-guessNumber/ , the below exception appears. I have changed nothing in the war file. I have tried to deploy all other war sample files in my tomcat, but, nothing is working :-(.
    Can anyone please help me to find out what's wrong with this ?. Many Thanks in advance!.
    The exception details are below
    Dec 13, 2007 12:18:54 AM org.apache.catalina.core.ApplicationContext log
    SEVERE: StandardWrapper.Throwable
    java.lang.NullPointerException
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:660)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:595)
    Dec 13, 2007 12:18:54 AM org.apache.catalina.core.ApplicationDispatcher invoke
    SEVERE: Allocate exception for servlet Faces Servlet
    java.lang.NullPointerException
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:660)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:595)
    Dec 13, 2007 12:18:54 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:660)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:661)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:595)
    Thanks
    Sarav.

    Hi BalusC
    I have downloaded this now - https://javaserverfaces.dev.java.net/files/documents/1866/78307/jsf-1_2_07.zip and deployed samples in my Tomcat and added the libs. Restarted ny tomcat too thrice.
    I am getting the below exception while accessing this http://localhost:8080/jsf-guessNumber/
    Dec 13, 2007 12:53:12 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
         at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:267)
         at javax.faces.webapp.FacesServlet.init(FacesServlet.java:164)
         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:791)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:660)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:691)
    Can you please help to find out what is missing ?

  • Connection reset error while calling web service deployed on tomcat

    Hello Friends,
    I am trying to invoke a web service from web dynpro application. The web service is deployed on tomcat 5.5 server.
    I am creating an adaptive web service model using wsdl file. The model gets created without any error.
    But when application is deployed and run it is giving following exception:
    java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:168)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:313)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
        ... 102 more
    I tried to call the service from a simple java application. There the service works fine.
    Also, in the web services navigator, if I specify the wsdl url for testing it gives the same error of "Connection reset".
    I don't think this is a proxy server issue as the tomcat is within the local network.
    Can someone please help me with this?
    Thanks and regards,
    Mayuresh
    Edited by: Mayuresh Kanvinde on Mar 27, 2008 7:03 PM

    Hi Sumit,
    Thanks for the reply.
    Here is the stack trace:
    com.sap.tc.webdynpro.model.webservice.exception.WSModelRuntimeException: Exception on creation of service metadata for WSDL URL 'http://<host>:<port>/WebServicesTest/DummyWebService?wsdl' and service factory configuration 'null'
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:422)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.readOperationsFromWSDL(WSModelInfo.java:372)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadataInternal(WSModelInfo.java:342)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.importMetadata(WSModelInfo.java:326)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo$Cache.getModelInfo(WSModelInfo.java:199)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:1035)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getModelInfoFromCacheOrCreate(WSModelInfo.java:248)
         at com.sap.tc.webdynpro.model.webservice.gci.WSTypedModel.<init>(WSTypedModel.java:41)
         at com.tcs.vis.Vishy.<init>(Vishy.java:73)
         at com.tcs.app.AppView.wdDoInit(AppView.java:101)
         at com.tcs.app.wdp.InternalAppView.wdDoInit(InternalAppView.java:143)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:150)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:50)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
         at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:91)
         at com.sap.tc.webdynpro.model.webservice.metadata.WSModelInfo.getOrCreateWsrService(WSModelInfo.java:420)
         ... 45 more
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)
         at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:147)
         ... 49 more
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Connection reset -> java.net.SocketException: Connection reset
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1039)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1126)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
         ... 50 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
         at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
         at com.sap.engine.services.webservices.jaxm.soap.LimitedInputStream.read(LimitedInputStream.java:61)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.readData(EncodedDataReader.java:269)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.fetchData(EncodedDataReader.java:332)
         at com.sap.engine.lib.xml.parser.readers.EncodedDataReader.read(EncodedDataReader.java:165)
         at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.read(AdvancedXMLStreamReader.java:143)
         at com.sap.engine.lib.xml.parser.helpers.AdvancedXMLStreamReader.addInputFromInputStream(AdvancedXMLStreamReader.java:292)
         at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:220)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261)
         at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
         at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:101)
         at com.sap.engine.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:127)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1023)
         ... 52 more
    Thanks and regards,
    Mayuresh
    Edited by: Mayuresh Kanvinde on Mar 28, 2008 1:10 PM

  • Javax.naming.NameNotFoundException: service not bound

    hi
    i am trying to access web services using JNDI lookup.
    this is my client code snippet
    ctx=new InitialContext();
                   //customerSessionRemote remote=(customerSessionRemote)ctx.lookup("customer/remote");
                   Service service=(Service)ctx.lookup("java:comp/env/service/CustomerRegisteration");
                   try {
                        EndpointInterface port = (EndpointInterface)service.getPort(EndpointInterface.class);
                        String user=port.validateUser(getUserName(), getPassword());
                        System.out.println(user);
                   } catch (ServiceException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
              } catch (NamingException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    but i am getting following error,
    javax.naming.NameNotFoundException: service not bound
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
    17:55:56,468 ERROR [STDERR]      at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
    17:55:56,468 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
    17:55:56,484 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:716)
    17:55:56,484 ERROR [STDERR]      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
    17:55:56,484 ERROR [STDERR]      at javax.naming.InitialContext.lookup(InitialContext.java:351)
    17:55:56,484 ERROR [STDERR]      at client.UserBean.loginUser(UserBean.java:125)
    17:55:56,484 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    17:55:56,484 ERROR [STDERR]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    17:55:56,484 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    17:55:56,484 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:585)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
    17:55:56,484 ERROR [STDERR]      at javax.faces.component.UICommand.broadcast(UICommand.java:312)
    17:55:56,484 ERROR [STDERR]      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    17:55:56,484 ERROR [STDERR]      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    17:55:56,484 ERROR [STDERR]      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    17:55:56,484 ERROR [STDERR]      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    17:55:56,484 ERROR [STDERR]      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    17:55:56,484 ERROR [STDERR]      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    17:55:56,484 ERROR [STDERR]      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    17:55:56,484 ERROR [STDERR]      at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    17:55:56,484 ERROR [STDERR]      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    17:55:56,484 ERROR [STDERR]      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    17:55:56,484 ERROR [STDERR]      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    17:55:56,484 ERROR [STDERR]      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    17:55:56,484 ERROR [STDERR]      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    17:55:56,484 ERROR [STDERR]      at java.lang.Thread.run(Thread.java:595)
    please help me in resolving this

    hi
    As i am exposing ejb3 components as web servcices there is no deployment descriptor files.its based on annotation.Even i am developing enterprise applicatoin.I am using Jboss app server.
    only 2 xml files are there,
    persistence.xml and web.xml
    should i need to post any other file?
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>AccountListServlet</servlet-name>
    <servlet-class>client.AccountListServlet</servlet-class>
    </servlet>
    <servlet>
    <description>This is the description of my J2EE component</description>
    <display-name>This is the display name of my J2EE component</display-name>
    <servlet-name>accountDetailServlet</servlet-name>
    <servlet-class>client.accountDetailServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>AccountListServlet</servlet-name>
    <url-pattern>/AccountListServlet</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>accountDetailServlet</servlet-name>
    <url-pattern>/accountDetailServlet</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    </web-app>
    persistence.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
    http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0">
         <persistence-unit name="customer" transaction-type="JTA">
              <jta-data-source>java:/MSSqlDS</jta-data-source>
              <properties>
         <property name="hibernate.hbm2ddl.auto" value="update" />
         <property name="hibernate.show_sql" value="true" />
         <property name="hibernate.dialect" value="org.hibernate.dialect.SQLServerDialect" />
         </properties>
         </persistence-unit>
    </persistence>
    could u tell me where i went wrong?

Maybe you are looking for

  • Attaching files

    If I attach a file and send the email via Entourage a client of mine (using Eudora on a PC Platform) is able to easily save the attachment. However, If I attach a file and send the email via Mail the client us unable to access or even see the attachm

  • Transferring license for Elements 12

    Hi all....I am trying to figure out if I have done what i need to do to transfer my license so I can sell Elements 12.   Somehow I found chat for Elements 12 (can't find it again).  I chatted with someone and she told me to fill out a form then I got

  • Intercompany configuration

    We want to configure intercompany postings for various company codes. In OBYA we already have the some accounts configured for journal entries, however we want to use more accounts for clearing AR and AP. But we cannot enter more accounts for cominat

  • Deploying IOS firewall feature set

    Hi All, We are trying to deploy firewall feature in the 2811 router by suing the SDM 2.5. We choosed option for basic firewall setup. It required us to choose trusted and non-trusted interfaces and we did the same. It added access-list inbound on the

  • Enable legacy public folders for Exchange 2013 prior to migration?

    We're about ready to migrate to Exchange 2013 from 2010. We have a public folder database on 2010 that users can't see once migrated to 2013. If I run through the commands according to the technet article "Configure legacy public folders where user m