الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

problem Deploy application

بدأه lovely_ned في 22 فبراير 2012 · 20 رد · 1,434 مشاهدة · في JavaEE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

اكملت الحمد لله برنامجي واستخدمت JSF 1.2 + Tomcat 6

لما قمت بعمل deploy لملف war الخاص ب ال application

ظهرت لي رسالة الخط التالية

Echec du déploiement de l'application Web "de". Echec du déploiement de l'application Web "de". . Exception de base :
Demande OPMN : /start?mode=sync&process-type=OC4J_temp
Réponse OPMN : HTTP/1.1 204 No Content
Content-Length: 709
Content-Type: text/html
Response: 0 of 1 processes started.

<?xml version='1.0' encoding='US-ASCII'?>
<response>
<opmn id="sapplications:6201" http-status="204" http-response="0 of 1 processes started.">
<ias-instance id="mt.sapplications">
<ias-component id="OC4J">
<process-type id="OC4J_temp">
<process-set id="default_island">
<process id="1719009343" pid="2532" status="Stopped" index="1" log="C:\ora_home\mt\opmn\logs\OC4J~OC4J_temp~default_island~1" operation="request" result="failure">
<msg code="-21" text="failed to start a managed process after the maximum retry limit">
</msg>
</process>
</process-set>
</process-type>
</ias-component>
</ias-instance>
</opmn>
</response>

Résolution :
Si OPMN ne répond pas, vérifiez la configuration dOPMN, puis redémarrez le démon DCM. Si une réponse OPMN est disponible, identifiez lerreur et les fichiers journaux correspondants mentionnés dans cette réponse

شكرا لمساعدتكم

#2
اقتباس
failed to start a managed process after the maximum retry limit

هل التومكات يعمل اصلا؟

#3

شكرا للاجابة قمت ببعض التعديلات

وهذا هو كود ملف web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
  <display-name>TestNed</display-name>
  <welcome-file-list>
    <welcome-file>index.html</welcome-file>
    <welcome-file>index.htm</welcome-file>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.html</welcome-file>
    <welcome-file>default.htm</welcome-file>
    <welcome-file>default.jsp</welcome-file>
  </welcome-file-list>
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
  </servlet-mapping>
  <context-param>
    <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
    <param-value>true</param-value>
  </context-param>
  <listener>
    <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
  </listener>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.faces</url-pattern>
  </servlet-mapping>
  <context-param>
    <param-name>org.richfaces.SKIN</param-name>
    <param-value>classic</param-value>
  </context-param>
  <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
  </context-param>
  <filter>
    <display-name>RichFaces Filter</display-name>
    <filter-name>richfaces</filter-name>
    <filter-class>org.ajax4jsf.Filter</filter-class>
  </filter>
  <filter>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
    <init-param>
      <param-name>maxFileSize</param-name>
      <param-value>20m</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>richfaces</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>FORWARD</dispatcher>
    <dispatcher>INCLUDE</dispatcher>
  </filter-mapping>
  <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <servlet-name>Faces Servlet</servlet-name>
  </filter-mapping>
  <filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
  </filter-mapping>
  <login-config>
    <auth-method>BASIC</auth-method>
  </login-config>




<filter>
    <filter-name>AuthenticationFilter</filter-name>
    <filter-class>Test.AuthenticationFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>AuthenticationFilter</filter-name>
    <url-pattern>/restricted/*</url-pattern>
  </filter-mapping>



</web-app>

وهذا هو الخطا

Echec du déploiement de l'application Web "a1". Echec du déploiement de l'application Web "a1". . Exception de base :
Impossible d'obtenir le document xml en analysant WEB-INF/web.xml : <Line 2, Column 6> : PI with the name 'xml' can occur only in the beginning of the document.
#4

قم بسمح أول سطر في الملف بحيث يكون أول سطر في الملف هو :

<?xml version="1.0" encoding="UTF-8"?>

و أعد التجربه

#5

شكرا

قمت بذلك فظهرت لي رسالة الخطا التالية

Echec du déploiement de l'application Web "a". Echec du déploiement de l'application Web "a". . Exception de base :
Demande OPMN : /start?mode=sync&process-type=OC4J_temp
Réponse OPMN : HTTP/1.1 204 No Content
Content-Length: 706
Content-Type: text/html
Response: 0 of 1 processes started.

<?xml version='1.0' encoding='US-ASCII'?>
<response>
<opmn id="sapplications:6201" http-status="204" http-response="0 of 1 processes started.">
<ias-instance id="mt.sapplications">
<ias-component id="OC4J">
<process-type id="OC4J_temp">
<process-set id="default_island">
<process id="1904476258" pid="1964" status="Init" index="1" log="C:\ora_home\mt\opmn\logs\OC4J~OC4J_temp~default_island~1" operation="request" result="failure">
<msg code="-21" text="failed to start a managed process after the maximum retry limit">
</msg>
</process>
</process-set>
</process-type>
</ias-component>
</ias-instance>
</opmn>
</response>

Résolution :
Si OPMN ne répond pas, vérifiez la configuration dOPMN, puis redémarrez le démon DCM. Si une réponse OPMN est disponible, identifiez lerreur et les fichiers journaux correspondants mentionnés dans cette réponse
#6

أخي الأمور لدي ليست واضحه لكى أساعدك ....

أولا ما هو الخادم المستخدم ... بداية أنت قلت Apache و لكن ال logs تبين أنك تستخدم OAS ...

و بغض النظر عن ال App Server المستخدم ... تأكد أن السرفر أصلا يعمل ... في حالة تومكات أطلب:

http://localhost:8080

و في حالة OAS أطلب

http://localhost:8888
#7

شكرا عالاجابة tomcat يعمل عادي لاني استطيع ان اشغل application من ع eclipse

لم اعرف ما هو الحل

#8

من الواضح أنك تعمل من داخل Eclipse على tomcat و الذي هو فعلا يعمل ...

و فى نفس الوقت تحاول عمل Deploy لتطبيقك على Oracle App Server (عن طريق الخطأ و ربما أنت لا تدري ذلك ) و الذي هو متوقف!

قم بتشغيل Oracle App Server أولا

تم تعديل هذه المشاركة بواسطة __Unknown في 23 فبراير 2012 في 11:47

#9
__Unknown كتب:

من الواضح أنك تعمل من داخل Eclipse على tomcat و الذي هو فعلا يعمل ...

و فى نفس الوقت تحاول عمل Deploy لتطبيقك على Oracle App Server (عن طريق الخطأ و ربما أنت لا تدري ذلك ) و الذي هو متوقف!

قم بتشغيل Oracle App Server أولا

لا هو يشتغل عادي وغير متوقف

#10

الظاهر محدش مهتم

اريد ان اضيف معلومة

انا انشات مشروع JSF 1.2

واستعمل OC4J كسيرفر

#12

اسفة لاني تعبتكم لكن والله حاسة اني توقفت كليا وانه البرنامج اللي عملته لن يشتغل ابدااااااااااااااااااااااااااااااااا

ولو اجد حل لمشكلتيييييييييييييييييييييييييييييييييييييييي

#13

حسنا ...

إنسخى ذلك الرابط في المتصفح و أخبرينى ما النتيجه ... http://localhost:8888/em/

#14

شكرا تعبتك معايا جداااااااااااااااااااااااااااااا

قمت بتجاوز هذه المشكلة لكن مشكلة اخرى ظهرت للاسف :(

Echec du déploiement de l'application Web "decha". Echec du déploiement de l'application Web "decha". . Echec de la phase dévaluation. Ladaptateur utilisé dans lévaluation a peut-être généré une exception.
Résolution :
Contactez le support technique Oracle.
Exception de base :
java.lang.UnsupportedClassVersionError
com/sun/faces/config/ConfigureListener (Unsupported major.minor version 49.0). com/sun/faces/config/ConfigureListener (Unsupported major.minor version 49.0)
#15

ما مدي أهمية oc4j إستخدام بالنسبه لك

إن كان الأمر غير مهم فإستبدليه ب tomcat

أسهل و أنجز

#16

لا استطيع لانه في الشغل يعملون على سيرفر oc4j

استطيع القيام بذلك في tomcat لكن للاسف غير مسموح

#17

قومى بتحميل هذا الفيديو

oc4j+eclipse+jsf1.2

ربما يساعدك

#18

شكرا على طوول بالك

قمت بعمل deploy لل application وتم بنجاح

لكن المشكلة عند القيام بفتح ال application يظهرلي خطا

OracleJSP : oracle.jsp.parse.JspParseException: /index.jsp: Ligne n° 1, <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

where is the problem

#19

هل شاهدتى الفيديو ؟

إستخدمى XHTML بدلا من JSP

#20

شكرا اولا صفحة الفيديو تظهر على انها مش موجودة

https://vimeo.com/37576054/download?t=1330432464&v=86386173

ثانيا الحل يكمن في اضافة ملفات .tld ل ملف web-inf

واضافة هذا الكود لملف web.xml

 <taglib>
    <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
    <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
  </taglib>

مشكلتي هل ممكن رابط لتحميل ملفات .tld

وثانيا اريد ملفات tld الخاصة ب prefixe: h, rich, f, a4j

شكرا ليكم

#21

ارجوكم الا يوجد من يساعدني؟؟؟؟؟؟؟؟؟؟؟؟؟

مواضيع مشابهة